@import url("../styles.css");

/* ==========================================================================
   ISORA Portal — industrial drawing layer
   规范：DESIGN.md（三套字体 / 8 级字阶 / 零圆角 / 零阴影 / 单强调色）
   本文件只做门户组件，tokens 与基础排版来自 ../styles.css。
   ========================================================================== */

/* ---------- Shell ---------- */
/* demo 声明与地区信息合并成一条墨色抬头，去掉双层小字 */
.pstrip { background: var(--ink); color: rgba(255, 255, 255, .58); }
.pstrip-in {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 32px; padding-block: 6px;
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em; text-transform: uppercase;
}
.pstrip b { color: #fff; font-weight: 500; }
.pstrip-note-s { display: none; }
.pstrip-l, .pstrip-r { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pstrip-r > * + * { border-left: 1px solid rgba(255,255,255,.18); padding-left: 18px; }
.pstrip .dot { width: 5px; height: 5px; background: var(--brand-300); border-radius: 50%; flex: none; }
.pstrip a { border-bottom: 1px solid rgba(255, 255, 255, .22); padding-bottom: 1px; }
.pstrip a:hover { color: #fff; border-color: #fff; }

.pnav { background: var(--surface); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 60; }
.pnav-in { display: flex; align-items: center; gap: 34px; height: 68px; }
.pnav .logo img { height: 24px; width: auto; }
.pnav-links { display: flex; gap: 26px; }
.pnav-links a {
  font-size: var(--t-3); font-weight: 500; color: var(--ink-2);
  padding: 23px 0; border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.pnav-links a:hover { color: var(--ink); border-color: var(--line); }
.pnav-links a.on { color: var(--ink); border-color: var(--brand); }
.pnav-links a.nav-sale { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 600; }
.pnav-links a.nav-sale svg { width: 16px; height: 16px; flex: none; }
.pnav-links a.nav-sale:hover, .pnav-links a.nav-sale.on { color: var(--brand); border-color: var(--brand); }
.pnav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* icon buttons — search / cart / account */
.picon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: 1px solid transparent; background: transparent;
  color: var(--ink); cursor: pointer; transition: border-color 160ms ease, background 160ms ease;
}
.picon svg { width: 21px; height: 21px; }
.picon:hover { border-color: var(--line); background: var(--bg); }
.picon.on { border-color: var(--brand); color: var(--brand); }
.picon .cnt {
  position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px;
  background: var(--brand); color: #fff;
  font-family: var(--mono); font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px;
}
.picon-user .pdot {
  position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 2px var(--surface);
}
.uslot { display: flex; align-items: center; gap: 8px; }

/* ---------- Search overlay ---------- */
body.srch-open { overflow: hidden; }
.srch {
  position: fixed; inset: 0; z-index: 200; background: rgba(19, 17, 16, .42);
  display: flex; align-items: flex-start; justify-content: center; padding: 88px 20px 20px;
}
.srch[hidden] { display: none; }
/* combined login + register page: whole views are toggled, not just panes */
#authLogin[hidden], #authRegister[hidden] { display: none !important; }
/* Register opens the form straight away — the marketing hero stays on register.html */
#authRegister .rg-hero { display: none; }
#authRegister .rg-body { padding-top: 56px; }
.srch-box {
  width: 100%; max-width: 660px; background: var(--surface); border: 1px solid var(--ink);
  box-shadow: 0 24px 60px rgba(19, 17, 16, .18); max-height: calc(100vh - 140px);
  display: flex; flex-direction: column;
}
.srch-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.srch-in svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.srch-in input {
  flex: 1; min-width: 0; height: 56px; border: 0; background: transparent;
  font-family: var(--sans); font-size: var(--t-4); color: var(--ink); outline: none;
}
.srch-in input::placeholder { color: var(--muted); }
.srch-x {
  flex: none; height: 24px; padding: 0 7px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); cursor: pointer;
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; text-transform: uppercase;
}
.srch-x:hover { border-color: var(--ink); color: var(--ink); }
.srch-res { overflow-y: auto; padding: 6px 0; }
.srch-g {
  padding: 10px 16px 4px; font-family: var(--mono); font-size: var(--t-1);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.srch-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; }
.srch-row.on { background: var(--bg); box-shadow: inset 2px 0 0 var(--brand); }
.srch-dot { width: 12px; height: 12px; flex: none; border: 1px solid rgba(19, 17, 16, .18); }
.srch-t { font-size: var(--t-3); color: var(--ink); font-weight: 500; }
.srch-s { margin-left: auto; font-family: var(--mono); font-size: var(--t-1); color: var(--muted); text-align: right; }
.srch-empty { padding: 26px 16px; font-size: var(--t-2); color: var(--muted); line-height: 1.7; }
.srch-foot {
  display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}

.chip-user {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px; border: 1px solid var(--line);
  font-size: var(--t-2); color: var(--ink-2); background: var(--surface);
}
.chip-user b, .chip-user span:first-child { font-weight: 500; color: var(--ink); }
.chip-user .tier {
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em;
  color: var(--brand); background: var(--brand-050); padding: 2px 5px;
}

/* ---------- Buttons ---------- */
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-size: var(--t-3); font-weight: 600; letter-spacing: .01em;
  white-space: nowrap; transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.pbtn-primary { background: var(--brand); color: #fff; }
.pbtn-primary:hover { background: var(--ink); }
.pbtn-dark { background: var(--ink); color: #fff; }
.pbtn-dark:hover { background: var(--brand); }
.pbtn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.pbtn-ghost:hover { border-color: var(--ink); }
.pbtn-sm { height: 36px; padding: 0 13px; font-size: var(--t-2); }
.pbtn[disabled] { opacity: .4; pointer-events: none; }

.cart-btn { position: relative; }
.cart-btn .cnt {
  position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px;
  background: var(--brand); color: #fff;
  font-family: var(--mono); font-size: var(--t-1); line-height: 17px; text-align: center; padding: 0 4px;
}

/* ---------- Layout + section heads ---------- */
.pwrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.psec { padding-block: 88px; }
.psec-sm { padding-block: 56px; }
.psec-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* 统一版块头：编号 + 标题 + 右侧单一动作 */
.psec-head, .ph {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 34px; padding-top: 18px; border-top: 1px solid var(--ink);
}
.ph-l { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.ph-n {
  font-family: var(--mono); font-size: var(--t-1); font-weight: 500;
  letter-spacing: .12em; color: var(--brand); padding-top: 6px; flex: none;
}
.psec-head h2, .ph h2 { font-size: var(--t-6); letter-spacing: -.022em; line-height: 1.08; }
.psec-head p, .ph p { margin: 10px 0 0; font-size: var(--t-3); color: var(--body); max-width: 62ch; line-height: 1.6; }
.ph-a {
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 4px; white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}
.ph-a:hover { color: var(--brand); border-color: var(--brand); }

/* 内页标题 */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--ink); }
.page-h1 { font-size: var(--t-7); line-height: 1.04; letter-spacing: -.028em; margin-top: 10px; max-width: 20ch; }
.page-lede { margin-top: 14px; font-size: var(--t-4); line-height: 1.55; color: var(--body); max-width: 68ch; }
.crumbs { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; color: var(--line); }

/* 尺寸标注线 —— 全站的签名元素 */
.dim { position: relative; height: 1px; background: var(--line); margin-top: 48px; }
.dim::before, .dim::after {
  content: ""; position: absolute; top: 0; width: 1px; height: 7px; background: var(--line);
}
.dim::before { left: 0; }
.dim::after { right: 0; }
.dim span {
  position: absolute; left: 50%; top: -26px; transform: translateX(-50%);
  background: transparent; padding: 0; line-height: 1.4;
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* ---------- Home hero ---------- */
.home-hero { border-bottom: 1px solid var(--ink); background: var(--bg); position: relative; overflow: hidden; }
.home-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(19, 17, 16, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 17, 16, .045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, .9), transparent 62%);
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, .9), transparent 62%);
}
.home-hero .pwrap { position: relative; z-index: 1; }
.hh-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px; align-items: start; padding: 76px 0 56px;
}
.hh-h1 {
  font-size: var(--t-8); font-weight: 800; line-height: .96; letter-spacing: -.038em;
  margin-top: 16px; color: var(--ink);
}
.hh-h1 em { font-style: normal; color: var(--brand); }
.hh-lede { margin-top: 22px; font-size: var(--t-4); line-height: 1.6; max-width: 50ch; color: var(--body); }
.hh-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hh-facts {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px;
  border-top: 1px solid var(--line);
}
.hh-facts div { padding: 14px 26px 0 0; margin-right: 26px; border-right: 1px solid var(--line); }
.hh-facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hh-facts .k {
  display: block; font-family: var(--mono); font-size: var(--t-1);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hh-facts .v { display: block; font-family: var(--mono); font-size: var(--t-3); color: var(--ink); margin-top: 4px; }
.hh-note { margin-top: 16px; font-size: var(--t-2); color: var(--muted); }

/* 样片板：四格厂商实拍，图下等宽标签 */
.plates { border: 1px solid var(--ink); background: var(--surface); }
.plates-head, .plates-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 12px; font-family: var(--mono); font-size: var(--t-1);
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.plates-head { border-bottom: 1px solid var(--ink); color: var(--ink); }
.plates-head b { color: var(--brand); font-weight: 500; }
.plates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.plate { margin: 0; background: var(--surface); display: flex; flex-direction: column; }
.plate-img {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: var(--surface); min-height: 0; overflow: hidden;
}
.plate-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.plate-cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 8px 11px 10px; border-top: 1px solid var(--line-2);
}
.plate-cap b { font-size: var(--t-2); font-weight: 600; color: var(--ink); }
.plate-cap span { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em; color: var(--muted); }
.plates-foot { border-top: 1px solid var(--ink); color: var(--ink); background: var(--bg); }
.plates-foot b { font-weight: 500; color: var(--ink); }

/* ---------- Category index ---------- */
.cat-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; border-top: 1px solid var(--line-2); }
.ci {
  display: grid; grid-template-columns: 34px 50px minmax(0, 1fr) auto 20px;
  align-items: center; gap: 14px; padding: 15px 0;
  border-bottom: 1px solid var(--line-2);
  transition: background 160ms ease;
}
.ci:hover { background: rgba(255, 255, 255, .7); }
.ci-n { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em; color: var(--muted); }
.ci:hover .ci-n { color: var(--brand); }
.ci-ic { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--brand-100); background: var(--brand-050); color: var(--brand); }
.ci-ic svg { width: 32px; height: 32px; }
.ci-main { min-width: 0; }
.ci-t { display: block; font-family: var(--display); font-size: var(--t-4); font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.ci-s { display: block; margin-top: 4px; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.ci-c { font-family: var(--mono); font-size: var(--t-2); color: var(--ink-2); white-space: nowrap; }
.ci-go { font-size: var(--t-4); color: var(--muted); transition: transform 160ms ease, color 160ms ease; }
.ci:hover .ci-go { transform: translateX(4px); color: var(--brand); }
.ci-wide { grid-column: 1 / -1; border-bottom: 1px solid var(--line-2); }

/* ---------- Brand marquee ---------- */
.brandline { border-block: 1px solid var(--ink); background: var(--ink); color: #E9E2D6; overflow: hidden; }
.brandline-in { display: flex; align-items: center; gap: 28px; padding: 13px 0; min-width: 0; }
.brandline-l {
  flex: none; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-300);
  border-right: 1px solid rgba(255, 255, 255, .2); padding-right: 28px;
}
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track {
  display: flex; gap: 44px; width: max-content;
  font-family: var(--mono); font-size: var(--t-2); letter-spacing: .14em; text-transform: uppercase;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.marquee-track span::after { content: "/"; color: rgba(255, 255, 255, .28); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 22px 26px 0 0; border-right: 1px solid var(--line-2); }
.step:last-child { border-right: 0; }
.step .n { display: block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; color: var(--brand); }
.step h4 { font-size: var(--t-4); margin-top: 10px; }
.step p { margin: 8px 0 0; font-size: var(--t-2); line-height: 1.6; color: var(--body); }

/* ---------- Cards: filament families ---------- */
.fam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fam-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 160ms ease;
}
.fam-card:hover { border-color: var(--ink); }
.fam-media { position: relative; background: var(--surface); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.fam-media img { width: 100%; height: 100%; object-fit: contain; }
.fam-media.mosaic { display: block; padding: 0; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.mos { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--line-2); }
.mos img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: var(--surface); }
.mos-badge {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em;
  padding: 4px 8px;
}
.fam-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.fam-body h3 { font-size: var(--t-3); font-weight: 600; letter-spacing: -.01em; }
.fam-meta { margin-top: 5px; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .04em; color: var(--muted); }
.fam-foot {
  margin-top: auto; padding-top: 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-2);
}
.fam-foot .code { font-family: var(--mono); font-size: var(--t-1); color: var(--ink-2); }
.fam-foot .code[data-price-slug] { color: var(--muted); }
.fam-foot .go { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

/* ---------- Swatches ---------- */
.sw-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.sw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sw { border: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative; transition: border-color 160ms ease; }
.sw:hover { border-color: var(--ink); }
.sw img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface); }
.sw-in { padding: 8px 9px 10px; border-top: 1px solid var(--line-2); }
.sw-in .nm { font-size: var(--t-2); color: var(--ink); font-weight: 500; line-height: 1.35; }
.sw-in .cd { font-family: var(--mono); font-size: var(--t-1); color: var(--muted); margin-top: 3px; }
.sw input { position: absolute; top: 8px; right: 8px; width: 17px; height: 17px; accent-color: var(--brand); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-2); font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field label .req { color: var(--brand); margin-left: 2px; }
.input, .select, textarea.input {
  height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0;
  background: var(--surface); font-size: var(--t-3); color: var(--ink);
  width: 100%; font-family: var(--sans);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea.input { height: auto; padding: 11px 12px; line-height: 1.55; resize: vertical; }
.input:hover, .select:hover { border-color: var(--muted); }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-050); }
.hint { font-size: var(--t-2); color: var(--muted); line-height: 1.5; }
.hint.ok { color: var(--ok); }
.hint.err { color: var(--danger); }
.prefix-wrap { display: flex; }
.prefix-wrap .pfx {
  display: flex; align-items: center; padding: 0 10px; background: var(--bg);
  border: 1px solid var(--line); border-right: 0;
  font-family: var(--mono); font-size: var(--t-2); color: var(--muted); white-space: nowrap;
}
.prefix-wrap .input { border-left: 0; }

