/* ===== 全局 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    background: #f5f7fa;
    margin: 0;
    padding: 20px;
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: auto;
}

/* ===== 头部 ===== */
.header {
    background: #409eff;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ===== 搜索栏 ===== */
.filter {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter select,
.filter input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter button {
    height: 36px;
    padding: 0 20px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ===== 列表卡片 ===== */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    cursor: pointer;
}

.title:hover {
    color: #409eff;
}

.meta {
    font-size: 13px;
    color: #888;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    background: #ecf5ff;
    color: #409eff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.time-tag {
    background: #f0f9eb;
    color: #67c23a;
    padding: 2px 8px;
    border-radius: 4px;
}    
/* ===== 分页 ===== */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.pagination .active {
    background: #409eff;
    color: #fff;
}

/* ===== 底部 ===== */
.footer {
    background: #fff;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding: 0 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
}

/* ===== 顶部导航栏 ===== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0;
}

.nav-box {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list li {
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #007bff;
    background: #f0f7ff;
}

.nav-list a.on {
    color: #fff;
    background: #007bff;
    font-weight: 500;
}

/* ===== 防止点击菜单页面偏移 ===== */
html {
    overflow-y: scroll;
}
/* =========================
   手机端适配（导航一行 · 极限紧凑）
   ========================= */
@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    /* ===== 导航栏 ===== */
    .main-nav {
        padding: 5px 0;
    }

    .nav-box {
        padding: 0 8px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px; /* ✅ 整体更紧 */
    }

    /* LOGO 适配 290×60 */
    .logo img {
        height: 28px;
        flex-shrink: 0;
    }

    /* ===== 导航菜单 ===== */
    .nav-list {
        flex: 1;
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;                     /* ✅ 菜单间隔最小 */
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-list::-webkit-scrollbar {
        display: none;
    }

    .nav-list a {
        padding: 4px 7px;             /* ✅ 按钮更紧凑 */
        font-size: 12px;
        white-space: nowrap;
        border-radius: 4px;
    }
    /* ===== 顶部导航 ===== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.nav-box {
    max-width: 1200px;
    margin: auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* ✅ 关键 */
    padding: 0 16px;
}

.logo img {
    height: 36px;
    display: block;
}

/* 导航列表 */
.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.nav-list a.on {
    color: #fff;
    font-weight: 600;
}

/* ===== 手机端 ===== */
@media (max-width: 768px) {

    /* 顶部导航 */
    .main-nav {
        padding: 6px 0;
    }

    .nav-box {
        padding: 0 12px;
        height: 46px;

        display: flex;
        justify-content: center;   /* ✅ LOGO 居中 */
        align-items: center;
        position: relative;
    }

    /* LOGO */
    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        height: 40px;
    }

    /* ✅ 隐藏右侧菜单 */
    .nav-list {
        display: none;
    }
}

    /* ===== 占位 ===== */
    div[style*="height: 70px"] {
        height: 48px !important;
    }

    /* ===== 头部 ===== */
    .header {
        padding: 14px;
        font-size: 15px;
    }

    .header h1 {
        font-size: 16px !important;
    }

    /* ===== 搜索栏 ===== */
    .filter {
        flex-direction: column;
        gap: 8px;
    }

    .filter select,
    .filter input {
        width: 100%;
        box-sizing: border-box;
    }

    .filter button {
        width: 100%;
    }

    /* ===== 卡片 ===== */
    .card {
        padding: 14px;
    }

    .title {
        font-size: 16px;
    }

    .meta {
        font-size: 12px;
        gap: 8px;
    }

    /* ===== 分页 ===== */
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* ===== 底部 ===== */
    .footer .container {
        font-size: 11px;
        padding: 14px 0;
    }
}
/* 手机端隐藏左侧幻灯片 */
@media (max-width: 768px) {
    .pc-slide {
        display: none !important;
    }
}
/* ===== 列表标题 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto 15px auto;
}
h2 {
    text-align: center;
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 12px;
}
/* ===== 手机端优化 ===== */
@media (max-width: 768px) {
    body {
        padding: 8px;
        overflow-x: hidden; /* 保险 */
    }
    h2 {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
/* 手机端隐藏右侧广告栏 */
        @media (max-width:768px) {
            .tab-row {
                flex-wrap:wrap !important;
            }
            .tab-list-wrap {
                width:100% !important;
            }
            .tab-ad-wrap {
                display:none !important;
            }
        }
    