/* ==========================================================================
   Mechoz Lab — 设计系统
   浅色默认，跟随系统深色；可用右上角按钮手动切换。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f9f8f7;
  --surface-2: #f0efed;
  --raised: #ffffff;
  --hover: #f3f2f0;
  --border: #e6e5e3;
  --border-strong: #d6d4d0;
  --divider: #eceae8;
  --text: #2c2c2b;
  --text-2: #6f6c67;
  --accent: #1f6fc5;
  --accent-hover: #1a5fa9;
  --accent-soft: #e5f2fc;
  --accent-text: #1a5fa9;
  --accent-deco: #2783de;
  --on-accent: #ffffff;
  --green: #46a171;
  --green-soft: #e8f1ec;
  --green-text: #2b7350;
  --orange: #d5803b;
  --orange-soft: #fbebde;
  --orange-text: #985019;
  --red: #e56458;
  --red-soft: #fce9e7;
  --red-text: #b4372d;
  --band: #191919;
  --band-text: #ffffff;
  --band-text-2: rgba(255, 255, 255, 0.68);
  --band-border: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(255, 255, 255, 0.78);
  --overlay: rgba(25, 25, 25, 0.45);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #191919;
  --surface: #202020;
  --surface-2: #2a2a29;
  --raised: #202020;
  --hover: #2f2f2e;
  --border: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.28);
  --divider: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.65);
  --accent: #5e9fe8;
  --accent-hover: #7db2ee;
  --accent-soft: rgba(94, 159, 232, 0.14);
  --accent-text: #8fbdf0;
  --accent-deco: #5e9fe8;
  --on-accent: #0b1220;
  --green: #72bc8f;
  --green-soft: rgba(114, 188, 143, 0.14);
  --green-text: #8fd0a8;
  --orange: #de9255;
  --orange-soft: rgba(222, 146, 85, 0.14);
  --orange-text: #eaae7e;
  --red: #e97366;
  --red-soft: rgba(233, 115, 102, 0.14);
  --red-text: #f19a90;
  --band: #202020;
  --band-text: #ffffff;
  --band-text-2: rgba(255, 255, 255, 0.65);
  --band-border: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(25, 25, 25, 0.78);
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191919;
    --surface: #202020;
    --surface-2: #2a2a29;
    --raised: #202020;
    --hover: #2f2f2e;
    --border: rgba(255, 255, 255, 0.16);
    --border-strong: rgba(255, 255, 255, 0.28);
    --divider: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.65);
    --accent: #5e9fe8;
    --accent-hover: #7db2ee;
    --accent-soft: rgba(94, 159, 232, 0.14);
    --accent-text: #8fbdf0;
    --accent-deco: #5e9fe8;
    --on-accent: #0b1220;
    --green: #72bc8f;
    --green-soft: rgba(114, 188, 143, 0.14);
    --green-text: #8fd0a8;
    --orange: #de9255;
    --orange-soft: rgba(222, 146, 85, 0.14);
    --orange-text: #eaae7e;
    --red: #e97366;
    --red-soft: rgba(233, 115, 102, 0.14);
    --red-text: #f19a90;
    --band: #202020;
    --band-text: #ffffff;
    --band-text-2: rgba(255, 255, 255, 0.65);
    --band-border: rgba(255, 255, 255, 0.16);
    --header-bg: rgba(25, 25, 25, 0.78);
    --overlay: rgba(0, 0, 0, 0.6);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1184px; margin: 0 auto; padding: 0 32px; }
.container-narrow { width: 100%; max-width: 784px; margin: 0 auto; padding: 0 32px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.section-tight { padding-top: 48px; padding-bottom: 48px; }
.section + .section { padding-top: 0; }
.surface-band { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head p { color: var(--text-2); margin-top: 8px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 600; font-size: 15px; min-height: 44px; white-space: nowrap; }
.link-more:hover { color: var(--accent-hover); }
.link-more .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.link-more:hover .icon { transform: translateX(2px); }

/* ---------- Type ---------- */
.display { font-size: 52px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
h1, .h1 { font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
h2, .h2 { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
h3, .h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
.lead { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 12px; }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  user-select: none;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: .88; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--hover); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-soft:hover { filter: brightness(.97); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); color: var(--text); transition: background-color .15s ease; }
.icon-btn:hover { background: var(--hover); }

/* ---------- Tags & badges ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.tag .icon { width: 14px; height: 14px; }
.tag-accent { background: var(--accent-soft); color: var(--accent-text); }
.tag-green { background: var(--green-soft); color: var(--green-text); }
.tag-orange { background: var(--orange-soft); color: var(--orange-text); }
.tag-red { background: var(--red-soft); color: var(--red-text); }
.tag-outline { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
a.tag:hover { color: var(--text); background: var(--hover); }

/* ---------- Avatar ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex: none; font-size: 14px; font-weight: 700; color: #1b1b1b; background: var(--surface-2); line-height: 1; letter-spacing: 0; overflow: hidden; }
.avatar-sm { width: 24px; height: 24px; font-size: 12px; }
.avatar-lg { width: 40px; height: 40px; font-size: 16px; }
.avatar-xl { width: 64px; height: 64px; font-size: 24px; }
.avatar-brand { background: var(--text); color: var(--bg); }
.avatar-brand svg { width: 60%; height: 60%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--divider); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; min-height: 44px; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark .bm-bg { fill: var(--text); }
.brand-mark .bm-fg { stroke: var(--bg); }
.brand-mark .bm-dot { fill: var(--accent-deco); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--radius); font-size: 15px; color: var(--text-2); font-weight: 500; transition: color .15s ease, background-color .15s ease; }
.nav a:hover { color: var(--text); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-actions .btn { min-height: 40px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 6px; border-radius: var(--radius); font-size: 15px; font-weight: 500; max-width: 180px; }
.user-chip:hover { background: var(--hover); }
.user-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; }
.user-menu { position: relative; }
.user-menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.user-menu-pop .pop-head { padding: 8px 12px 12px; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.user-menu-pop .pop-head strong { display: block; font-size: 15px; }
.user-menu-pop .pop-head span { font-size: 14px; color: var(--text-2); }
.user-menu-pop button, .user-menu-pop a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--radius); font-size: 15px; text-align: left; }
.user-menu-pop button:hover, .user-menu-pop a:hover { background: var(--hover); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); padding: 16px 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a.mm-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--divider); }
.mobile-menu a.mm-link .icon { color: var(--text-2); }
.mobile-menu .mm-actions { display: grid; gap: 12px; margin-top: 24px; }
body.menu-open { overflow: hidden; }

.demo-banner { background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }
.demo-banner .container { display: flex; align-items: center; gap: 8px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.demo-banner .icon { width: 16px; height: 16px; }
.demo-banner a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--divider); background: var(--surface); margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding: 48px 0 32px; }
.footer-brand p { color: var(--text-2); font-size: 15px; margin: 12px 0 16px; max-width: 320px; }
.footer-col h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: 0; }
.footer-col a { display: flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 32px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--text-2); }
.footer-social { display: flex; gap: 4px; }
.footer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); color: var(--text-2); border: 1px solid var(--border); background: var(--bg); }
.footer-social a:hover { color: var(--text); }

/* ---------- Cards ---------- */
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-pad { padding: 24px; }
.card-link { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

/* ---------- Home: hero ---------- */
.hero { padding-top: 72px; text-align: center; }
.hero .eyebrow { margin-bottom: 20px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; color: var(--text-2); }
.hero-pill .tag { height: 24px; padding: 0 8px; font-size: 14px; }
.hero-pill:hover { border-color: var(--border-strong); color: var(--text); }
.hero h1 { margin: 20px auto 0; max-width: 820px; }
.hero .lead { margin: 20px auto 0; max-width: 600px; }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media { margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--divider); background: var(--surface-2); aspect-ratio: 21 / 9; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* ---------- Home: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(260px, auto); gap: 16px; }
.bento-item { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--raised); overflow: hidden; }
.bento-item h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-top: 16px; }
.bento-item > p { color: var(--text-2); margin-top: 8px; max-width: 420px; }
.bento-icon { width: 44px; height: 44px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
.bento-icon .icon { width: 22px; height: 22px; }
.bento-item .link-more { margin-top: auto; padding-top: 16px; }
.bento-community { grid-column: span 2; }
.bento-repair { grid-row: span 2; padding-bottom: 0; background: var(--surface); }
.bento-repair .bento-photo { margin: 24px -28px 0; flex: 1; min-height: 220px; position: relative; border-top: 1px solid var(--divider); }
.bento-repair .bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-repair .link-more { margin-top: 16px; padding-top: 0; }
.mini-threads { margin-top: 20px; border-top: 1px solid var(--divider); }
.mini-thread { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.mini-thread:hover .mt-title { color: var(--accent-text); }
.mini-thread .mt-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-thread .mt-meta { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; flex: none; }
.mini-thread .mt-meta .icon { width: 15px; height: 15px; }
.mini-articles { margin-top: 16px; display: grid; gap: 4px; }
.mini-articles a { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 8px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--divider); }
.mini-articles a span:first-child { flex: 1; min-width: 0; }
.mini-articles a:hover { color: var(--accent-text); }
.mini-articles time { font-size: 14px; color: var(--text-2); flex: none; font-variant-numeric: tabular-nums; }

.gc-stack { position: relative; height: 128px; margin-top: 20px; }
.gc-stack .gc { position: absolute; width: 168px; height: 106px; border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; }
.gc-stack .gc:nth-child(1) { left: 0; top: 18px; transform: rotate(-6deg); }
.gc-stack .gc:nth-child(2) { left: 64px; top: 8px; transform: rotate(2deg); }
.gc-stack .gc:nth-child(3) { left: 132px; top: 22px; transform: rotate(8deg); }
.gc-stack .gc .gc-label { font-size: 17px; }
.gc-stack .gc .gc-kicker { font-size: 10px; }

/* ---------- Article cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.article-card { display: flex; flex-direction: column; gap: 14px; }
.article-card .ac-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); border: 1px solid var(--divider); }
.article-card .ac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .ac-media img { transform: scale(1.025); }
.article-card .ac-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.article-card h3 { font-size: 19px; line-height: 1.45; font-weight: 650; }
.article-card:hover h3 { color: var(--accent-text); }
.article-card p { color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; flex: none; }

/* ---------- Dark band (process) ---------- */
.band { background: var(--band); color: var(--band-text); border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.band h2 { color: var(--band-text); }
.band p { color: var(--band-text-2); margin-top: 12px; }
.band .btn-light { background: #ffffff; color: #191919; margin-top: 28px; }
.band .btn-light:hover { background: #ececea; }
.band-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.band-step { position: relative; padding: 0 12px 0 0; }
.band-step .num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--band-border); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; z-index: 1; background: var(--band); }
.band-step::before { content: ""; position: absolute; left: 36px; right: 0; top: 18px; height: 1px; background: var(--band-border); }
.band-step:last-child::before { display: none; }
.band-step h3 { font-size: 16px; margin-top: 14px; color: var(--band-text); }
.band-step p { font-size: 14px; margin-top: 4px; line-height: 1.55; }

/* ---------- X CTA ---------- */
.x-cta { text-align: center; padding: 56px 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.x-cta .x-mark { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 20px; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.x-cta .x-mark .icon { width: 26px; height: 26px; }
.x-cta h2 { font-size: 28px; }
.x-cta p { color: var(--text-2); margin: 12px auto 28px; max-width: 520px; }
.x-cta .cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Page head ---------- */
.page-head { padding: 48px 0 32px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head p { color: var(--text-2); margin-top: 10px; font-size: 17px; max-width: 640px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 7px; font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background-color .15s ease, color .15s ease; position: relative; }
.tab::after { content: ""; position: absolute; inset: -4px 0; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: #383836; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab[aria-selected="true"] { background: #383836; } }
.tab .count { font-size: 14px; color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.stack { display: grid; gap: 16px; }
.label { font-size: 15px; font-weight: 600; }
.label .opt { color: var(--text-2); font-weight: 400; margin-left: 4px; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--bg); font-size: 16px; line-height: 1.5; transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder, .textarea::placeholder { color: var(--text-2); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f6c67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.help { font-size: 14px; color: var(--text-2); }
.field-error { font-size: 14px; color: var(--red-text); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field + .field { margin-top: 0; }
.form-section + .form-section { margin-top: 16px; }
.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border-strong); font-size: 15px; font-weight: 600; line-height: 1.35; transition: border-color .15s ease, background-color .15s ease; }
.choice span small { font-size: 14px; color: var(--text-2); font-weight: 400; margin-top: 2px; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; min-height: 44px; padding-top: 10px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; line-height: 1.6; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.notice .icon { width: 18px; height: 18px; margin-top: 2px; }
.notice-orange { background: var(--orange-soft); border-color: transparent; color: var(--orange-text); }
.notice-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.notice-green { background: var(--green-soft); border-color: transparent; color: var(--green-text); }

/* ---------- Search ---------- */
.search { position: relative; width: 280px; max-width: 100%; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.search .input { padding-left: 40px; background: var(--bg); }

/* ---------- Community ---------- */
.community-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 288px; gap: 32px; align-items: start; padding-bottom: 64px; }
.board-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.board-nav .bn-title { font-size: 14px; font-weight: 600; color: var(--text-2); padding: 0 12px 8px; }
.board-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius); font-size: 15px; color: var(--text-2); font-weight: 500; text-align: left; width: 100%; }
.board-link .icon { width: 18px; height: 18px; }
.board-link .count { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.board-link:hover { background: var(--hover); color: var(--text); }
.board-link[aria-current="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.thread-list { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--raised); overflow: hidden; }
.thread-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--divider); transition: background-color .15s ease; }
.thread-item:last-child { border-bottom: 0; }
.thread-item:hover { background: var(--surface); }
.thread-item .ti-title { font-size: 16px; font-weight: 600; line-height: 1.45; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.thread-item .ti-title a:hover { color: var(--accent-text); }
.thread-item .ti-title a::after { content: ""; position: absolute; inset: 0; }
.thread-item { position: relative; }
.thread-item .tag { height: 24px; padding: 0 8px; font-size: 14px; }
.thread-item .ti-excerpt { font-size: 15px; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.thread-item .ti-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.thread-item .ti-meta .board-chip { color: var(--text); font-weight: 500; }
.thread-item .ti-stats { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; align-self: center; }
.thread-item .ti-stats span { display: inline-flex; align-items: center; gap: 5px; min-width: 40px; }
.thread-item .ti-stats .icon { width: 16px; height: 16px; }
.rail { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.rail-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--raised); }
.rail-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rail-card p { font-size: 15px; color: var(--text-2); }
.rail-card ol { counter-reset: rule; display: grid; gap: 10px; }
.rail-card ol li { counter-increment: rule; display: flex; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.rail-card ol li::before { content: counter(rule); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag { min-height: 32px; height: auto; padding: 0 12px; }
.rail-card .btn { margin-top: 16px; }
.empty { text-align: center; padding: 56px 24px; color: var(--text-2); }
.empty > .icon { width: 32px; height: 32px; margin: 0 auto 12px; color: var(--text-2); }
.empty h3 { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.board-chips { display: none; }

/* ---------- Thread ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); padding: 24px 0 0; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .icon { width: 14px; height: 14px; }
.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding: 20px 0 64px; }
.post { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--raised); padding: 32px; }
.post h1 { font-size: 30px; line-height: 1.3; }
.post-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.post-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--divider); }
.post-author .pa-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.post-author .pa-sub { font-size: 14px; color: var(--text-2); }
.role { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1; }
.role-admin { background: var(--text); color: var(--bg); }
.role-pro { background: var(--green-soft); color: var(--green-text); }
.ugc { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.ugc p + p, .ugc p + ul, .ugc ul + p { margin-top: 12px; }
.ugc ul { list-style: disc; padding-left: 22px; }
.ugc ul li + li { margin-top: 4px; }
.ugc a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ugc code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.post .ugc { margin-top: 24px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--divider); }
.like-btn[aria-pressed="true"] { color: var(--red-text); border-color: var(--red); background: var(--red-soft); }
.like-btn[aria-pressed="true"] .icon { fill: currentColor; }
.replies { margin-top: 32px; }
.replies-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.replies-head h2 { font-size: 20px; }
.reply-list { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--raised); }
.reply { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--divider); }
.reply:last-child { border-bottom: 0; }
.reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.reply-head strong { font-size: 15px; }
.reply-head .floor { margin-left: auto; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.reply-head time { font-size: 14px; color: var(--text-2); }
.reply.is-op-author .reply-head strong::after { content: "楼主"; margin-left: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; vertical-align: 1px; }
.composer { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--raised); padding: 20px 24px; }
.composer .textarea { min-height: 112px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.composer-foot .help { flex: 1; }
.composer-locked { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.composer-locked p { color: var(--text-2); font-size: 15px; }
.related-threads a { display: block; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 15px; font-weight: 500; line-height: 1.5; }
.related-threads a:last-child { border-bottom: 0; padding-bottom: 0; }
.related-threads a:hover { color: var(--accent-text); }
.related-threads a span { display: block; font-size: 14px; color: var(--text-2); font-weight: 400; margin-top: 2px; }

/* ---------- Repair ---------- */
.split-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 56px 0 0; }
.split-hero h1 { font-size: 48px; line-height: 1.15; letter-spacing: -0.02em; }
.split-hero .lead { margin-top: 20px; max-width: 520px; }
.split-hero .hero-ctas { justify-content: flex-start; margin-top: 28px; }
.split-hero .sh-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--divider); background: var(--surface-2); }
.split-hero .sh-media img { width: 100%; height: 100%; object-fit: cover; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-2); }
.trust-list .icon { width: 18px; height: 18px; color: var(--green); }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.device-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--raised); text-align: left; transition: border-color .15s ease, box-shadow .15s ease; width: 100%; }
.device-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.device-card .dc-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--text); }
.device-card .dc-icon .icon { width: 24px; height: 24px; }
.device-card h3 { font-size: 17px; }
.device-card p { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step-card { padding: 24px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--divider); }
.step-card .num { font-family: var(--mono); font-size: 14px; color: var(--accent-text); font-weight: 600; }
.step-card h3 { font-size: 17px; margin-top: 12px; }
.step-card p { font-size: 14px; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; background: var(--raised); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.price-table th, .price-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--divider); }
.price-table th { font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td.col-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table td.col-time { color: var(--text-2); white-space: nowrap; }
.price-note { font-size: 14px; color: var(--text-2); margin-top: 12px; }
.booking { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.booking-aside h2 { margin-bottom: 12px; }
.booking-aside > p { color: var(--text-2); }
.prep-list { margin-top: 24px; display: grid; gap: 14px; }
.prep-list li { display: flex; gap: 12px; font-size: 15px; }
.prep-list .icon { color: var(--accent-text); margin-top: 3px; width: 18px; height: 18px; }
.prep-list strong { display: block; font-weight: 600; }
.prep-list span { color: var(--text-2); font-size: 14px; }
.form-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--raised); box-shadow: var(--shadow); }
.form-card h3 { font-size: 20px; margin-bottom: 4px; }
.form-card > p { color: var(--text-2); font-size: 15px; margin-bottom: 20px; }
.form-actions { margin-top: 24px; display: grid; gap: 12px; }
.success { text-align: center; padding: 16px 0 4px; }
.success .s-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; background: var(--green-soft); color: var(--green-text); display: flex; align-items: center; justify-content: center; }
.success .s-icon .icon { width: 28px; height: 28px; }
.success h3 { font-size: 22px; }
.success p { color: var(--text-2); margin-top: 8px; }
.order-no { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 12px; border-radius: var(--radius); background: var(--surface-2); font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.contact-actions .btn { padding: 0 10px; }
.next-steps { text-align: left; margin-top: 20px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--divider); }
.next-steps ol { display: grid; gap: 8px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: flex; gap: 10px; font-size: 15px; }
.next-steps li::before { content: counter(ns); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.faq { border-top: 1px solid var(--divider); }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--text-2); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--text-2); padding: 0 40px 20px 0; font-size: 16px; }
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }

