/* ===================== 全局基础样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", SimHei, "PingFang SC", sans-serif;
}

html,
body {
    background: #f9fafb;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #333;
}

/* ===================== 整体布局容器 ===================== */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
}

.main-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 30px;
    min-height: calc(100vh - 140px);
}

/* ===================== 标题样式 ===================== */
h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1D2129;
    padding-bottom: 10px;
    border-bottom: 2px solid #0070b8;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1D2129;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #0070b8;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
    text-align: left;
}

ul {
    margin: 15px 0 15px 20px;
    list-style: disc;
}

ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ===================== 测试卡片网格 ===================== */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.test-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.test-card:hover {
    box-shadow: 0 4px 12px rgba(0, 112, 184, 0.12);
    border-color: #0070b8;
    transform: translateY(-2px);
}

.test-card .test-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.test-card h3 {
    color: #1D2129;
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}

.test-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.test-card .test-meta {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #999;
}

/* ===================== 按钮样式 ===================== */
.primary-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #0070b8;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.primary-btn:hover {
    background: #00558c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 112, 184, 0.2);
}

.primary-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================== 答题页样式 ===================== */
.quiz-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: #0070b8;
    border-radius: 3px;
    transition: width 0.3s;
}

.quiz-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1D2129;
    margin: 20px 0;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.quiz-option {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    font-size: 1rem;
}

.quiz-option:hover {
    border-color: #0070b8;
    background: #f0f7ff;
}

.quiz-option.selected {
    border-color: #0070b8;
    background: #e6f4ff;
    color: #0070b8;
    font-weight: 500;
}

/* ===================== 结果页样式 ===================== */
.result-badge {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    margin: 20px 0;
}

.result-badge .band-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-badge .band-score {
    font-size: 1.2rem;
    opacity: 0.9;
}

.result-hook-line {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin: 15px 0 25px;
    line-height: 1.6;
}

.paywall-box {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.paywall-box h3 {
    color: #d48806;
    margin-bottom: 10px;
}

/* 雷达图容器 */
.radar-container {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

/* ===================== 页脚 ===================== */
.footer {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding: 30px 20px;
}

.footer p {
    text-align: center;
}

/* ===================== 面包屑 ===================== */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0070b8;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #0070b8;
}

/* ===================== 手机端适配 ===================== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .main-content {
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 20px;
    }

    .test-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .result-badge .band-name {
        font-size: 1.5rem;
    }

    .primary-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
}


/* ===================== 合集聚合页样式 ===================== */
/* 文章链接列表（方案/问答） */
.link-tag {
    color: #0070b8;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

.link-tag:hover {
    color: #00558c;
    text-decoration: underline;
}

ul#solution,
ul#question,
ul#product {
    list-style: none;
    margin: 15px 0 0;
    padding: 0;
}

ul#solution li,
ul#question li,
ul#product li {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #fff;
    transition: all 0.2s;
}

ul#solution li:hover,
ul#question li:hover,
ul#product li:hover {
    border-color: #0070b8;
    box-shadow: 0 2px 8px rgba(0, 112, 184, 0.08);
}

ul#solution li p,
ul#question li p,
ul#product li p {
    margin: 0 0 4px;
}

ul#solution li p:last-child,
ul#question li p:last-child,
ul#product li p:last-child {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* 测试入口按钮 */
.collection-entry {
    margin: 25px 0;
    text-align: center;
}

.entry-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #0070b8;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.entry-btn:hover {
    background: #00558c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 112, 184, 0.2);
}

/* 文章正文区（上传文章页用） */
.article-section {
    margin: 25px 0;
}

.article-cta {
    margin: 30px 0 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .entry-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
}

/* ================================================================
    COLLECTION · 蓝色主题 v8 类型化拆分
    本文件自包含：基础 + 该类型专属样式，互不影响
    ================================================================ */

/* 全局字号放大（+6%） */
html { font-size: 17px; }
body { font-size: 16.5px; }
p, li { font-size: 16px; line-height: 1.9; }
h1.article-title { font-size: 1.75rem; }
h2, .article-section h2 { font-size: 1.35rem; line-height: 1.5; }
.teaser-summary { font-size: 16.5px; }
.teaser-dim-name { font-size: 16px; }
.teaser-dim-desc { font-size: 15.5px; }
.teaser-dim-scene { font-size: 14px; }
.teaser-dim-advice { font-size: 15px; }
.deep-summary { font-size: 16.5px; }
.dim-detail-desc { font-size: 15.5px; }
.dim-detail-advice { font-size: 15px; }
.suggest-desc { font-size: 15px; }
.breadcrumb { font-size: 13.5px; }

