/* ============================================================
   四大系统详情页样式（four-systems.php 专用）
   迁移自"四大系统详情 Four Systems"，所有选择器加 .hui-page 作用域，
   复用站点 header/footer，故不含 landing-nav / landing-footer 样式。
   ============================================================ */

.hui-page .fs-wrap { background: var(--hui-cream); }

/* 页面头部 */
.hui-page .fs-header {
    background: linear-gradient(135deg, var(--hui-warm-white) 0%, var(--hui-cream) 100%);
    padding: clamp(120px, 12vw, 160px) 24px 70px;
    text-align: center;
    border-bottom: 1px solid var(--hui-border);
}
.hui-page .fs-header__overline {
    font-family: var(--hui-font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--hui-gold-light);
    margin-bottom: 18px;
}
.hui-page .fs-header__heading {
    font-family: var(--hui-font);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 500;
    color: var(--hui-brown-dark);
    line-height: 1.2;
    margin: 0 auto 22px;
    max-width: 800px;
}
.hui-page .fs-header__divider {
    width: 60px; height: 3px;
    background: var(--hui-gold-light);
    margin: 24px auto;
}
.hui-page .fs-header__lead {
    max-width: 720px; margin: 0 auto;
    font-size: 1.08rem; color: var(--hui-brown-sub); line-height: 1.85;
}

/* 三阶段哲学 */
.hui-page .fs-philosophy { background: var(--hui-cream); padding: 90px 24px; }
.hui-page .fs-philosophy__inner { max-width: 1000px; margin: 0 auto; }
.hui-page .fs-philosophy__overline {
    font-family: var(--hui-font-sans); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--hui-gold-light);
    text-align: center; margin-bottom: 16px;
}
.hui-page .fs-philosophy__heading {
    font-family: var(--hui-font); font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 500; color: var(--hui-brown-dark); text-align: center;
    line-height: 1.3; margin-bottom: 20px;
}
.hui-page .fs-philosophy__divider { width: 60px; height: 3px; background: var(--hui-gold-light); margin: 22px auto 36px; }
.hui-page .fs-philosophy__lead {
    max-width: 720px; margin: 0 auto 48px; text-align: center;
    font-size: 1.05rem; color: var(--hui-brown-sub); line-height: 1.85;
}
.hui-page .fs-philosophy__steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; counter-reset: step-counter;
}
.hui-page .fs-philosophy__step {
    background: var(--hui-warm-white); border-top: 3px solid var(--hui-gold);
    border-radius: 8px; padding: 32px 26px; position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.hui-page .fs-philosophy__step::before {
    counter-increment: step-counter; content: counter(step-counter);
    position: absolute; top: -18px; left: 26px; width: 36px; height: 36px;
    background: var(--hui-gold-light); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--hui-font-sans); font-size: 1rem; font-weight: 700;
}
.hui-page .fs-philosophy__step-name {
    font-family: var(--hui-font); font-size: 1.25rem; font-weight: 600;
    color: var(--hui-brown-dark); margin: 10px 0 4px;
}
.hui-page .fs-philosophy__step-chinese {
    font-family: var(--hui-font-sans); font-size: 0.82rem; color: var(--hui-gold-light);
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.hui-page .fs-philosophy__step-desc {
    font-size: 0.96rem; color: var(--hui-brown-body); line-height: 1.8; margin-bottom: 16px;
}
.hui-page .fs-philosophy__step-system {
    border-top: 1px solid var(--hui-border-light); padding-top: 14px;
    font-family: var(--hui-font-sans); font-size: 0.85rem; color: var(--hui-brown-sub);
}
.hui-page .fs-philosophy__step-system strong { color: var(--hui-brown-dark); font-weight: 600; }

/* 目录导航 */
.hui-page .fs-toc {
    background: var(--hui-warm-white); border-top: 1px solid var(--hui-border);
    border-bottom: 1px solid var(--hui-border); padding: 30px 24px;
}
.hui-page .fs-toc__inner {
    max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap;
    gap: 12px 28px; justify-content: center; align-items: center;
}
.hui-page .fs-toc__label {
    font-family: var(--hui-font-sans); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--hui-gold-light);
}
.hui-page .fs-toc__inner a {
    font-family: var(--hui-font-sans); font-size: 0.92rem; font-weight: 500;
    color: var(--hui-brown-body); padding: 4px 0;
    border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s;
}
.hui-page .fs-toc__inner a:hover {
    text-decoration: none; color: var(--hui-gold-light); border-bottom-color: var(--hui-gold);
}

