/* ============================================================
   guides.css — 说明中心与文章目录共用（2026-11-24 从 guides.php 抽出）
   ------------------------------------------------------------
   两页共用同一份样式：
     · guides.php   —— 说明中心（方法 / 交付 / 退款 / FAQ），锚点全部保留
     · articles.php —— 文章目录（content/guides/*.php 的列表）
   抽出来的原因是这两页必须长得像一家：同一个 hero、同一套小标题、
   同一种分隔线。写两份内联样式，改一次就漏一次。
   ============================================================ */

/* ============================================================
   Guides + 说明中心（合并版）
   ------------------------------------------------------------
   版心 860（列表的宽度）；说明文字的 fg-* 刻度取自 system.css：
   正文 17px / 行高 1.618，标题衬线，分节靠金线不靠空卡片。
   ============================================================ */

.gd-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(40px, 5.4vw, 64px) 24px var(--f6);
}

/* ---- 四条硬事实：一屏之内把「多久到、能不能退、是什么」说完 ---- */
.fg-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: var(--f4) 0 var(--f2);
    border-top: 1px solid rgba(201, 169, 110, .3);
}
.fg-fact {
    padding: 18px 18px 0;
    border-left: 1px solid var(--pg-hair-soft);
    text-align: left;
}
.fg-fact:first-child { padding-left: 0; border-left: 0; }
.fg-fact:last-child { padding-right: 0; }
.fg-fact .k {
    font-size: var(--t-2xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}
.fg-fact .v {
    font-size: var(--t-xs);
    color: var(--ink);
    line-height: 1.5;
    font-weight: 600;
}

/* ---- 锚点导航：胶囊直达每一节 ---- */
.fg-toc {
    display: flex;
    flex-wrap: wrap;
    gap: var(--f1);
    justify-content: center;
    margin: var(--f3) 0 var(--f1);
}
.fg-toc a {
    font-size: var(--t-xs);
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--pg-hair-soft);
    background: #FFFDFA;
    border-radius: 40px;
    padding: 6px 14px;
    transition: .2s;
}
.fg-toc a:hover { border-color: var(--pg-gold); color: var(--ink-2); background: #FFFDFA; }

/* ---- 说明各节 ---- */
.fg-sec { margin-top: var(--f5); }
/* 吸顶导航会盖住锚点标题，统一留出滚动偏移 */
.fg-sec { scroll-margin-top: 80px; }
.fg-sec > h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: var(--t-md);
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -.015em;
    margin: 0 0 var(--f1);
    padding-top: var(--f3);
    border-top: 1px solid var(--pg-hair-soft);
    text-wrap: balance;
}
.fg-sec > .lead {
    font-size: var(--t-base);
    color: var(--ink-2);
    line-height: var(--phi);
    margin: 0 0 var(--f3);
    text-wrap: pretty;
}

.fg-card {
    background: var(--pg-tint);
    border: 0;
    border-left: 2px solid rgba(201, 169, 110, .45);
    border-radius: 0 10px 10px 0;
    padding: var(--f3);
}
.fg-card p {
    font-size: var(--t-base);
    color: var(--ink-2);
    line-height: var(--phi);
    margin: 0 0 var(--f2);
}
.fg-card p:last-child { margin-bottom: 0; }
.fg-card strong { color: var(--ink); }

/* ---- 三步 ---- */
.fg-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(201, 169, 110, .3);
}
.fg-step {
    padding: 18px 20px 0;
    border-left: 1px solid var(--pg-hair-soft);
}
.fg-step:first-child { padding-left: 0; border-left: 0; }
.fg-step .n {
    font-family: var(--serif);
    font-size: var(--t-lg);
    line-height: 1;
    color: var(--earth);
    opacity: .7;
    margin-bottom: var(--f1);
}
.fg-step .t {
    font-size: var(--t-xs);
    font-weight:600;
    color: var(--ink);
    margin-bottom: 5px;
}
.fg-step .d { font-size: var(--t-xs); color: var(--muted); line-height: 1.6; }

/* ---- 交付表 ---- */
.fg-table-wrap { overflow-x: auto; }
.fg-table {
    width: 100%;
    min-width: 520px;
    background: transparent;
    border-collapse: collapse;
}
.fg-table thead th {
    background: transparent;
    border-bottom: 1px solid var(--pg-hair);
    font-size: var(--t-2xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight:600;
}
.fg-table th, .fg-table td {
    padding: 12px 14px;
    font-size: var(--t-xs);
    text-align: left;
    border-bottom: 1px solid var(--pg-hair-soft);
}
.fg-table th:first-child, .fg-table td:first-child { padding-left: 0; }
.fg-table td { color: var(--muted); line-height: 1.6; }
.fg-table td:first-child { color: var(--ink); font-weight: 600; }
.fg-table .fast { color: var(--wood); font-weight:600; }
.fg-table .slow { color: var(--earth); font-weight:600; }

/* ---- 三档对比表（2026-11-06 自 reports.php 迁入）----
   列宽是量出来的：特性列 46%，三档各 18% —— 不指定的话浏览器会把
   特性列压到 30%，每行折成三行，表格立刻变成一堵墙。 */
.fg-table--matrix { min-width: 560px; }
.fg-table--matrix thead th:first-child { width: 46%; }
.fg-table--matrix thead th:not(:first-child) { width: 18%; }
.fg-table--matrix thead th .fg-th-price {
    display: block;
    font-family: var(--serif);
    font-size: var(--t-base);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--earth);
    margin-top: 3px;
}
.fg-table--matrix td:not(:first-child) { text-align: center; }
.fg-table--matrix .yes { color: var(--wood); font-weight:600; }
.fg-table--matrix .no  { color: #CFC7BE; font-weight: 400; }
.fg-table--matrix .fg-rowgroup th {
    text-align: left;
    font-size: var(--t-2xs);
    font-weight:600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--earth);
    padding-top: var(--f3);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pg-hair-soft);
}
.fg-table--matrix tbody tr:last-child th,
.fg-table--matrix tbody tr:last-child td { border-bottom: 0; }

