:root {
    /* 鲜艳现代风格配色变量 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --tertiary-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    --dark-bg: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #ffffff;
    
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 87, 108, 0.15) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 背景装饰元素 */
.container::before,
.container::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}

.container::before {
    background: var(--primary-gradient);
    top: -250px;
    left: -250px;
}

.container::after {
    background: var(--secondary-gradient);
    bottom: -250px;
    right: -250px;
}

/* 头部样式 - 鲜艳现代版本 */
header {
    text-align: center;
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

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

header p:nth-child(2) {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

.favorite-button {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.favorite-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.favorite-button:hover::before {
    left: 100%;
}

.favorite-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(245, 87, 108, 0.4);
}

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

/* 模块通用样式 - 鲜艳现代版本 */
.module, .module1, .module2 {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.module h2, .module1 h2, .module2 h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    position: relative;
}

.module h2::before, .module1 h2::before, .module2 h2::before {
    content: '';
    width: 60px;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* 线路选择模块 - 鲜艳现代版本 */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.link-item {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    padding: 2.25rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    z-index: 1;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
    z-index: -1;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

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

.link-item:nth-child(2) {
    background: var(--secondary-gradient);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.link-item:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(245, 87, 108, 0.4);
}

.link-item:nth-child(3) {
    background: var(--accent-gradient);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.link-item:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.4);
}

.link-item:nth-child(4) {
    background: var(--tertiary-gradient);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.3);
}

.link-item:nth-child(4):hover {
    box-shadow: 0 20px 40px rgba(250, 112, 154, 0.4);
}

/* 导航链接模块 - 鲜艳现代版本 */
.module2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.nav-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
}

.nav-section h2::before {
    width: 40px;
}

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

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: rgba(102, 126, 234, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link:hover {
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

/* 热搜内容模块 - 鲜艳现代版本 */
.hot-search-container {
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
}

.hot-search-tab {
    display: flex;
    background: rgba(102, 126, 234, 0.05);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.hot-search-tab button.active {
    color: white;
}

.hot-search-tab button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: -1;
}

.hot-search-tab button.active::before {
    transform: scaleX(1);
}

.hot-search-content {
    background: transparent;
    padding: 0;
}

.hot-search-list {
    padding: 2rem;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.hot-search-list li {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    transition: var(--transition);
    position: relative;
}

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

.hot-search-list li:hover {
    padding-left: 1rem;
}

.hot-search-list li:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hot-search-list li:nth-child(1) .rank {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.hot-search-list li:nth-child(2) .rank {
    background: var(--accent-gradient);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.hot-search-list li:nth-child(3) .rank {
    background: var(--tertiary-gradient);
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
}

.hot-search-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.05rem;
    flex: 1;
}

.hot-search-list a:hover {
    color: #667eea;
    text-decoration: none;
}

.loading, .error, .empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.update-time {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1.25rem;
    background: rgba(102, 126, 234, 0.05);
    margin: 0;
    font-weight: 500;
}

/* 页脚样式 - 鲜艳现代版本 */
footer {
    text-align: center;
    padding: 2.5rem;
    color: white;
    font-size: 1rem;
    margin-top: 4rem;
    background: rgba(26, 26, 46, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

footer p {
    position: relative;
    z-index: 1;
}

footer::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

/* 响应式设计 - 鲜艳现代版本 */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem;
    }
    
    header {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .module, .module1, .module2 {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .module h2, .module1 h2, .module2 h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .links {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .link-item {
        padding: 1.75rem 1rem;
    }
    
    .module2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 2.25rem;
    }
    
    .hot-search-list {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 2rem 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .favorite-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .module h2, .module1 h2, .module2 h2 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .module, .module1, .module2 {
        padding: 1.5rem 1rem;
    }
}