/* 赛可心理测试 - 柔和版式 */
:root {
    --primary: #5a8f7b;
    --primary-light: #7aa892;
    --primary-dark: #4a7766;
    --text: #2d3436;
    --text-muted: #636e72;
    --text-light: #b2bec3;
    --bg: #ffffff;
    --bg-soft: #fafaf9;
    --bg-muted: #f1f3f5;
    --border: #e9ecef;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(45,52,54,0.06);
    --shadow-hover: 0 12px 32px rgba(45,52,54,0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部条 ---------- */
.top-bar {
    background: var(--bg-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.top-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.top-bar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.top-bar-links a {
    font-size: 13px;
    color: var(--text);
}

.top-bar-links a:hover { color: var(--primary); }

/* ---------- 主导航 ---------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: var(--bg-muted);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0.02em;
}

.site-logo:hover { color: var(--primary); text-decoration: none; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.nav-menu a:hover { color: var(--primary); background: var(--bg-soft); text-decoration: none; }

/* 有二级导航的加下三角 */
.nav-menu .has-dropdown > a {
    position: relative;
    padding-right: 28px;
}
.nav-menu .has-dropdown > a::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -1px;
    border: 4px solid transparent;
    border-top-color: currentColor;
}

.nav-menu .has-dropdown { position: relative; }
.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 130px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 8px 0;
    display: none;
    z-index: 50;
}
.nav-menu .has-dropdown:hover .dropdown { display: block; }
.nav-menu .dropdown a { padding: 10px 16px; white-space: nowrap; }

/* 导航右上角搜索框 */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 24px;
    flex-shrink: 0;
}

.nav-search-input {
    width: 180px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s, width 0.2s;
}

.nav-search-input::placeholder {
    color: var(--text-light);
}

.nav-search-input:focus {
    border-color: var(--primary);
}

.nav-search-btn {
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-search-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 手机端：汉堡导航 */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        padding: 16px 24px 24px;
        z-index: 99;
        max-height: calc(100vh - 58px);
        overflow-y: auto;
    }

    .site-header.nav-open .nav-panel {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 16px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 14px 0;
    }

    .nav-menu .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        padding-top: 4px;
        padding-bottom: 8px;
        display: none;
        background: var(--bg-soft);
        border-radius: var(--radius-sm);
        margin-bottom: 8px;
    }

    .nav-menu .has-dropdown.is-open .dropdown {
        display: block;
    }

    .nav-search {
        margin-left: 0;
        width: 100%;
    }

    .nav-search-input {
        width: 100%;
        flex: 1;
        border-radius: var(--radius-sm);
        border-right: 1px solid var(--border);
    }

    .nav-search-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 900px) {
    .nav-search { margin-left: 12px; }
    .nav-search-input { width: 140px; }
}

@media (max-width: 700px) {
    .nav-search-input { width: 120px; }
    .nav-search-input::placeholder { font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 64px 0 72px;
    text-align: center;
    background: var(--bg-soft);
}

.hero-domain {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 12px;
    letter-spacing: 0.05em;
}

.hero-brand {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 0 0 12px;
    color: var(--text);
}

.hero-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px;
    color: var(--primary);
}

.hero-desc {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- 区块标题 ---------- */
.section { padding: 60px 0; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.section-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.section-more:hover { text-decoration: none; }

.section-hint {
    font-size: 13px;
    color: var(--text-light);
    margin: 6px 0 0;
    font-weight: 400;
}

/* ---------- 大家关注：左侧轮播 + 右侧分类与二维码 ---------- */
.section-featured {
    padding: 56px 0 64px;
    background: var(--bg-soft);
}

.featured-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 24px;
    color: var(--text);
    width: 100%;
}

.focus-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 0;
}

/* 左侧轮播：占满格子高度 */
.focus-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.focus-left .focus-carousel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.focus-carousel-inner { flex: 1; min-height: 0; }
.focus-slide { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.focus-slide-body { flex: 1; display: flex; flex-direction: column; }
.focus-slide-body .btn-detail { margin-top: auto; }

.focus-carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow);
}