/* ---- 问答 ---- */
.fg-faq-group {
    font-size: var(--t-2xs);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight:600;
    margin: var(--f4) 0 var(--f2);
    padding-bottom: var(--f1);
    border-bottom: 1px solid rgba(201, 169, 110, .2);
}
.fg-faq-group, .gd-list-anchor { scroll-margin-top: 80px; }
.fg-qa { margin: 0; }
.fg-qa dt {
    font-weight: 600;
    font-size: var(--t-base);
    color: var(--ink);
    line-height: 1.5;
    margin: var(--f3) 0 6px;
}
.fg-qa dt:first-of-type { margin-top: 0; }
.fg-qa dd {
    font-size: var(--t-base);
    color: var(--ink-2);
    line-height: var(--phi);
    margin: 0;
}
.fg-qa dd a { color: var(--gold); }

/* 「还是不明白？」：居中，与上方问答拉开一段 */
.fg-ask { margin-top: var(--f4); text-align: center; }
.fg-ask .fg-ask-note { font-size: var(--t-xs); color: var(--muted); }

/* ---- 长文列表（原 guides.php 主体，一条金线一篇） ---- */
.gd-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 0 var(--f5);
    padding-top: var(--f3);
    border-top: 1px solid var(--pg-hair-soft);
}
.gd-cats span {
    padding: 5px 13px;
    border: 1px solid var(--pg-hair-soft);
    border-radius: 40px;
    background: #FFFDFA;
    font-size: var(--t-2xs);
    letter-spacing: .04em;
    color: var(--muted);
}

.gd-list { display: block; }

.gd-item {
    display: block;
    padding: var(--f3) 0;
    border-top: 1px solid var(--pg-hair-soft);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s;
}
.gd-item:first-child { border-top: 1px solid var(--pg-hair); }
.gd-item:hover { border-color: rgba(201, 169, 110, .55); }
.gd-item .cat {
    margin-bottom: 6px;
    font-size: var(--t-2xs);
    font-weight:600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--earth);
}
.gd-item h3 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: var(--t-md);
    line-height: 1.3;
    letter-spacing: -.015em;
    color: var(--pg-ink);
    text-wrap: pretty;
    transition: color .2s;
}
.gd-item:hover h3 { color: var(--earth); }
.gd-item .d {
    margin: 0 0 10px;
    font-size: var(--t-xs);
    line-height: 1.7;
    color: var(--muted);
    /* 2026-11-24：原来是 62em（≈800px），宽屏下一行排到九十多个字符，
       眼睛返回行首会串行。68ch 是英文正文的舒适上界。 */
    max-width: 68ch;
    text-wrap: pretty;
}
.gd-item .m { font-size: var(--t-xs); color: #A9A29A; }
.gd-item .m .arrow { color: var(--earth); }

.gd-empty {
    padding: var(--f5) var(--f3);
    border: 1px solid var(--pg-hair-soft);
    border-radius: 12px;
    background: var(--pg-tint);
    text-align: center;
    color: var(--muted);
    font-size: var(--t-base);
}

/* 结尾的行动区：纸上一块极淡的托底，不做成第二张卡 */
.gd-cta {
    margin-top: var(--f5);
    padding-top: var(--f4);
    border-top: 1px solid var(--pg-hair);
    text-align: center;
}
.gd-cta h2 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: var(--t-lg);
    letter-spacing: -.02em;
    color: var(--pg-ink);
}
.gd-cta p {
    margin: 0 0 var(--f3);
    font-size: var(--t-xs);
    line-height: 1.7;
    color: var(--muted);
}
.gd-cta a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 28px;
    border: 1px solid var(--pg-ink);
    border-radius: 60px;
    background: var(--pg-ink);
    color: #FBF7F2;
    text-decoration: none;
    font-size: var(--t-xs);
    font-weight: 600;
    transition: background .25s, color .25s, border-color .25s;
}
.gd-cta a:hover { background: var(--pg-gold); border-color: var(--pg-gold); color: var(--pg-ink); }

@media (max-width: 700px) {
    .fg-facts { grid-template-columns: 1fr 1fr; }
    .fg-fact:nth-child(3) { padding-left: 0; border-left: 0; }
    .fg-steps { grid-template-columns: 1fr; border-top: 0; }
    .fg-step {
        padding: 16px 0;
        border-left: 0;
        border-top: 1px solid var(--pg-hair-soft);
    }
    .fg-step:first-child { padding-top: 0; border-top: 0; }
}

@media (max-width: 620px) {
    .gd-wrap { padding: 32px 20px var(--f5); }
}

