/* 新风格 CSS */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* 基础样式 */
body {
    background-color: #f5f7fa;
    color: #2d3748;
    line-height: 1.7;
    padding-top: 30px;
    background-image: linear-gradient(120deg, rgba(245, 247, 250, 0.8), rgba(245, 247, 250, 0.9)), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNGRkYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTM2IDM0aDR2MWgtNHYtMXptMC0yaDF2NGgtMXYtNHptMi0yaDF2NGgtMXYtNHoiLz48L2c+PC9nPjwvc3ZnPg==');
}

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

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

h1 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.favorite-button {
    background: linear-gradient(135deg, #63b3ed, #3182ce);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.favorite-button:hover {
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.4);
}

/* 模块通用样式 */
.module {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.module h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #4299e1, #63b3ed);
}

/* 第一个模块样式 */
.module1 h2 {
    color: #2b6cb0;
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.link-item {
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    padding: 16px 32px;
    border-radius: 8px;
    margin: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
    min-width: 130px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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.5s ease;
}

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

.link-item:hover {
    background: linear-gradient(135deg, #3182ce, #2a4365);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.3);
}

/* 第二个模块样式 */
.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: #2d3748;
    padding: 12px 20px;
    background-color: #edf2f7;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    color: #2b6cb0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

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

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

.hot-search-tab button {
    padding: 12px 24px;
    background-color: #edf2f7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hot-search-tab button:hover {
    background-color: #e2e8f0;
}

.hot-search-tab button.active {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

.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: 12px 0;
    border-bottom: 1px solid #edf2f7;
    transition: all 0.2s ease;
}

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

.hot-search-list li:hover {
    padding-left: 8px;
}

.rank {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #4299e1;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

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

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

.loading,
.error,
.empty {
    text-align: center;
    padding: 30px 0;
    color: #718096;
}

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

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px 0;
    color: #718096;
    font-size: 15px;
    border-top: 1px solid #edf2f7;
}

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

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

    .module {
        padding: 25px;
    }

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

    .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.75rem;
    }

    .container {
        padding: 0 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;
    }
}