/* 赛可心理测试 skin2 主题样式（新版式布局） */

/* ========== 以下为 demo style.css 原样拷贝，保证频道/列表/详情等布局完整 ========== */
/* 赛可心理测试 - 柔和版式 */
:root {
    --primary: #4f7b69;
    --primary-light: #6fa38d;
    --primary-dark: #3d6554;
    --text: #2d3436;
    --text-muted: #636e72;
    --text-light: #b2bec3;
    --bg: #ffffff;
    --bg-soft: #f5f8f6;
    --bg-muted: #f0f4f2;
    --border: #e4ece8;
    --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 a.is-active { color: var(--primary); }

/* 有二级导航的加下三角 */
.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);
    color: #fff;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 14px;
    margin-top: 28px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hero-btn--primary {
    background: var(--primary);
    color: #fff !important;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(90, 143, 123, 0.25);
}

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

.hero-btn--ghost {
    background: var(--bg);
    color: var(--text) !important;
    border: 1px solid var(--border);
}

.hero-btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    text-decoration: none;
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-btn { width: 100%; max-width: 280px; }
}

/* ---------- 区块标题 ---------- */
.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-head {
    margin-bottom: 24px;
}

.featured-head .featured-title {
    margin: 0 0 8px;
}

.featured-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

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

.section-lead {
    font-size: 14px;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.65;
    max-width: 560px;
}

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

.focus-aside-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.focus-side-tags {
    margin-bottom: 20px;
}

.focus-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

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

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

/* 下方：二维码 + 关注公众号 */
.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: 40px 0 60px;
}

.psych-channel-block {
    margin-bottom: 40px;
}

.psych-channel-block .section-header {
    margin-bottom: 20px;
}

.psych-channel-cards {
    margin-bottom: 0;
}

.psych-channel-list {
    margin-top: 8px;
}

.psych-channel-list .section-header {
    margin-bottom: 20px;
}

.channel-hero {
    position: relative;
    padding: 48px 0 56px;
    overflow: hidden;
}

.channel-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(122,168,146,0.08) 50%, var(--bg-soft) 100%);
    pointer-events: none;
}

.channel-hero-inner {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.channel-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}

.channel-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 28px;
}

/* Tag 聚合页：banner 下方胶囊切换（全部 / 测试 / 文章） */
.channel-hero--tag .channel-hero-desc {
    margin-bottom: 20px;
}

.tag-capsules-wrap {
    position: relative;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.tag-capsules {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(45, 52, 54, 0.06);
}

.tag-capsule {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.tag-capsule:hover {
    color: var(--primary-dark) !important;
    background: rgba(90, 143, 123, 0.1);
}

.tag-capsule.is-active {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(74, 119, 102, 0.35);
}

.tag-capsule.is-active:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

@media (max-width: 480px) {
    .tag-capsule {
        padding: 9px 16px;
        font-size: 13px;
    }
}

.channel-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.channel-hero-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.channel-hero-btn:first-child {
    background: var(--primary);
    color: #fff !important;
    border: 1px solid var(--primary);
}

.channel-hero-btn:first-child:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    text-decoration: none;
}

.channel-hero-btn--outline {
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.channel-hero-btn--outline:hover {
    background: var(--primary-light);
    color: #fff !important;
    border-color: var(--primary-light);
    text-decoration: none;
}

.channel-section {
    padding-top: 24px;
    padding-bottom: 56px;
}

.channel-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 40px 36px;
    align-items: start;
}

.channel-main {
    min-width: 0;
}

.channel-featured {
    margin-bottom: 44px;
}

.channel-featured-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.channel-featured-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.channel-featured-cards .pro-card-body h3 { font-size: 15px; }
.channel-featured-cards .pro-card-body p { font-size: 13px; margin-bottom: 14px; }

.channel-cta {
    text-align: center;
    padding: 36px 0 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.channel-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

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

.channel-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.channel-sidebar-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}

.channel-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-left: 4px solid rgba(255,255,255,0.4);
}

.channel-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 14px 16px;
}

.channel-cat-pill {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-muted);
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.channel-cat-pill:hover,
.channel-cat-pill.is-active {
    color: #fff;
    background: var(--primary);
    text-decoration: none;
}

.channel-sidebar-wechat .channel-wechat-box {
    text-align: center;
    padding: 16px;
}

