/* ===================== 全局基础样式 ===================== */
* {
    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;
    }
}

/* ================================================================
    ARTICLE · 蓝色主题 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;
}


/* ---------- 按钮：雾金渐变（覆盖 quiz.css/eq.css 蓝色） ---------- */
.primary-btn,
.btn-start,
.quiz-intro .primary-btn {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-deep) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 112, 184, 0.28);
    transition: all 0.22s ease;
    text-decoration: none;
    display: inline-block;
}

.primary-btn:hover,
.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 112, 184, 0.36);
}

.ghost-btn {
    background: transparent;
    color: var(--gold-deep);
    border: 1px solid var(--gold-main);
    border-radius: 10px;
    padding: 11px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
    display: inline-block;
}

.ghost-btn:hover {
    background: var(--gold-pale);
    border-color: var(--gold-deep);
}


/* ---------- 面包屑 ---------- */
.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;
    }
}


/* ================================================================
   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;
}


/* ---------- 表格 ---------- */
.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
}
.article-section th,
.article-section td {
    border: 1px solid #d8e2ee;
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
    color: #2b3240;
}
.article-section thead th {
    background: #f2f7fc;
    font-weight: 600;
    color: #163a5f;
}
.article-section tbody tr:nth-child(even) {
    background: #fafcfe;
}
@media (max-width: 768px) {
    .article-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* ---------- 主内容卡片 ---------- */
.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;
}


/* ---------- 按钮 ---------- */
.primary-btn,
.btn-start {
    background: linear-gradient(135deg, #0d86d6 0%, #00558c 100%);
    border-radius: 12px;
    padding: 14px 36px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 85, 140, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.primary-btn:hover,
.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 85, 140, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    filter: brightness(1.06);
}
.ghost-btn {
    border-radius: 12px;
    padding: 13px 34px;
    font-weight: 600;
}
.ghost-btn:hover {
    background: #eef6fc;
    border-color: #00558c;
}


/* ---------- 阅读原文 / 返回 / CTA ---------- */
.read-more {
    font-weight: 600;
}
.article-cta {
    text-align: center;
    margin: 30px 0 6px;
}
.article-divider {
    border: none;
    border-top: 1px solid #e3edf5;
    margin: 24px 0 10px;
}
.article-back a {
    font-weight: 500;
}