/* ======================================================================
 * 21 · 手机壳尺寸怎么选 —— 「机型量尺台」
 * 视觉：薄荷纸面 + 刻度尺边 + 珊瑚橙标注；左重右轻的非对称量尺板；
 *       方角卡片带测量角标，数字全部等宽；与其余 9 页不共用配色与构图。
 * ====================================================================== */

.dg3.pcs {
    --bg: #f2f7f5;
    --bg2: #e5efeb;
    --card: #ffffff;
    --card2: #f3f8f6;
    --ink: #142a26;
    --ink2: #37544e;
    --muted: #6b8881;
    --line: #c9ded7;
    --line2: #e0ede8;
    --accent: #0d7c6c;
    --accent-ink: #ffffff;
    --accent-soft: #d8efe9;
    --accent2: #e26a3d;
    --accent2-soft: #fbe8de;
    --ok: #147a54;
    --ok-bg: #def2e8;
    --warn: #9a5c10;
    --warn-bg: #fbf0da;
    --bad: #b3382e;
    --bad-bg: #fbe7e4;
    --shadow: 0 3px 16px rgba(20, 58, 50, .08);
    --radius: 4px;
    --radius-sm: 3px;
    --font-head: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    --head-weight: 800;
    --tracking: -.01em;
    --pcs-ink: #142a26;
    --pcs-line: #9dbdb3;
    --pcs-accent: #0d7c6c;
    --pcs-accent2: #e26a3d;
    --pcs-phone-a: #eef7f3;
    --pcs-phone-b: #d3e9e1;

    background:
        radial-gradient(circle at 1px 1px, rgba(13, 124, 108, .09) 1px, transparent 0) 0 0 / 22px 22px,
        var(--bg);
    border-top: 4px solid var(--accent);
}
:root[data-theme="dark"] .dg3.pcs {
    --bg: #101d1a;
    --bg2: #162722;
    --card: #172722;
    --card2: #1e312b;
    --ink: #e0f0ea;
    --ink2: #b3cec5;
    --muted: #7fa096;
    --line: #2f4941;
    --line2: #243a33;
    --accent: #4fc3a8;
    --accent-ink: #08231d;
    --accent-soft: #1d3c33;
    --accent2: #f09562;
    --accent2-soft: #3c2719;
    --ok: #5cbd8d;
    --ok-bg: #1b3428;
    --warn: #d9ab58;
    --warn-bg: #352a17;
    --bad: #e08074;
    --bad-bg: #3a2220;
    --shadow: 0 3px 18px rgba(0, 0, 0, .4);
    --pcs-ink: #e0f0ea;
    --pcs-line: #3f6257;
    --pcs-accent: #4fc3a8;
    --pcs-accent2: #f09562;
    --pcs-phone-a: #1b2e28;
    --pcs-phone-b: #264038;
    background:
        radial-gradient(circle at 1px 1px, rgba(79, 195, 168, .10) 1px, transparent 0) 0 0 / 22px 22px,
        var(--bg);
}

/* ---------- 首屏：左侧表单即入口，右侧量尺板 ---------- */
.pcs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.52fr) minmax(250px, .88fr);
    gap: 0;
    margin: 22px 0 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}
.pcs-hero::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
    opacity: .55;
}
.pcs-hero-main { padding: 26px 26px 24px; min-width: 0; }
.pcs-hero-side {
    background: var(--card2);
    border-left: 1px dashed var(--line);
    padding: 20px 16px 18px;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}
.pcs-ruler-top {
    width: 100%; height: 12px; margin-bottom: 8px;
    background: repeating-linear-gradient(90deg, var(--pcs-line) 0 1px, transparent 1px 10px);
    border-bottom: 1px solid var(--pcs-line);
    opacity: .7;
}
.pcs-phone { width: 100%; max-width: 210px; height: auto; }
.pcs-svg-t { font: 600 10px var(--font-mono); fill: var(--pcs-accent2); letter-spacing: .06em; }
.pcs-svg-s { font: 500 8px var(--font-mono); fill: var(--pcs-accent); }
.pcs-side-note {
    margin-top: 6px; font-size: 12.5px; line-height: 1.75; color: var(--muted);
    border-top: 1px solid var(--line); padding-top: 10px; width: 100%;
}
.pcs-side-note b { color: var(--ink2); display: block; margin-bottom: 4px; }
.pcs-side-note p { margin: 0; }