/* ============================================================
   心理测评网 · 全站统一主题 —— 高级（雾金·深咖）
   固定浅色模式（不随系统深色模式），PC 容器居中留白，H5 全宽
   覆盖 page.css / quiz.css / eq.css / result-report.css 中的主色
   ============================================================ */

/* ---------- 基础色板 ---------- */
:root {
    --gold-deep:   #00558c;   /* 深咖金 */
    --gold-main:   #0070b8;   /* 主雾金 */
    --gold-light:  #b3d7f0;   /* 浅金描边 */
    --gold-pale:   #f4f8fc;   /* 米白 */
    --text-dark:   #0a2540;   /* 深咖标题 */
    --text-body:   #1d2129;   /* 正文 */
    --text-muted:  #64748b;   /* 次要 */
    --card-bg:     #ffffff;   /* 卡片米白底 */
    --bg-page:     #eef5fb;   /* 页面背景 */
}


/* ---------- body 背景统一（覆盖 page.css / quiz.css 白底） ---------- */
body {
    background: var(--bg-page);
    color: var(--text-body);
}


/* ---------- 容器：PC 居中留白，H5 全宽 ---------- */
.container,
.quiz-main,
.result-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}


/* ---------- 主内容区（合集页/文章页/首页共用） ---------- */
.main-content {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 18px;
    box-shadow: none;
    padding: 36px;
    min-height: calc(100vh - 140px);
}

.main-content h1 {
    color: var(--text-dark);
    border-bottom: 2px solid var(--gold-main);
    padding-bottom: 14px;
    margin-bottom: 18px;
    font-size: 26px;
}

.main-content h2 {
    color: var(--text-dark);
    border-left: 4px solid var(--gold-main);
    padding-left: 12px;
    margin: 32px 0 16px; line-height: 1.5;
}

.main-content p {
    color: var(--text-body);
    line-height: 1.9;
}

.main-content li {
    line-height: 1.9;
    margin-bottom: 8px;
}


/* ---------- 测试卡图标：与测试页 intro 对齐（尺寸/位置统一） ---------- */
.test-icon,
.quiz-intro-icon {
    font-size: 3.5rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: block;
    color: var(--gold-main);
}


/* ---------- 置顶测试卡：雾金渐变 ---------- */
.collection-entry {
    margin: 28px 0;
}

.collection-entry .entry-card {
    display: block;
    background: linear-gradient(135deg, #0070b8 0%, #00558c 100%);
    border: none;
    border-radius: 16px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 112, 184, 0.26);
    transition: all 0.25s ease;
    color: #fff;
}

.collection-entry .entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 112, 184, 0.34);
}

.collection-entry .entry-card .test-icon {
    color: #fff;
}

.collection-entry .entry-card h3 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 10px;
    font-weight: 600;
}

.collection-entry .entry-card p {
    color: #dcecf9;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
}

.collection-entry .entry-card .test-meta {
    margin-top: 14px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.85rem;
    color: #fff;
}

.collection-entry .entry-card .test-cta {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #00558c;
    border-radius: 22px;
    padding: 9px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.collection-entry .entry-card .test-cta .arrow {
    transition: transform 0.2s ease;
}

.collection-entry .entry-card:hover .test-cta .arrow {
    transform: translateX(3px);
}


/* ---------- 长尾文章卡片：米白底浅金描边 ---------- */
.collection-articles {
    margin-top: 30px;
}

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

.collection-articles .test-card,
.test-grid .test-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--gold-light);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 3px 12px rgba(0, 112, 184, 0.08);
    transition: all 0.22s ease;
    color: inherit;
    text-decoration: none;
}

.collection-articles .test-card:hover,
.test-grid .test-card:hover {
    border-color: var(--gold-main);
    box-shadow: 0 8px 22px rgba(0, 112, 184, 0.16);
    transform: translateY(-2px);
}

.collection-articles .test-card h3,
.test-grid .test-card h3 {
    color: #16375a;
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0 0 10px;
}

.collection-articles .test-card p,
.test-grid .test-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.test-grid .test-card .test-icon {
    font-size: 2.6rem;
    text-align: left;
    margin-bottom: 12px;
}

.test-grid .test-card .test-meta {
    margin-top: 12px;
    display: inline-block;
    background: var(--gold-pale);
    border: 1px solid var(--gold-light);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.78rem;
}