.channel-wechat-qr {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    padding: 6px;
    background: #fff;
    border-radius: 0;
    border: 1px solid var(--border);
}

.channel-wechat-qr img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.channel-wechat-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
}

.channel-tags a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-muted);
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.channel-tags a:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .channel-featured-cards { grid-template-columns: repeat(2, 1fr); }
    .channel-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .channel-hero-title { font-size: 26px; }
    .channel-hero-desc { font-size: 15px; }
    .channel-featured-cards { grid-template-columns: 1fr; }
}

/* ---------- 通用卡片 / 列表 ---------- */
.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;
}

/* aspect-ratio 兼容兜底：避免旧浏览器下图片区域高度为 0 */
@supports not (aspect-ratio: 1/1) {
    .pro-card-pic {
        position: relative;
        height: 0;
        padding-top: 60%;
    }
    .pro-card-pic img {
        position: absolute;
        inset: 0;
    }
}

.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); }

.section-theme .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 24px;
}

.theme-list--rich {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.theme-list--rich .theme-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 20px;
    border-radius: var(--radius);
    white-space: normal;
}

.theme-list--rich .theme-item h3 {
    white-space: normal;
    font-size: 17px;
    line-height: 1.35;
}

.theme-list--rich .theme-item h3 a {
    color: var(--text);
}

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

.theme-meta {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.theme-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 4px;
}

.theme-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-link--test {
    background: #f0f9f3;
    border-color: var(--primary-light);
    color: var(--primary) !important;
}

.theme-link--article {
    background: var(--bg);
    color: var(--text-muted) !important;
}

.theme-link:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    text-decoration: none;
}

/* ---------- 测试 / 阅读列表页布局 ---------- */
.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;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.tests-hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    width: 100%;
}

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

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

.tests-search-links a {
    color: var(--primary);
    text-decoration: none;
}

.tests-search-links a:hover {
    text-decoration: underline;
}

.tests-search-sep {
    margin: 0 8px;
    color: var(--border);
}

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

.tests-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px 40px;
    align-items: start;
}

.tests-main {
    min-width: 0;
}

.tests-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-left: 4px solid rgba(255,255,255,0.4);
}

.sidebar-cat-list,
.sidebar-link-list {
    list-style: none;
    margin: 0;
    padding: 14px 20px 18px;
}

.sidebar-cat-list li,
.sidebar-link-list li {
    margin-bottom: 6px;
}

.sidebar-cat-list li:last-child,
.sidebar-link-list li:last-child { margin-bottom: 0; }

.sidebar-cat-list a,
.sidebar-link-list a {
    display: block;
    font-size: 14px;
    color: var(--text);
    padding: 8px 20px;
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
}

.sidebar-link-list a {
    padding: 6px 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.sidebar-cat-list a:hover,
.sidebar-link-list a:hover {
    color: var(--primary);
    text-decoration: none;
}

.sidebar-cat-list a.is-active {
    color: var(--primary);
    font-weight: 500;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px 18px;
}

.sidebar-tags a {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-muted);
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
}

.sidebar-tags a:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

/* 列表布局细节 */
.tests-layout .test-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.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);
}

.home-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.home-test-grid .test-card {
    flex-direction: column;
    gap: 0;
}

.home-test-grid .test-card-pic {
    width: 100%;
    aspect-ratio: 16/9;
}

.home-test-grid .test-card-body {
    padding: 16px 20px 20px;
}

.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-num {
    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;
}

/* 文章列表 */
.tests-layout .article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-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;
}

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

.home-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.article-card--compact {
    flex-direction: column;
    gap: 0;
}

.article-card--compact .article-card-pic {
    width: 100%;
    aspect-ratio: 16/9;
}

.article-card--compact .article-card-body {
    padding: 16px 20px 20px;
}

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

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

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

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

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

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

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

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

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

.article-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;
}

.article-card-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    align-self: flex-start;
}

.article-card-more:hover {
    text-decoration: underline;
}

/* ---------- 内容页 / 详情页 ---------- */
.show-section {
    padding-top: 24px;
    padding-bottom: 48px;
}

.show-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.show-breadcrumb a {
    color: var(--text-muted);
}

.show-breadcrumb a:hover {
    color: var(--primary);
    text-decoration: none;
}

