:root {
  --bg: #050806;
  --bg-soft: #08100b;
  --panel: #0a140e;
  --ink: #b6d8bf;
  --ink-2: #7f9f88;
  --head: #dcefe1;
  --line: rgba(60,207,106,.22);
  --line-soft: rgba(60,207,106,.10);
  --accent: #3ccf6a;
  --accent-dim: #2a9c50;
  --accent-ink: #04140a;
  --glow: 0 0 8px rgba(60,207,106,.12);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans CJK SC", "Noto Sans JP", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--accent); color: #000; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; position: relative; }
.narrow { max-width: 720px; }

/* header: terminal title bar */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(5,8,6,.95); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 12px; height: 52px; }
.tb { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink-2); font: 13px var(--mono); white-space: nowrap; min-width: 0; }
.tb .tbt { margin-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.tb:hover { color: var(--accent); }
.hdr-spacer { flex: 1; }
.nav { display: none; gap: 20px; }
.nav a { color: var(--ink-2); text-decoration: none; font: 13px var(--mono); }
.nav a:hover { color: var(--accent); }
.menu-btn { font: 20px/1 var(--mono); border: 1px solid var(--line); background: transparent; border-radius: 4px; padding: 0 12px; min-height: 36px; cursor: pointer; color: var(--accent); }
.mobile-nav { display: none; border-top: 1px solid var(--line-soft); padding: 6px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line-soft); font-family: var(--mono); font-size: 14px; }
.mobile-nav a::before { content: "$ "; color: var(--accent-dim); }
.mobile-nav .btn { margin-top: 14px; width: 100%; border-bottom: 1px solid var(--accent); }
.mobile-nav .btn::before { content: none; }
.btn.hdr-cta { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 3px; font: 700 14px var(--mono); text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn:hover { background: #55dc83; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: rgba(60,207,106,.10); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.sm.ghost, .hdr-cta { background: transparent; color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: default; }
.textlink { font: 14px var(--mono); color: var(--accent); text-decoration: none; border-bottom: 1px dashed var(--accent-dim); padding: 8px 0; }
.textlink:hover { border-bottom-style: solid; }

/* sections */
section { padding: 36px 0 44px; }
.sep { border-top: 1px dashed var(--line); text-align: right; font: 12px/1 var(--mono); color: var(--ink-2); padding-top: 8px; }
.cmd { margin: 0 0 8px; font: 13px var(--mono); color: var(--ink-2); }
h1, h2, h3 { line-height: 1.3; margin: 0; color: var(--head); }
h1, h2 { font-family: "DotGothic16", var(--mono); letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 24px; margin-bottom: 10px; color: var(--accent); }
h3 { font-size: 17px; margin-bottom: 6px; font-family: var(--mono); }
.lead { color: var(--ink-2); margin: 0 0 24px; max-width: 720px; }

/* hero */
.hero { padding: 28px 0 44px; position: relative; overflow: hidden; }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .2; pointer-events: none; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 45%, rgba(5,8,6,.85) 0%, rgba(5,8,6,.4) 75%); pointer-events: none; z-index: 0; }
.hero-grid { display: grid; gap: 30px; position: relative; z-index: 1; }
.hero-cmd { color: var(--accent-dim); margin-bottom: 14px; }
.hero h1 { font-size: 30px; margin-bottom: 18px; color: var(--head); line-height: 1.35; }
.hero h1 .ch { opacity: 0; }
.hero h1 .ch.on { opacity: 1; }
.hero p.sub { font-size: 17px; color: var(--ink); margin: 0 0 24px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.note { font-size: 13px; color: var(--ink-2); margin: 0; font-family: var(--mono); }
.oreface { display: inline-flex; flex: none; line-height: 0; }
.oreface svg { display: block; }
.hero-face { margin: 0 0 20px; }
.hero-face .oreface svg { width: 160px; height: auto; filter: drop-shadow(0 0 10px rgba(60,207,106,.25)); }
.wm { font-family: "DotGothic16", var(--mono); font-size: 22px; line-height: 1; color: var(--accent); margin-left: 10px; letter-spacing: .02em; }
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; flex: none; }
.langsw button { background: transparent; border: 0; color: var(--ink-2); font: 12px var(--mono); padding: 5px 8px; cursor: pointer; }
.langsw button + button { border-left: 1px solid var(--line); }
.langsw button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.langsw button:hover { color: var(--accent); }
.langsw button[aria-pressed="true"]:hover { color: var(--accent-ink); }
html[lang="ja"] table.tk .zh, html[lang="ja"] table.tk th small, html[lang="ja"] .zh-sub { display: none; }
.nf { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; margin: 0; font: 13px/1.7 var(--mono); }
.nf dt { color: var(--accent); }
.nf dd { margin: 0; color: var(--ink); }
.cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* compare */
.cmp { border-top: 1px solid var(--line-soft); }
.cmp-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cmp-head { display: none; font: 12px var(--mono); color: var(--ink-2); padding: 8px 0; }
.cmp-head span:last-child { color: var(--accent-dim); }
.cmp .old { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(127,159,136,.5); font-size: 15px; }
.cmp .old::before { content: "- "; text-decoration: none; display: inline-block; }
.cmp .new { color: var(--accent); font-weight: 600; }
.cmp .new::before { content: "+ "; color: var(--accent-dim); font-family: var(--mono); }