/* ---------- Store ---------- */
.store-hero { padding: 48px 0 8px; }
.store-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--divider); }
.trust-item .ti-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--raised); border: 1px solid var(--divider); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { font-size: 14px; color: var(--text-2); }
.store-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 20px; flex-wrap: wrap; }
.store-toolbar .tools { display: flex; gap: 8px; align-items: center; }
.store-toolbar .select { width: auto; min-width: 150px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.product-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); position: relative; }
.product-card .pc-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--divider); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .pc-media img { transform: scale(1.03); }
.product-card .pc-media .gc { position: absolute; inset: 0; border-radius: 0; }
.product-card .pc-badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.pc-badge .tag { background: var(--raised); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); height: 26px; font-size: 14px; font-weight: 600; }
.product-card .pc-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .pc-title { font-size: 16px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card:hover .pc-title { color: var(--accent-text); }
.product-card .pc-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.product-card .pc-sub { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.price .cur { font-size: 14px; }
.price .num { font-size: 20px; letter-spacing: -0.01em; }
.price .from { font-size: 14px; font-weight: 500; color: var(--text-2); margin-left: 2px; }
.pc-delivery { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pc-delivery .icon { width: 14px; height: 14px; }
.store-note { margin-top: 48px; }

/* Gift-card art (code-native, no logos) */
.gc { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.gc::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; bottom: -38%; border-radius: 50%; background: rgba(255,255,255,.10); z-index: -1; }
.gc::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; right: 14%; top: -22%; border-radius: 50%; background: rgba(255,255,255,.07); z-index: -1; }
.gc-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .9; }
.gc-label { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.gc-region { font-size: 14px; font-weight: 600; opacity: .9; }
.gc-chip { position: absolute; right: 22px; top: 20px; width: 34px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.35); }
.gc-appstore { background: linear-gradient(135deg, #1d5fd1 0%, #5b46cf 100%); }
.gc-play { background: linear-gradient(135deg, #0c6b48 0%, #1760b0 100%); }
.gc-steam { background: linear-gradient(135deg, #111b27 0%, #24445e 100%); }
.gc-chatgpt { background: linear-gradient(135deg, #0d0d0d 0%, #0f5743 100%); }
.gc-claude { background: linear-gradient(135deg, #8f3d22 0%, #b55a36 100%); }
.gc-x { background: linear-gradient(135deg, #000 0%, #2b2b2b 100%); }
.gc-psn { background: linear-gradient(135deg, #0a2463 0%, #0b5bbf 100%); }
.gc-telegram { background: linear-gradient(135deg, #0d4f80 0%, #1a7bb8 100%); }
.gc-midjourney { background: linear-gradient(135deg, #12122a 0%, #3b3778 100%); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 20px 0 48px; }
.pdp-media { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--divider); }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media .gc { position: absolute; inset: 0; padding: 40px 44px; }
.pdp-media .gc-label { font-size: 48px; }
.pdp-media .gc-kicker { font-size: 14px; }
.pdp-media .gc-region { font-size: 18px; }
.pdp-media .gc-chip { width: 56px; height: 42px; right: 40px; top: 36px; border-radius: 8px; }
.pdp-info h1 { font-size: 30px; line-height: 1.3; margin-top: 12px; }
.pdp-info .pdp-sub { color: var(--text-2); font-size: 17px; margin-top: 8px; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.price-block { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--divider); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-block .price .cur { font-size: 18px; }
.price-block .price .num { font-size: 34px; }
.price-block .pb-note { font-size: 14px; color: var(--text-2); }
.opt-group { margin-top: 24px; }
.opt-group .og-label { font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.opt-group .og-label span { font-weight: 400; color: var(--text-2); font-size: 14px; }
.sku-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sku { min-height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--border-strong); font-size: 15px; font-weight: 500; background: var(--bg); transition: border-color .15s ease, background-color .15s ease; }
.sku:hover { border-color: var(--text-2); }
.sku[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--hover); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 44px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp-facts { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--divider); }
.pdp-facts div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 15px; }
.pdp-facts dt { color: var(--text-2); }
.pdp-facts dd { margin: 0; }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.guarantees { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.guarantees li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.guarantees .icon { width: 16px; height: 16px; color: var(--green); }
.pdp-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 16px 0 64px; border-top: 1px solid var(--divider); }
.pdp-detail .tabs { margin: 32px 0 24px; }
.panel h2 { font-size: 20px; margin-bottom: 12px; }
.panel h2:not(:first-child) { margin-top: 32px; }
.panel p { color: var(--text); line-height: 1.8; }
.panel p + p { margin-top: 12px; }
.highlight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 8px; }
.highlight-row div { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--divider); font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.highlight-row .icon { color: var(--accent-text); width: 18px; height: 18px; margin-top: 2px; }
.num-steps { counter-reset: ns; display: grid; gap: 0; }
.num-steps li { counter-increment: ns; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 15px; }
.num-steps li:last-child { border-bottom: 0; }
.num-steps li::before { content: counter(ns); flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.bullet-list { display: grid; gap: 10px; }
.bullet-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.7; }
.bullet-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--text-2); }
.support-card h2 { font-size: 17px; margin-bottom: 8px; }
.support-card p { font-size: 15px; color: var(--text-2); }
.support-card .contact-stack { display: grid; gap: 8px; margin-top: 16px; }
.support-card .btn { justify-content: flex-start; }
.pdp-aside { padding-top: 32px; display: grid; gap: 16px; align-content: start; }

/* Drawer (checkout) & modal */
dialog { padding: 0; border: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: var(--overlay); }
.modal { width: min(520px, calc(100vw - 32px)); border-radius: var(--radius-lg); background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-lg); margin: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; }
.modal-wide { width: min(640px, calc(100vw - 32px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 12px 24px; border-bottom: 1px solid var(--divider); }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px 20px; border-top: 1px solid var(--divider); display: flex; justify-content: flex-end; gap: 12px; }
.drawer { position: fixed; inset: 0 0 0 auto; height: 100vh; height: 100dvh; width: min(460px, 100vw); margin: 0; background: var(--raised); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer .modal-body { flex: 1; }
.order-summary { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--divider); align-items: center; }
.order-summary .os-thumb { width: 72px; height: 54px; border-radius: 6px; overflow: hidden; position: relative; background: var(--surface-2); }
.order-summary .os-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-summary .os-thumb .gc { position: absolute; inset: 0; padding: 6px 8px; }
.order-summary .os-thumb .gc-label { font-size: 10px; }
.order-summary .os-thumb .gc-kicker, .order-summary .os-thumb .gc-region, .order-summary .os-thumb .gc-chip { display: none; }
.order-summary strong { display: block; font-size: 15px; line-height: 1.4; }
.order-summary span { font-size: 14px; color: var(--text-2); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; }
.total-row .price .num { font-size: 26px; }
.drawer-foot { padding: 16px 24px 20px; border-top: 1px solid var(--divider); display: grid; gap: 12px; }
.auth-tabs { margin-bottom: 20px; display: flex; }
.auth-tabs .tab { flex: 1; justify-content: center; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); background: #2c2c2b; color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 15px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); }
:root[data-theme="dark"] .toast { background: #f0efed; color: #191919; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #f0efed; color: #191919; } }
.toast .icon { width: 18px; height: 18px; color: #72bc8f; }

/* ---------- Journal ---------- */
.featured-article { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.featured-article .fa-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--divider); background: var(--surface-2); }
.featured-article .fa-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.featured-article:hover .fa-media img { transform: scale(1.02); }
.featured-article h2 { font-size: 32px; line-height: 1.3; margin-top: 14px; }
.featured-article:hover h2 { color: var(--accent-text); }
.featured-article p { color: var(--text-2); margin-top: 14px; font-size: 17px; }
.featured-article .ac-meta { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.journal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }

/* ---------- Article page ---------- */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent-deco); z-index: 60; }
.article-head { max-width: 784px; margin: 0 auto; padding: 48px 32px 0; text-align: center; }
.article-head .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); min-height: 36px; }
.article-head .back:hover { color: var(--text); }
.article-head .tag { margin-top: 20px; }
.article-head h1 { font-size: 42px; line-height: 1.25; margin-top: 16px; letter-spacing: -0.02em; }
.article-head .lede { font-size: 19px; line-height: 1.7; color: var(--text-2); margin-top: 18px; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; font-size: 15px; color: var(--text-2); flex-wrap: wrap; }
.article-meta strong { color: var(--text); font-weight: 600; }
.article-cover { max-width: 1120px; margin: 40px auto 0; padding: 0 32px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--divider); background: var(--surface-2); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 220px; gap: 64px; justify-content: center; max-width: 1184px; margin: 0 auto; padding: 48px 32px 32px; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: 14px; }
.toc h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--divider); color: var(--text-2); line-height: 1.5; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent-text); border-left-color: var(--accent); font-weight: 600; }
.toc-mobile { display: none; }
.prose { font-size: 17px; line-height: 1.85; color: var(--text); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 26px; line-height: 1.35; margin-top: 48px; letter-spacing: -0.01em; }
.prose h3 { font-size: 20px; margin-top: 32px; }
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 24px; }
.prose ol { list-style: decimal; padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--text-2); }
.prose strong { font-weight: 650; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-hover); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.prose blockquote { border-left: 3px solid var(--border-strong); padding-left: 16px; color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.prose .table-wrap { margin-top: 24px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose li.task { list-style: none; margin-left: -24px; display: flex; gap: 10px; align-items: flex-start; }
.prose .task-box { width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: 4px; flex: none; margin-top: 6px; }
.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-lg); font-size: 16px; line-height: 1.75; }
.callout .icon { width: 20px; height: 20px; margin-top: 4px; flex: none; }
.callout-body > * + * { margin-top: 8px; }
.callout-title { font-weight: 700; display: block; margin-bottom: 2px; }
.callout-tip { background: var(--accent-soft); }
.callout-tip .icon, .callout-tip .callout-title { color: var(--accent-text); }
.callout-warning { background: var(--orange-soft); }
.callout-warning .icon, .callout-warning .callout-title { color: var(--orange-text); }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.share-row .sr-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row .sr-actions { display: flex; gap: 8px; }
.author-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 32px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--divider); }
.author-card strong { font-size: 17px; }
.author-card p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.cta-card { margin-top: 16px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-card h2 { font-size: 18px; }
.cta-card p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.cta-card .btn { flex: none; }

/* ---------- Links (link-in-bio) ---------- */
.links-page { background: var(--surface); min-height: 100vh; }
.links-wrap { max-width: 560px; margin: 0 auto; padding: 56px 20px 48px; }
.links-profile { text-align: center; }
.links-profile .avatar-xl { width: 88px; height: 88px; margin: 0 auto; border-radius: 24px; }
.links-profile h1 { font-size: 28px; margin-top: 20px; }
.links-profile .handle { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.links-profile p { color: var(--text-2); margin-top: 12px; text-wrap: balance; }
.links-social { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.links-social a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--raised); border: 1px solid var(--border); }
.links-social a:hover { border-color: var(--border-strong); }
.links-feature { display: block; margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; background: var(--raised); border: 1px solid var(--border); }
.links-feature img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.links-feature div { padding: 16px 18px 18px; }
.links-feature span { font-size: 14px; color: var(--accent-text); font-weight: 600; }
.links-feature strong { display: block; font-size: 17px; line-height: 1.45; margin-top: 4px; }
.links-list { display: grid; gap: 12px; margin-top: 12px; }
.link-btn { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center; min-height: 72px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--raised); border: 1px solid var(--border); transition: border-color .15s ease, transform .15s ease; }
.link-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.link-btn .lb-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.link-btn > span:not(.lb-icon) { min-width: 0; text-align: left; }
.link-btn strong { display: block; font-size: 16px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn span span { font-size: 14px; color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn > .icon { color: var(--text-2); }
.links-section-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 32px 4px 0; }
.links-foot { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 40px; }
.links-foot a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 120px; padding-bottom: 96px; }
.notfound .code { font-family: var(--mono); font-size: 15px; color: var(--accent-text); font-weight: 600; }
.notfound h1 { margin-top: 12px; }
.notfound p { color: var(--text-2); margin-top: 12px; }
.notfound .hero-ctas { margin-top: 28px; }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--hover) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


/* ---------- Helpers added ---------- */
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
body.dialog-open { overflow: hidden; }
button.link-btn { width: 100%; text-align: left; font: inherit; color: inherit; }
.contact-list { display: grid; gap: 10px; margin-top: 16px; }
.choice-group.compact { grid-template-columns: repeat(3, 1fr); }
.choice-group.compact span { min-height: 44px; flex-direction: row; align-items: center; justify-content: center; gap: 6px; font-weight: 500; }
.choice-group.compact .icon { width: 16px; height: 16px; }
.drawer-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-form .modal-body { flex: 1; min-height: 0; }
.drawer-success { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-success .modal-body { flex: 1; }
.thread-skeleton { padding: 20px; display: grid; gap: 12px; border-bottom: 1px solid var(--divider); }
.thread-skeleton .skeleton { height: 14px; }
.error-state { text-align: center; padding: 48px 24px; }
.error-state p { color: var(--text-2); margin-top: 6px; }
.error-state .btn { margin-top: 16px; }
.inline-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
  .choice-group.compact { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .community-layout { grid-template-columns: 188px minmax(0, 1fr); }
  .community-layout .rail { grid-column: 1 / -1; position: static; grid-template-columns: repeat(3, 1fr); }
  .band { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
}

@media (max-width: 960px) {
  .nav, .header-actions .hide-md { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 12px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .split-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .split-hero .sh-media { aspect-ratio: 16 / 10; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .pdp-media { position: static; }
  .pdp-detail { grid-template-columns: 1fr; gap: 0; }
  .booking { grid-template-columns: 1fr; gap: 32px; }
  .thread-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
  .toc-mobile summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; font-weight: 600; font-size: 15px; cursor: pointer; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile nav { padding: 0 16px 12px; }
  .toc-mobile a { display: block; padding: 8px 0; font-size: 15px; color: var(--text-2); border-top: 1px solid var(--divider); }
  .featured-article { grid-template-columns: 1fr; gap: 24px; }
  .faq-layout { grid-template-columns: 1fr; gap: 16px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .community-layout { grid-template-columns: minmax(0, 1fr); }
  .board-nav { display: none; }
  .board-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px 4px; scrollbar-width: none; }
  .board-chips::-webkit-scrollbar { display: none; }
  .board-chips button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 15px; color: var(--text-2); background: var(--bg); white-space: nowrap; }
  .board-chips button[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
  .board-chips .icon { width: 16px; height: 16px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-community { grid-column: span 2; }
  .bento-repair { grid-row: span 2; }
}

@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .display { font-size: 34px; line-height: 1.2; }
  h1, .h1 { font-size: 30px; }
  h2, .h2 { font-size: 24px; }
  .lead { font-size: 17px; }
  .hero { padding-top: 40px; }
  .hero-ctas .btn { flex: 1; }
  .hero-media { margin-top: 40px; aspect-ratio: 4 / 3; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-community, .bento-repair { grid-column: auto; grid-row: auto; }
  .bento-item { padding: 24px; }
  .bento-repair .bento-photo { margin: 20px -24px 0; min-height: 200px; }
  .bento-item h3 { font-size: 20px; }
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
  .band { padding: 32px 24px; }
  .band-steps { grid-template-columns: 1fr; gap: 20px; }
  .band-step { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; padding: 0; }
  .band-step::before { left: 18px; right: auto; top: 40px; bottom: -16px; width: 1px; height: auto; }
  .band-step h3 { margin-top: 6px; }
  .band-step p { grid-column: 2; margin-top: 0; }
  .x-cta { padding: 40px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .page-head { padding: 32px 0 24px; }
  .page-head-row { flex-direction: column; align-items: stretch; }
  .page-head-row .btn { width: 100%; }
  .feed-toolbar { flex-direction: column; align-items: stretch; }
  .feed-toolbar .tabs { align-self: flex-start; }
  .search { width: 100%; }
  .thread-item { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .thread-item .avatar { width: 32px; height: 32px; font-size: 13px; }
  .thread-item .ti-stats { grid-column: 2; gap: 14px; }
  .community-layout .rail { grid-template-columns: 1fr; }
  .post { padding: 24px 20px; }
  .post h1 { font-size: 24px; }
  .reply { grid-template-columns: 32px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .reply .avatar { width: 32px; height: 32px; font-size: 13px; }
  .composer { padding: 16px; }
  .composer-foot { flex-direction: column; align-items: stretch; }
  .composer-locked { flex-direction: column; align-items: stretch; }
  .split-hero h1 { font-size: 34px; }
  .split-hero { padding: 32px 0 0; }
  .device-grid { grid-template-columns: 1fr; }
  .device-card { padding: 18px; }
  .steps-row { grid-template-columns: 1fr; gap: 12px; }
  .step-card { display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; padding: 18px; }
  .step-card .num { grid-row: span 2; padding-top: 2px; }
  .step-card h3 { margin-top: 0; }
  .step-card p { margin-top: 2px; }
  .form-card { padding: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .choice-group { grid-template-columns: 1fr; }
  .choice span { min-height: 56px; }
  .contact-actions { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; }
  .faq details p { padding-right: 0; }
  .store-hero-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .trust-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust-item { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .store-toolbar { flex-direction: column; align-items: stretch; }
  .store-toolbar .tools { width: 100%; }
  .store-toolbar .search { flex: 1; }
  .store-toolbar .select { min-width: 0; width: 132px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .product-card .pc-title { font-size: 15px; }
  .price .num { font-size: 18px; }
  .pc-delivery { display: none; }
  .gc { padding: 14px 14px; }
  .gc-label { font-size: 17px; }
  .gc-kicker { font-size: 10px; }
  .gc-region { font-size: 12px; }
  .gc-chip { width: 24px; height: 18px; right: 12px; top: 12px; border-radius: 4px; }
  .pdp { padding-top: 12px; }
  .pdp-media .gc { padding: 24px; }
  .pdp-media .gc-label { font-size: 32px; }
  .pdp-media .gc-chip { width: 40px; height: 30px; right: 24px; top: 22px; }
  .pdp-info h1 { font-size: 24px; }
  .pdp-actions { position: sticky; bottom: 0; z-index: 20; background: var(--bg); margin: 24px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); }
  .highlight-row { grid-template-columns: 1fr; }
  .modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; max-height: 92dvh; border-bottom: 0; }
  .drawer { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 92vh; max-height: 92dvh; border-left: 0; border-top: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-head { padding: 12px 12px 10px 20px; }
  .modal-body { padding: 16px 20px; }
  .drawer-foot, .modal-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
  .article-head { padding: 32px 20px 0; text-align: left; }
  .article-head h1 { font-size: 30px; }
  .article-head .lede { font-size: 17px; }
  .article-meta { justify-content: flex-start; }
  .article-cover { padding: 0 20px; margin-top: 28px; }
  .article-cover img { aspect-ratio: 4 / 3; }
  .article-layout { padding: 32px 20px 24px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 22px; margin-top: 40px; }
  .prose th, .prose td { padding: 10px 12px; }
  .author-card { grid-template-columns: 56px minmax(0, 1fr); }
  .author-card .avatar-xl { width: 56px; height: 56px; }
  .author-card .btn { grid-column: 1 / -1; }
  .cta-card { flex-direction: column; align-items: stretch; }
  .featured-article h2 { font-size: 24px; }
  .journal-toolbar { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .notfound { padding-top: 80px; padding-bottom: 64px; }
  .links-wrap { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .reading-progress, .toc, .share-row, .cta-card, .demo-banner { display: none !important; }
}

/* ---------- Build additions ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
legend.label { display: block; margin-bottom: 8px; }
.band .eyebrow { color: #8fbdf0; }
.bento-journal { background: var(--accent-soft); border-color: transparent; }
.bento-journal .bento-icon { background: var(--raised); }
.bento-journal .mini-articles a { border-bottom-color: rgba(26, 95, 169, 0.16); min-height: 48px; align-items: center; }
.bento-journal .mini-articles a:hover { color: var(--accent-text); }
.mini-articles .n { font-size: 14px; color: var(--text-2); flex: none; display: inline-flex; align-items: center; gap: 4px; }
.mini-articles .n .icon { width: 16px; height: 16px; }
.links-social button { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--raised); border: 1px solid var(--border); }
.links-social button:hover { border-color: var(--border-strong); }
.footer-col button { display: flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--text-2); }
.footer-col button:hover { color: var(--text); }
.store-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.store-note .icon { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.band { display: block; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.band-head > div { max-width: 560px; }
.band .band-head .btn-light { margin-top: 0; flex: none; }
.product-card .pc-media .gc, .pdp-media .gc { justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) {
  .band-head { flex-direction: column; align-items: stretch; gap: 24px; margin-bottom: 32px; }
}
.support-card .contact-stack .btn { margin-top: 0; }
.mobile-menu a.mm-link[aria-current="page"] { color: var(--accent-text); }
.section.surface-band, .section.surface-band + .section { padding-top: 64px; }
@media (max-width: 720px) {
  .section.surface-band, .section.surface-band + .section { padding-top: 48px; }
}

/* Price table → stacked rows on small screens */
@media (max-width: 720px) {
  .price-table { min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--divider); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table td { padding: 0; border: 0; }
  .price-table td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--text-2); }
  .price-table td:nth-child(2) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .price-table td.col-price { grid-column: 2; grid-row: 1; text-align: right; }
  .price-table td.col-time { grid-column: 2; grid-row: 2; text-align: right; font-size: 14px; }
}

/* Balanced headline wrapping (avoids one-word last lines) */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.article-meta .am-text, .article-meta .am-sub { display: inline-flex; align-items: center; gap: 12px; }
.prose table { min-width: 540px; }
.prose td:first-child { white-space: nowrap; }
@media (max-width: 720px) {
  .article-meta { flex-wrap: nowrap; gap: 12px; }
  .article-meta .am-text { flex-direction: column; align-items: flex-start; gap: 2px; }
  .article-meta .am-sep { display: none; }
  .article-meta .am-sub { gap: 8px; font-size: 14px; }
  .article-meta .avatar { width: 40px; height: 40px; }
}