.show-breadcrumb-sep {
    margin: 0 8px;
    color: var(--border);
}

.show-article,
.show-test {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px 32px;
}

.show-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 16px;
    color: var(--text);
}

.show-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.show-meta-cat {
    font-size: 12px;
    padding: 4px 12px;
    background: var(--bg-muted);
    color: var(--text-muted);
    border-radius: 999px;
}

.show-meta-date,
.show-meta-views,
.show-meta-time,
.show-meta-num,
.show-meta-cost {
    font-size: 13px;
    color: var(--text-muted);
}

.show-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.show-body p {
    margin: 0 0 16px;
}

.show-body p:last-child {
    margin-bottom: 0;
}

.show-body h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--text);
}

.show-body h2:first-child {
    margin-top: 0;
}

/* 测试详情页 */
.show-test-pic {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-muted);
    margin-bottom: 24px;
}

.show-test-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

.show-intro {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 28px;
}

.show-intro p {
    margin: 0 0 14px;
}

.show-intro p:last-child {
    margin-bottom: 0;
}

.show-test-cta {
    margin-bottom: 32px;
}

.show-test-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

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

/* 相关推荐 */
.show-related {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.show-related-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--text);
}

.show-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.show-related-list li {
    margin-bottom: 10px;
}

.show-related-list li:last-child {
    margin-bottom: 0;
}

.show-related-list a {
    font-size: 14px;
    color: var(--text);
}

.show-related-list a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* 分页 */
.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: 1024px) {
    .tests-layout {
        grid-template-columns: 1fr;
    }
    .tests-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@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; }
    .tests-layout .test-list .test-card-pic { width: 100%; }
    .tests-sidebar { grid-template-columns: 1fr; }
    .article-card { flex-direction: column; gap: 0; }
    .article-card-pic { width: 100%; aspect-ratio: 16/9; }
    .article-card-body { padding: 16px 20px 20px; }
}

/* ---------- 页脚（紧凑） ---------- */
.site-footer .footer-top-intro {
    text-align: center;
    padding: 8px 0 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid #374151;
}

.site-footer .footer-top-name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.site-footer .footer-top-desc {
    font-size: 13px;
    line-height: 1.65;
    color: #9ca3af;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.site-footer .footer-brand-mark {
    color: #e5e7eb;
}

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

.site-footer--home {
    padding-top: 36px;
}

.footer-brand-block {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #374151;
    text-align: center;
}

.footer-brand-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #9ca3af;
    max-width: 560px;
    margin: 0 auto 16px;
}

.footer-brand-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb !important;
    border: 1px solid #4b5563;
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-pill:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-light);
    color: #fff !important;
}

.footer-col--tags .footer-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.footer-tag-cloud a {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    color: #b0b8c0 !important;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-tag-cloud a:hover {
    background: rgba(255,255,255,0.1);
    border-color: #4b5563;
    color: #fff !important;
}

@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; }
}

/* ========== show_psych 详情页增强 ========== */
/* 左侧无圆角外框 */
.show-psych .show-test {
    border-radius: 0;
    border: none;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.show-psych .show-test-pic {
    border-radius: 0;
}

/* 开始测试按钮：居中、更醒目 */
.show-psych .show-test-cta {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 32px;
}

.show-psych .show-test-btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(90, 143, 123, 0.35);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.show-psych .show-test-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3d6554 100%);
    box-shadow: 0 6px 20px rgba(90, 143, 123, 0.45);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 相关推荐：与右侧栏目同款（直角 + 渐变标题栏） */
.show-related-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    margin-top: 28px;
}

.show-related-widget .sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-left: 4px solid rgba(255,255,255,0.4);
}

.show-related-widget .show-related-list {
    list-style: none;
    margin: 0;
    padding: 14px 20px 18px;
}

.show-related-widget .show-related-list li {
    margin-bottom: 0;
}

.show-related-widget .show-related-list a {
    display: block;
    font-size: 14px;
    color: var(--text);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
}

.show-related-widget .show-related-list li:last-child a {
    border-bottom: none;
}

.show-related-widget .show-related-list a:hover {
    color: var(--primary);
    text-decoration: none;
}