/* args */
.args { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid var(--line-soft); }
.args dt { font: 600 15px var(--mono); color: var(--accent); padding-top: 12px; }
.args dd { margin: 0; padding: 2px 0 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }

/* plans: ls -l */
.ls-head { display: none; }
.ls-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "spec spec" "tax btn"; gap: 6px 12px; align-items: center; padding: 16px 12px; border-bottom: 1px solid var(--line-soft); position: relative; }
.ls { border-top: 1px solid var(--line-soft); }
.c-name { grid-area: name; font: 15px var(--mono); color: var(--head); }
.c-name b { font-weight: 700; }
.c-name em { font: 700 11px var(--mono); font-style: normal; color: var(--accent-ink); background: var(--accent); padding: 1px 7px; border-radius: 2px; margin-left: 8px; }
.mk { font-style: normal; color: var(--accent); font-size: 12px; margin-right: 8px; }
.c-spec { grid-area: spec; display: flex; flex-wrap: wrap; gap: 0 14px; color: var(--ink-2); font: 13px var(--mono); }
.c-price { grid-area: price; text-align: right; font-family: var(--mono); color: var(--accent); white-space: nowrap; }
.c-price .big { font-size: 24px; font-weight: 700; }
.c-price small, .c-tax small { font-size: 12px; color: var(--ink-2); }
.c-tax { grid-area: tax; font: 13px var(--mono); color: var(--ink-2); }
.c-btn { grid-area: btn; justify-self: end; }
.c-spec.tbd span { color: var(--ink-2); }
.c-price small { white-space: normal; }
.ls-row.rec { background: rgba(60,207,106,.07); border-left: 2px solid var(--accent); }

/* boot log */
.log { font: 14px/1.7 var(--mono); border-left: 1px solid var(--line); padding-left: 14px; max-width: 820px; }
.ll { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 8px 0; }
.ll .ts { color: var(--accent-dim); }
.ll b { color: var(--head); display: block; }
.ll span:not(.ts):not(.cursor) { color: var(--ink-2); font-family: var(--sans); font-size: 15px; }
.js .ll { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.js .ll.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .ll { opacity: 1; transform: none; transition: none; } }

/* faq: man style */
.faq details { border-bottom: 1px dashed var(--line-soft); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; color: var(--head); display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font: 700 14px/1.75 var(--mono); color: var(--accent); flex: none; }
.faq details[open] summary { color: var(--accent); }
.faq .ans { color: var(--ink-2); font-size: 15px; margin: 10px 0 4px 8px; padding-left: 20px; border-left: 1px solid var(--line); }
.faq .ans ul { margin: 8px 0 0; padding-left: 20px; }

