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

/* ---------- 基础色板 ---------- */
:root {
    --gold-deep:   #8a7a5c;   /* 深咖金 */
    --gold-main:   #b29a6f;   /* 主雾金 */
    --gold-light:  #e2d5b8;   /* 浅金描边 */
    --gold-pale:   #fbf8f2;   /* 米白 */
    --text-dark:   #4a3f2e;   /* 深咖标题 */
    --text-body:   #5f574a;   /* 正文 */
    --text-muted:  #9c927f;   /* 次要 */
    --card-bg:     #fffdf8;   /* 卡片米白底 */
    --bg-page:     #f4efe4;   /* 页面背景 */
}

/* ---------- 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: linear-gradient(180deg, var(--gold-pale) 0%, #ffffff 45%);
    border: 1px solid var(--gold-light);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(138, 122, 92, 0.10);
    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;
}

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

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

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

.collection-entry .entry-card {
    display: block;
    background: linear-gradient(135deg, #b29a6f 0%, #8a7a5c 100%);
    border: none;
    border-radius: 16px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(138, 122, 92, 0.26);
    transition: all 0.25s ease;
    color: #fff;
}

.collection-entry .entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(138, 122, 92, 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: #f3ead8;
    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-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(138, 122, 92, 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(138, 122, 92, 0.16);
    transform: translateY(-2px);
}

.collection-articles .test-card h3,
.test-grid .test-card h3 {
    color: #6b5b3e;
    font-size: 1.08rem;
    line-height: 1.5;
    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;
}

/* ---------- 按钮：雾金渐变（覆盖 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(138, 122, 92, 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(138, 122, 92, 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);
}

/* ---------- 测试页（quiz-main）标题统一 ---------- */
.quiz-intro {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border: 1px solid var(--gold-light);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(138, 122, 92, 0.10);
}

.quiz-intro h1 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin: 0 0 14px;
}

.quiz-intro-desc {
    color: var(--text-body);
    font-size: 1.02rem;
    margin-bottom: 10px;
}

.quiz-intro-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ---------- 结果页（result-report）统一 ---------- */
.result-report,
.report-card {
    background: var(--card-bg);
    border: 1px solid var(--gold-light);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(138, 122, 92, 0.10);
    padding: 30px;
}

.result-report h1,
.report-card h2,
.result-report h2 {
    color: var(--text-dark);
}

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

/* ---------- 首页 section 标题 ---------- */
#nengli h2,
#renge h2,
#aiqing h2 {
    color: var(--text-dark);
    border-left: 4px solid var(--gold-main);
    padding-left: 12px;
    margin: 32px 0 16px;
}

/* ---------- 手机端适配：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;
    }
}

/* ---------- 答题交互：覆盖 quiz.css 蓝色 ---------- */
.quiz-option {
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #333;
}

.quiz-option:hover {
    border-color: var(--gold-main);
    background: var(--gold-pale);
    color: var(--text-dark);
}

.quiz-option.selected {
    border-color: var(--gold-deep);
    background: #f2ead9;
    color: var(--gold-deep);
    font-weight: 500;
}

.quiz-progress-bar,
.progress-bar,
.progress-fill {
    background: linear-gradient(90deg, var(--gold-main) 0%, var(--gold-deep) 100%);
}

.quiz-progress,
.progress-track {
    background: var(--gold-light);
}

.quiz-count,
.quiz-dimension,
.quiz-question {
    color: var(--text-dark);
}

.quiz-box {
    background: var(--card-bg);
    border: 1px solid var(--gold-light);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 6px 24px rgba(138, 122, 92, 0.10);
}
