/* =========================================================
   聊聊 FDE 专栏样式（fde.html + fde/*.html 专用）
   与 css/style.css 分离：改这里只需 bump fde.css 的 ?v=
   ---------------------------------------------------------
   v1  2026-10-31  首版：栏目页 + 第 1 期组件
   v2  2026-10-31  增补：流程条 / 指标卡 / 时间线 / 坑卡 /
                   判断卡 / Q&A 列表，支持「零图片纯 HTML 排版」
   ========================================================= */

/* ---------- 通用：小节小标题 ---------- */
.fde-h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.6;
}

/* ---------- 导语块 ---------- */
.fde-lead {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-primary, #1a1a1a);
    padding: 20px 24px;
    background: rgba(90, 122, 106, 0.06);
    border-left: 4px solid var(--accent-color, #5a7a6a);
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
}
.fde-lead p { margin: 0 !important; }

/* ---------- 先看结论 ---------- */
.fde-tldr {
    background: #fff;
    border: 1px solid var(--border-color, #e5e0d8);
    border-radius: 12px;
    padding: 24px 26px;
    margin: 0 0 36px;
}
.fde-tldr h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color, #5a7a6a);
    margin: 0 0 14px;
    letter-spacing: .04em;
}
.fde-tldr dl { margin: 0; }
.fde-tldr dt {
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin-top: 20px;
    font-size: 0.98rem;
}
.fde-tldr dt:first-of-type { margin-top: 0; }
.fde-tldr dd {
    margin: 6px 0 0;
    color: var(--text-secondary, #666);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ---------- 表格 ---------- */
.fde-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0 32px;
    -webkit-overflow-scrolling: touch;
}
table.fde-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.94rem;
    line-height: 1.7;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
table.fde-table caption {
    caption-side: top;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted, #999);
    padding-bottom: 10px;
}
table.fde-table thead th {
    background: rgba(90, 122, 106, 0.1);
    color: var(--text-primary, #1a1a1a);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(90, 122, 106, 0.2);
    white-space: nowrap;
}
table.fde-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #eee9e1);
    vertical-align: top;
    width: 20%;
}
table.fde-table tbody td {
    padding: 12px 16px;
    color: var(--text-secondary, #666);
    border-bottom: 1px solid var(--border-color, #eee9e1);
    vertical-align: top;
}
table.fde-table tbody tr:last-child th,
table.fde-table tbody tr:last-child td { border-bottom: none; }

/* ---------- 金句 ---------- */
.fde-quote {
    margin: 28px 0;
    padding: 20px 24px;
    background: rgba(90, 122, 106, 0.07);
    border-left: 4px solid var(--accent-color, #5a7a6a);
    border-radius: 0 8px 8px 0;
}
.fde-quote p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.8;
    color: var(--text-primary, #1a1a1a);
}
.fde-quote footer {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted, #999);
}

/* ---------- 卡片列表（前提 / 坑 / 清单） ---------- */
.fde-card-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
    display: grid;
    gap: 14px;
}
.fde-card-list li {
    background: #fff;
    border: 1px solid var(--border-color, #e5e0d8);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 0;
}
.fde-card-list li strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 6px;
}
.fde-card-list li span {
    font-size: 0.94rem;
    color: var(--text-secondary, #666);
    line-height: 1.75;
}

/* ---------- 坑卡片（橙色左边框） ---------- */
.fde-pitfall {
    background: #fff;
    border: 1px solid var(--border-color, #e5e0d8);
    border-left: 4px solid #c2703f;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 14px;
}
.fde-pitfall h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #a8592c;
    margin: 0 0 8px;
    line-height: 1.6;
}
.fde-pitfall p {
    margin: 0 !important;
    font-size: 0.94rem;
    line-height: 1.8;
    color: var(--text-secondary, #666);
}

/* ---------- 判断卡（带角标） ---------- */
.fde-judgement {
    background: #fdfbf7;
    border: 1px solid var(--border-color, #e5e0d8);
    border-radius: 12px;
    padding: 22px 24px;
    margin: 28px 0;
}
.fde-judgement-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.fde-judgement-head strong {
    font-size: 1rem;
    color: var(--text-primary, #1a1a1a);
}
.fde-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(194, 112, 63, 0.12);
    color: #a8592c;
    white-space: nowrap;
}
.fde-judgement p {
    margin: 0 0 10px !important;
    font-size: 0.94rem;
    line-height: 1.82;
    color: var(--text-secondary, #666);
}
.fde-judgement p:last-child { margin-bottom: 0 !important; }

/* ---------- 流程条（横向步骤，可左右滑动） ---------- */
.fde-flow {
    display: flex;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    padding: 22px 4px 10px;
    margin: 8px 0 6px;
    -webkit-overflow-scrolling: touch;
}
.fde-flow::-webkit-scrollbar { height: 4px; }
.fde-flow::-webkit-scrollbar-thumb {
    background: rgba(90, 122, 106, 0.3);
    border-radius: 4px;
}
.fde-flow-step {
    position: relative;
    flex: 1 1 0;
    min-width: 96px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e0d8);
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
}
.fde-flow-step::after {
    content: "→";
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color, #5a7a6a);
    font-size: 1rem;
    opacity: .65;
}
.fde-flow-step:last-child::after { content: none; }
.fde-flow-step strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 4px;
}
.fde-flow-step small {
    display: block;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted, #999);
}
.fde-flow-step.is-key {
    background: #1f4437;
    border-color: #1f4437;
}
.fde-flow-step.is-key strong { color: #fff; }
.fde-flow-step.is-key small { color: rgba(255, 255, 255, 0.72); }
.fde-flow-step.is-end {
    background: rgba(90, 122, 106, 0.12);
    border-color: rgba(90, 122, 106, 0.28);
}
.fde-flow-caption {
    font-size: 0.85rem;
    color: var(--text-muted, #999);
    line-height: 1.7;
    margin: 0 0 24px;
}

/* ---------- 指标卡 ---------- */
.fde-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--border-color, #e5e0d8);
    border-radius: 12px;
    overflow: hidden;
    margin: 28px 0 32px;
}
.fde-metric {
    padding: 22px 14px;
    text-align: center;
    border-left: 1px solid var(--border-color, #eee9e1);
}
.fde-metric:first-child { border-left: none; }
.fde-metric b {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: #1f4437;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.fde-metric b em {
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 2px;
}
.fde-metric span {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-muted, #999);
    line-height: 1.5;
}

/* ---------- 时间线 ---------- */
.fde-timeline {
    position: relative;
    margin: 30px 0 28px;
    padding: 0 0 0 3px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    border-top: 2px solid rgba(90, 122, 106, 0.22);
}
.fde-tl-item {
    position: relative;
    padding: 26px 18px 8px 0;
}
.fde-tl-item::before {
    content: "";
    position: absolute;
    top: -7px;
    left: -3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #1f4437;
    box-shadow: 0 0 0 3px #f5f1eb;
}
.fde-tl-time {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1f4437;
    margin-bottom: 4px;
}
.fde-tl-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 4px;
}
.fde-tl-item small {
    display: block;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-muted, #999);
}

/* ---------- Q&A（答疑） ---------- */
.fde-faq { margin-top: 8px; }
.fde-faq-item {
    background: #fff;
    border: 1px solid var(--border-color, #e5e0d8);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 14px;
}
.fde-faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 10px;
    line-height: 1.6;
}
.fde-faq-item h3::before {
    content: "Q";
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    background: rgba(90, 122, 106, 0.14);
    color: #1f4437;
    font-size: 0.78rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: 1px;
}
.fde-faq-item p {
    margin: 0 !important;
    font-size: 0.95rem;
    color: var(--text-secondary, #666);
    line-height: 1.85;
}
.fde-faq-item p::before {
    content: "A";
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    background: rgba(194, 112, 63, 0.14);
    color: #a8592c;
    font-size: 0.78rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: 1px;
}

/* ---------- 如果只记三句话 ---------- */
.fde-takeaway {
    background: #1f4437;
    border-radius: 14px;
    padding: 30px 32px;
    margin: 40px 0 0;
    color: #fff;
}
.fde-takeaway h2 {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 20px;
    font-weight: 600;
    letter-spacing: .06em;
}
.fde-takeaway ol,
.fde-takeaway ul {
    margin: 0;
    padding-left: 24px;
}
.fde-takeaway li {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #fff;
}
.fde-takeaway li::marker {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}
.fde-takeaway li:last-child { margin-bottom: 0; }
.fde-takeaway li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #fff;
}
.fde-takeaway li span {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.68);
}

/* ---------- 标签行 ---------- */
.fde-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 48px 0 0;
}
.fde-tag-row a {
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
    background: #fff;
    border: 1px solid var(--border-color, #e5e0d8);
    border-radius: 20px;
    padding: 6px 14px;
    text-decoration: none;
    transition: all .2s ease;
}
.fde-tag-row a:hover {
    color: var(--accent-color, #5a7a6a);
    border-color: var(--accent-color, #5a7a6a);
}

/* =========================================================
   栏目首页 fde.html
   ========================================================= */
.fde-page {
    padding: 120px 0 80px;
    background: var(--bg-primary, #f5f1eb);
    min-height: 100vh;
}
.fde-hero {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 56px;
}
.fde-hero .fde-kicker {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: .12em;
    color: var(--accent-color, #5a7a6a);
    background: rgba(90, 122, 106, 0.1);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 20px;
}
.fde-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 18px;
    line-height: 1.3;
}
.fde-hero p {
    font-size: 1.08rem;
    color: var(--text-secondary, #666);
    line-height: 1.85;
    margin: 0;
}
.fde-answer {
    max-width: 900px;
    margin: 0 auto 60px;
    background: #fff;
    border-radius: 14px;
    padding: 30px 34px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.fde-answer h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 14px;
}
.fde-answer p {
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--text-secondary, #666);
    margin: 0 0 12px;
}
.fde-answer p:last-child { margin-bottom: 0; }
.fde-answer strong { color: var(--text-primary, #1a1a1a); }

.fde-section-title {
    max-width: 900px;
    margin: 0 auto 24px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.fde-section-title h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0;
}
.fde-section-title span {
    font-size: 0.9rem;
    color: var(--text-muted, #999);
}

/* 文章卡（列表页 / 后续多期共用） */
.fde-featured {
    max-width: 900px;
    margin: 0 auto 28px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fde-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}
.fde-featured a { text-decoration: none; color: inherit; display: block; }
.fde-featured-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1f4437;
}
.fde-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.fde-featured-body { padding: 30px 34px 34px; }

/* 无图文章的纯 CSS 文字封面（零图片排版） */
.fde-featured-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1f4437 0%, #2a5a47 55%, #1a3b30 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 0 7%;
    box-sizing: border-box;
    overflow: hidden;
}
.fde-featured-cover .fde-cover-kicker {
    font-size: 0.78rem;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, 0.6);
}
.fde-featured-cover .fde-cover-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    letter-spacing: .01em;
}
.fde-featured-cover .fde-cover-title em {
    font-style: normal;
    color: #8fd3b4;
}
.fde-featured-cover .fde-cover-sub {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin-top: -2px;
}
.fde-featured-cover .fde-cover-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
}
.fde-featured-cover .fde-cover-chain span {
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    white-space: nowrap;
}
.fde-featured-cover .fde-cover-chain i {
    font-style: normal;
    color: rgba(255, 255, 255, 0.35);
}
.fde-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}
.fde-meta .fde-date { color: var(--text-muted, #999); }
.fde-meta .fde-cat {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(90, 122, 106, 0.1);
    color: var(--accent-color, #5a7a6a);
    border-radius: 20px;
}
.fde-featured-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.45;
    margin: 0 0 14px;
}
.fde-featured-body p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-secondary, #666);
    margin: 0 0 20px;
}
.fde-points {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 8px;
}
.fde-points li {
    font-size: 0.93rem;
    color: var(--text-secondary, #666);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}
.fde-points li::before {
    content: "·";
    position: absolute;
    left: 6px;
    top: -2px;
    font-size: 1.4rem;
    color: var(--accent-color, #5a7a6a);
}
.fde-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color, #5a7a6a);
}

.fde-about {
    max-width: 900px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-color, #e5e0d8);
}
.fde-about h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 16px;
}
.fde-about p {
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--text-secondary, #666);
    margin: 0 0 12px;
}
.fde-about ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 10px;
}
.fde-about li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary, #666);
    padding-left: 22px;
    position: relative;
}
.fde-about li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color, #5a7a6a);
}
.fde-about a { color: var(--accent-color, #5a7a6a); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 900px) {
    .fde-metrics { grid-template-columns: repeat(2, 1fr); }
    .fde-metric:nth-child(3) { border-left: none; }
    .fde-metric:nth-child(n+3) { border-top: 1px solid var(--border-color, #eee9e1); }
}

@media (max-width: 768px) {
    .fde-lead { padding: 16px 18px; font-size: 1rem; }
    .fde-tldr { padding: 20px 18px; }
    .fde-takeaway { padding: 24px 20px; }
    .fde-takeaway li strong { font-size: 1.02rem; }
    table.fde-table { font-size: 0.88rem; }
    table.fde-table thead th,
    table.fde-table tbody th,
    table.fde-table tbody td { padding: 10px 12px; }

    /* 流程条：移动端保持横向滑动，不做换行，避免箭头错位 */
    .fde-flow { gap: 22px; }
    .fde-flow-step { flex: 0 0 124px; min-width: 124px; }

    /* 时间线转为纵向 */
    .fde-timeline {
        grid-template-columns: 1fr;
        border-top: none;
        border-left: 2px solid rgba(90, 122, 106, 0.22);
        padding-left: 18px;
        margin-left: 4px;
    }
    .fde-tl-item { padding: 0 0 18px 0; }
    .fde-tl-item::before { top: 5px; left: -25px; }

    .fde-page { padding: 100px 0 60px; }
    .fde-hero h1 { font-size: 2rem; }
    .fde-hero p { font-size: 1rem; }
    .fde-answer { padding: 24px 20px; }
    .fde-featured-img { aspect-ratio: 16 / 9; }
    .fde-featured-body { padding: 22px 20px 26px; }
    .fde-featured-body h3 { font-size: 1.2rem; }
    .fde-metric b { font-size: 1.45rem; }
}