.card { border: 1px solid var(--line); background: var(--surface); padding: 24px 26px; }
.card + .card { margin-top: 18px; }
.card h3 { font-size: var(--t-4); margin-bottom: 14px; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-3); }
.tbl th {
  text-align: left; font-family: var(--mono); font-size: var(--t-1); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 0 12px 10px; border-bottom: 1px solid var(--ink);
}
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--body); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .55); }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-2); }
.tbl td.name { color: var(--ink); font-weight: 500; }
.tbl-scroll { overflow-x: auto; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px;
  font-family: var(--mono); font-size: var(--t-1); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.badge.pending { background: #F6EBD9; color: var(--warn); }
.badge.approved { background: var(--ok-050); color: var(--ok); }
.badge.rejected { background: var(--danger-050); color: var(--danger); }
.badge.info { background: var(--brand-050); color: var(--brand-700); }
.badge.neutral { background: var(--line-2); color: var(--body); }

/* ---------- Order timeline ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 5px; width: 9px; height: 9px;
  background: var(--surface); border: 1px solid var(--line);
}
.tl-item.done::before { background: var(--ok); border-color: var(--ok); }
.tl-item.now::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-050); }
.tl-item h4 { font-size: var(--t-3); }
.tl-item .tm { font-family: var(--mono); font-size: var(--t-1); color: var(--muted); margin-top: 3px; }
.tl-item p { margin: 5px 0 0; font-size: var(--t-2); color: var(--body); line-height: 1.55; }
.tl-item.todo h4, .tl-item.todo p { color: var(--muted); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 120px 110px 32px; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.cart-row img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); background: var(--surface); }
.cart-row .nm { font-size: var(--t-3); font-weight: 500; color: var(--ink); line-height: 1.35; }
.cart-row .cd { font-family: var(--mono); font-size: var(--t-1); color: var(--muted); margin-top: 3px; }
.qty-in { width: 80px; height: 36px; padding: 0 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: var(--t-3); text-align: right; }
.qty-in:focus { outline: none; border-color: var(--ink); }
.cart-row .sum { text-align: right; font-family: var(--mono); font-size: var(--t-3); color: var(--ink); }
.icon-x { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: var(--t-4); line-height: 1; }
.icon-x:hover { color: var(--brand); }

.summary { border: 1px solid var(--ink); background: var(--surface); padding: 20px; position: sticky; top: 84px; }
.summary h3 { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-3); padding: 7px 0; }
.summary .row.total { border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 14px; font-size: var(--t-4); font-weight: 600; color: var(--ink); }
.summary .row .k { color: var(--muted); }
.summary .note { font-size: var(--t-2); color: var(--muted); margin-top: 12px; line-height: 1.55; }

.tier-strip { display: flex; border: 1px solid var(--line); background: var(--surface); }
.tier-cell { flex: 1; padding: 12px 14px; border-right: 1px solid var(--line); }
.tier-cell:last-child { border-right: 0; }
.tier-cell .q { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.tier-cell .p { font-size: var(--t-4); font-weight: 600; color: var(--ink); margin-top: 4px; font-family: var(--mono); }
.tier-cell.active { background: var(--brand-050); }
.tier-cell.active .p { color: var(--brand-700); }

/* ---------- Customs calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-out { border: 1px solid var(--ink); background: var(--surface); }
.calc-head { padding: 18px 20px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.calc-head .big { font-family: var(--mono); font-size: var(--t-5); font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.calc-head .big small { font-family: var(--sans); font-size: var(--t-1); color: var(--muted); font-weight: 400; }
.calc-body { padding: 6px 20px 18px; }
.calc-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: var(--t-3); }
.calc-line:last-child { border-bottom: 0; }
.calc-line .k { color: var(--body); }
.calc-line .k small { display: block; font-size: var(--t-1); color: var(--muted); margin-top: 2px; }
.calc-line .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-2); color: var(--ink); white-space: nowrap; }
.calc-line.sum { border-top: 1px solid var(--ink); border-bottom: 0; margin-top: 8px; padding-top: 12px; font-weight: 600; }
.calc-line.sum .k, .calc-line.sum .v { color: var(--ink); font-size: var(--t-3); }
.rate-meter { height: 6px; background: var(--line-2); overflow: hidden; display: flex; margin: 6px 0 16px; }
.rate-meter i { display: block; height: 100%; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kpi { background: var(--surface); padding: 18px 20px; }
.kpi .l { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--mono); font-size: var(--t-5); font-weight: 500; color: var(--ink); margin-top: 8px; letter-spacing: -.01em; }
.kpi .s { font-size: var(--t-2); color: var(--muted); margin-top: 3px; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; font-size: var(--t-2); line-height: 1.6; border-left: 3px solid; }
.notice.warn { background: #F8EFDF; color: #6B4A12; border-color: var(--warn); }
.notice.info { background: var(--brand-050); color: #7A3A24; border-color: var(--brand); }
.notice.ok { background: var(--ok-050); color: #14513C; border-color: var(--ok); }
.notice b { color: inherit; }

/* ---------- Dark panel (landing cost) ---------- */
.ink-panel { background: var(--ink); color: #DCD4C7; }
.ink-panel-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-block: 68px; }
.ink-panel h2 { color: #fff; font-size: var(--t-6); letter-spacing: -.025em; max-width: 26ch; }
.ink-panel .k { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-300); display: flex; align-items: center; gap: 10px; }
.ink-panel .k::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.ink-panel p { margin-top: 16px; font-size: var(--t-3); line-height: 1.65; color: #BDB4A7; max-width: 56ch; }
.ink-panel .pbtn-primary { margin-top: 24px; }
.ip-ledger { border-top: 1px solid rgba(255, 255, 255, .28); }
.ip-ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.ip-ledger-head .big { font-family: var(--mono); font-size: var(--t-5); color: #fff; letter-spacing: -.01em; }
.ip-ledger-head .lbl { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .12em; text-transform: uppercase; color: #8E8578; }
.ip-line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: var(--t-2); }
.ip-line .kk { color: #A79D8F; }
.ip-line .vv { font-family: var(--mono); color: #F0E9DC; white-space: nowrap; }
.ip-line.hi .vv { color: var(--brand-300); }
.ip-line:last-child { border-bottom: 0; }

/* ---------- Catalogue index page ---------- */
.cat-h1 { font-size: var(--t-7); line-height: 1.04; letter-spacing: -.028em; margin-top: 12px; }
.cat-lede { margin-top: 14px; font-size: var(--t-4); line-height: 1.55; max-width: 66ch; color: var(--body); }
.cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--ink); }
.cat-row {
  display: grid; grid-template-columns: 30px 58px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
  transition: background 160ms ease;
}
.cat-row:hover { background: rgba(255, 255, 255, .7); }
.cat-row-wide { grid-column: 1 / -1; }
.cat-row-n { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em; color: var(--muted); }
.cat-row:hover .cat-row-n { color: var(--brand); }
.cat-row-art {
  width: 50px; height: 50px; color: var(--brand); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface);
}
.cat-row-art svg { width: 40px; height: 40px; }
.cat-row-main b { display: block; font-family: var(--display); font-size: var(--t-4); color: var(--ink); font-weight: 600; letter-spacing: -.015em; }
.cat-row-main small { display: block; font-size: var(--t-2); color: var(--muted); margin-top: 4px; line-height: 1.5; max-width: 52ch; }
.cat-row-main .code { display: block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; color: var(--ink-2); margin-top: 6px; text-transform: uppercase; }
.cat-row-end { display: flex; align-items: center; gap: 14px; }
.cat-row-end .n { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; text-transform: uppercase; }
.cat-row-end .go { color: var(--brand); font-size: var(--t-4); transition: transform 160ms ease; }
.cat-row:hover .cat-row-end .go { transform: translateX(3px); }

/* ---------- Hardware list ---------- */
.parts-hero { border-bottom: 1px solid var(--ink); background: var(--bg); }
.parts-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; padding: 56px 0 34px; }
.parts-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.parts-facts div { padding: 12px 16px 0 0; border-right: 1px solid var(--line); }
.parts-facts div:last-child { border-right: 0; }
.parts-facts .k { display: block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.parts-facts .v { display: block; font-family: var(--mono); font-size: var(--t-5); color: var(--ink); margin-top: 6px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.brand-row { align-items: center; margin-bottom: 22px; }
.brand-row-l { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-n { font-family: var(--mono); font-size: var(--t-1); opacity: .62; }

.part-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.part-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 160ms ease;
}
.part-card:hover { border-color: var(--ink); }
.part-art { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--brand); background: var(--surface); border-bottom: 1px solid var(--line-2); padding: 14px; min-height: 0; overflow: hidden; }
.part-art svg { width: 78%; height: 78%; max-width: 132px; }
.part-art.has-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.part-body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.part-body h3 { font-size: var(--t-3); line-height: 1.4; letter-spacing: -.005em; min-height: 2.8em; font-weight: 600; }
.part-sku { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.part-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.part-tags span { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); padding: 2px 5px; }
.part-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.part-foot .moq { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.part-foot .p { font-family: var(--mono); font-size: var(--t-2); font-weight: 500; color: var(--ink); white-space: nowrap; }
.part-foot .p.locked { font-family: var(--sans); font-size: var(--t-2); font-weight: 400; color: var(--muted); }

/* ---------- Hardware detail ---------- */
.pd { display: grid; grid-template-columns: 320px minmax(0, 1fr) 264px; gap: 30px; align-items: start; }
.pd-main { min-width: 0; }
.pd-media { border: 1px solid var(--line); background: var(--surface); }
.pd-media .art { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; color: var(--brand); min-height: 0; overflow: hidden; }
.pd-media .art svg { width: 70%; height: 70%; max-width: 230px; }
.pd-media .cap { padding: 9px 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; color: var(--muted); display: flex; justify-content: space-between; text-transform: uppercase; }
.pd h1 { font-size: var(--t-6); line-height: 1.06; letter-spacing: -.025em; margin-top: 10px; }
.pd-crumb { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-crumb a { color: var(--muted); }
.pd-crumb a:hover { color: var(--ink); }
.pd-sub { margin-top: 10px; font-family: var(--mono); font-size: var(--t-2); color: var(--muted); }
.pd-desc { margin-top: 16px; font-size: var(--t-3); line-height: 1.7; color: var(--body); max-width: 62ch; }

/* prose, spec lists and the transcribed compatibility table */
.pd-prose { margin-top: 18px; max-width: 64ch; }
.pd-prose p { margin: 0; font-size: var(--t-3); line-height: 1.75; color: var(--body); }
.pd-prose p + p { margin-top: 12px; }
.pd-list { margin-top: 12px; border-top: 1px solid var(--ink); }
.pd-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: var(--t-2); color: var(--ink-2); }
.pd-list li::before { content: "—"; color: var(--muted); flex: none; }
.cf-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cf-cap { font-size: var(--t-2); color: var(--ink-2); font-weight: 500; }
.cf-key { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cf-key i { font-style: normal; margin-right: 5px; }
.cf-key i.y { color: var(--ink); }
.cf-key i.n { color: var(--danger); }
.cf-wrap { margin-top: 12px; border-top: 1px solid var(--ink); overflow-x: auto; }
.cf { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--t-2); }
.cf th, .cf td { padding: 7px 6px; border-bottom: 1px solid var(--line-2); text-align: center; }
.cf thead th { font-family: var(--mono); font-size: var(--t-1); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; line-height: 1.35; padding-bottom: 9px; }
.cf thead th:first-child, .cf tbody th { text-align: left; }
.cf thead th:first-child { width: 40%; }
.cf tbody th { font-weight: 500; color: var(--ink); }
.cf td.y { color: var(--ink); font-size: var(--t-4); font-weight: 600; line-height: 1; }
.cf td.n { color: var(--muted); font-size: var(--t-4); line-height: 1; }
.cf-dag { font-size: .5em; vertical-align: super; margin-left: 1px; color: var(--muted); }
.cf-notes { list-style: none; margin: 10px 0 0; padding: 0; font-family: var(--mono); font-size: var(--t-1); line-height: 1.7; color: var(--muted); letter-spacing: .02em; }
.pd-sec { margin-top: 26px; }
.pd-sec h2 { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pd-specs { margin-top: 10px; border-top: 1px solid var(--ink); }
.pd-specs div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: var(--t-2); }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { margin: 0; color: var(--ink); }
.pd-buy { border: 1px solid var(--ink); background: var(--surface); padding: 18px 18px 20px; position: sticky; top: 84px; }
.pd-buy .lbl { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pd-price { font-family: var(--mono); font-size: var(--t-5); color: var(--ink); margin-top: 6px; letter-spacing: -.01em; }
.pd-price small { font-family: var(--sans); font-size: var(--t-2); color: var(--muted); font-weight: 400; margin-left: 3px; }
.pd-price.locked { font-family: var(--sans); font-size: var(--t-3); color: var(--muted); font-weight: 400; }
.pd-qty { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.pd-qty input { width: 92px; height: 40px; padding: 0 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: var(--t-3); text-align: right; }
.pd-qty span { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.pd-buy .pbtn { width: 100%; margin-top: 14px; }
.pd-terms { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.pd-terms div { display: flex; justify-content: space-between; gap: 10px; font-size: var(--t-2); }
.pd-terms .k { color: var(--muted); }
.pd-terms .v { font-family: var(--mono); color: var(--ink); }
.pd-media.has-img .art { padding: 18px; }
.pd-media.has-img .art img { width: 100%; height: 100%; max-height: 340px; object-fit: contain; margin: 0 auto; mix-blend-mode: multiply; }

/* ---------- Registration ---------- */
.rg-hero { border-bottom: 1px solid var(--ink); background: var(--bg); }
.rg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: end; padding: 64px 0 72px; }
.rg-eyebrow { margin-bottom: 6px; }
.rg-h1 { font-size: var(--t-8); font-weight: 800; line-height: 1.0; letter-spacing: -.034em; margin-top: 12px; color: var(--ink); max-width: 22ch; }
.rg-h1 em { font-style: normal; color: var(--brand); }
.rg-lede { margin-top: 20px; font-size: var(--t-3); line-height: 1.65; max-width: 54ch; color: var(--body); }
.rg-facts { border-top: 1px solid var(--ink); display: grid; gap: 0; }
.rg-facts div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.rg-facts .k { display: block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rg-facts .v { display: block; font-family: var(--mono); font-size: var(--t-2); color: var(--ink); margin-top: 3px; }

.rg-body { padding-bottom: 72px; }
.rg-grid { display: grid; grid-template-columns: 96px minmax(0, 1fr) 340px; gap: 36px; align-items: start; margin-top: 40px; }

.rg-rail { list-style: none; margin: 0; padding: 0; position: sticky; top: 92px; border-top: 1px solid var(--ink); }
.rg-rail li { position: relative; padding: 12px 0 12px 0; border-bottom: 1px solid var(--line-2); }
.rg-rail .n { display: block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em; color: var(--muted); }
.rg-rail .t { display: block; font-size: var(--t-2); color: var(--muted); margin-top: 3px; }
.rg-rail li.on .n { color: var(--brand); }
.rg-rail li.on .t { color: var(--ink); font-weight: 600; }
.rg-rail li.done .n { color: var(--ok); }
.rg-rail li.done .t { color: var(--ink-2); }

.rg-sheet { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 32px 34px 30px; }
.rg-sec { border: 0; margin: 0; padding: 0 0 26px; min-width: 0; }
.rg-sec + .rg-sec { border-top: 1px solid var(--line-2); padding-top: 26px; }
.rg-legend { display: flex; align-items: center; gap: 12px; padding: 0; font-family: var(--display); font-size: var(--t-4); font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
.rg-legend .num { font-family: var(--mono); font-size: var(--t-1); font-weight: 500; color: var(--brand); border: 1px solid var(--brand-100); background: var(--brand-050); padding: 2px 6px; letter-spacing: .08em; }
.rg-sub { margin-top: 8px; font-size: var(--t-2); color: var(--muted); max-width: 62ch; line-height: 1.6; }

.rg-tabs { position: relative; display: inline-flex; margin: 18px 0 20px; background: var(--bg); border: 1px solid var(--line); padding: 3px; }
.rg-tab { position: relative; z-index: 1; flex: 1; min-width: 96px; height: 34px; border: 0; background: none; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color 200ms ease; }
.rg-tab.on { color: var(--ink); }
.rg-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rg-tab-ind { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(50% - 3px); background: var(--surface); border: 1px solid var(--line); transition: transform 320ms var(--ease); }
.rg-pane[hidden] { display: none; }
.rg-pane > .field + .field { margin-top: 16px; }

.rg-pass { position: relative; }
.rg-pass .input { padding-right: 68px; }
.rg-eye { position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; }
.rg-eye:hover { color: var(--ink); }
.rg-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 2px 0 1px; }
.rg-meter i { height: 3px; background: var(--line-2); transition: background 220ms; }

.rg-phone { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px; }
.rg-cc { padding-left: 8px; padding-right: 4px; font-family: var(--mono); font-size: var(--t-2); }
.rg-send { height: 44px; }
.rg-otp-block { margin-top: 16px; }
.rg-mini { display: block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rg-otp { display: flex; gap: 8px; }
.rg-otp-in { width: 46px; height: 54px; text-align: center; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: var(--t-5); color: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease; }
.rg-otp-in.filled { border-color: var(--ink-2); }
.rg-otp-in:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-050); }

.rg-consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-2); line-height: 1.6; color: var(--body); }
.rg-consent input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.rg-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.rg-cta { height: 48px; padding: 0 26px; }
.rg-fineprint { margin-top: 12px; font-size: var(--t-2); color: var(--muted); }

.rg-aside { position: sticky; top: 92px; }
.rg-dossier { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.rg-dossier-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.rg-stamp { display: inline-block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); border: 1px dashed var(--brand-300); padding: 3px 7px; transform: rotate(-1.2deg); }
.rg-dossier-head h3 { font-size: var(--t-4); margin-top: 12px; }
.rg-check { list-style: none; margin: 0; padding: 4px 18px 8px; }
.rg-check li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.rg-check li:last-child { border-bottom: 0; }
.rg-check .box { flex: none; width: 15px; height: 15px; margin-top: 2px; border: 1px solid var(--line); position: relative; transition: background 200ms, border-color 200ms; }
.rg-check li.done .box { background: var(--ok); border-color: var(--ok); }
.rg-check li.done .box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(42deg); }
.rg-check b { display: block; font-size: var(--t-2); font-weight: 600; color: var(--ink); }
.rg-check small { display: block; font-size: var(--t-1); color: var(--muted); margin-top: 2px; line-height: 1.5; }
.rg-check li.done b { color: var(--ok); }
.rg-dossier-foot { background: var(--bg); border-top: 1px solid var(--line); padding: 12px 18px; display: grid; gap: 6px; }
.rg-dossier-foot div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-1); }
.rg-dossier-foot .k { color: var(--muted); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.rg-dossier-foot .v { font-family: var(--mono); color: var(--ink); }
.rg-aside-note { margin-top: 14px; font-size: var(--t-2); color: var(--muted); line-height: 1.6; }

/* ---------- Login ---------- */
.lg { border-bottom: 1px solid var(--line); }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 100px); }
.lg-main { display: flex; align-items: center; justify-content: center; padding: 56px 0; background: var(--bg); }
.lg-main-in { width: 100%; max-width: 440px; padding-inline: var(--gutter); }
.lg-eyebrow { margin-bottom: 4px; }
.lg-h1 { font-size: var(--t-8); font-weight: 800; line-height: .96; letter-spacing: -.04em; margin-top: 12px; color: var(--ink); display: flex; align-items: baseline; gap: 2px; }
.lg-h1 .lg-dot { color: var(--brand); }
.lg-lede { margin-top: 16px; font-size: var(--t-3); line-height: 1.65; color: var(--body); max-width: 44ch; }
.lg-form { margin-top: 28px; }
.lg-tabs { margin: 0 0 20px; }
.lg-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lg-forgot { font-size: var(--t-2); color: var(--muted); border-bottom: 1px solid transparent; }
.lg-forgot:hover { color: var(--brand); border-bottom-color: var(--brand-100); }
.lg-caps { color: var(--warn); }
.lg-pane > .field + .field { margin-top: 16px; }
.lg-err { min-height: 18px; margin: 10px 0 0; font-size: var(--t-2); color: var(--danger); display: flex; align-items: center; gap: 7px; }
.lg-err:not(:empty)::before { content: ""; width: 5px; height: 5px; background: var(--danger); flex: none; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.lg-check { display: inline-flex; align-items: center; gap: 9px; font-size: var(--t-2); color: var(--ink-2); cursor: pointer; }
.lg-check input { width: 15px; height: 15px; accent-color: var(--brand); }
.lg-secure { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-cta { width: 100%; height: 48px; margin-top: 18px; position: relative; }
.lg-cta.is-busy { pointer-events: none; opacity: .8; }
.lg-cta.is-busy span::after { content: "…"; }
.lg-alt { margin-top: 16px; font-size: var(--t-2); color: var(--muted); }
.lg-alt a { color: var(--brand); font-weight: 600; border-bottom: 1px solid var(--brand-100); }

.lg-side { position: relative; overflow: hidden; background: var(--ink); color: #DCD4C7; display: flex; align-items: center; }
.lg-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 100% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 100% 0%, #000 10%, transparent 72%);
}
.lg-side-in { position: relative; z-index: 2; width: 100%; max-width: 400px; margin: 0 auto; padding: 56px var(--gutter); }
.lg-stamp { display: inline-block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-300); border: 1px dashed rgba(222, 144, 117, .5); padding: 3px 7px; transform: rotate(-1.2deg); }
.lg-side-head p { margin: 16px 0 0; font-family: var(--display); font-size: var(--t-5); font-weight: 600; line-height: 1.16; color: #fff; letter-spacing: -.02em; }
.lg-ladder { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.lg-ladder li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); opacity: .5; transition: opacity 300ms ease; }
.lg-ladder .n { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em; color: #8C827D; padding-top: 2px; }
.lg-ladder b { display: block; font-size: var(--t-3); color: #fff; font-weight: 600; }
.lg-ladder small { display: block; font-size: var(--t-2); color: #A79C97; line-height: 1.55; margin-top: 3px; }
.lg-ladder li.on { opacity: 1; }
.lg-ladder li.on .n { color: var(--brand-300); }
.lg-ladder li.done { opacity: .82; }
.lg-ladder li.done .n { color: var(--ok-050); }
.lg-side-mid { margin-top: 26px; display: grid; gap: 8px; }
.lg-side-mid div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-2); }
.lg-side-mid .k { color: #8E8578; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; font-size: var(--t-1); }
.lg-side-mid .v { font-family: var(--mono); color: #E9E2D6; }
.lg-side-foot { margin-top: 30px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .18); }
.lg-demo-k { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; text-transform: uppercase; color: #8E8578; }
.lg-demo-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lg-demo-btns button { height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .22); background: none; color: #E9E2D6; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; transition: border-color 160ms ease, background 160ms ease; }
.lg-demo-btns button:hover { border-color: #E9E2D6; background: rgba(255, 255, 255, .06); }
.lg-side-ghost { position: absolute; right: -10px; bottom: -60px; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 230px; line-height: 1; color: rgba(255, 255, 255, .04); pointer-events: none; user-select: none; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); font-size: var(--t-3); }
.empty h3 { font-size: var(--t-5); color: var(--ink); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.pfoot { background: var(--ink); color: #A79D8F; padding-block: 60px 26px; margin-top: 0; }
.pfoot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.pfoot h5 { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 14px; font-weight: 500; }
.pfoot a, .pfoot p { display: block; font-size: var(--t-2); color: #A79D8F; margin: 0 0 9px; line-height: 1.6; }
.pfoot a:hover { color: #fff; }
.pfoot .logo img { height: 22px; filter: brightness(0) invert(1); opacity: .9; }
.pfoot-bot { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 18px; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; color: #7C7364; flex-wrap: wrap; }

/* ---------- Pick chips (registration) ---------- */
.pick-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pick { height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; text-transform: uppercase; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.pick:hover { border-color: var(--ink); color: var(--ink); }
.pick.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Cart hardware thumb ---------- */
.cart-row .pthumb { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: var(--brand); }
.cart-row .pthumb svg { width: 44px; height: 44px; }
.cart-row .pthumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* ---------- Entrance choreography ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hh-copy, .plates, .dim-anim, .rg-head, .rg-facts, .rg-sheet, .rg-aside, .lg-main-in, .lg-side-in {
  animation: rise 560ms var(--ease) both;
}
.hh-copy { animation-delay: 0ms; }
.plates { animation-delay: 80ms; }
.dim-anim { animation-delay: 150ms; }
.rg-head { animation-delay: 0ms; }
.rg-facts { animation-delay: 70ms; }
.rg-sheet { animation-delay: 110ms; }
.rg-aside { animation-delay: 160ms; }
.lg-main-in { animation-delay: 0ms; }
.lg-side-in { animation-delay: 90ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hh-grid { gap: 44px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .part-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd { grid-template-columns: 320px minmax(0, 1fr); }
  .pd-buy { grid-column: 1 / -1; position: static; }
  .rg-grid { grid-template-columns: 84px minmax(0, 1fr) 310px; gap: 28px; }
  .rg-sheet { padding: 28px 26px; }
}
@media (max-width: 1020px) {
  .hh-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 48px; }
  .hh-h1 { font-size: clamp(40px, 8vw, 60px); }
  .plates-grid { grid-template-columns: repeat(4, 1fr); }
  .plate-img { aspect-ratio: 1 / 1; padding: 10px; }
  .plate-cap { flex-direction: column; gap: 2px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 20px 22px 20px 0; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .cat-list { grid-template-columns: 1fr; }
  .parts-hero-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; padding-bottom: 28px; }
  .ink-panel-in { grid-template-columns: 1fr; gap: 36px; padding-block: 56px; }
  .rg-hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 56px; }
  .rg-facts { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
  .rg-facts div { padding: 10px 14px 10px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .rg-facts div:last-child { border-right: 0; }
  .rg-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .rg-rail { grid-column: 1 / -1; display: flex; gap: 28px; position: static; border-top: 1px solid var(--ink); }
  .rg-rail li { padding: 8px 0; border-bottom: 0; }
  .rg-rail .n { display: inline; margin-right: 6px; }
  .rg-rail .t { display: inline; }
  .rg-aside { position: static; }
  .lg-grid { grid-template-columns: 1fr; min-height: 0; }
  .lg-side-in { max-width: none; padding: 40px var(--gutter); }
  .lg-side-ghost { display: none; }
  .lg-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin-top: 18px; }
  .calc-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .pstrip-in { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 8px; }
  .pstrip-r { display: none; }
  .pstrip-note { display: none; }
  .pstrip-note-s { display: inline; }
  .pstrip-in { min-height: 26px; }
  .pnav-in { flex-wrap: wrap; height: auto; padding-block: 12px 0; gap: 6px; }
  .pnav-links { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, rgba(0,0,0,.12) 100%);
    mask-image: linear-gradient(90deg, #000 86%, rgba(0,0,0,.12) 100%); }
  .pnav-links::-webkit-scrollbar { display: none; }
  .pnav-links a { padding: 8px 0; white-space: nowrap; font-size: var(--t-2); }
  .brandline-l { display: none; }
  .cat-index { grid-template-columns: 1fr; gap: 0; }
  .ci-wide { grid-column: auto; }
  .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .part-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .two-col, .fam-layout { grid-template-columns: 1fr !important; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pfoot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .rg-grid { grid-template-columns: 1fr; }
  .rg-rail { overflow-x: auto; scrollbar-width: none; }
  .rg-rail::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .pwrap { padding-inline: 20px; }
  .psec { padding-block: 48px; }
  .psec-sm { padding-block: 36px; }
  .psec-head, .ph { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ph-l { gap: 12px; }
  .page-head { padding: 34px 0 26px; }
  .page-h1, .cat-h1 { font-size: var(--t-6); }
  .home-hero .pwrap { padding-inline: 20px; }
  .hh-grid { padding: 40px 0 36px; }
  .hh-h1 { font-size: clamp(36px, 11vw, 46px); }
  .hh-lede { font-size: var(--t-3); }
  .hh-facts div { padding: 12px 16px 0 0; margin-right: 16px; }
  .hh-acts .pbtn { flex: 1 1 100%; }
  .hh-facts .v { font-size: var(--t-2); }
  .plates-grid { grid-template-columns: repeat(2, 1fr); }
  .plates-head { font-size: var(--t-1); }
  .dim span { font-size: var(--t-1); letter-spacing: .1em; padding: 0 8px; max-width: calc(100% - 20px); white-space: normal; text-align: center; line-height: 1.35; }
  .cta-box { padding: 26px 20px; gap: 22px; }
  .cta-acts { width: 100%; }
  .cta-acts .pbtn { flex: 1 1 auto; }
  .ci { grid-template-columns: 26px 44px minmax(0, 1fr) auto; gap: 12px; }
  .ci-ic { width: 40px; height: 40px; }
  .ci-ic svg { width: 30px; height: 30px; }
  .ci-t { font-size: var(--t-3); }
  .ci-go { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .fam-grid, .part-grid { grid-template-columns: 1fr; }
  .sw-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
  .cat-row { grid-template-columns: 22px 44px minmax(0, 1fr); gap: 12px; }
  .cat-row-end { grid-column: 2 / -1; justify-content: flex-start; margin-top: 4px; }
  .cat-row-art { width: 44px; height: 44px; }
  .cat-row-art svg { width: 32px; height: 32px; }
  .cart-row { grid-template-columns: 52px minmax(0, 1fr) 56px; row-gap: 8px; }
  .cart-row .qty-in { width: 56px; height: 34px; padding: 0 6px; }
  .cart-row .sum { grid-column: 2; text-align: left; }
  .cart-row .icon-x { grid-column: 3; justify-self: end; }
  .pfoot-grid { grid-template-columns: 1fr; }
  .tier-strip { flex-direction: column; }
  .tier-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .pd { grid-template-columns: 1fr; }
  .pd-specs div { grid-template-columns: 110px minmax(0, 1fr); }
  .rg-sheet { padding: 22px 18px; }
  .rg-h1 { font-size: clamp(34px, 10vw, 44px); }
  .rg-tabs { display: flex; width: 100%; }
  .rg-phone { grid-template-columns: 96px minmax(0, 1fr); }
  .rg-send { grid-column: 1 / -1; }
  .rg-otp { gap: 6px; }
  .rg-otp-in { width: 100%; height: 50px; }
  .rg-submit { flex-direction: column; align-items: stretch; }
  .lg-main { padding: 32px 0 40px; }
  .lg-h1 { font-size: clamp(38px, 12vw, 52px); }
  .lg-ladder { grid-template-columns: 1fr; }
  .marquee-track { gap: 28px; font-size: var(--t-1); }
}

/* ---------- Two-column utility ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fam-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; }

/* ---------- Price lock ---------- */
.lock-box {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--ink);
  background: var(--surface);
  font-size: var(--t-2); color: var(--muted); line-height: 1.6;
}
.lock-box b { color: var(--ink); font-weight: 600; display: block; font-size: var(--t-3); margin-bottom: 3px; }
.lock-box a { color: var(--brand); font-weight: 600; border-bottom: 1px solid var(--brand-100); }

.price-locked { font-size: var(--t-2); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.price-now { font-family: var(--mono); font-size: var(--t-4); font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.price-now .cur { font-family: var(--sans); font-size: var(--t-1); color: var(--muted); font-weight: 400; margin-left: 3px; }
.price-was { font-size: var(--t-1); color: var(--muted); text-decoration: line-through; }

/* ---------- Closing CTA ---------- */
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  border: 1px solid var(--ink); background: var(--surface); padding: 40px 44px;
}
.cta-copy { min-width: 0; }
.cta-box h2 { font-size: var(--t-6); letter-spacing: -.025em; max-width: 24ch; }
.cta-box p { margin: 12px 0 0; font-size: var(--t-3); line-height: 1.6; color: var(--body); max-width: 52ch; }
.cta-acts { display: flex; gap: 10px; flex-wrap: wrap; min-width: 0; }

/* 深色面板里的引用段 */
.ip-note {
  border-left: 2px solid var(--brand); padding-left: 16px;
  color: #CBC2B4 !important; font-size: var(--t-2) !important; line-height: 1.65;
  margin-top: 22px !important; max-width: 54ch;
}
.ip-note b { color: #fff; }

/* 线稿描边按显示尺寸分档：38–42px 的小图标需要更粗的源描边 */
.part-art svg * { stroke-width: 2.2; }
.pd-media .art svg * { stroke-width: 1.4; }
.cat-row-art svg *, .ci-ic svg * { stroke-width: 7; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Login — floating card, one form column + one rendered panel
   Reference: retail promo modal (rounded card, centred headline, black pill CTA)
   ========================================================================== */
.lgx {
  position: relative;
  padding: 51px 20px 44px;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(190, 67, 38, .20), transparent 62%),
    radial-gradient(760px 460px at 96% 108%, rgba(96, 118, 190, .18), transparent 62%),
    var(--ink);
  overflow: hidden;
}
.lgx-wrap { position: relative; width: 100%; max-width: 884px; margin: 0 auto; }
.lgx-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 48px 96px -48px rgba(0, 0, 0, .7);
}
.lgx-form-side { display: flex; align-items: center; justify-content: center; padding: 44px 41px; }
.lgx-in { width: 100%; max-width: 340px; }

.lgx-kicker { display: block; text-align: center; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lgx-h1 { margin: 14px 0 0; text-align: center; font-family: var(--display); font-size: 37px; font-weight: 800; letter-spacing: -.032em; line-height: 1.02; color: var(--ink); }
.lgx-sub { margin: 12px 0 0; text-align: center; font-size: var(--t-2); line-height: 1.62; color: var(--body); }

.lgx-form { margin-top: 22px; }
.lgx-tabs {
  display: flex; width: 100%; margin: 0 0 15px;
  background: var(--bg); border: 0; border-radius: 999px; padding: 3px;
}
.lgx-tabs .rg-tab {
  min-width: 0; height: 30px; border-radius: 999px;
  font-family: var(--sans); font-size: var(--t-2); font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--muted);
}
.lgx-tabs .rg-tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 17, 15, .12); }
.lgx-tabs .rg-tab-ind { display: none; }

.lgx-form .field + .field { margin-top: 12px; }
.lgx-form .field label { display: block; margin-bottom: 6px; font-size: var(--t-2); font-weight: 700; color: var(--ink); }
.lgx-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lgx-label-row label { margin-bottom: 6px; }
.lgx-forgot { font-size: var(--t-2); font-weight: 600; color: var(--muted); border-bottom: 1px solid transparent; }
.lgx-forgot:hover { color: var(--brand); border-bottom-color: var(--brand-100); }
.lgx-form .input {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface);
  font-size: var(--t-3); color: var(--ink);
}
.lgx-form .input::placeholder { color: var(--muted); opacity: .72; }
.lgx-form .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 17, 15, .08); }
.lgx-form .hint { display: block; margin-top: 6px; font-size: var(--t-1); color: var(--muted); line-height: 1.5; }
.lgx-form .hint[hidden] { display: none; }
.lgx-form .lg-caps { color: var(--warn); }
.lgx-form .lg-err { min-height: 18px; margin: 10px 0 0; font-size: var(--t-2); color: var(--danger); display: flex; align-items: center; gap: 7px; }
.lgx-form .lg-err:not(:empty)::before { content: ""; width: 5px; height: 5px; background: var(--danger); flex: none; }

.lgx-check { display: flex; align-items: center; gap: 9px; margin-top: 6px; font-size: var(--t-2); color: var(--ink-2); cursor: pointer; }
.lgx-check input { width: 16px; height: 16px; accent-color: var(--ink); }

.lgx-btn {
  width: 100%; height: 45px; margin-top: 15px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--display); font-size: var(--t-2); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.lgx-btn:hover { background: #000; }
.lgx-btn:active { transform: translateY(1px); }
.lgx-btn.is-busy { pointer-events: none; opacity: .72; }
.lgx-btn.is-busy span::after { content: "\2026"; }

.lgx-alt { margin: 14px 0 0; text-align: center; font-size: var(--t-2); color: var(--muted); }
.lgx-alt a { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--ink); }

.lgx-ladder {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
}
.lgx-ladder li { display: flex; align-items: center; gap: 7px; font-size: var(--t-1); color: var(--muted); opacity: .5; }
.lgx-ladder li.on { opacity: 1; color: var(--ink); }
.lgx-ladder li.done { opacity: .78; }
.lgx-ladder .n { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; }
.lgx-ladder b { font-weight: 600; }

.lgx-close {
  position: absolute; top: 13px; right: 13px; z-index: 3;
  width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.lgx-close svg { width: 14px; height: 14px; }
.lgx-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.lgx-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lgx-art { position: relative; min-height: 494px; background: var(--line-2); }
.lgx-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.lgx-art-txt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 24px 22px;
  background: linear-gradient(180deg, rgba(24, 20, 18, 0), rgba(24, 20, 18, .62));
  color: #fff; display: flex; flex-direction: column; gap: 5px;
}
.lgx-art-txt b { font-family: var(--display); font-size: var(--t-4); font-weight: 700; letter-spacing: -.012em; }
.lgx-art-txt span { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .12em; text-transform: uppercase; opacity: .82; }

.lgx-demo { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 17px; }
.lgx-demo > span { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.lgx-demo button {
  height: 32px; padding: 0 15px; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; background: none; color: rgba(255, 255, 255, .82);
  font-size: var(--t-1); cursor: pointer; transition: border-color 160ms ease, color 160ms ease;
}
.lgx-demo button:hover { border-color: #fff; color: #fff; }

@media (max-width: 900px) {
  .lgx { padding: 26px 14px 30px; }
  .lgx-card { grid-template-columns: 1fr; border-radius: 16px; }
  .lgx-art { order: -1; min-height: 200px; }
  .lgx-art img { object-position: 50% 38%; }
  .lgx-art-txt { display: none; }
  .lgx-form-side { padding: 26px 20px 30px; }
  .lgx-h1 { font-size: 30px; }
  .lgx-ladder { gap: 14px; }
}

/* ==========================================================================
   Retail layer — register type switch, personal account, cart trade bar,
   checkout payment picker, order totals
   ========================================================================== */

/* ---------- register: personal / business ---------- */
.rg-type { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 30px; }
.rg-type-opt {
  text-align: left; padding: 16px 18px; border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.rg-type-opt b { display: block; font-family: var(--display); font-size: var(--t-4); font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.rg-type-opt span { display: block; margin-top: 6px; font-size: var(--t-2); line-height: 1.55; color: var(--body); }
.rg-type-opt:hover { border-color: var(--ink); }
.rg-type-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rg-opt {
  margin-left: 10px; padding: 3px 7px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--t-1); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.rg-grid:not(.is-biz) .rg-biz,
.rg-grid:not(.is-biz) .rg-only-biz { display: none; }
.rg-grid.is-biz .rg-only-personal { display: none; }
.rg-check-static li { opacity: 1; }
.rg-check-static li .box { background: var(--ink); border-color: var(--ink); }

/* ---------- account ---------- */
.acc-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.acc-eyebrow { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.acc-h1 { margin: 8px 0 0; font-family: var(--display); font-size: var(--t-7); font-weight: 800; letter-spacing: -.03em; line-height: 1.03; color: var(--ink); }
.acc-meta { margin-top: 8px; font-size: var(--t-2); color: var(--muted); }
.acc-head-r { display: flex; align-items: center; gap: 10px; }

.acc-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tab {
  padding: 14px 0; border: 0; border-bottom: 2px solid transparent; background: none;
  font-family: var(--sans); font-size: var(--t-3); font-weight: 600; color: var(--muted);
  cursor: pointer; white-space: nowrap; transition: color 160ms ease, border-color 160ms ease;
}
.acc-tab:hover { color: var(--ink); }
.acc-tab.on { color: var(--ink); border-color: var(--brand); }

.acc-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
.acc-link { font-size: var(--t-2); font-weight: 600; color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; }
.acc-link:hover { color: var(--ink); }
.at-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.at-head h3 { margin: 0; font-size: var(--t-4); }
.at-head .hint { margin: 0; }
.acc-trade p { font-size: var(--t-2); line-height: 1.65; color: var(--body); }
.acc-cats { margin-top: 4px; }

.addr { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.addr b { display: block; font-size: var(--t-3); color: var(--ink); }
.addr span { display: block; margin-top: 3px; font-size: var(--t-2); color: var(--muted); }
.addr-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.acc-danger { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.acc-danger b { display: block; font-size: var(--t-3); }
.acc-danger span { font-size: var(--t-2); color: var(--muted); }

/* ---------- cart: trade progress ---------- */
.trade-bar { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line-strong); background: var(--surface); }
.trade-bar.is-on { border-color: var(--brand); }
.tb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tb-head b { font-family: var(--display); font-size: var(--t-4); letter-spacing: -.015em; }
.tb-head span { font-size: var(--t-2); color: var(--muted); }
.tb-track { height: 6px; margin: 12px 0 9px; background: var(--line-2); }
.tb-track i { display: block; height: 100%; background: var(--brand); transition: width .3s cubic-bezier(.16,1,.3,1); }
.tb-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.trade-invite {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 18px; padding: 18px; border: 1px dashed var(--line-strong); background: var(--surface);
  transition: border-color 160ms ease;
}
.trade-invite:hover { border-color: var(--ink); }
.trade-invite b { display: block; font-family: var(--display); font-size: var(--t-4); font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.trade-invite span { display: block; margin-top: 4px; font-size: var(--t-2); color: var(--body); }
.trade-invite .go { margin-top: 0; color: var(--brand); font-weight: 600; white-space: nowrap; }

/* ---------- checkout: payment picker ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-opt { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease; }
.pay-opt input { margin-top: 3px; accent-color: var(--ink); }
.pay-opt b { display: block; font-size: var(--t-3); color: var(--ink); }
.pay-opt small { display: block; margin-top: 2px; font-size: var(--t-1); color: var(--muted); }
.pay-opt:hover { border-color: var(--ink); }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- order ---------- */
.ord-totals { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ord-totals div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--t-2); color: var(--ink-2); }
.ord-totals .grand { font-size: var(--t-4); font-weight: 600; color: var(--ink); }
.ord-addr { font-size: var(--t-2); line-height: 1.7; color: var(--body); }
.ord-meta { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: var(--t-2); }
.ord-meta span { color: var(--muted); }
.ord-meta b { font-weight: 600; text-align: right; }

/* ---------- part detail: struck-through retail ---------- */
.pd-was { display: inline-block; margin-left: 10px; font-size: var(--t-2); color: var(--muted); text-decoration: line-through; font-weight: 400; }

@media (max-width: 900px) {
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-h1 { font-size: var(--t-6); }
  .acc-tabs { gap: 20px; }
}
@media (max-width: 640px) {
  .rg-type { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .tb-head, .tb-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  /* five sections never fit one 375px row — let them wrap instead of hiding the last one */
  .acc-tabs { flex-wrap: wrap; gap: 0 16px; overflow: visible; margin-bottom: 18px; }
  .acc-tab { padding: 11px 0; font-size: var(--t-2); }
  .acc-head { padding-bottom: 16px; }
  .acc-h1 { font-size: var(--t-5); }
}

/* ==========================================================================
   Retail skin — warm paper, soft edges, colour-forward product tiles
   --------------------------------------------------------------------------
   定调：暖纸白 + 陶土橘主色 + 奶油黄节日强调；标题换 Fraunces 柔衬线，
   正文 Figtree 放大到 15px；圆角与柔和投影取代零圆角与发丝黑线。
   等宽字体退为「数据标注」专用，不再满屏大写。
   ========================================================================== */
:root {
  /* surfaces — warm paper, one step lighter than the old #F2EFE8 */
  --ink: #2A1B14;
  --ink-2: #463429;
  --body: #5B4A3E;
  --muted: #8B7767;
  --line: #EFE3D6;
  --line-2: #F6EDE3;
  --line-strong: #E2D3C2;
  --bg: #FFFBF6;
  --surface: #FFFFFF;
  --paper: #FCF3E9;

  /* brand — terracotta pushed a little brighter so it reads as invitation */
  --brand: #D24E27;
  --brand-700: #A83A16;
  --brand-300: #F2AE92;
  --brand-050: #FDEEE6;
  --brand-100: #F8D7C6;
  --accent: #F6C35F;
  --accent-ink: #6B4708;

  --ok: #2E7D5B;
  --ok-050: #EAF6F0;
  --warn: #A97318;
  --warn-050: #FBF1DC;
  --danger: #B8371E;
  --danger-050: #FBE9E4;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(84, 52, 32, .05), 0 3px 10px rgba(84, 52, 32, .05);
  --shadow-md: 0 10px 28px rgba(84, 52, 32, .10);
  --shadow-lg: 0 24px 56px rgba(84, 52, 32, .14);

  --display: "Fraunces", "Figtree", Georgia, serif;
  --t-7: 42px;
}

body {
  font-size: 15px;
  line-height: 1.68;
  background:
    radial-gradient(58rem 30rem at 6% -14%, #FFEDDE 0%, rgba(255, 237, 222, 0) 62%),
    radial-gradient(46rem 26rem at 102% -8%, #FDF2DF 0%, rgba(253, 242, 223, 0) 58%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.012em; }
h1 { letter-spacing: -.022em; }
strong, b { font-weight: 600; }

/* ---------- top strip: from ink bar to warm ribbon ---------- */
.pstrip {
  background: linear-gradient(90deg, #FCEDE3 0%, #FDF4E6 60%, #FCEFE0 100%);
  color: var(--brand-700);
  border-bottom: 1px solid var(--brand-100);
}
.pstrip b { color: var(--brand-700); font-weight: 600; }
.pstrip a { border-bottom-color: var(--brand-300); }
.pstrip a:hover { color: var(--brand); border-color: var(--brand); }
.pstrip .dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(210, 78, 39, .14); }
.pstrip-r > * + * { border-left-color: var(--brand-100); }

/* ---------- header ---------- */
.pnav { background: rgba(255, 251, 246, .92); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(84, 52, 32, .03); }
.pnav-links a { color: var(--ink-2); border-bottom-color: transparent; }
.pnav-links a:hover { color: var(--brand); border-color: transparent; }
.pnav-links a.on { color: var(--brand); border-color: var(--brand); }
.pnav-links a.nav-sale {
  padding: 7px 13px 7px 11px; margin: 0 -4px;
  border: 1px solid var(--brand-100); border-radius: 999px;
  background: var(--brand-050);
}
.pnav-links a.nav-sale:hover { background: var(--brand-100); border-color: var(--brand-300); color: var(--brand-700); }
.picon { border-radius: 999px; }
.picon:hover { border-color: var(--line); background: var(--paper); }

/* ---------- buttons ---------- */
.pbtn { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
.pbtn-primary { background: var(--brand); box-shadow: 0 6px 16px rgba(210, 78, 39, .22); }
.pbtn-primary:hover { background: var(--brand-700); box-shadow: 0 10px 22px rgba(210, 78, 39, .26); transform: translateY(-1px); }
.pbtn-dark { background: var(--ink); border-radius: 999px; }
.pbtn-dark:hover { background: var(--brand); }
.pbtn-ghost { border-color: var(--line-strong); background: var(--surface); }
.pbtn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-050); }
.pbtn, .picon { transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }

/* ---------- sections ---------- */
.psec-alt { background: var(--paper); border-block: 1px solid var(--line-2); }
.psec-head, .ph { border-top: 1px solid var(--line); }
.page-head { border-bottom: 1px solid var(--line); padding: 64px 0 46px; }
.page-lede { color: var(--body); font-size: var(--t-4); line-height: 1.6; }
.crumbs { color: var(--muted); letter-spacing: .06em; }
.crumbs span { color: var(--line-strong); }

/* ---------- cards ---------- */
.card, .fam-card, .part-card, .summary, .pd-buy, .addr, .acc-card, .trade-invite, .trade-bar {
  border-radius: var(--r-md);
  border-color: var(--line);
}
.card { box-shadow: var(--shadow-sm); }
.fam-card, .part-card {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 200ms cubic-bezier(.16, 1, .3, 1), box-shadow 200ms ease, border-color 200ms ease;
}
.fam-card:hover, .part-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.fam-media { background: linear-gradient(170deg, #FFF9F3 0%, #FBEFE2 100%); }
.summary, .pd-buy { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.summary .row.total { border-top: 1px solid var(--line); }

/* ---------- tables ---------- */
.tbl th, .tbl td { border-bottom-color: var(--line-2); }
.tbl thead th { color: var(--muted); font-size: var(--t-1); letter-spacing: .1em; }
.tbl tbody tr:hover { background: #FFF9F3; }

/* ---------- inputs ---------- */
.input, .select, textarea.input { border-radius: var(--r-sm); border-color: var(--line-strong); }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050); }
.fchip { border-radius: 999px; }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick { border-radius: 999px; }
.badge { border-radius: 999px; }
.notice { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- home: category index + marquee ---------- */
.ci { border-bottom-color: var(--line-2); }
.ci:hover { background: var(--brand-050); }
.ci-ic { border-radius: var(--r-sm); border-color: var(--brand-100); background: var(--brand-050); }
.ci-t { font-weight: 600; }
.ci-s { text-transform: none; letter-spacing: .02em; font-family: var(--sans); font-size: var(--t-2); }
.cat-index { border-top: 1px solid var(--line-2); }
.brandline { background: var(--paper); color: var(--muted); border-block: 1px solid var(--line-2); }

/* ---------- product detail ---------- */
.pd-media { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pd-media .art { background: linear-gradient(170deg, #FFF9F3 0%, #FBEFE2 100%); }
.cf-wrap { border-top: 1px solid var(--line-strong); }
.cf th, .cf td { border-bottom-color: var(--line-2); }
.pd-terms { border-top-color: var(--line); }

/* ---------- swatches / colour tiles ---------- */
.sw { border-radius: var(--r-md); }
.sw:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.sw img { background: linear-gradient(170deg, #FFF9F3 0%, #FBEFE2 100%); }

/* ---------- account / cart ---------- */
.cart-row { border-bottom-color: var(--line-2); }
.kpi-grid { border-radius: var(--r-md); overflow: hidden; border-color: var(--line); background: var(--line-2); }
.kpi { background: var(--surface); }
.kpi .v { font-family: var(--display); font-weight: 600; color: var(--ink); }
.acc-tabs { border-bottom-color: var(--line); }

/* ---------- one orchestrated entrance (page head only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page-head > .pwrap > *, .psec-head > .psec-head-l > * {
    animation: rise-in 520ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .page-head > .pwrap > *:nth-child(2) { animation-delay: 70ms; }
  .page-head > .pwrap > *:nth-child(3) { animation-delay: 140ms; }
  .page-head > .pwrap > *:nth-child(4) { animation-delay: 200ms; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Holiday Sale page
   ========================================================================== */
.sale-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(42rem 26rem at 88% 8%, #FDE7D3 0%, rgba(253, 231, 211, 0) 62%),
    radial-gradient(36rem 22rem at 4% 92%, #FCEFE0 0%, rgba(252, 239, 224, 0) 60%),
    linear-gradient(180deg, #FFF8F1 0%, #FDF1E4 100%);
  border-bottom: 1px solid var(--line);
}
.sale-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; padding-block: 76px 72px; }
.sale-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border: 1px solid var(--brand-100); border-radius: 999px;
  background: rgba(255, 255, 255, .7); color: var(--brand-700);
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase;
}
.sale-kick-ic { display: inline-flex; color: var(--brand); }
.sale-kick-ic svg { width: 16px; height: 16px; }
.sale-h1 {
  margin: 20px 0 0; font-size: clamp(46px, 5.4vw, 74px); line-height: .98; letter-spacing: -.03em;
  color: var(--ink); font-weight: 600; max-width: 13ch;
}
.sale-h1 em { font-style: italic; font-weight: 500; color: var(--brand); }
.sale-lede { margin-top: 20px; font-size: 17px; line-height: 1.62; color: var(--body); max-width: 46ch; }
.sale-acts { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.sale-facts { display: flex; gap: 40px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-strong); flex-wrap: wrap; }
.sale-facts .k { display: block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sale-facts .v { display: block; margin-top: 5px; font-size: var(--t-4); font-weight: 600; color: var(--ink); }

.sale-art { position: relative; display: flex; justify-content: center; padding: 18px 0; }
.sale-ticket {
  position: relative; width: min(100%, 380px); display: flex; flex-direction: column; align-items: center;
  padding: 46px 34px 32px; border: 1px solid var(--brand-100); border-radius: 26px;
  background:
    repeating-linear-gradient(45deg, rgba(210, 78, 39, .035) 0 14px, rgba(210, 78, 39, 0) 14px 28px),
    linear-gradient(158deg, #FFFFFF 0%, #FFF6EC 100%);
  box-shadow: 0 26px 60px rgba(120, 62, 34, .16);
  transform: rotate(-2.5deg);
}
.st-ribbon {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  padding: 7px 16px; border-radius: 999px; background: var(--brand); color: #fff;
  font-family: var(--mono); font-size: var(--t-1); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(210, 78, 39, .3);
}
.st-off { font-family: var(--display); font-size: 104px; line-height: .9; font-weight: 600; color: var(--brand); letter-spacing: -.04em; }
.st-off i { font-style: normal; font-size: .42em; vertical-align: super; margin-left: 2px; }
.st-line { width: 100%; margin: 22px 0 18px; border-top: 2px dashed var(--brand-100); }
.st-lbl { font-size: var(--t-4); font-weight: 600; color: var(--ink); }
.st-small { margin-top: 6px; font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; text-wrap: balance; }
.sale-confetti { position: absolute; inset: 0; pointer-events: none; }
.sale-confetti i {
  position: absolute; left: var(--x); top: var(--y); width: 9px; height: 30px; border-radius: 3px;
  background: var(--c); transform: rotate(var(--r)); opacity: .8;
}

.sale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sale-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.sale-card-n { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; color: var(--brand); }
.sale-card h3 { font-size: var(--t-5); letter-spacing: -.015em; }
.sale-card p { font-size: var(--t-3); line-height: 1.66; color: var(--body); }
.sale-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: var(--t-1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.sale-fam { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sale-fam-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 200ms cubic-bezier(.16, 1, .3, 1), box-shadow 200ms ease, border-color 200ms ease;
}
.sale-fam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.sfc-img { display: block; aspect-ratio: 4 / 3; background: linear-gradient(170deg, #FFF9F3 0%, #FBEFE2 100%); }
.sfc-img img { width: 100%; height: 100%; object-fit: contain; }
.sfc-body { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px 18px; }
.sfc-body b { font-family: var(--display); font-size: var(--t-4); font-weight: 600; color: var(--ink); }
.sfc-meta { font-size: var(--t-2); color: var(--muted); }
.sfc-price { margin-top: 6px; font-family: var(--mono); font-size: var(--t-3); color: var(--ink); }
.sfc-price s { color: var(--muted); margin-right: 6px; }
.sfc-price i { display: block; margin-top: 3px; font-style: normal; font-family: var(--sans); font-size: var(--t-1); color: var(--brand); }

.sale-h2 { font-size: var(--t-6); margin-top: 10px; letter-spacing: -.022em; }
.sale-steps { margin-top: 24px; display: grid; gap: 16px; }
.sale-step { display: flex; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.sale-step:last-child { border-bottom: 0; padding-bottom: 0; }
.ss-n { font-family: var(--mono); font-size: var(--t-1); color: var(--brand); padding-top: 4px; }
.sale-step b { display: block; font-size: var(--t-4); color: var(--ink); }
.sale-step p { margin-top: 4px; font-size: var(--t-3); color: var(--body); line-height: 1.6; }
.sale-terms { align-self: start; }
.sale-terms h3 { font-size: var(--t-4); }

/* tablet: keep it side by side — the ticket is the hook, the headline explains it */
@media (max-width: 1024px) {
  .sale-hero-grid { grid-template-columns: minmax(0, 1fr) 272px; gap: 34px; padding-block: 46px 50px; }
  .sale-h1 { font-size: clamp(38px, 5.6vw, 52px); max-width: 11ch; }
  .sale-lede { font-size: var(--t-4); margin-top: 16px; }
  .sale-acts { margin-top: 22px; }
  .sale-facts { gap: 26px; margin-top: 26px; padding-top: 18px; }
  .sale-art { padding: 0; }
  /* at this width the art box hugs the ticket, so the confetti would land on top of it */
  .sale-confetti { display: none; }
  .sale-ticket { transform: none; width: 100%; padding: 34px 20px 24px; }
  .st-off { font-size: 76px; }
  .st-line { margin: 14px 0 12px; }
  .st-lbl { font-size: var(--t-3); }
  .sale-grid { grid-template-columns: 1fr; }
  .sale-fam { grid-template-columns: repeat(2, 1fr); }
}
/* phone: ticket first, full width, headline directly under it */
@media (max-width: 759px) {
  .sale-hero-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 44px; }
  .sale-art { order: -1; display: flex; }
  .sale-ticket { width: min(100%, 320px); padding: 34px 22px 24px; }
  .st-off { font-size: 88px; }
  .sale-h1 { font-size: 42px; max-width: 13ch; }
}
@media (max-width: 640px) {
  .sale-h1 { font-size: 40px; }
  .sale-facts { gap: 22px; }
  .st-off { font-size: 82px; }
  .sale-fam { grid-template-columns: 1fr; }
  .sale-acts .pbtn { flex: 1; }
}

/* ==========================================================================
   Family page — colour dots (one dot per spool, tap to select)
   ========================================================================== */
.cl-now {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.cl-k { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cl-now b { font-family: var(--display); font-size: var(--t-5); color: var(--ink); }
.cl-sku { font-family: var(--mono); font-size: var(--t-2); color: var(--muted); }

.sw-tools { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.cl-dots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 10px; margin-top: 20px; }
.cl-swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.cl-dot {
  position: relative; width: 34px; height: 34px; flex: none; padding: 0; border-radius: 50%;
  border: 1px solid rgba(42, 27, 20, .18); cursor: pointer;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .13), inset 0 6px 10px rgba(255, 255, 255, .3), 0 1px 2px rgba(84, 52, 32, .12);
  transition: transform 170ms cubic-bezier(.16, 1, .3, 1), box-shadow 170ms ease;
}
.cl-dot:hover { transform: translateY(-2px) scale(1.07); }
.cl-dot:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.cl-swatch.is-on .cl-dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand), 0 6px 14px rgba(210, 78, 39, .22); }
.cl-swatch.is-on .cl-dot::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; line-height: 1; color: var(--chk);
}
.cl-name {
  max-width: 100%; font-family: var(--sans); font-size: var(--t-1); line-height: 1.35;
  color: var(--body); text-align: center; overflow-wrap: anywhere; hyphens: auto;
}
.cl-swatch.is-on .cl-name { color: var(--ink); font-weight: 600; }
.cl-tier {
  margin-top: 5px; font-family: var(--mono); font-size: var(--t-1);
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.pd-unit { font-family: var(--mono); font-size: var(--t-2); color: var(--muted); letter-spacing: 0; }

@media (max-width: 640px) {
  .cl-dot { width: 30px; height: 30px; }
  .cl-dots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px 5px; }
  .cl-name { font-size: 11px; }
}

/* ==========================================================================
   v6 — Clean Retail / B2C only. Loaded last, overrides the v5 warm skin.
   All values are variables; no new literal hex except sampled colour data.
   ========================================================================== */
:root {
  --ink: #1A1D21;
  --ink-2: #3C4450;
  --body: #4B5563;
  --muted: #8A94A3;
  --line: #E4E7EB;
  --line-2: #EDF0F3;
  --line-strong: #C9CED6;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --paper: #F6F7F9;
  --paper-2: #F6F7F9;
  --brand: #D24E27;
  --brand-700: #B84320;
  --brand-300: #EBA98F;
  --brand-050: #FDF1EC;
  --brand-100: #F9DED2;
  --ok: #16803C;
  --ok-050: #EAF6EE;
  --warn: #B26B00;
  --warn-050: #FDF4E6;
  --danger: #C7332A;
  --danger-050: #FCECEA;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --t-1: 12px;
  --t-2: 13px;
  --t-3: 15px;
  --t-4: 18px;
  --t-5: 22px;
  --t-6: 28px;
  --t-7: clamp(36px, 4.4vw, 56px);
  --t-8: clamp(36px, 4.4vw, 56px);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, .08);
  --display: "Rubik", "Nunito Sans", "Segoe UI", sans-serif;
  --sans: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg) !important;
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--t-3);
  line-height: 1.65;
}
h1, h2, h3, h4, h5, .hh-h1, .page-h1, .sale-h1, .auth-h1 {
  font-family: var(--display) !important;
  font-weight: 600 !important;
  letter-spacing: -.012em;
  color: var(--ink);
}
h1, .hh-h1, .page-h1, .sale-h1 { font-weight: 700 !important; line-height: 1.1; }
h2, .sale-h2 { font-size: var(--t-6) !important; line-height: 1.2; }
h3 { font-size: var(--t-4) !important; }
h4 { font-size: var(--t-3) !important; }
em { font-style: normal; color: var(--brand); }

/* top strip + nav — flat white, no gradient, no blur */
.pstrip { background: var(--surface) !important; border-bottom: 1px solid var(--line); }
.pstrip-in { min-height: 34px; font-size: var(--t-1); }
.pstrip-l b { color: var(--ink); }
.pstrip .dot { background: var(--brand); box-shadow: none; }
.pnav { background: var(--surface) !important; border-bottom: 1px solid var(--line); backdrop-filter: none !important; }
.pnav-in { min-height: 62px; }
.pnav-links a { font-size: var(--t-2); color: var(--body); padding: 8px 10px; border-radius: var(--r-sm); }
.pnav-links a:hover, .pnav-links a.on { background: var(--paper); color: var(--brand); }
.pnav-links a.nav-sale { background: var(--brand-050); color: var(--brand); border: 1px solid transparent; border-radius: var(--r-pill); }
.pnav-links a.nav-sale:hover, .pnav-links a.nav-sale.on { background: var(--brand); color: #fff; }
.pbtn {
  border-radius: var(--r-md) !important;
  box-shadow: none !important;
  font-family: var(--sans) !important;
  font-size: var(--t-2) !important;
  font-weight: 700 !important;
  min-height: 42px !important;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.pbtn-primary { background: var(--brand) !important; color: #fff !important; }
.pbtn-primary:hover { background: var(--brand-700) !important; transform: translateY(-1px); }
.pbtn-primary:active { transform: translateY(0); }
.pbtn-ghost { background: var(--surface) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.pbtn-ghost:hover { background: var(--paper) !important; border-color: var(--line-strong) !important; }
.pbtn:focus-visible, .picon:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-100); outline-offset: 2px;
}
.picon { border-radius: var(--r-md) !important; border: 1px solid var(--line) !important; width: 38px; height: 38px; }
.picon:hover { background: var(--paper); border-color: var(--line-strong); }
.picon.on { background: var(--brand-050); border-color: var(--brand-300); color: var(--brand); }
.picon-user.is-in { color: var(--brand); border-color: var(--brand-300); }

/* surfaces */
.card, .fam-card, .part-card, .summary, .sale-card, .sale-fam-card, .auth-card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-sm) !important;
}
.card:hover, .fam-card:hover, .part-card:hover, .sale-card:hover, .sale-fam-card:hover {
  border-color: var(--line-strong) !important;
  box-shadow: var(--shadow-md) !important;
  transform: none !important;
}
.psec-alt { background: var(--paper) !important; }
.page-head { border-bottom: 1px solid var(--line) !important; background: var(--surface); }
/* v11 字体对齐 overture：eyebrow 用 Figtree 无衬线，非等宽 */
.eyebrow { color: var(--brand) !important; font-family: var(--sans) !important; letter-spacing: .1em; font-weight: 500; }
.hint { color: var(--muted) !important; }
code, .code, [style*="--mono"] { font-family: var(--mono) !important; }
.tbl th { background: var(--paper); color: var(--muted); font-size: var(--t-1); text-transform: none; letter-spacing: .04em; }
.tbl td, .tbl th { border-bottom: 1px solid var(--line); padding: 11px 12px; }
.tbl td.name { color: var(--ink); font-weight: 600; }
.input, .select, textarea.input, .field input, .field select {
  border: 1px solid var(--line) !important;
  border-radius: var(--r-sm) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
}
.field input:hover, .field select:hover { border-color: var(--line-strong) !important; }
.field input:focus, .field select:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--brand-100) !important; }
.field label, .auth-form label { color: var(--ink); font-size: var(--t-2); font-weight: 700; }
.tag, .fchip, .badge { border-radius: var(--r-pill) !important; border: 1px solid var(--line) !important; background: var(--surface) !important; color: var(--body); }
.fchip.on { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.tag-accent { background: var(--brand-050) !important; color: var(--brand) !important; border-color: transparent !important; }
.notice { border-radius: var(--r-md) !important; border: 1px solid var(--line) !important; background: var(--paper) !important; }
.notice.warn, .lock-box { display: none !important; }
.cta-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ink-panel { background: var(--paper) !important; color: var(--body) !important; }
.ink-panel h2, .ink-panel .k { color: var(--ink) !important; }
.timeline .tl-item h4 { color: var(--ink); }
.timeline .tl-item p { color: var(--body); }

/* home hero — no paper gradient, no giant serif */
.home-hero { background: var(--surface); padding-block: 56px 48px; }
.hh-h1 { font-size: var(--t-7) !important; letter-spacing: -.025em !important; }
.hh-lede { color: var(--body); font-size: var(--t-3); max-width: 58ch; }
.hh-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hh-facts > div { display: flex; flex-direction: column; gap: 2px; }
.hh-facts .k { color: var(--muted); font-size: var(--t-1); }
.hh-facts .v { color: var(--ink); font-size: var(--t-3); font-weight: 700; }
.hh-note { color: var(--muted); font-size: var(--t-1); }
.plates { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.plates-head, .plates-foot { color: var(--muted); font-size: var(--t-1); }
.plates-head b, .plates-foot b { color: var(--ink); }
.plate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.dim, .brandline, .marquee { display: none !important; }
.cat-index .ci { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.cat-index .ci:hover { border-color: var(--brand-300); background: var(--brand-050); }

/* sale page — still a promo, but no confetti and no tilted ticket */
.sale-hero { background: var(--surface) !important; }
.sale-h1 { font-size: var(--t-7) !important; }
.sale-h1 em { color: var(--brand); }
.sale-ticket { transform: none !important; background: var(--brand-050) !important; border: 1px solid var(--brand-300) !important; border-radius: var(--r-lg) !important; color: var(--brand) !important; box-shadow: none !important; }
.st-off { color: var(--brand) !important; }
.sale-confetti { display: none !important; }
.sale-card-n, .ph-n { color: var(--brand) !important; }
.sale-steps .sale-step .ss-n { color: var(--brand) !important; }

/* combined auth: one card, one clear column of fields */
.rg-body { padding-block: 48px 72px; background: var(--surface); }
.auth-card {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: 0; max-width: 900px; margin: 0 auto; overflow: hidden;
}
.auth-form-side { padding: 34px 38px; }
.auth-head { margin-bottom: 24px; }
.auth-h1 { font-size: var(--t-6) !important; margin: 8px 0 6px; }
.auth-sub { color: var(--body); font-size: var(--t-3); margin: 0; }
.auth-form .field { margin-bottom: 16px; }
.auth-form .input { width: 100%; min-height: 46px; padding: 10px 12px; }
.auth-form .hint { display: block; margin-top: 5px; font-size: var(--t-1); }
.auth-btn { width: 100%; min-height: 46px !important; margin-top: 6px; }
.auth-err { min-height: 20px; margin: 4px 0 0; color: var(--danger); font-size: var(--t-2); }
.auth-alt { margin-top: 16px; text-align: center; color: var(--muted); font-size: var(--t-2); }
.auth-alt a { color: var(--brand); font-weight: 700; }
.lgx-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lgx-forgot { font-size: var(--t-1); }
.lgx-check { display: flex; align-items: center; gap: 8px; font-size: var(--t-2); color: var(--body); margin: 4px 0 14px; }
.auth-side { background: var(--paper); border-left: 1px solid var(--line); padding: 34px 30px; }
.auth-side h3 { margin: 12px 0 14px; }
.auth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-list li { display: grid; gap: 2px; }
.auth-list b { color: var(--ink); font-size: var(--t-3); }
.auth-list span { color: var(--muted); font-size: var(--t-2); }
.auth-foot { margin-top: 22px; color: var(--muted); font-size: var(--t-1); }
.lgx-demo { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 22px; color: var(--muted); font-size: var(--t-1); }
.lgx-demo button { border: 1px solid var(--line); background: var(--surface); color: var(--body); border-radius: var(--r-sm); padding: 7px 12px; cursor: pointer; }
.lgx-demo button:hover { border-color: var(--brand-300); color: var(--brand); }
#authLogin[hidden], #authRegister[hidden] { display: none !important; }
#authRegister .rg-body { padding-top: 0; }

/* colour picker — fixed six columns, names allowed to wrap */
.cl-dots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 14px 10px !important; }
.cl-swatch { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.cl-dot { width: 34px; height: 34px; border-radius: 50% !important; border: 1px solid var(--line) !important; }
.cl-dot:hover { transform: translateY(-2px); border-color: var(--line-strong) !important; }
.cl-dot.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand) !important; }
.cl-name { font-size: 11px !important; line-height: 1.3; text-align: center; overflow-wrap: anywhere; color: var(--body); }
.pd-buy .pd-terms { border-top: 1px solid var(--line); }

/* account */
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.acc-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 22px 0 20px; }
.acc-tabs a { padding: 9px 14px; border-radius: var(--r-sm) var(--r-sm) 0 0; color: var(--body); font-size: var(--t-2); font-weight: 700; }
.acc-tabs a.on { color: var(--brand); background: var(--brand-050); }
.ord-meta { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-2); }
.ord-meta span { color: var(--muted); }
.ord-meta b { color: var(--ink); }

/* one quiet entrance, never a scroll show */
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head > .pwrap > *, .auth-card, .home-hero .hh-copy > * { animation: rise-in 380ms cubic-bezier(.16, 1, .3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; max-width: 560px; }
  .auth-side { border-left: 0; border-top: 1px solid var(--line); }
  .hh-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .pwrap { padding-inline: 16px; }
  .psec { padding-block: 40px; }
  .auth-form-side, .auth-side { padding: 24px 20px; }
  .pbtn { width: 100%; }
  .cl-dots { gap: 13px 8px !important; }
  .cl-dot { width: 30px; height: 30px; }
  .hh-facts { gap: 10px 20px; }
  .acc-tabs { overflow-x: auto; }
  .pnav-links { overflow-x: auto; }
  .pstrip-note-s { display: none; }
  .pstrip-l { font-size: 10px; letter-spacing: .04em; }
}

/* v6 polish — remove inherited paper grid, tighten the hero, honour [hidden] */
.home-hero::before { display: none !important; }
.home-hero { padding-block: 24px 32px !important; }
.hh-grid { padding: 24px 0 28px !important; }
.plates { padding: 14px !important; }
.auth-form .hint[hidden], .auth-form [hidden] { display: none !important; }
.lgx-caps[hidden], #lgCaps[hidden] { display: none !important; }
@media (max-width: 480px) {
  .pnav-links a.nav-sale { display: none; }
}

/* v7 — home is an entry page; B2B is its own page */
.entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.entry-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  min-height: 270px; padding: 24px 22px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.entry-card:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: 0 12px 28px rgba(84, 52, 32, .10); }
.entry-card.entry-sale { background: var(--brand-050); border-color: var(--brand-300); }
.entry-ic {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--surface); color: var(--brand);
  border: 1px solid var(--line);
}
.entry-sale .entry-ic { background: var(--surface); }
.entry-ic svg { width: 22px; height: 22px; }
.entry-n { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.entry-card h3 { margin: 2px 0 0; font-size: 22px; font-weight: 600; }
.entry-card p { margin: 0; color: var(--muted); font-size: var(--t-2); line-height: 1.62; flex: 1; }
.entry-go { margin-top: auto; color: var(--brand); font-size: var(--t-2); font-weight: 700; }
.entry-go b { font-weight: 700; }

.b2b-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .85fr); gap: 22px; align-items: start; }
.b2b-form { padding: 28px; }
.b2b-form-head { margin-bottom: 22px; }
.b2b-form-head h2 { margin: 0 0 4px; font-size: 24px; }
.b2b-form-head p { margin: 0; color: var(--muted); font-size: var(--t-2); }
.b2b-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.b2b-form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-2); font-weight: 700; color: var(--ink); }
.b2b-form input, .b2b-form select, .b2b-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--t-2); font-weight: 400;
}
.b2b-form textarea { resize: vertical; line-height: 1.6; }
.b2b-form input:focus, .b2b-form select:focus, .b2b-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050);
}
.b2b-form .is-invalid { border-color: #B3372A !important; }
.b2b-full { margin-bottom: 18px; }
.b2b-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.b2b-fine { color: var(--muted); font-size: var(--t-1); }
.b2b-fine.is-err { color: #B3372A; font-weight: 700; }
.b2b-ok { margin-top: 16px; padding: 14px 16px; border: 1px solid #B7D8C4; border-radius: var(--r-sm); background: #F1F9F4; font-size: var(--t-2); line-height: 1.6; }
.b2b-ok span { color: var(--muted); }
.b2b-side .card { padding: 24px; margin-bottom: 16px; }
.b2b-side h2 { margin: 6px 0 14px; font-size: 22px; }
.b2b-list { list-style: none; margin: 0; padding: 0; }
.b2b-list li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.b2b-list li b { font-size: var(--t-2); }
.b2b-list li span { color: var(--muted); font-size: var(--t-1); line-height: 1.6; }
.b2b-step { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--t-2); }
.b2b-step i { font-family: var(--mono); font-style: normal; color: var(--brand); }
.b2b-note { margin-top: 6px; color: var(--muted); font-size: var(--t-1); line-height: 1.65; }

@media (max-width: 1024px) {
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card { min-height: 0; }
  .b2b-row { grid-template-columns: 1fr; }
  .b2b-form { padding: 20px; }
  .b2b-actions .pbtn { width: 100%; }
}

/* v8 — home is a showcase; filament has its own page */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 20px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.stat b { font-family: var(--mono); font-size: 34px; line-height: 1.05; color: var(--brand); }
.stat span { font-size: var(--t-2); color: var(--muted); }
.showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.show-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-height: 176px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  text-decoration: none; transition: transform 180ms ease, border-color 180ms ease;
}
.show-item:hover { transform: translateY(-2px); border-color: var(--brand-300); }
.show-ic { width: 54px; height: 54px; display: grid; place-items: center; color: var(--brand-700); }
.show-ic svg { width: 52px; height: 52px; }
.show-item b { font-size: var(--t-3); }
.show-item small { color: var(--muted); font-size: var(--t-1); line-height: 1.5; }
.show-n { margin-top: auto; font-family: var(--mono); font-size: var(--t-1); color: var(--brand); }
@media (max-width: 1024px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stat { padding: 16px; }
  .stat b { font-size: 28px; }
  .showcase { grid-template-columns: 1fr; }
  .show-item { min-height: 0; }
}

/* v9 — Home in the overture rhythm, ISORA skin; auth as a closable floating window */
/* v11 — Banner 通栏铺满，比例 2.67:1，与参考 Overture 首屏一致 */
.hv-hero { padding: 0; background: var(--paper); }
.hv-slides { position: relative; min-height: 0; }
.hv-slide { display: none; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; min-height: 420px; }
.hv-slide.is-on { display: grid; }
.hv-copy h1, .hv-copy h2 { font-family: var(--display); font-size: clamp(36px, 3.8vw, 50px); line-height: 1.16; letter-spacing: normal; font-weight: 600; margin: 12px 0 16px; }
.hv-copy h1 em, .hv-copy h2 em { font-style: normal; color: var(--brand); }
.hv-copy p { max-width: 520px; font-size: var(--t-4); line-height: 1.65; color: var(--muted); }
.hv-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hv-art { position: relative; min-height: 300px; display: grid; place-items: center; }
.hv-mos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 470px; }
.hv-mos img { width: 100%; height: 158px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.hv-art-line { display: flex; gap: 20px; justify-content: center; color: var(--brand); }
.hv-art-line svg { width: 180px; height: 180px; }
.hv-badge { position: absolute; right: 0; bottom: 6px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font: 600 var(--t-1) var(--mono); color: var(--brand-700); }
.hv-slide.is-banner { display: none; }
.hv-slide.is-banner.is-on { display: block; }
.hv-banner-link { display: block; width: 100%; overflow: hidden; background: var(--paper); }
.hv-banner-link img { display: block; width: 100%; height: auto; }
.hv-ctl { display: flex; align-items: center; gap: 12px; padding: 8px 0 18px; max-width: var(--wrap, 1440px); margin: 0 auto; padding-inline: var(--gutter, 20px); }
.hv-ctl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.hv-ctl button:hover { border-color: var(--brand); color: var(--brand); }
.hv-num { font: 600 var(--t-2) var(--mono); color: var(--muted); }
.hv-num b { color: var(--ink); }
.hv-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.hv-trust-in { display: flex; gap: 30px; overflow-x: auto; padding-block: 13px; white-space: nowrap; font: 600 var(--t-1) var(--mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.hv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hv-feature { display: grid; grid-template-columns: 1fr .8fr; gap: 18px; align-items: center; min-height: 238px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 180ms ease, border-color 180ms ease; }
.hv-feature:hover { transform: translateY(-3px); border-color: var(--brand-300); }
.hv-feat-copy h3 { font-family: var(--display); font-size: 26px; margin: 10px 0; }
.hv-feat-copy p { color: var(--muted); font-size: var(--t-2); line-height: 1.6; }
.hv-link { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 700; font-size: var(--t-2); }
.hv-feat-art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hv-feat-art img { width: 100%; height: 96px; object-fit: contain; background: var(--surface); border-radius: var(--r-sm); }
.hv-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hv-gal { position: relative; display: flex; flex-direction: column; min-height: 268px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); background: var(--surface); text-decoration: none; transition: border-color 160ms ease, transform 160ms ease; }
.hv-gal:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.hv-gal > img { width: 100%; height: 196px; object-fit: contain; display: block; background: var(--paper); }
.hv-gal-body { position: relative; flex: 1; padding: 14px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.hv-gal-body b { display: block; font-family: var(--display); font-size: var(--t-4); }
.hv-gal-body span { display: block; margin-top: 5px; font-size: var(--t-1); line-height: 1.5; color: var(--muted); }
.hv-gal-body i { position: absolute; right: 14px; bottom: 14px; font-style: normal; font-size: 18px; color: var(--brand); }
.hv-proof-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hv-proof-head h2 { font-family: var(--display); font-size: 34px; }
.hv-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.hv-proof-stat { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: center; }
.hv-proof-stat b { display: block; font: 700 32px var(--mono); color: var(--brand); }
.hv-proof-stat span { font-size: var(--t-2); color: var(--muted); }
.hv-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hv-quotes > div { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.hv-quotes p { font-size: var(--t-2); line-height: 1.65; }
.hv-quotes span { display: block; margin-top: 12px; font: 600 var(--t-1) var(--mono); color: var(--muted); }
.hv-quotes .verified { font-style: normal; color: var(--success); }
.hv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.hv-tabs a { padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 var(--t-2) var(--sans); text-decoration: none; }
.hv-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.hv-fams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hv-fams .fam-card[hidden] { display: none !important; }
.hv-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.hv-tips h2 { font-family: var(--display); font-size: 32px; margin: 10px 0; }
.hv-tips p { color: var(--muted); line-height: 1.65; max-width: 420px; }
.hv-tips-art img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--r-md); }
.hv-community { padding: 62px 0 54px; background: var(--ink); color: #fff; text-align: center; }
.hv-community h2 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 42px); max-width: 760px; margin: 0 auto 28px; }
.hv-collage { display: flex; justify-content: center; align-items: center; gap: 8px; }
.hv-collage img { width: 150px; height: 124px; object-fit: contain; border-radius: 12px; background: var(--surface); padding: 6px; transform: rotate(-3deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.hv-collage img:nth-child(even) { transform: rotate(3deg); }
.hv-community p { margin-top: 28px; opacity: .8; font-size: var(--t-2); }
.hv-community a { color: #F6C35F; }
.hv-why h2 { font-family: var(--display); font-size: 34px; text-align: center; }
.hv-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.hv-why-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.hv-why-grid b { display: block; margin-bottom: 6px; }
.hv-why-grid span { font-size: var(--t-2); color: var(--muted); line-height: 1.6; }
.hv-why-cta { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 10px; }
.hv-why-cta span { font-weight: 600; }

.am[hidden], .am [hidden] { display: none !important; }
.am { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 20px; }
.am-backdrop { position: absolute; inset: 0; background: rgba(26, 29, 33, .62); backdrop-filter: blur(3px); }
.am-card { position: relative; width: min(100%, 430px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 24px 70px rgba(26, 29, 33, .24); }
.am-x { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.am-x:hover { color: var(--brand); border-color: var(--brand); }
.am-head h2 { font-family: var(--display); font-size: 28px; margin: 8px 0; }
.am-head p { font-size: var(--t-2); color: var(--muted); line-height: 1.55; }
.am-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 18px 0; padding: 4px; border-radius: 999px; background: var(--paper); }
.am-tabs button { padding: 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 var(--t-2) var(--sans); cursor: pointer; }
.am-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(26, 29, 33, .1); }
.am .auth-form .field { margin-bottom: 12px; }
.am .auth-btn { width: 100%; margin-top: 6px; }
.am-alt, .am-foot { margin-top: 14px; text-align: center; font-size: var(--t-2); color: var(--muted); }
.am-alt button, .am-foot a { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.am-foot { padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 1024px) {
  .hv-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-proof-grid, .hv-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hv-hero { padding-top: 18px; }
  .hv-slide, .hv-slide.is-on { grid-template-columns: 1fr; gap: 18px; min-height: 0; }
  .hv-copy h1, .hv-copy h2 { font-size: 34px; }
  .hv-art { min-height: 0; }
  .hv-mos img { height: 120px; }
  .hv-two, .hv-gallery, .hv-fams, .hv-tips { grid-template-columns: 1fr; }
  .hv-feature { grid-template-columns: 1fr; min-height: 0; padding: 20px; }
  .hv-feat-art img { height: 110px; }
  .hv-gal { min-height: 0; }
  .hv-gal > img { height: 180px; }
  .hv-collage img { width: 88px; height: 74px; }
  .hv-proof-head h2, .hv-why h2 { font-size: 27px; }
  .am-card { padding: 22px; }
}

/* ---- v10: trust & conversion decorations ---- */
.hv-trust-in b { color: var(--brand); font-weight: 700; margin-right: 4px; }
.ship-meter { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-alt); }
.ship-meter-txt { font: 600 var(--t-2) var(--sans); color: var(--ink); margin-bottom: 9px; }
.ship-meter-track { height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.ship-meter-fill { height: 100%; width: 0; border-radius: 999px; background: var(--brand); transition: width 320ms ease; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; padding: 18px 0 4px; margin-top: 16px; border-top: 1px solid var(--line); }
.trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-1); color: var(--muted); }
.trust-item svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.trust-item b { color: var(--ink); font-weight: 600; }
.trust-item small { color: var(--muted); }
.pay-chip { display: inline-block; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 600 10px var(--mono); letter-spacing: .06em; color: var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 14px 2px; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 0; color: var(--brand); font-weight: 700; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin: 10px 0 2px; color: var(--muted); line-height: 1.65; font-size: var(--t-2); }

/* ---- v11: printed-sample scenes (MakerWorld sourcing) ---- */
.hv-scenes { background: var(--surface); border-bottom: 1px solid var(--line); }
.hv-scenes-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.hv-scene { position: relative; background: var(--surface); overflow: hidden; }
.hv-scene img { width: 100%; height: 150px; object-fit: cover; display: block; }
.hv-scene > div { position: absolute; inset: auto 0 0; padding: 26px 14px 12px; background: linear-gradient(180deg, transparent, rgba(20,22,25,.82)); color: #fff; }
.hv-scene b { display: block; font-family: var(--display); font-size: var(--t-2); }
.hv-scene span { display: block; font-size: var(--t-1); opacity: .85; margin-top: 2px; }
.hv-gal > img { object-fit: cover; }
.fam-shot { background: var(--surface); border-bottom: 1px solid var(--line); }
.fam-shot-in { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.fam-shot-in img { width: 190px; height: 118px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); flex: none; }
.fam-shot-copy { display: flex; flex-direction: column; gap: 4px; }
.fam-shot-copy b { font-family: var(--display); font-size: var(--t-4); color: var(--ink); }
.fam-shot-copy > span:last-child { font-size: var(--t-2); color: var(--muted); line-height: 1.5; }
@media (max-width: 1024px) { .hv-scenes-in { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .hv-scene img { height: 118px; }
  .hv-scene > div { padding: 20px 10px 8px; }
  .fam-shot-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fam-shot-in img { width: 100%; height: 160px; }
}