/* 系统详情区 */
.hui-page .fs-system { padding: 90px 24px; }
.hui-page .fs-system:nth-of-type(even) { background: var(--hui-warm-white); }
.hui-page .fs-system__inner { max-width: 880px; margin: 0 auto; }
.hui-page .fs-system__overline {
    font-family: var(--hui-font-sans); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--hui-gold-light); margin-bottom: 12px;
}
.hui-page .fs-system__name {
    font-family: var(--hui-font); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 500; color: var(--hui-brown-dark); line-height: 1.2; margin-bottom: 6px;
}
.hui-page .fs-system__name-chinese {
    font-family: var(--hui-font-sans); font-size: 1rem; font-weight: 500;
    color: var(--hui-gold-light); letter-spacing: 0.05em; margin-bottom: 24px;
}
.hui-page .fs-system__name-chinese span {
    font-family: var(--hui-font); color: var(--hui-brown-sub); margin-left: 10px; font-size: 1.05em;
}
.hui-page .fs-system__divider { width: 60px; height: 3px; background: var(--hui-gold-light); margin-bottom: 32px; }
.hui-page .fs-system__rare {
    display: inline-block; background: var(--hui-gold-light); color: #fff;
    font-family: var(--hui-font-sans); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.12em; padding: 5px 14px; border-radius: 14px;
    text-transform: uppercase; margin-bottom: 14px;
}
.hui-page .fs-system__body { font-size: 1.05rem; line-height: 1.95; color: var(--hui-brown-body); }
.hui-page .fs-system__body p { margin-bottom: 20px; color: var(--hui-brown-body); }
.hui-page .fs-system__body p:last-child { margin-bottom: 0; }
.hui-page .fs-system__body em { color: var(--hui-gold-light); font-style: italic; }
.hui-page .fs-system__body strong { color: var(--hui-brown-dark); font-weight: 600; }
.hui-page .fs-system__subheading {
    font-family: var(--hui-font); font-size: 1.25rem; font-weight: 600;
    color: var(--hui-brown-dark); margin: 32px 0 14px;
}
.hui-page .fs-system__list { list-style: none; margin-bottom: 8px; }
.hui-page .fs-system__list li {
    position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--hui-brown-body);
}
.hui-page .fs-system__list li::before {
    content: "\25C6"; color: var(--hui-gold-light); font-size: 0.7em;
    position: absolute; left: 0; top: 0.55em;
}
.hui-page .fs-system__suited {
    background: #fff; border-left: 3px solid var(--hui-gold); border-radius: 4px;
    padding: 22px 26px; margin: 28px 0;
}
.hui-page .fs-system__suited p { margin: 0; color: var(--hui-brown-body); }
.hui-page .fs-system__suited strong {
    color: var(--hui-brown-dark); display: block; margin-bottom: 6px;
    font-family: var(--hui-font-sans); font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.hui-page .fs-system__back { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hui-border); }
.hui-page .fs-system__back a {
    font-family: var(--hui-font-sans); font-size: 0.92rem; font-weight: 600;
    color: var(--hui-gold-light); letter-spacing: 0.04em;
    border-bottom: 1.5px solid var(--hui-gold); padding-bottom: 3px; transition: color 0.3s;
}
.hui-page .fs-system__back a:hover { color: var(--hui-brown-dark); text-decoration: none; }

/* 共同底层符号区 */
.hui-page .fs-foundation { background: var(--hui-cream); padding: 100px 24px; border-top: 1px solid var(--hui-border); }
.hui-page .fs-foundation__inner { max-width: 980px; margin: 0 auto; }
.hui-page .fs-foundation__overline {
    font-family: var(--hui-font-sans); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--hui-gold-light);
    text-align: center; margin-bottom: 16px;
}
.hui-page .fs-foundation__heading {
    font-family: var(--hui-font); font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 500; color: var(--hui-brown-dark); text-align: center; line-height: 1.3; margin-bottom: 22px;
}
.hui-page .fs-foundation__divider { width: 60px; height: 3px; background: var(--hui-gold-light); margin: 22px auto 36px; }
.hui-page .fs-foundation__lead {
    max-width: 760px; margin: 0 auto 48px; text-align: center;
    font-size: 1.05rem; color: var(--hui-brown-sub); line-height: 1.85;
}
.hui-page .fs-foundation__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px; margin-bottom: 40px;
}
.hui-page .fs-foundation__card {
    background: #fff; border: 1px solid var(--hui-border); border-radius: 8px;
    padding: 24px 22px; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.hui-page .fs-foundation__card-symbol {
    font-family: var(--hui-font); font-size: 1.6rem; color: var(--hui-gold-light);
    margin-bottom: 10px; letter-spacing: 0.06em;
}
.hui-page .fs-foundation__card-name {
    font-family: var(--hui-font-sans); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--hui-brown-dark); margin-bottom: 8px;
}
.hui-page .fs-foundation__card-desc { font-size: 0.9rem; color: var(--hui-brown-sub); line-height: 1.65; }
.hui-page .fs-foundation__pull {
    background: var(--hui-warm-white); border-left: 3px solid var(--hui-gold); border-radius: 4px;
    padding: 26px 30px; max-width: 800px; margin: 0 auto;
    font-size: 1.05rem; line-height: 1.85; color: var(--hui-brown-body);
}
.hui-page .fs-foundation__pull strong { color: var(--hui-brown-dark); font-weight: 600; }