.focus-carousel-inner {
    display: flex;
    transition: transform 0.4s ease;
}

.focus-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.focus-slide-pic {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-muted);
}

.focus-slide-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.focus-slide-body {
    padding: 22px 24px 28px;
}

.focus-slide-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text);
    line-height: 1.4;
}

.focus-slide-body p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.focus-slide-body .btn-detail {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.focus-slide-body .btn-detail:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: #fff !important;
}

.focus-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.focus-carousel-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

.focus-carousel-prev { left: 12px; }
.focus-carousel-next { right: 12px; }

.focus-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.focus-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.focus-carousel-dot:hover {
    background: rgba(255,255,255,0.8);
}

.focus-carousel-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* 右侧：分类 + 二维码，底边与轮播图对齐 */
.focus-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.focus-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 24px;
    flex: 1;
    align-content: start;
}

.focus-category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: var(--bg);
    border: 1px solid #a8d5b8;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
}

.focus-category-btn:hover {
    background: #f0f9f3;
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

/* 下方：二维码 + 关注公众号（margin-top: auto 使底边与轮播图底边对齐） */
.focus-wechat-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
    margin-top: auto;
}

.focus-qr {
    flex-shrink: 0;
}

.focus-qr-inner {
    width: 160px;
    height: 160px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.focus-qr-inner img {
    width: 100%;
    height: 100%;
    display: block;
}

.focus-wechat-cta {
    flex: 1;
}

.focus-wechat-text {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.focus-wechat-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

@media (max-width: 960px) {
    .focus-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .focus-wechat-row {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- 分类标签 + 领取 ---------- */
.section-tabs {
    padding: 32px 0;
    background: var(--bg-soft);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 20px;
}

.category-tabs a {
    display: inline-block;
    padding: 10px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text);
}

.category-tabs a:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.promo-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
}

.promo-btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff !important; }

.promo-links a {
    font-size: 14px;
    color: var(--text-muted);
}

.promo-links a:hover { color: var(--primary); }

/* ---------- 热门精选：两栏简洁版 ---------- */
.hot-section { background: var(--bg-soft); }

.hot-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
}

.hot-col {
    background: var(--bg);
    padding: 20px 24px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.hot-col h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px;
    padding: 0 0 8px;
    border-bottom: none;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.hot-col h3 .col-more {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    float: right;
}

.hot-col h3 .col-more:hover { color: var(--primary); }

.hot-col ul { list-style: none; margin: 0; padding: 0; }

.hot-col li {
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
}

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

.hot-col li::before { display: none; }

.hot-col a {
    font-size: 15px;
    color: var(--text);
}

.hot-col a:hover { color: var(--primary); }

@media (max-width: 700px) {
    .hot-cols { grid-template-columns: 1fr; }
}

/* ---------- 专业性格测试：浅绿标题栏 + 三列卡片 ---------- */
.section-pro-personality {
    padding: 0 0 60px;
}

.pro-personality-header {
    background: #c8e6d2;
    padding: 14px 0;
    margin-bottom: 28px;
}

.pro-personality-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pro-personality-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.pro-personality-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.pro-personality-more:hover { text-decoration: none; }

.pro-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pro-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pro-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.pro-card-pic {
    aspect-ratio: 5/3;
    overflow: hidden;
    background: var(--bg-muted);
}

.pro-card-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pro-card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pro-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e67e22;
    color: var(--text);
    line-height: 1.4;
}

.pro-card-body p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 18px;
    flex: 1;
}

.pro-card-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--bg);
    color: var(--text) !important;
    border: 1px solid var(--text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s;
}

.pro-card-btn:hover {
    background: var(--text);
    color: var(--bg) !important;
    text-decoration: none;
}

@media (max-width: 960px) {
    .pro-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .pro-card-grid { grid-template-columns: 1fr; }
}

/* ---------- 专业测试：卡片列表 ---------- */
.pro-list { display: flex; flex-direction: column; gap: 16px; }

.pro-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pro-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.pro-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text);
    flex: 1;
    min-width: 0;
}

.pro-item p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 14px;
    flex: 1;
    min-width: 0;
}

