/* 活力色彩风格 CSS */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 基础样式 */
body {
    background-color: #f9f7f7;
    color: #333333;
    line-height: 1.6;
    padding-top: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 20%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 20%);
}

h1 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* 收藏按钮 - 金黄色 */
.favorite-button {
    background-color: #ffd700;
    color: #333;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.favorite-button: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: all 0.5s ease;
}

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

.favorite-button:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* 模块通用样式 */
.module {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.module:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.module h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    font-weight: 700;
    position: relative;
    font-size: 1.8rem;
    color: #2d3748;
    margin-left: 15px;
}

.module h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 第一个模块样式 - 线路按钮有背景色 */
.module1 .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.link-item {
    text-decoration: none;
    color: #333;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    padding: 18px 36px;
    border-radius: 8px;
    margin: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    border: none;
}

.link-item:nth-child(2) {
    background: linear-gradient(135deg, #ffcc00, #ffaa00);
}

.link-item:nth-child(3) {
    background: linear-gradient(135deg, #ffe000, #ffbb00);
}

.link-item:nth-child(4) {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.link-item: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: all 0.6s ease;
}

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

.link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #333;
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.link-item:nth-child(2):hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.link-item:nth-child(3):hover {
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.4);
}

.link-item:nth-child(4):hover {
    box-shadow: 0 8px 25px rgba(48, 207, 208, 0.4);
}

/* 第二个模块样式 - 导航按钮有背景色 */
.module2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.nav-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-link {
    text-decoration: none;
    color: white;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(246, 211, 101, 0.2);
    border: none;
}

.nav-link:nth-child(odd) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.nav-link:nth-child(3n) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.nav-link:nth-child(4n) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.nav-link:nth-child(5n) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    color: white;
}

/* 热搜内容模块样式 */
.hot-search-container {
    width: 100%;
}

.hot-search-tab {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

/* 热搜标签按钮 - 金黄色 */
.hot-search-tab button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.hot-search-tab button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.hot-search-tab button.active {
    background: linear-gradient(135deg, #ffb300, #ffa000);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
}

.hot-search-content {
    position: relative;
    min-height: 320px;
}

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

.hot-search-list.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.hot-search-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

.hot-search-list li:hover {
    padding-left: 10px;
    background-color: rgba(102, 126, 234, 0.05);
}

/* 热搜排名 - 有背景色 */
.rank {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    margin-right: 12px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.2);
}

.hot-search-list a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.loading,
.error,
.empty {
    text-align: center;
    padding: 40px 0;
    color: #718096;
    font-size: 16px;
}

.update-time {
    margin-top: 20px;
    text-align: right;
    color: #718096;
    font-size: 14px;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    color: white;
    font-size: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 20px rgba(102, 126, 234, 0.2);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .module {
        padding: 25px;
    }

    .link-item {
        padding: 14px 28px;
        margin: 8px;
        min-width: 130px;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 14px;
    }

    .hot-search-tab button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    header {
        padding: 40px 15px;
    }

    .links {
        flex-direction: row;
        justify-content: center;
    }

    .link-item {
        width: calc(50% - 10px);
        max-width: 150px;
        margin: 5px;
        padding: 12px;
        font-size: 14px;
    }

    .hot-search-tab {
        flex-direction: column;
        gap: 10px;
    }

    .hot-search-tab button {
        width: 100%;
    }

    .hot-search-list li {
        font-size: 14px;
    }

    .module2 {
        grid-template-columns: 1fr;
    }

    .favorite-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}