.pcs-kicker {
    font: 700 11px var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent2); margin: 0 0 8px;
}
.pcs-hero h1 { font-size: clamp(28px, 3.5vw, 39px); margin-bottom: 10px; }
.pcs-lede { font-size: 14.5px; line-height: 1.85; color: var(--ink2); margin: 0 0 10px; max-width: 62em; }
.pcs-lede b { color: var(--accent); border-bottom: 2px solid var(--accent-soft); }
:root[data-theme="dark"] .pcs-lede b { color: var(--accent2); border-bottom-color: var(--accent2-soft); }
.pcs-hero-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.pcs-hero-meta span {
    font: 600 11.5px var(--font-mono); color: var(--accent);
    background: var(--accent-soft); padding: 3px 9px; border-radius: 99px;
}
.pcs-hero .pcs-form {
    border-top: 1px solid var(--line2); padding-top: 17px;
}
.pcs-hero .dg3-grid--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcs-hero .dg3-field > label { font-size: 12.5px; letter-spacing: .01em; }
.pcs-hero .dg3-field .tip { display: block; font-size: 11.5px; line-height: 1.35; margin-top: -2px; }
.pcs-hero-main { position: relative; }
.pcs-hero-main::before {
    content: ""; position: absolute; left: 0; top: 26px; bottom: 24px; width: 6px;
    background: repeating-linear-gradient(180deg, var(--pcs-line) 0 1px, transparent 1px 9px);
    opacity: .55;
}

.pcs-needs { border: 0; padding: 0; margin: 15px 0 0; }
.pcs-needs legend {
    font-size: 13px; font-weight: 700; color: var(--ink2); padding: 0; margin-bottom: 8px;
}
.pcs-needs legend .tip { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.pcs-need-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
.pcs .pcs-need-grid .checkline {
    background: var(--card2); border: 1px solid var(--line2);
    padding: 6px 9px; border-radius: var(--radius-sm); font-size: 13px;
}
.pcs .pcs-need-grid input { margin-top: 2px; }
.pcs .dg3-btn--main { border-radius: 3px; font-weight: 700; }
.pcs input:focus, .pcs select:focus, .pcs textarea:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- 结果卡：测量报告式 ---------- */
.pcs .dg3-kv > div { border-left: 3px solid var(--accent2); }
.pcs .dg3-kv dd { color: var(--accent2); }
.pcs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.pcs-card {
    position: relative; background: var(--card2); border: 1px solid var(--line);
    border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 13px 14px 14px;
}
.pcs-card::after {
    content: ""; position: absolute; top: -1px; right: -1px;
    width: 12px; height: 12px;
    background: linear-gradient(135deg, transparent 50%, var(--accent2) 50%);
}
.pcs-card.is-best { border-top-color: var(--accent2); background: var(--accent2-soft); }
.pcs-card h4 { font-size: 15px; margin-bottom: 3px; }
.pcs-card .score { font: 800 24px var(--font-mono); color: var(--accent); line-height: 1.2; }
.pcs-card.is-best .score { color: var(--accent2); }
.pcs-card .score small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pcs-card p { font-size: 12.8px; line-height: 1.7; color: var(--ink2); margin: 7px 0 0; }
.pcs-card .dg3-bar { margin-top: 9px; height: 5px; }
.pcs .dg3-table th { background: var(--accent-soft); color: var(--accent); }
:root[data-theme="dark"] .pcs .dg3-table th { color: var(--accent2); }
.pcs-pitfalls { margin: 10px 0 0; padding-left: 22px; }
.pcs-pitfalls li { font-size: 13.8px; line-height: 1.8; color: var(--ink2); margin-bottom: 8px; }
.pcs-pitfalls li b { color: var(--accent2); }
.pcs #pcsEscape { margin-top: 12px; }
.pcs .pcs-batch-ok { color: var(--ok); font-weight: 700; }
.pcs .pcs-batch-bad { color: var(--bad); font-weight: 700; }

@media (max-width: 980px) {
    .pcs-hero { grid-template-columns: minmax(0, 1fr); }
    .pcs-hero-side { border-left: 0; border-top: 1px dashed var(--line); flex-direction: row; flex-wrap: wrap; gap: 14px; justify-content: center; }
    .pcs-phone { max-width: 160px; }
    .pcs-side-note { width: auto; max-width: 320px; border-top: 0; padding-top: 0; }
    .pcs-ruler-top { display: none; }
}
@media (max-width: 700px) {
    .pcs-hero-main { padding: 20px 15px; }
    .pcs-hero .dg3-grid--2, .pcs-need-grid, .pcs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
    .pcs-hero .dg3-grid--2, .pcs-need-grid, .pcs-cards { grid-template-columns: minmax(0, 1fr); }
}
