/* ============================================================
   SinoDestiny — visual system
   Deep ink blue + bronze gold · five-element accents
   ============================================================ */
:root {
  --bg: #0b1020;
  --bg-2: #111a33;
  --panel: #141d38;
  --line: #26325c;
  --gold: #c9a227;
  --gold-light: #e6c76a;
  --text: #e9e7de;
  --muted: #98a2bd;
  --wood: #4f9d69;
  --fire: #d24a43;
  --earth: #c98a2d;
  --metal: #d9d9d9;
  --water: #4a7fb5;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Courier New", monospace;
  --grid: #1b2748;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* technical grid, fading out downward */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 72%);
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 680px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11,16,32,.9); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.brand-name { font-weight: 600; letter-spacing: .12em; font-size: 15px; text-transform: uppercase; }
nav a { color: var(--muted); text-decoration: none; margin-left: 24px; font-size: 14px; }
nav a:hover { color: var(--gold-light); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; font-weight: 600; }
h1 em { font-style: normal; color: var(--gold-light); }
.lede { color: var(--muted); font-size: 17px; margin: 18px 0 26px; max-width: 46ch; }
.lede-wide { max-width: 78ch; margin: -6px 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero-art svg { width: 100%; max-width: 340px; display: block; margin: 0 auto; }
.wuxing-ring g { animation: spin 60s linear infinite; transform-origin: 160px 160px; }
.scan-ring { transform-origin: 160px 160px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 600; cursor: pointer; border: none; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #a8841b); color: #0b1020; box-shadow: 0 4px 18px rgba(201,162,39,.25); }
.btn-ghost { background: transparent; color: var(--gold-light); border: 1px solid var(--line); }
.btn-wide { width: 100%; }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-disabled { background: var(--bg-2); color: var(--muted); cursor: default; }
.backlink { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 14px; text-decoration: none; }
.backlink-top { margin: 0 0 10px; }
.backlink:hover { color: var(--gold-light); }

/* Instrument typography + system strip */
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sys-strip { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 42px; }
.sys-item { flex: 1 1 180px; padding: 13px 20px 14px; border-right: 1px solid var(--line); }
.sys-item:last-child { border-right: none; }
.sys-item em { font-style: normal; display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #6d7a99; margin-bottom: 5px; }
.sys-item b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; color: var(--text); text-transform: uppercase; }
.sys-item b i { font-style: normal; color: var(--gold); }

/* Engine pipeline */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.pipe-card { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: linear-gradient(180deg, #131c36 0%, #101830 100%); }
.pipe-step { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.pipe-card h3 { font-size: 16px; margin: 12px 0 8px; }
.pipe-card p { color: var(--muted); font-size: 13.5px; }
.pipe-card::after {
  content: ""; position: absolute; right: -16px; top: 50%; width: 16px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.pipeline .pipe-card:last-child::after { display: none; }

/* Terminal */
.terminal { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0c1326; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.term-bar { display: flex; justify-content: space-between; padding: 9px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #6d7a99; background: #0f1730; }
.term-body { padding: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.95; color: #c3cde3; white-space: pre-wrap; overflow-x: auto; }
.term-body .ok { color: #6fbf8b; }
.term-body .key { color: var(--gold-light); }
.term-body .dim { color: #566187; }
.term-body .arrow { color: var(--gold); }

/* chart meta line */
.chart-meta { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #6d7a99; margin: 4px 0 18px; }
.chart-meta i { font-style: normal; color: var(--gold); }

/* Sections */
.section { padding: 48px 0; }
.section-title { font-size: 26px; margin-bottom: 28px; font-weight: 600; }
.page-title { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; font-weight: 600; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card, .product-card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.step-card h3 { font-size: 16px; margin: 10px 0 6px; }
.step-card p { color: var(--muted); font-size: 14px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font-size: 13px; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.product-card { display: flex; flex-direction: column; position: relative; }
.product-card.featured { border-color: var(--gold); box-shadow: 0 0 30px rgba(201,162,39,.12); }
.product-card .tag { position: absolute; top: -11px; left: 24px; background: var(--gold); color: #0b1020; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 10px; letter-spacing: .06em; }
.product-card h3 { font-size: 17px; }
.price { font-size: 30px; font-weight: 700; color: var(--gold-light); margin: 10px 0 14px; }
.price.free { color: var(--text); }
.price .soon { font-size: 12px; color: var(--muted); font-weight: 400; }
.product-card ul { list-style: none; margin-bottom: 20px; flex: 1; }
.product-card li { padding: 5px 0; color: var(--muted); font-size: 14px; border-bottom: 1px dashed var(--line); }
.product-card li:last-child { border-bottom: none; }
.muted-card { opacity: .65; }

/* Form */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.field label .optional { color: var(--muted); font-size: 12px; }
.field input { width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 15px; }
.field input:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: auto; }
.form-error { color: #e07b7b; font-size: 14px; margin-bottom: 14px; }
#birth-form .btn { margin-top: 6px; }

/* Pillars chart */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.pillar-col { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 12px; text-align: center; }
.pillar-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pillar-gan { font-size: 44px; font-weight: 700; margin: 12px 0 2px; font-family: "Songti SC", "SimSun", serif; }
.pillar-zhi { font-size: 44px; font-weight: 700; margin: 6px 0 2px; font-family: "Songti SC", "SimSun", serif; }
.pillar-sub { font-size: 12px; color: var(--muted); }
.pillar-hidden { font-size: 11px; color: var(--muted); margin-top: 8px; }
.pillar-nayin { font-size: 11px; color: var(--gold); margin-top: 6px; }

/* Preview */
.preview-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; margin-bottom: 18px; }
.panel h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.panel p { color: var(--muted); font-size: 15px; }
.daymaster { display: flex; align-items: center; gap: 16px; }
.dm-char { width: 84px; height: 84px; border-radius: 12px; display: grid; place-items: center; font-size: 44px; font-weight: 700; font-family: "Songti SC", "SimSun", serif; flex-shrink: 0; }
.dm-info strong { font-size: 18px; display: block; }
.dm-info span { color: var(--muted); font-size: 14px; }
.el-row { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.el-name { color: var(--text); }
.el-name .cn { margin-right: 6px; font-family: "Songti SC", "SimSun", serif; }
.el-bar { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.el-bar i { display: block; height: 100%; border-radius: 5px; }
.el-pct { color: var(--muted); text-align: right; font-family: var(--mono); font-size: 11.5px; }

/* Locked — real Da Yun timeline, legible as shapes but not as text */
.locked-wrap { margin: 34px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.02); }
.traj-preview { padding: 22px 24px 0; pointer-events: none; user-select: none; }
.traj-preview .traj { filter: blur(2.2px); opacity: .8;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.traj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.traj-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.traj-hint { font-size: 11px; color: var(--muted); opacity: .7; font-style: italic; }
.traj { display: flex; gap: 7px; }
.traj-chip { flex: 1 1 0; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px 4px 10px; text-align: center; }
.traj-chip b { display: block; font-size: 15px; letter-spacing: .08em; font-weight: 500; }
.traj-chip span { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; font-family: var(--mono); }
.traj-chip.now { border-color: var(--gold); background: rgba(201,162,39,.08); }
.locked-cta { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 24px 30px; }
.locked-now { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.locked-now i { font-style: normal; letter-spacing: .18em; font-size: 15px; }
.locked-cta h2 { font-size: 24px; margin-bottom: 10px; }
.locked-cta p { color: var(--muted); max-width: 52ch; margin-bottom: 20px; font-size: 15px; }
.locked-cta p.locked-now { margin-bottom: 12px; }
.locked-sub { font-size: 12px; color: var(--muted); margin: 14px 0 0 !important; }
.fineprint { color: var(--muted); font-size: 12px; margin: 20px 0 40px; }

/* Checkout */
.order-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.order-line.total { font-weight: 700; font-size: 17px; border-bottom: none; }
.demo-note { background: rgba(201,162,39,.08); border: 1px solid var(--gold); border-radius: 8px; padding: 14px 16px; font-size: 13px; color: var(--gold-light); margin: 16px 0; }
.fine { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* Delivery email preview (order success) */
.email-preview { margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #10152a; }
.mail-head { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #0d1224; }
.mail-row { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); padding: 3px 0; }
.mail-row span { width: 58px; flex: none; text-transform: uppercase; letter-spacing: .07em; font-size: 10px; padding-top: 3px; }
.mail-row b { color: var(--text); font-weight: 600; }
.mail-body { padding: 18px; font-size: 14px; color: #cfd4e3; line-height: 1.7; }
.mail-body a { color: var(--gold-light); word-break: break-all; }
.mail-tag { font-family: var(--mono, ui-monospace, SFMono-Regular, monospace); font-size: 10px; letter-spacing: .14em; color: var(--muted); padding: 10px 18px; border-top: 1px dashed var(--line); }
.mail-tag.is-sent { color: #4fbf7a; }
.mail-err { font-size: 11.5px; color: #e08b84; padding: 0 18px 12px; font-family: var(--mono, ui-monospace, monospace); }

/* Report */
.report-doc { background: #f7f4ec; color: #23283a; border-radius: 12px; padding: 48px 44px; margin: 34px auto; }
.view:not(#view-home) { padding-top: 40px; }
.report-head { border-bottom: 2px solid var(--gold); padding-bottom: 22px; margin-bottom: 28px; }
.report-logo { width: 268px; height: auto; display: block; margin-bottom: 22px; }
.report-head .eyebrow { color: #a8841b; }
.report-head h1 { color: #1a2033; font-size: 32px; }
.report-meta { color: #6a7186; font-size: 14px; margin-top: 8px; }
.report-sec { margin-bottom: 26px; }
.report-sec h2 { font-size: 19px; color: #1a2033; margin-bottom: 8px; padding-left: 12px; border-left: 3px solid var(--gold); }
.report-sec p { font-size: 15px; color: #3c4257; }
.report-foot { border-top: 1px solid #d8d2c0; padding-top: 16px; margin-top: 30px; }

/* --- At-a-glance summary strip --- */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #d8d2c0; border: 1px solid #d8d2c0; border-radius: 3px; margin: 0 0 26px; overflow: hidden; }
.glance-cell { background: #fffdf7; padding: 12px 12px 11px; display: flex; flex-direction: column; gap: 5px; }
.glance-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #a8841b; }
.glance-main { font-size: 19px; color: #1a2033; line-height: 1.15; }
.glance-lat { font-size: 11px; color: #6a7186; }
.glance-sub { font-size: 11px; color: #6a7186; }
@media (max-width: 560px) { .glance { grid-template-columns: repeat(2, 1fr); } }

/* --- Five Elements bars (report doc, light parchment) --- */
/* Scoped to .el-bars: the free-preview page reuses .el-row / .el-name / .el-pct
   with a different layout, and an unscoped rule here silently emptied its bars. */
.el-bars { margin: 6px 0 14px; }
.el-bars .el-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.el-bars .el-cn { font-size: 17px; width: 24px; color: #23283a; text-align: center; }
.el-bars .el-name { font-size: 12.5px; width: 56px; color: #3c4257; letter-spacing: .02em; }
.el-track { flex: 1; height: 14px; background: #e9e4d4; border: 1px solid #d8d2c0; border-radius: 2px; overflow: hidden; }
.el-fill { display: block; height: 100%; opacity: .88; }
.el-bars .el-pct { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; width: 40px; text-align: right; color: #23283a; }
.el-tag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8.5px; letter-spacing: .12em; padding: 2px 6px; border: 1px solid #a8841b; color: #a8841b; border-radius: 2px; white-space: nowrap; }
.el-tag-thin { border-color: #7d8496; color: #7d8496; }
.el-note { font-size: 12.5px !important; color: #6a7186 !important; margin-top: 10px; }

/* Five Elements ring */
.el-ring { max-width: 330px; margin: 6px auto 4px; }
.el-ring-cap { font-size: 11.5px !important; color: #6a7186 !important; text-align: center; line-height: 1.6; margin-top: 2px; }
@media print { .el-ring { max-width: 260px; break-inside: avoid; } }

/* --- Luck Cycles timeline --- */
.cycles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr); gap: 6px; margin: 6px 0 16px; overflow-x: auto; padding-bottom: 2px; }
.cycle-seg { border: 1px solid #d8d2c0; border-radius: 3px; padding: 9px 4px 7px; text-align: center; background: #fffdf7; display: flex; flex-direction: column; gap: 4px; position: relative; }
.cycle-past { opacity: .55; }
.cycle-now { border-color: #a8841b; border-width: 2px; background: #fdf8ea; }
.cycle-gz { font-size: 19px; color: #23283a; line-height: 1; }
.cycle-bar { display: block; height: 4px; border-radius: 2px; opacity: .85; margin: 0 auto; width: 60%; }
.cycle-ages { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: #3c4257; }
.cycle-years { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px; color: #6a7186; }
.cycle-flag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; letter-spacing: .14em; color: #a8841b; }

/* --- print: keep visual colours in PDF --- */
@media print {
  .el-fill, .cycle-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .el-track { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cycle-now, .cycle-past, .el-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .name-card, .tg-grid, .fy-list, .report-pillars { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.report-foot p { font-size: 12px; color: #8a8f9f; }
.report-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 50px; }

/* Methodology */
.panel ul { margin: 14px 0 14px 20px; }
.panel li { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

/* --- Report: four-pillar table (light parchment edition) --- */
.report-pillars { margin: 10px 0 8px; }
.report-pillars .pillar-col { background: #fffdf7; border-color: #d8d2c0; padding: 14px 8px; }
.report-pillars .pillar-gan, .report-pillars .pillar-zhi { font-size: 36px; color: #1a2033; }
.report-pillars .pillar-label { color: #a8841b; font-size: 10px; }
.report-pillars .pillar-sub { color: #6a7186; }
.report-pillars .pillar-hidden { color: #6a7186; letter-spacing: .2em; font-size: 13px; }
.report-pillars .ph-gan { display: inline-block; margin: 0 2px; opacity: .75; }
.report-pillars .ph-main { opacity: 1; font-weight: 700; color: #a8841b; }
.report-pillars .pillar-nayin { color: #a8841b; }
.pillars-note { font-size: 11.5px !important; color: #6a7186 !important; margin-top: 4px; }

/* --- Report: Ten Gods grid --- */
.tg-grid { margin: 8px 0 12px; border: 1px solid #d8d2c0; border-radius: 3px; overflow: hidden; }
.tg-row { display: grid; grid-template-columns: 64px 46px 1.2fr 1.8fr; gap: 10px; align-items: center; padding: 9px 12px; background: #fffdf7; border-bottom: 1px solid #ece6d4; }
.tg-row:last-child { border-bottom: none; }
.tg-pos { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #a8841b; }
.tg-chars { font-family: "Songti SC", "SimSun", serif; font-size: 20px; color: #1a2033; white-space: nowrap; }
.tg-name { line-height: 1.3; }
.tg-name b { display: block; font-size: 12.5px; color: #23283a; font-weight: 600; }
.tg-name i { font-style: normal; font-size: 10.5px; color: #a8841b; font-family: "Songti SC", "SimSun", serif; }
.tg-domain { font-size: 11.5px; color: #6a7186; line-height: 1.45; }
.tg-domain em { display: block; font-style: italic; color: #8a8f9f; font-size: 10px; margin-top: 2px; }
@media (max-width: 560px) { .tg-row { grid-template-columns: 52px 40px 1fr; } .tg-domain { display: none; } }

/* --- Report: flow-year calendar --- */
.fy-list { margin: 8px 0 12px; border: 1px solid #d8d2c0; border-radius: 3px; overflow: hidden; }
.fy-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fffdf7; border-bottom: 1px solid #ece6d4; flex-wrap: wrap; }
.fy-row:last-child { border-bottom: none; }
.fy-year { font-family: "Songti SC", "SimSun", serif; font-size: 21px; color: #1a2033; min-width: 52px; }
.fy-meta { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: #6a7186; min-width: 92px; }
.fy-god { font-size: 13px; color: #3c4257; font-weight: 600; flex: 1; }
.fy-tag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8.5px; letter-spacing: .12em; padding: 2px 7px; border-radius: 2px; }
.fy-clash { border: 1px solid #b0432f; color: #b0432f; }
.fy-combine { border: 1px solid #4f9d69; color: #4f9d69; }
.fy-same { border: 1px solid #a8841b; color: #a8841b; }

/* --- Report: Chinese name card --- */
.name-card { margin: 10px 0 14px; }
.nc-frame { position: relative; border: 2px solid #1a2033; outline: 1px solid #d8d2c0; outline-offset: 4px; border-radius: 4px; background: #fffdf7; text-align: center; padding: 26px 18px 22px; }
.nc-eyebrow { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .22em; color: #a8841b; margin-bottom: 14px; }
.nc-chars { font-family: "Songti SC", "SimSun", serif; font-size: 56px; color: #1a2033; letter-spacing: .18em; line-height: 1.15; }
.nc-pinyin { font-size: 15px; color: #3c4257; margin-top: 10px; letter-spacing: .06em; }
.nc-seal { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; background: #b0432f; color: #fffdf7; font-family: "Songti SC", "SimSun", serif; font-size: 20px; display: grid; place-items: center; border-radius: 3px; transform: rotate(-3deg); }
.nc-note { font-size: 12px !important; color: #6a7186 !important; margin: 14px 0 6px !important; }
.nc-alt { display: flex; align-items: baseline; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed #d8d2c0; flex-wrap: wrap; }
.nc-alt:last-child { border-bottom: none; }
.nc-alt-cn { font-family: "Songti SC", "SimSun", serif; font-size: 19px; color: #1a2033; }
.nc-alt-py { font-size: 12.5px; color: #a8841b; }
.nc-alt-m { font-size: 11.5px; color: #6a7186; }
@media print { .nc-seal { transform: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 20px; }
.site-footer .fineprint { margin: 6px 0 0; }

@media (max-width: 800px) {
  .hero-grid, .preview-grid, .steps-grid, .product-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .report-doc { padding: 28px 22px; }
}

@media (max-width: 520px) {
  .el-bars .el-name { width: 44px; font-size: 11px; }
  .el-bars .el-cn { width: 20px; font-size: 15px; }
  .el-bars .el-pct { width: 34px; }
  .el-tag { font-size: 7.5px; padding: 1px 4px; letter-spacing: .08em; }
  .el-track { min-width: 44px; }
  .preview-grid .el-row { grid-template-columns: 66px 1fr 34px; gap: 8px; }
  .cycles { grid-auto-columns: minmax(54px, 1fr); }
  .cycle-gz { font-size: 16px; }
  .traj { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .traj-chip { flex: none; padding: 10px 2px 8px; border-radius: 6px; }
  .traj-chip b { font-size: 12px; letter-spacing: 0; }
  .traj-chip span { font-size: 9px; margin-top: 4px; }
  .traj-preview { padding: 18px 14px 0; }
  .locked-cta { padding: 22px 18px 26px; }
  .locked-cta h2 { font-size: 20px; }
}

@media print {
  body { background: #fff; }
  body::before { display: none; }
  .site-header, .site-footer, .report-actions, .locked-wrap,
  .preview-grid, .pillars, .chart-meta, .sys-strip, .pipeline, .terminal { display: none !important; }
  .view:not(#view-report) { display: none !important; }
  #view-report { display: block !important; }
  .report-doc { border-radius: 0; margin: 0; padding: 16px 0; background: #fff; }
  .report-sec { break-inside: auto; }
  .report-sec h2 { break-after: avoid; }
  .report-sec p { break-inside: avoid; }
  .cycles { overflow: visible; grid-auto-columns: 1fr; }
  .el-bars { break-inside: avoid; }
}