/* form: terminal prompts */
form.res { display: grid; gap: 14px; max-width: 680px; }
.pr { display: grid; grid-template-columns: 1fr; gap: 0; }
label { display: block; font: 600 13px var(--mono); color: var(--accent); white-space: nowrap; }
label::after { content: " >"; color: var(--accent-dim); }
.hp label::after { content: none; }
input, select, textarea { width: 100%; font: 16px var(--mono); padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--head); caret-color: var(--accent); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--accent-dim) 50%), linear-gradient(135deg, var(--accent-dim) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
select option { background: #0a140e; color: var(--head); }
input::placeholder, textarea::placeholder { color: #4d6a56; }
textarea { min-height: 60px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.enter { font: 700 14px var(--mono); background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 12px 18px; min-height: 48px; border-radius: 3px; cursor: pointer; text-align: left; margin-top: 6px; }
.enter:hover { background: rgba(60,207,106,.10); }
.enter[disabled] { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font: 14px var(--mono); display: none; }
.msg.show { display: block; }
.msg.ok { color: var(--accent); }
.msg.err { color: #e5897a; }
.fine { font-size: 13px; color: var(--ink-2); margin: 0; }

/* prose pages */
.page { padding: 32px 0 64px; }
.page h1 { margin-bottom: 12px; color: var(--accent); }
.prose h2 { font-size: 18px; margin: 32px 0 8px; color: var(--head); }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
table.tk { width: 100%; border-collapse: collapse; margin-top: 20px; }
table.tk th, table.tk td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
table.tk th { width: 34%; padding-right: 12px; font-weight: 600; color: var(--accent); font-family: var(--mono); font-size: 13px; }
table.tk td { color: var(--ink); }
.soon { border: 1px dashed var(--accent-dim); border-radius: 3px; padding: 32px 20px; margin: 24px 0; }
.soon strong { display: block; font: 600 20px var(--mono); margin-bottom: 8px; color: var(--accent); }
.soon p { margin: 0; color: var(--ink-2); }
table.tk th small { display: block; font: 400 12px var(--sans); color: var(--ink-2); margin-top: 2px; }
table.tk td .zh { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.zh-sub { color: var(--ink-2); margin: 0 0 12px; }

/* footer: layout/colours come from the shared mzh-bar.css; only our pixel-face logo is styled here */
.mzh-footer .oreface rect { fill: #fff; }
.mzh-footer .oreface, .mzh-footer .wm { vertical-align: middle; }
.mzh-footer .wm { display: inline-block; color: #fff; font-size: 20px; line-height: 22px; margin-left: 8px; }

@media (min-width: 720px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  section { padding: 44px 0 56px; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 40px; }
  .hero-grid { grid-template-columns: 6fr 4fr; align-items: center; gap: 56px; }
  .hero-face .oreface svg { width: 220px; }
  .nav { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
  .btn.hdr-cta { display: inline-flex; }
  .cmp-head { display: grid; }
  .cmp-row { grid-template-columns: 1fr 1fr; gap: 24px; align-items: baseline; }
  .args { grid-template-columns: 200px 1fr; }
  .args dt { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .args dd { padding: 12px 0; }
  .ft-grid { grid-template-columns: 1fr auto; gap: 60px; }
  .ft-grid .links { min-width: 160px; }
}
@media (min-width: 960px) {
  .ls-head { display: grid; font: 12px var(--mono); color: var(--ink-2); padding-top: 8px; padding-bottom: 8px; }
  .ls-row { grid-template-columns: 150px 1fr 64px 84px 150px 150px 130px; grid-template-areas: none; gap: 12px; }
  .ls-head .r { text-align: right; }
  .c-name, .c-spec, .c-price, .c-tax, .c-btn { grid-area: auto; }
  .c-spec { display: contents; }
  .c-spec span { font: 13px var(--mono); color: var(--ink-2); }
  .c-spec span:first-child { color: var(--ink); }
  .c-spec.tbd span { grid-column: span 3; }
  .c-tax { text-align: left; }
  .c-price .big { font-size: 26px; }
}
@media (max-width: 959px) { .ls-head { display: none; } }
@media (max-width: 520px) { .tb .tbt { display: none; } .hdr { gap: 8px; } }

/* accounts */
input[type="checkbox"] { width: auto; flex: none; margin-top: 6px; accent-color: var(--accent); }
.chk { display: flex; gap: 10px; align-items: flex-start; font: 14px/1.6 var(--sans); color: var(--ink); white-space: normal; }
.chk::after { content: none; }
.phone-row { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 10px; }
.phone-row select { font-size: 15px; }
.strength { display: flex; align-items: center; gap: 12px; font: 12px var(--mono); color: var(--ink-2); margin-top: -6px; }
.strength .bar { flex: none; width: 90px; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.strength .bar i { display: block; height: 100%; width: 0; background: #e5897a; transition: width .2s; }
.strength .bar i[data-l="1"] { background: #d9c46a; }
.strength .bar i[data-l="2"] { background: var(--accent); }
.testbox { border: 1px dashed #d9c46a; padding: 10px 14px; margin: 14px 0; font: 13px var(--mono); color: #d9c46a; word-break: break-all; max-width: 680px; }
.testbox p { margin: 0 0 6px; }
.testbox a { color: var(--accent); }
.testbox pre { margin: 0; white-space: pre-wrap; color: var(--ink); font: 12px/1.6 var(--mono); }
.testbox .bigcode { font-size: 24px; letter-spacing: .2em; color: var(--accent); }
.testnote { color: #d9c46a; font-family: var(--mono); margin-top: 24px; }
.qr { background: #fff; padding: 12px; display: inline-block; line-height: 0; margin: 4px 0 14px; border-radius: 3px; min-width: 224px; min-height: 224px; }
.qr[hidden] { display: none; }
.secret { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.secret code { font: 700 17px var(--mono); color: var(--head); letter-spacing: .08em; word-break: break-all; border: 1px solid var(--line); padding: 8px 12px; background: var(--panel); }
.codes { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; max-width: 420px; }
.codes li { font: 700 16px var(--mono); letter-spacing: .08em; color: var(--head); border: 1px solid var(--line); background: var(--panel); padding: 8px 12px; text-align: center; }
.blk { padding: 22px 0 6px; border-top: 1px dashed var(--line-soft); margin-top: 14px; }
.kv { margin: 18px 0 8px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
a.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
[hidden] { display: none !important; }
@media (max-width: 520px) { .phone-row { grid-template-columns: 1fr; } .codes { grid-template-columns: 1fr; } }

/* 取代原内联 style（CSP 禁用 style 属性） */
.mt-6{margin-top:6px}
.mt-18{margin-top:18px}
.mt-20{margin-top:20px}
.mt-28{margin-top:28px}

/* demo (/demo) */
.dm { padding-bottom: 72px; }
.dm-banner { border: 1px dashed #d9c46a; color: #d9c46a; padding: 10px 14px; margin-bottom: 18px; font: 700 14px var(--mono); text-align: center; }
.dm-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; align-items: center; }
.dm-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 13px var(--mono); border-radius: 3px; cursor: pointer; }
.dm-tab b { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.dm-tab.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.dm-tab.done { color: var(--accent); }
.dm-reset { margin-left: auto; }
.dm-panel { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.dm-panel[hidden], .dm [hidden] { display: none; }
.dm-main { min-width: 0; }
.dm-main h2 { margin-bottom: 14px; }
.dm-main h3 { margin: 22px 0 10px; }
.dm-note { border: 1px dashed var(--line); padding: 14px 16px; align-self: start; font-size: 14px; color: var(--ink-2); }
.dm-note h4 { margin: 0 0 6px; font: 700 13px var(--mono); color: var(--accent); }
.dm-note p { margin: 0 0 8px; line-height: 1.7; }
.dm-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dm-months { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 13px var(--mono); border-radius: 3px; cursor: pointer; text-align: left; min-width: 0; }
.dm-opt b { color: var(--head); font-size: 15px; }
.dm-opt em { font-style: normal; color: var(--accent); }
.dm-opt.sm { flex-direction: row; min-height: 40px; align-items: center; padding: 0 14px; }
.dm-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.dm-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); margin: 22px 0 14px; padding-top: 12px; font-family: var(--mono); }
.dm-total b { font-size: 24px; color: var(--accent); }
.dm-term { background: #000; border: 1px solid var(--line); padding: 12px 14px; min-height: 230px; overflow: hidden; }
.dm-term pre, .dm-tty { margin: 0; font: 13px/1.7 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.dm-bar { height: 10px; border: 1px solid var(--line); margin-top: 12px; background: #000; }
.dm-bar.sm { margin: 0; height: 8px; }
.dm-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s ease; }
.dm-card { border: 1px solid var(--line); background: var(--panel); padding: 14px 16px; }
.dm-card-h { display: flex; justify-content: space-between; gap: 10px; align-items: center; font: 16px var(--mono); color: var(--head); flex-wrap: wrap; }
.dm-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); }
.dm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dm-status.busy { color: #d9c46a; }
.dm-status.busy .dm-dot { background: #d9c46a; box-shadow: 0 0 8px #d9c46a; }
.dm-kv { margin-top: 10px; }
.dm-gauges { display: grid; gap: 8px; margin-top: 12px; }
.dm-g { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font: 13px var(--mono); }
.dm-g em { font-style: normal; text-align: right; color: var(--ink-2); }
.dm-conn dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dm code { font: 14px var(--mono); color: var(--accent); background: #000; padding: 3px 8px; border: 1px solid var(--line-soft); word-break: break-all; }
.dm-how { margin-top: 12px; }
.dm-how details { border-top: 1px dashed var(--line-soft); padding: 8px 0; }
.dm-how summary { cursor: pointer; font: 14px var(--mono); color: var(--head); }
.dm-how ol { margin: 8px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 14px; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-confirm { border: 1px solid #e5897a; padding: 12px 14px; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dm-confirm p { margin: 0 12px 0 0; color: #e5897a; font: 14px var(--mono); flex: 1 1 100%; }
.dm-ticket { max-width: 520px; }
.dm-next { margin: 26px 0 0; }
.dm-foot { margin-top: 36px; }
.dm-rd { border: 1px solid var(--line); background: #000; max-width: 880px; }
.dm-rd-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #11201a; font: 13px var(--mono); color: var(--head); }
.dm-rd-bar b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-lat { color: var(--accent); white-space: nowrap; }
.dm-lights { display: inline-flex; gap: 5px; }
.dm-lights i { width: 10px; height: 10px; border-radius: 50%; background: #e5897a; }
.dm-lights i:nth-child(2) { background: #d9c46a; }
.dm-lights i:nth-child(3) { background: var(--accent); }
.dm-desk { background: linear-gradient(160deg, #1d3b4a, #3a2f55 60%, #14232b); padding: 0 0 40px; position: relative; min-height: 400px; }
.dm-menubar { display: flex; gap: 14px; padding: 4px 12px; background: rgba(0,0,0,.45); font: 12px var(--mono); color: #e8eef0; }
.dm-mclock { margin-left: auto; }
.dm-win { margin: 22px 4% 0; background: #14181a; border: 1px solid #38444a; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.dm-win-bar { display: flex; gap: 12px; align-items: center; padding: 6px 10px; background: #2a3236; font: 12px var(--mono); color: #c7d0d3; }
.dm-win-bar > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-tty { padding: 12px 14px; min-height: 260px; color: #d6e6da; }
.dm-tty .u { color: #8bd0ff; }
.dm-tty .g { color: var(--accent); }
.dm-tty .d { color: #7f9f88; }
.dm-tty .cur { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; animation: dm-blink 1s steps(1) infinite; }
@keyframes dm-blink { 50% { opacity: 0; } }
.dm-dock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 8px; padding: 5px 10px; background: rgba(255,255,255,.14); border-radius: 12px; }
.dm-dock i { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.4); }
.dm-dock i:nth-child(2) { background: rgba(60,207,106,.7); }
.dm-dock i:nth-child(3) { background: rgba(138,208,255,.7); }
@media (prefers-reduced-motion: reduce) { .dm-bar i { transition: none; } .dm-tty .cur { animation: none; } }
@media (min-width: 900px) {
  .dm-panel { grid-template-columns: minmax(0, 1fr) 280px; }
  .dm-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dm-win { margin: 14px 2% 0; }
  .dm-tab span { display: none; }
  .dm-tab.on span { display: inline; }
  .dm-tty { font-size: 11.5px; padding: 10px; }
}
.mt-12{margin-top:12px}

/* 首批准备中徽标 */
.soon-b { display: inline-block; font: 12px/1.5 var(--mono); color: #d9c46a; border: 1px dashed rgba(217,196,106,.5); padding: 1px 8px; border-radius: 2px; }

/* 安全保障：等宽等高的格子 */
.sec-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sec-item { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; border-radius: 3px; min-height: 120px; }
.sec-item b { font: 700 15px var(--mono); color: var(--head); }
.sec-item b i { font-style: normal; color: var(--accent); margin-right: 4px; }
.sec-item > span { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.sec-item.warn { border-style: dashed; border-color: rgba(217,196,106,.5); }
.sec-item.warn b i { color: #d9c46a; }
@media (min-width: 720px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 付款周期 + 费用明细 */
.cy { margin-top: 32px; border-top: 1px dashed var(--line); padding-top: 22px; }
.cy-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.cy-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 13px var(--mono); border-radius: 3px; cursor: pointer; text-align: left; }
.cy-opt b { color: var(--head); font-size: 16px; }
.cy-opt em { font-style: normal; color: var(--accent); }
.cy-opt:hover { border-color: var(--accent-dim); }
.cy-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: rgba(60,207,106,.07); }
.cy-plan { max-width: 360px; margin-bottom: 14px; }
.cy-bill { display: grid; grid-template-columns: minmax(80px, auto) 1fr; gap: 0 20px; margin: 0; max-width: 680px; font: 14px/1.7 var(--mono); border: 1px solid var(--line); background: var(--panel); padding: 8px 16px; border-radius: 3px; }
.cy-bill dt, .cy-bill dd { padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.cy-bill dt { color: var(--accent); }
.cy-bill dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.cy-bill .tot { border-bottom: 0; border-top: 1px solid var(--line); margin-top: 4px; }
.cy-bill dd.tot { color: var(--accent); font-size: 22px; font-weight: 700; }
.cy-bill dt:nth-last-child(2), .cy-bill dd:last-child { border-bottom: 0; }
@media (min-width: 720px) { .cy-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 帮助中心 */
.help .toc { columns: 2; column-gap: 28px; margin: 0 0 8px; padding-left: 26px; font: 14px/1.9 var(--mono); }
.help .toc li::marker { color: var(--accent-dim); }
.help h2 { scroll-margin-top: 70px; }
.help .hb h3 { font-size: 15px; color: var(--accent); margin: 18px 0 6px; }
.help .hb ol { padding-left: 22px; margin: 6px 0; color: var(--ink); }
.help .hb code { font: 13px var(--mono); background: rgba(60,207,106,.10); padding: 1px 6px; border-radius: 2px; color: var(--head); overflow-wrap: anywhere; }
.help .ex { border: 1px dashed var(--accent-dim); background: var(--panel); padding: 14px 16px; margin: 14px 0 4px; font: 14px/1.9 var(--mono); border-radius: 3px; overflow-wrap: anywhere; }
.help .ex b:first-child { color: var(--accent); }
@media (max-width: 520px) { .help .toc { columns: 1; } }

/* 常驻客服按钮 */
.cs { position: fixed; right: 14px; bottom: 14px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100vw - 28px); }
.cs-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--accent); background: rgba(5,8,6,.94); color: var(--accent); font: 700 13px var(--mono); border-radius: 3px; cursor: pointer; box-shadow: 0 0 14px rgba(60,207,106,.18); }
.cs-btn:hover { background: #0b1a11; }
.cs-ic { color: var(--accent-dim); }
.cs-panel { width: 280px; max-width: 100%; border: 1px solid var(--line); background: rgba(5,8,6,.97); padding: 14px 16px; border-radius: 3px; box-shadow: 0 6px 24px rgba(0,0,0,.6); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.cs-panel[hidden] { display: none; }
.cs-panel b { font: 700 14px var(--mono); color: var(--head); }
.cs-mail { font: 14px var(--mono); word-break: break-all; }
.cs-soon { margin: 0; font: 13px var(--mono); color: #d9c46a; }
.cs-note { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.cs-x { align-self: flex-end; background: transparent; border: 1px solid var(--line); color: var(--ink-2); font: 12px var(--mono); padding: 4px 10px; border-radius: 3px; cursor: pointer; }
.cs-x:hover { color: var(--accent); }
.cs-away { display: none; }
@media (max-width: 719px) {
  .cs { right: 10px; bottom: 10px; }
  .cs-btn { min-height: 36px; padding: 0 10px; font-size: 12px; opacity: .92; }
  .cs-ic { font-size: 14px; }
}
.auth-link[hidden] { display: none !important; }

/* 标准页脚配色（共用样式只管文字和位置，颜色各站自己定） */
footer.mzh-footer { background: transparent; color: #d6eedc; position: relative; }
footer.mzh-footer a { color: inherit; }

/* 教程页：命令块 + 复制按钮 */
.cb { position: relative; margin: 10px 0 14px; border: 1px solid var(--line); background: #000; border-radius: 3px; }
.cb pre { margin: 0; padding: 12px 84px 12px 14px; overflow-x: auto; }
.cb code { font: 13px/1.6 var(--mono); color: var(--accent); background: none; padding: 0; white-space: pre; }
.cb .cpbtn { position: absolute; top: 8px; right: 8px; font: 12px var(--mono); color: var(--ink); background: var(--panel); border: 1px solid var(--accent-dim); border-radius: 2px; padding: 3px 10px; cursor: pointer; }
.cb .cpbtn:hover, .cb .cpbtn.done { color: var(--accent); border-color: var(--accent); }
.cp-tmp { position: fixed; top: 0; left: -9999px; }
.guide .hb p { margin: 8px 0; }
