/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --accent: #FF9800;
    --dark: #1a2a4f;
    --light: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #333;
    --text-light: #666;
    --success: #4CAF50;
    --warning: #FFC107;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    background: linear-gradient(135deg, var(--dark), #0d1b36);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 0 30px;
    position: relative;
}

.logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.logo i {
    font-size: 50px;
    color: white;
    z-index: 2;
}

h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* 主要内容卡片 */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

/* 收藏提示 */
.bookmark-tip {
    background: linear-gradient(to right, rgba(33, 150, 243, 0.1), rgba(255, 152, 0, 0.1));
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1rem;
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bookmark-tip i {
    color: var(--accent);
    font-size: 1.5rem;
}

/* 链接列表 - 移动端优化 */
.link-list {
    list-style: none;
}

.link-item {
    background: white;
    border-radius: 12px;
    margin: 15px 0;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.link-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.link-icon i {
    font-size: 24px;
    color: var(--primary);
}

.link-content {
    flex: 1;
    min-width: 200px;
}

.link-content a {
    font-size: 1.2rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.link-content a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.link-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.link-stats {
    display: flex;
    align-items: center;
    background: rgba(25, 118, 210, 0.08);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 15px;
    width: 100%;
    justify-content: space-between;
}

.ms-value {
    font-weight: bold;
    color: var(--primary);
    min-width: 70px;
    display: inline-block;
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 10px;
}

.status-online {
    background: var(--success);
    color: white;
}

.status-offline {
    background: #F44336;
    color: white;
}

/* 按钮样式 */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
}

.btn-accent {
    background: linear-gradient(to right, var(--accent), #F57C00);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 平台特色部分 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border-top: 3px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s;
}

.feature-title {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 页脚样式 */
footer {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 16px 16px 0 0;
    color: white;
    padding: 25px 15px;
    margin-top: 30px;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #90CAF9;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 测速信息移动端优化 */
.speed-info-mobile {
    display: none;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .logo {
        width: 90px;
        height: 90px;
    }
    
    .logo i {
        font-size: 40px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .link-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .link-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .link-content {
        width: 100%;
    }
    
    .link-stats.desktop {
        display: none;
    }
    
    .speed-info-mobile {
        display: flex;
        align-items: center;
        margin-top: 10px;
        padding: 6px 12px;
        background: rgba(25, 118, 210, 0.08);
        border-radius: 15px;
        font-size: 0.9rem;
        color: var(--text-light);
    }
    
    .speed-info-mobile .ms-value {
        font-weight: bold;
        color: var(--primary);
        margin-left: 5px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .status-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    header {
        padding: 30px 0 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .link-content a {
        font-size: 1.1rem;
    }
    
    .bookmark-tip {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .bookmark-tip i {
        font-size: 1.3rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.6s ease-out forwards;
}