/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 修改配色方案为影视风格 */
:root {
    --primary-color: #e50914;  /* Netflix红 */
    --secondary-color: #564d4d;
    --text-color: #ffffff;
    --bg-color: #141414;
    --card-bg: #1f1f1f;
    --hover-color: #ff0f1a;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

/* 标题样式 */
h1 {
    text-align: center;
    color: #00ff00;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #00ff00;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* 提示文字样式 */
.status-tip {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 15px;
    background: var(--card-bg);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    border: 1px solid var(--primary-color);
}

/* 错误消息样式 */
.error-message {
    color: #ff0000;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    border-left: 4px solid #ff0000;
}

/* 路由区域样式 */
.route-section {
    background: var(--card-bg);
    margin: 15px 0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-color);
}

.route-section:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.route-section.available {
    border-left: 4px solid #4CAF50;
}

.route-section.unavailable {
    border-left: 4px solid var(--primary-color);
}

.route-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-title::before {
    content: '🎬';
    font-size: 20px;
}

/* 域名项目样式 */
.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.domain-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

/* 可用线路的按钮样式 */
.domain-item a.available-link {
    background: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.domain-item a.available-link:hover {
    background: #45a049;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 不可用线路的按钮样式 */
.domain-item a.unavailable-link {
    background: var(--primary-color);
    opacity: 0.8;
    cursor: not-allowed;
}

.domain-item a.unavailable-link:hover {
    background: var(--hover-color);
    transform: none;
}

/* 状态指示器样式 */
.domain-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.status-available {
    background-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-unavailable {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.latency {
    font-size: 14px;
    color: #888;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* 加载动画样式 */
.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #001a00;
    border-top: 3px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checking-text {
    color: #00cc00;
    font-style: italic;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 15px auto;
    }

    h1 {
        font-size: 1.8em;
    }

    .route-section {
        padding: 15px;
    }

    .domain-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .domain-status {
        width: 100%;
        justify-content: flex-start;
    }
}

.route-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.route-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.route-btn:hover {
    background-color: #f0f0f0;
}

.route-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* 页脚样式 */
.footer {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0, 255, 0, 0.2);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h3 {
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.footer-section p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.footer-bottom p {
    color: var(--text-color);
    font-size: 13px;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
        padding: 0 20px;
    }

    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 添加头部样式 */
.header {
    background: var(--bg-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.2);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    border: none;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.brand-text {
    color: white;
}

.brand-text h2 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.brand-text p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--text-color);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .brand-text h2 {
        font-size: 20px;
    }

    .brand-text p {
        font-size: 13px;
    }
}

/* 添加终端风格的文字效果 */
.terminal-effect {
    position: relative;
}

.terminal-effect::before {
    content: '>';
    color: #00ff00;
    margin-right: 8px;
}

/* 添加闪烁的光标效果 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #00ff00;
    margin-left: 5px;
    animation: blink 1s infinite;
} 