.show-psych .show-psych-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.show-psych .show-psych-tags-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.show-psych .show-psych-tag {
    font-size: 13px;
    padding: 4px 12px;
    background: var(--bg-muted);
    color: var(--text);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.show-psych .show-psych-tag:hover {
    background: var(--primary);
    color: #fff;
}

.show-psych .show-psych-tag-none {
    font-size: 13px;
    color: var(--text-muted);
}

.show-psych .show-psych-prevnext {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.show-psych .show-psych-prev,
.show-psych .show-psych-next {
    font-size: 14px;
    color: var(--text);
    max-width: 48%;
    text-decoration: none;
    transition: color 0.2s;
}

.show-psych .show-psych-prev:hover,
.show-psych .show-psych-next:hover {
    color: var(--primary);
}

.show-psych .show-psych-needknow {
    margin-top: 20px;
}

.show-psych-sidebar-qr-box {
    text-align: center;
    padding: 14px 20px 18px;
}

.show-psych-sidebar-qr-box img {
    border-radius: 0;
    display: block;
    margin: 0 auto 8px;
}

.show-psych-sidebar-qr-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ========== 答题页 test.html 美化（与 skin1 风格统一） ========== */
.mental-test-page .show-breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
}

.mental-test-page .test-page-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 32px 36px 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mental-test-page .mental-test-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 28px;
    color: var(--text);
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}

/* 进度条 */
.mental-test-page .progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 28px;
    padding: 14px 20px;
    background: var(--bg-soft);
    border-radius: 0;
    border: 1px solid var(--border);
}

.mental-test-page .progress-track {
    flex: 1;
    height: 10px;
    background: var(--bg-muted);
    border-radius: 0;
    overflow: hidden;
}

.mental-test-page .progress-bar {
    height: 100%;
    width: var(--progress, 0%) !important;
    min-width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 0;
    transition: width 0.35s ease;
}

.mental-test-page .progress-bar::after {
    display: none;
}

.mental-test-page .progress-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mental-test-page .progress-count span:first-child {
    color: var(--primary);
}

/* 题目区块 */
.mental-test-page .test-question-block {
    margin-bottom: 8px;
}

.mental-test-page .test-question-block .question {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 20px;
    color: var(--text);
}

.mental-test-page .question-image {
    margin-bottom: 20px;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-muted);
}

.mental-test-page .question-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 选项列表 */
.mental-test-page .option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mental-test-page .option-item {
    padding: 16px 20px 16px 48px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.mental-test-page .option-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bg-muted);
    border-radius: 0;
    transition: background 0.2s;
}

.mental-test-page .option-item:not(.selected):hover {
    border-color: var(--primary-light);
    background: rgba(122, 168, 146, 0.06);
    box-shadow: 0 4px 12px rgba(90, 143, 123, 0.12);
}

.mental-test-page .option-item:not(.selected):hover::before {
    background: var(--primary-light);
}

.mental-test-page .option-item.selected {
    border-color: var(--primary);
    background: rgba(90, 143, 123, 0.08);
    box-shadow: 0 4px 14px rgba(90, 143, 123, 0.15);
}

.mental-test-page .option-item.selected::before {
    background: var(--primary);
}

.mental-test-page .option-item::after {
    content: attr(data-key);
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--bg-muted);
    color: var(--text-muted);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.mental-test-page .option-item.selected::after {
    background: var(--primary);
    color: #fff;
}

.mental-test-page .option-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    padding-right: 48px;
}

.mental-test-page .option-item.questionpic {
    padding: 12px 20px 12px 48px;
}

.mental-test-page .option-item.questionpic .option-text img {
    max-width: 120px;
    height: auto;
    border-radius: 0;
    display: block;
}

/* 上一题 / 下一题 */
.mental-test-page .swiper-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.mental-test-page .mental-btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.mental-test-page .mental-btn-outline {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--primary);
}

.mental-test-page .mental-btn-outline:hover {
    background: rgba(90, 143, 123, 0.08);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.mental-test-page .mental-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(90, 143, 123, 0.3);
}

.mental-test-page .mental-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3d6554 100%);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(90, 143, 123, 0.4);
}

/* 答题页侧栏 */
.mental-test-page .mental-test-sidebar .sidebar-widget > p.mental-test-hint {
    padding: 14px 20px 18px;
}