/* ---------- 面包屑 ---------- */
.breadcrumb {
    margin-bottom: 22px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.breadcrumb a:hover {
    color: var(--text-dark);
}

.breadcrumb .current {
    color: var(--text-dark);
}


/* ---------- 手机端适配：H5 全宽顶格 ---------- */
@media (max-width: 768px) {
    .container,
    .quiz-main,
    .result-main {
        padding: 0;
        max-width: none;
    }

    .main-content {
        padding: 22px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .collection-articles .test-grid,
    .test-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .collection-entry .entry-card {
        padding: 24px 18px;
    }

    .quiz-intro {
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
}


/* ===== SaaS 补充：阅读原文 / 返回块 / 正文区（对齐测己网形态）===== */
.read-more{display:inline-block;margin-top:12px;color:#0070b8;font-size:.88rem;font-weight:600;}


/* ===== 合集文章卡片：等高 + 描述截断 + 阅读原文固定底部 ===== */
.collection-articles .test-card,
.test-grid .test-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.collection-articles .test-card h3,
.test-grid .test-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.collection-articles .test-card p,
.test-grid .test-card p {
    flex: 1 1 auto;
    min-height: 4.4em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.collection-articles .test-card .read-more,
.test-grid .test-card .read-more {
    margin-top: 12px;
}
.read-more:hover{color:#00558c;text-decoration:underline;}
.article-divider{border:none;border-top:1px solid #e3edf7;margin:18px 0 8px;}
.article-back{text-align:center;margin:8px 0;}
.article-back a{color:#0070b8;font-size:14px;text-decoration:none;}
.article-back a:hover{text-decoration:underline;}
.article-content{margin-bottom:10px;}
.quiz-intro p{text-align:center;}



/* ================================================================
   v8 整体美化 · 软件工具方案站 · 蓝色信任感
   （标题层级 + 正文 + 卡片 + 按钮 + 面包屑 + CTA 细节升级）
   ================================================================ */


/* ---------- 标题层级 ---------- */
.main-content h1 {
    position: relative;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: none;
    padding-bottom: 16px;
    margin-bottom: 26px;
}
.main-content h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0070b8, #4aa3dd 70%, rgba(74, 163, 221, 0));
}

.main-content h2,
.article-section h2 {
    position: relative;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0a2540;
    border-left: none;
    padding-left: 15px;
    margin: 38px 0 18px;
}
.main-content h2::before,
.article-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, #0070b8, #4aa3dd);
}

.main-content h3,
.article-section h3 {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f3a5f;
    padding-left: 18px;
    margin: 28px 0 14px;
}
.main-content h3::before,
.article-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: linear-gradient(135deg, #0070b8, #4aa3dd);
}

.main-content h4,
.article-section h4 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #0070b8;
    margin: 22px 0 12px;
}
.main-content h5,
.article-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1d3a5c;
    margin: 18px 0 10px;
}


/* ---------- 正文与列表 ---------- */
.main-content p,
.article-section p {
    line-height: 1.95;
    color: #2b3240;
    margin: 0 0 14px;
}
.main-content li,
.article-section li {
    line-height: 1.9;
    margin-bottom: 8px;
    color: #333a47;
}


/* ---------- 主内容卡片 ---------- */
.main-content {
    background: #ffffff;
    border: 1px solid #e6eef6;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(15, 60, 100, 0.07);
    padding: 42px;
}


/* ---------- 面包屑 ---------- */
.breadcrumb {
    margin-bottom: 22px;
    font-size: 13.5px;
    color: #5b6b7b;
}
.breadcrumb a {
    color: #5b6b7b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: #0070b8;
    text-decoration: none;
}
.breadcrumb .separator {
    color: #b9c6d3;
    margin: 0 6px;
}
.breadcrumb .current {
    color: #0070b8;
    font-weight: 600;
}


/* ---------- 文章卡片 ---------- */
.collection-articles .test-card,
.test-grid .test-card {
    border-radius: 14px;
    border: 1px solid #e3edf5;
    box-shadow: 0 4px 14px rgba(15, 60, 100, 0.06);
    transition: all 0.24s ease;
}
.collection-articles .test-card:hover,
.test-grid .test-card:hover {
    border-color: #0070b8;
    box-shadow: 0 12px 28px rgba(0, 112, 184, 0.18);
    transform: translateY(-3px);
}
.collection-articles .test-card h3,
.test-grid .test-card h3 {
    color: #16375a;
}


/* ---------- 置顶产品卡 ---------- */
.collection-entry .entry-card {
    background: linear-gradient(135deg, #0d86d6 0%, #00497a 100%);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 85, 140, 0.30);
}
.collection-entry .entry-card:hover {
    box-shadow: 0 16px 36px rgba(0, 85, 140, 0.40);
}

/* 合集页卡片标题：去掉蓝色装饰点 */
.collection-entry h3,
.collection-articles h3 {
    padding-left: 0;
}
.collection-entry h3::before,
.collection-articles h3::before {
    display: none;
}