/* 综合区 */
.hui-page .fs-combine { background: linear-gradient(135deg, var(--hui-warm-white) 0%, #dceae7 100%); padding: 100px 24px; }
.hui-page .fs-combine__inner { max-width: 1000px; margin: 0 auto; }
.hui-page .fs-combine__heading {
    font-family: var(--hui-font); font-size: clamp(1.8rem, 3.3vw, 2.4rem);
    font-weight: 500; color: var(--hui-brown-dark); text-align: center; margin-bottom: 22px; line-height: 1.25;
}
.hui-page .fs-combine__divider { width: 60px; height: 3px; background: var(--hui-gold-light); margin: 24px auto 40px; }
.hui-page .fs-combine__lead {
    max-width: 740px; margin: 0 auto 48px; text-align: center;
    font-size: 1.05rem; color: var(--hui-brown-sub); line-height: 1.85;
}
.hui-page .fs-combine__matrix-title {
    font-family: var(--hui-font-sans); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--hui-gold-light);
    text-align: center; margin-bottom: 22px;
}
.hui-page .fs-combine__matrix,
.hui-page .fs-combine__precision {
    background: #fff; border: 1px solid var(--hui-border); border-radius: 8px;
    overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04); margin-bottom: 50px;
}
.hui-page .fs-combine__precision-row {
    display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1fr; border-bottom: 1px solid var(--hui-border);
}
.hui-page .fs-combine__precision-row:last-child { border-bottom: none; }
.hui-page .fs-combine__precision-row--head { background: var(--hui-warm-white); }
.hui-page .fs-combine__precision-row--head > div {
    font-family: var(--hui-font-sans); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--hui-gold-light); padding: 14px 18px;
}
.hui-page .fs-combine__precision-row > div {
    padding: 18px; font-size: 0.94rem; line-height: 1.65; color: var(--hui-brown-body);
    border-right: 1px solid var(--hui-border);
}
.hui-page .fs-combine__precision-row > div:last-child { border-right: none; }
.hui-page .fs-combine__precision-row strong { color: var(--hui-brown-dark); font-weight: 600; }
.hui-page .fs-combine__matrix-row {
    display: grid; grid-template-columns: 1.2fr 1fr 2.2fr; border-bottom: 1px solid var(--hui-border);
}
.hui-page .fs-combine__matrix-row:last-child { border-bottom: none; }
.hui-page .fs-combine__matrix-row--head { background: var(--hui-warm-white); }
.hui-page .fs-combine__matrix-row--head > div {
    font-family: var(--hui-font-sans); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--hui-gold-light); padding: 16px 22px;
}
.hui-page .fs-combine__matrix-row > div {
    padding: 22px; font-size: 0.98rem; line-height: 1.7; color: var(--hui-brown-body);
    border-right: 1px solid var(--hui-border);
}
.hui-page .fs-combine__matrix-row > div:last-child { border-right: none; }
.hui-page .fs-combine__matrix-row strong { color: var(--hui-brown-dark); font-weight: 600; }
.hui-page .fs-combine__scenarios { margin-bottom: 60px; }
.hui-page .fs-combine__scenarios-title {
    font-family: var(--hui-font-sans); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--hui-gold-light);
    text-align: center; margin-bottom: 28px;
}
.hui-page .fs-combine__scenario {
    background: #fff; border: 1px solid var(--hui-border); border-radius: 8px;
    padding: 30px 32px; margin-bottom: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.hui-page .fs-combine__scenario:last-child { margin-bottom: 0; }
.hui-page .fs-combine__scenario-head {
    display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.hui-page .fs-combine__scenario-num {
    font-family: var(--hui-font-sans); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; color: var(--hui-gold-light); background: var(--hui-warm-white);
    padding: 4px 12px; border-radius: 14px;
}
.hui-page .fs-combine__scenario-name {
    font-family: var(--hui-font); font-size: 1.2rem; font-weight: 600; color: var(--hui-brown-dark); flex: 1;
}
.hui-page .fs-combine__scenario-examples {
    font-family: var(--hui-font-sans); font-size: 0.82rem; color: var(--hui-brown-sub); font-style: italic;
}
.hui-page .fs-combine__scenario-steps { list-style: none; margin: 0 0 18px; }
.hui-page .fs-combine__scenario-steps li {
    position: relative; padding-left: 28px; margin-bottom: 12px;
    font-size: 0.96rem; line-height: 1.7; color: var(--hui-brown-body);
}
.hui-page .fs-combine__scenario-steps li::before {
    content: attr(data-step); position: absolute; left: 0; top: 0.05em;
    color: var(--hui-gold-light); font-family: var(--hui-font-sans); font-size: 0.82rem; font-weight: 700;
}
.hui-page .fs-combine__scenario-steps strong { color: var(--hui-brown-dark); font-weight: 600; }
.hui-page .fs-combine__scenario-steps em { color: var(--hui-gold-light); font-style: italic; }
.hui-page .fs-combine__scenario-takeaway {
    background: var(--hui-warm-white); border-left: 3px solid var(--hui-gold); border-radius: 4px;
    padding: 14px 18px; font-size: 0.92rem; font-style: italic; color: var(--hui-brown-sub); line-height: 1.7;
}
.hui-page .fs-combine__scenario-takeaway strong { color: var(--hui-brown-dark); font-style: normal; font-weight: 600; }
.hui-page .fs-combine__cta { text-align: center; }
.hui-page .fs-combine__cta-heading {
    font-family: var(--hui-font); font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    color: var(--hui-brown-dark); font-weight: 500; margin: 0 auto 16px; max-width: 700px; line-height: 1.35;
}
.hui-page .fs-combine__cta-sub { color: var(--hui-brown-sub); margin: 0 auto 32px; max-width: 600px; }
.hui-page a.fs-combine__cta-btn {
    display: inline-block; background: var(--hui-gold); color: #fff;
    padding: 15px 40px; border-radius: 30px; border: 2px solid var(--hui-gold);
    font-family: var(--hui-font-sans); font-size: 0.92rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
    transition: all 0.3s; box-shadow: 0 6px 20px rgba(21, 84, 90, 0.3);
}
.hui-page a.fs-combine__cta-btn:hover {
    background: var(--hui-gold-dark); border-color: var(--hui-gold-light);
    transform: translateY(-2px); text-decoration: none; color: #fff;
}

/* 响应式：表格卡片化（手机端每个数据格自带列标签，每行一张卡片）*/
@media (max-width: 720px) {
    /* 隐藏原表头行 */
    .hui-page .fs-combine__precision-row--head,
    .hui-page .fs-combine__matrix-row--head { display: none; }

    /* 容器去外框，由每张卡片自带框 */
    .hui-page .fs-combine__precision,
    .hui-page .fs-combine__matrix {
        background: transparent; border: none; box-shadow: none; overflow: visible;
    }

    /* 每个数据行变成一张独立卡片 */
    .hui-page .fs-combine__precision-row,
    .hui-page .fs-combine__matrix-row {
        display: block;
        border: 1px solid var(--hui-border);
        border-radius: 8px;
        margin: 0 0 14px;
        background: #fff;
        overflow: hidden;
    }

    /* 单元格上下排，去掉右边框，改下分隔线 */
    .hui-page .fs-combine__precision-row > div,
    .hui-page .fs-combine__matrix-row > div {
        display: block;
        padding: 12px 18px;
        border-right: none;
        border-bottom: 1px solid var(--hui-border);
    }
    .hui-page .fs-combine__precision-row > div:last-child,
    .hui-page .fs-combine__matrix-row > div:last-child { border-bottom: none; }

    /* 首格（系统名 / 决策层）作为卡片标题，奶白底强调 */
    .hui-page .fs-combine__precision-row > div:first-child,
    .hui-page .fs-combine__matrix-row > div:first-child {
        background: var(--hui-warm-white);
        font-size: 1.05rem;
    }
    .hui-page .fs-combine__precision-row > div:first-child strong,
    .hui-page .fs-combine__matrix-row > div:first-child strong {
        font-family: var(--hui-font); font-size: 1.1rem;
    }

    /* 用 data-label 在每个非首格前加列名 */
    .hui-page .fs-combine__precision-row > div:not(:first-child)::before,
    .hui-page .fs-combine__matrix-row > div:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-family: var(--hui-font-sans);
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--hui-gold-light);
        margin-bottom: 4px;
    }
}
@media (max-width: 768px) {
    .hui-page .fs-header { padding: 100px 20px 50px; }
    .hui-page .fs-system { padding: 70px 20px; }
    .hui-page .fs-combine { padding: 70px 20px; }
    .hui-page .fs-toc__inner { gap: 10px 18px; }
}