.pro-item .btn-test {
    flex-shrink: 0;
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.pro-item .btn-test:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: #fff !important;
}

@media (max-width: 640px) {
    .pro-item { flex-direction: column; gap: 16px; }
}

/* ---------- 最新测试 / 最新文章 ---------- */
.latest-list { list-style: none; margin: 0; padding: 0; }

.latest-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.latest-list .tag {
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-muted);
    color: var(--text-muted);
    border-radius: 999px;
}

.latest-list a {
    font-size: 15px;
    color: var(--text);
}

.latest-list a:hover { color: var(--primary); }

/* ---------- 精选主题：标签流 ---------- */
.section-theme {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.theme-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
}

.theme-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 16px;
    background: var(--bg);
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.theme-item:hover {
    background: #f0f9f3;
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(90, 143, 123, 0.12);
}

.theme-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.theme-item a {
    font-size: 13px;
    color: var(--text-muted);
}

.theme-item a:hover { color: var(--primary); }

/* ---------- 测试列表页 ---------- */
.tests-subnav-wrap {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.tests-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.tests-subnav-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tests-tab {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tests-tab:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    text-decoration: none;
}

.tests-tab.is-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.tests-tab.is-active:hover { color: #fff; text-decoration: none; }

.tests-subnav-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.tests-cat {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: color 0.2s, border-color 0.2s;
}

.tests-cat:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    text-decoration: none;
}

.tests-hero {
    padding: 28px 0 24px;
}

.tests-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.tests-section {
    padding-top: 0;
    padding-bottom: 48px;
}

.test-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.test-card {
    display: flex;
    gap: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.test-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.test-card-pic {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 5/3;
    overflow: hidden;
    background: var(--bg-muted);
}

.test-card-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.test-card-body {
    flex: 1;
    min-width: 0;
    padding: 20px 24px 20px 0;
    display: flex;
    flex-direction: column;
}

.test-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.test-card-title a {
    color: var(--text);
}

.test-card-title a:hover {
    color: var(--primary);
    text-decoration: none;
}

.test-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.test-card-cat {
    font-size: 12px;
    padding: 3px 10px;
    background: var(--bg-muted);
    color: var(--text-muted);
    border-radius: 999px;
}

.test-card-time {
    font-size: 13px;
    color: var(--text-light);
}

.test-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.test-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

.test-card-cost {
    font-size: 13px;
    color: var(--text-muted);
}

.test-card-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.test-card-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: #fff !important;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.pagination-prev,
.pagination-next {
    font-size: 14px;
    color: var(--primary);
}

.pagination-prev:hover,
.pagination-next:hover { text-decoration: none; }

.pagination-info {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .test-list { grid-template-columns: 1fr; }
    .test-card-pic { width: 160px; }
}

@media (max-width: 600px) {
    .test-card { flex-direction: column; gap: 0; }
    .test-card-pic { width: 100%; aspect-ratio: 16/9; }
    .test-card-body { padding: 16px 20px 20px; }
    .tests-subnav { flex-direction: column; align-items: flex-start; }
}

/* ---------- 页脚（紧凑） ---------- */
.site-footer {
    background: var(--text);
    color: #9ca3af;
    padding: 28px 0 0;
    margin-top: 40px;
}

.site-footer a { color: #b0b8c0; }
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #374151;
}

.footer-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 6px; }
.footer-list a { font-size: 13px; }

.footer-col--contact .footer-contact {
    font-size: 13px;
    margin: 0 0 4px;
    color: #b0b8c0;
}

.footer-col--contact .footer-tip {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
}

.footer-bottom {
    padding: 16px 0 20px;
    text-align: center;
}

.footer-copyright { font-size: 13px; color: #9ca3af; margin: 0 0 6px; }
.footer-icp { font-size: 11px; color: #6b7280; margin: 0; }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
}

@media (max-width: 500px) {
    .footer-inner { grid-template-columns: 1fr; gap: 16px; padding-bottom: 16px; }
    .site-footer { padding-top: 24px; margin-top: 32px; }
    .footer-bottom { padding: 12px 0 16px; }
}
