/* --- 全局重置 --- */
:root {
    --primary-color: #2563eb;
    --bg-color: #f8fafc;
    /* 更干净的蓝灰背景 */
    --white: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --badge-red: #ef4444;
    --badge-orange: #f97316;
    --badge-yellow: #eab308;
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* 移动端底部留白 */
    padding-bottom: 80px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 顶部通知 --- */
.top-notice {
    background-color:  #2563eb;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    position: relative;
}
.top-notice:hover {
    background-color: #1d4ed8;
}

.top-notice .close-btn {
    position: absolute;
    right: 15px;
    top: 8px;
    cursor: pointer;
    opacity: 0.8;
}

.top-notice .close-btn:hover {
    opacity: 1;
}

/* --- 头部 Header --- */
.main-header {
    background: var(--white);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*以此居中内部容器*/
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Header 内部容器，用于控制宽度 */
.header-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    color: #111;
}

.logo-icon {
    font-size: 26px;
    margin-right: 8px;
    color: #111;
}

/* 桌面导航 */
.desktop-nav {
    display: none;
}

.desktop-nav a {
    margin-left: 30px;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.desktop-nav a.active {
    color: var(--primary-color);
}

/* 简单的下划线动画 */
.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.mobile-menu-btn {
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* --- 主容器布局 --- */
.container {
    width: 100%;
    max-width: 1200px;
    /* 电脑端核心宽度，避免太宽 */
    margin: 0 auto;
    padding: 20px 16px;
}

/* --- Hero 搜索区 --- */
.hero-section {
    text-align: center;
    margin: 30px 0 40px 0;
}

.hero-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1f2937;
}

.search-wrapper {
    max-width: 680px;
    /* 搜索框限宽 */
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
    /* 蓝色调投影 */
    transition: box-shadow 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.2);
    border-color: #bfdbfe;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 24px;
    font-size: 15px;
    color: #333;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background-color: #1d4ed8;
}

/* --- 热门标签 (桌面端风格) --- */
.hot-tags-wrapper {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    align-items: center;
}

.hot-label {
    color: var(--text-sub);
    margin-right: 5px;
    font-weight: 500;
}

.desktop-tag {
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.desktop-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.desktop-tag .rank-dot {
    width: 14px;
    height: 14px;
    background: #e5e7eb;
    color: #fff;
    border-radius: 3px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

/* 前三名颜色 */
.desktop-tag:nth-child(2) .rank-dot {
    background: var(--badge-red);
}

.desktop-tag:nth-child(3) .rank-dot {
    background: var(--badge-orange);
}

.desktop-tag:nth-child(4) .rank-dot {
    background: var(--badge-yellow);
}

/* --- 通用卡片样式 --- */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

/* --- 每日更新 --- */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.tab-group {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.tab-btn {
    padding: 6px 18px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rank-list-item {
    display: flex;
    align-items: center;
    padding: 14px 10px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.rank-list-item:hover {
    background-color: #f8fafc;
}

.rank-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.rank-list-item:nth-child(1) .rank-num {
    background: var(--badge-red);
    color: white;
}

.rank-list-item:nth-child(2) .rank-num {
    background: var(--badge-orange);
    color: white;
}

.rank-list-item:nth-child(3) .rank-num {
    background: var(--badge-yellow);
    color: white;
}

.item-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.item-status {
    font-size: 13px;
    color: var(--primary-color);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- 底部功能入口 (Grid) --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feature-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

/* 电脑端悬停浮动效果 */
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.feature-left {
    display: flex;
    align-items: center;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 22px;
    flex-shrink: 0;
}

.bg-blue-light {
    background: #eff6ff;
    color: #3b82f6;
}

.bg-purple-light {
    background: #f3e8ff;
    color: #a855f7;
}

.bg-orange-light {
    background: #fff7ed;
    color: #f97316;
}

.bg-green-light {
    background: #ecfdf5;
    color: #10b981;
}

.feature-text h4 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-sub);
}

.arrow-icon {
    color: #cbd5e1;
}

/* --- 底部导航 & FAB (Mobile) --- */
.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    z-index: 1000;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9ca3af;
    font-size: 10px;
    cursor: pointer;
}

.tab-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.tab-item.active {
    color: var(--primary-color);
}

.fab-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #22c55e;
    color: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
}
.fab-btn p{
    font-size: 12px;
}

/* =========================================
           重点：电脑端适配 (Responsive Desktop)
           ========================================= */
@media (min-width: 992px) {
    body {
        padding-bottom: 0;
        background-color: #f3f6f9;
        /* 电脑端背景稍微深一点点，突出白色卡片 */
    }

    /* 隐藏移动端组件 */
    .mobile-menu-btn {
        display: none;
    }

    .mobile-tab-bar {
        display: none;
    }

    .fab-btn {
        bottom: 40px;
        right: 40px;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .fab-btn:hover {
        transform: scale(1.1);
    }

    /* 显示桌面端组件 */
    .desktop-nav {
        display: flex;
    }

    /* 调整 Hero 区域大小 */
    .hero-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 30px;
        letter-spacing: -0.5px;
    }

    .search-box {
        padding: 8px;
    }

    .search-box input {
        font-size: 16px;
    }

    .search-box button {
        padding: 0 40px;
        font-size: 16px;
    }

    /* 调整卡片容器 */
    .card {
        padding: 30px;
    }

    /* 重点：底部四个功能入口变为一行四列 */
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* 调整列表项使其更宽阔 */
    .rank-list-item {
        padding: 16px 20px;
    }

    .item-title {
        font-size: 16px;
    }

}

/* 手机端 */
@media (max-width: 767px) {
    .search-box{
        overflow: hidden !important;
        position: relative;
    }
    .search-box button{
        position: absolute;
        height: 80%;
        right: 2%;
        top: 50%;
        transform: translateY(-50%);
        /* padding-top: 10px;
        padding-bottom: 10px; */
    }
}

