:root {
    /* 简洁配色变量 */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --bg-card: #ffffff;
    
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #ffffff;
    
    --accent-primary: #007bff;
    --accent-secondary: #6c757d;
    --accent-success: #28a745;
    --accent-warning: #ffc107;
    --accent-danger: #dc3545;
    
    --shadow-primary: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 2px 4px rgba(0, 123, 255, 0.1);
    
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-xs: 4px;
    
    --transition: all 0.2s ease-in-out;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* 头部样式 - 简洁版本 */
header {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--border-color);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

header p:nth-child(2) {
    color: var(--accent-success);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

header p:nth-child(2)::before {
    content: '✓';
    background: var(--accent-success);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.favorite-button {
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-light);
}

.favorite-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.favorite-button:active {
    transform: translateY(0);
}

/* 模块通用样式 - 简洁版本 */
.module, .module1, .module2 {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.module:hover, .module1:hover, .module2:hover {
    box-shadow: var(--shadow-hover);
}

.module h2, .module1 h2, .module2 h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-primary);
}

/* 线路选择模块 - 简洁版本 */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.link-item {
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--accent-primary);
}

.link-item:hover {
    background: white;
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.link-item:nth-child(1) {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.link-item:nth-child(1):hover {
    background: white;
    color: var(--accent-primary);
}

.link-item:nth-child(2) {
    background: #6f42c1;
    border-color: #6f42c1;
}

.link-item:nth-child(2):hover {
    background: white;
    color: #6f42c1;
}

.link-item:nth-child(3) {
    background: var(--accent-success);
    border-color: var(--accent-success);
}

.link-item:nth-child(3):hover {
    background: white;
    color: var(--accent-success);
}

.link-item:nth-child(4) {
    background: var(--accent-warning);
    border-color: var(--accent-warning);
    color: var(--text-primary);
}

.link-item:nth-child(4):hover {
    background: white;
    color: var(--accent-warning);
}

/* 导航链接 - 简洁版本 */
.nav-section {
    margin-bottom: 2rem;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.nav-link {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* 热搜模块 - 简洁版本 */
.hot-search-container {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hot-search-tab {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.hot-search-tab button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.hot-search-tab button.active {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.hot-search-tab button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
}

.hot-search-tab button:hover:not(.active) {
    color: var(--accent-primary);
    background: rgba(0, 123, 255, 0.05);
}

.hot-search-content {
    padding: 1.5rem;
}

.hot-search-list {
    display: none;
}

.hot-search-list.active {
    display: block;
}

.hot-search-list ul {
    list-style: none;
}

.hot-search-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.hot-search-list li:last-child {
    border-bottom: none;
}

.hot-search-list li:hover {
    background: var(--bg-secondary);
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
}

.hot-search-list .rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    color: white;
}

.hot-search-list li:nth-child(1) .rank {
    background: var(--accent-danger);
}

.hot-search-list li:nth-child(2) .rank,
.hot-search-list li:nth-child(3) .rank {
    background: var(--accent-warning);
    color: var(--text-primary);
}

.hot-search-list li:nth-child(n+4) .rank {
    background: var(--accent-primary);
}

.hot-search-list a {
    color: var(--text-primary);
    text-decoration: none;
    flex: 1;
    transition: var(--transition);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-search-list a:hover {
    color: var(--accent-primary);
}

.update-time {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-weight: 500;
}

/* 加载和错误状态 */
.loading, .error, .empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.error {
    color: var(--accent-danger);
    background: rgba(220, 53, 69, 0.05);
    border-radius: var(--border-radius-sm);
}

.empty {
    color: var(--text-secondary);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* 响应式设计 - 简洁版本 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 1.5rem;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .module, .module1, .module2 {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .nav-links {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.5rem;
    }
    
    .links {
        grid-template-columns: 1fr 1fr;
    }
    
    .link-item {
        padding: 1.25rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .module, .module1, .module2 {
        padding: 1.25rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .hot-search-tab button {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .favorite-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .links {
        grid-template-columns: 1fr;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6268;
}