.mental-test-page .mental-test-sidebar .mental-test-hint {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.mental-test-page .mental-test-sidebar .mental-test-hint strong {
    color: var(--primary);
}

@media (max-width: 768px) {
    .mental-test-page .test-page-card {
        padding: 20px 20px 28px;
    }
    .mental-test-page .option-item {
        padding: 14px 16px 14px 44px;
    }
    .mental-test-page .option-item::after {
        right: 14px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    .mental-test-page .option-text {
        padding-right: 40px;
        font-size: 14px;
    }
    .mental-test-page .swiper-bottom {
        flex-wrap: wrap;
    }
    .mental-test-page .mental-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* ========== 计算中页面（mental count，使用 cms layout） ========== */
.count-section { padding: 50px 0 80px; }
.count-wrap { max-width: 480px; margin: 0 auto; }
.count-card {
    background: transparent;
    border: none;
    padding: 24px 0;
}
.count-title { font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--text); text-align: center; }
.count-desc { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.count-progress-wrap {
    height: 8px;
    background: var(--bg-muted);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}
.count-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.15s linear;
}
.count-status { text-align: center; font-size: 15px; color: var(--text-muted); min-height: 24px; }
.count-jump-tip { text-align: center; margin-top: 16px; font-size: 13px; color: var(--primary); opacity: 0; transition: opacity 0.3s; }
.count-jump-tip.show { opacity: 1; }

/* ========== 心理测试页正文（article.ptest-body，仅 skin1；用站点 :root 变量，与整站风格一致） ========== */
article.ptest-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 32px;
    color: var(--text, #2d3436);
    font-size: 15px;
    line-height: 1.75;
}

article.ptest-body .ptest-section {
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border, #e9ecef);
}

article.ptest-body .ptest-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

article.ptest-body .ptest-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #2d3436);
    margin: 0 0 1rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

article.ptest-body .ptest-block-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 0.65rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary, #5a8f7b), var(--primary-light, #7aa892));
}

article.ptest-body .ptest-text,
article.ptest-body .ptest-lead {
    margin: 0 0 1rem;
}

article.ptest-body .ptest-text:last-child,
article.ptest-body .ptest-lead:last-child {
    margin-bottom: 0;
}

article.ptest-body .ptest-lead {
    font-size: 1.05rem;
    color: var(--text-muted, #636e72);
}

article.ptest-body .ptest-lead--intro {
    font-size: 1.08rem;
    color: var(--text, #2d3436);
    line-height: 1.8;
    padding: 1.25rem 1.35rem;
    background: var(--bg-soft, #fafaf9);
    border-radius: var(--radius-sm, 10px);
    border-left: 4px solid var(--primary, #5a8f7b);
    margin-bottom: 0;
}

article.ptest-body .ptest-lead--intro strong {
    color: var(--primary-dark, #4a7766);
    font-weight: 700;
}

article.ptest-body .ptest-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

article.ptest-body .ptest-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text, #2d3436);
}

article.ptest-body .ptest-item:last-child {
    margin-bottom: 0;
}

article.ptest-body .ptest-icon {
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light, #7aa892);
    box-shadow: 0 0 0 3px rgba(90, 143, 123, 0.15);
}

article.ptest-body .ptest-note {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted, #636e72);
    background: var(--bg-muted, #f1f3f5);
    border-radius: var(--radius-sm, 10px);
    border-left: 3px solid var(--text-light, #b2bec3);
}

article.ptest-body .ptest-cta {
    margin: 1.25rem 0 0;
    padding: 1.15rem 1.25rem;
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text, #2d3436);
    background: linear-gradient(135deg, rgba(90, 143, 123, 0.08), rgba(122, 168, 146, 0.06));
    border: 1px solid rgba(90, 143, 123, 0.2);
    border-radius: var(--radius, 16px);
}

article.ptest-body .ptest-cta strong {
    color: var(--primary-dark, #4a7766);
}

article.ptest-body strong {
    font-weight: 600;
}

@media (max-width: 576px) {
    article.ptest-body {
        font-size: 14px;
        padding-bottom: 24px;
    }
    article.ptest-body .ptest-lead--intro {
        padding: 1rem 1.1rem;
        font-size: 1rem;
    }
    article.ptest-body .ptest-block-title {
        font-size: 1.15rem;
    }
}

