/* TJ NOVA APPS · V7 "The Record"
 * 视觉主张：产品档案室。黑白为骨，只有【现在能打开的东西】才有颜色。
 * 自适应五维（T86）：语言 / 明暗 / 书写方向 / 结构 / 动效偏好
 * 字体走系统栈 —— 零外部请求，且每种语言天然用本机最合适的字，这本身就是自适应。
 */

/* ── 令牌 ───────────────────────────────────────────── */
:root {
  --paper:        #faf9f7;
  --paper-2:      #f2f0ec;
  --ink:          #0e0e10;
  --ink-2:        #55555c;
  --ink-3:        #8e8e96;
  --rule:         #e0ddd7;
  --rule-2:       #cbc7bf;
  --signal:       #ff4a1c;   /* 全站唯一饱和色，只给「现在能打开」 */
  --signal-soft:  rgba(255, 74, 28, .10);
  --chrome:       rgba(250, 249, 247, .72);
  --sheet:        #ffffff;
  --shadow-lg:    0 40px 80px -32px rgba(18, 16, 12, .34), 0 4px 14px -6px rgba(18, 16, 12, .12);
  --shadow-sm:    0 1px 2px rgba(18, 16, 12, .06);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", "Noto Sans Mono", monospace;

  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light dark;
}

/* 明暗自适应：系统跟随（默认），且 [data-theme] 手动覆写两个方向都赢 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0b0d; --paper-2: #131317; --ink: #f3f2ef; --ink-2: #a3a2a9;
    --ink-3: #6f6e77; --rule: #242429; --rule-2: #34343b;
    --signal: #ff6a3d; --signal-soft: rgba(255,106,61,.14);
    --chrome: rgba(11,11,13,.72); --sheet: #16161a;
    --shadow-lg: 0 40px 80px -32px rgba(0,0,0,.7), 0 4px 14px -6px rgba(0,0,0,.5);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --paper: #0b0b0d; --paper-2: #131317; --ink: #f3f2ef; --ink-2: #a3a2a9;
  --ink-3: #6f6e77; --rule: #242429; --rule-2: #34343b;
  --signal: #ff6a3d; --signal-soft: rgba(255,106,61,.14);
  --chrome: rgba(11,11,13,.72); --sheet: #16161a;
  --shadow-lg: 0 40px 80px -32px rgba(0,0,0,.7), 0 4px 14px -6px rgba(0,0,0,.5);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
}

/* ── 基座 ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  font-synthesis-weight: none; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.mono {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}

/* ── 顶栏 ───────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--chrome); backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.is-stuck { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 22px; height: 22px; border-radius: var(--r-sm); }
.brand b { font-size: .84rem; font-weight: 650; letter-spacing: -.01em; }
.top-act { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: none; border: 1px solid var(--rule); border-radius: var(--r-sm);
  cursor: pointer; transition: transform .12s var(--ease), background .18s, border-color .18s;
}
.iconbtn:hover { background: var(--paper-2); border-color: var(--rule-2); }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* ── Hero ──────────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(8px, 1.5vw, 18px); }
.hero .eyebrow { margin: 0 0 clamp(20px, 3.5vw, 34px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 60px); align-items: end; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0,1fr) 330px; } }

/* 找我们做事 —— 全站唯一的转化入口，放在第一屏 */
.hire {
  border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 24px 22px 22px; background: var(--paper-2);
}
.hire h2 { margin: 12px 0 0; font-size: 1.16rem; font-weight: 660; letter-spacing: -.02em; line-height: 1.25; }
.hire p { margin: 10px 0 0; font-size: .89rem; color: var(--ink-2); line-height: 1.6; }
.hire .btn { margin-top: 18px; }
.hire-alt {
  display: block; margin-top: 14px; font-size: .82rem; color: var(--ink-3);
  text-decoration: none; border-bottom: 1px solid var(--rule-2);
  padding-bottom: 2px; width: fit-content;
}
.hire-alt:hover { color: var(--ink); border-color: var(--ink); }
.hero h1 {
  margin: 0; font-size: clamp(2.5rem, 7.2vw, 5rem); line-height: .97;
  letter-spacing: -.038em; font-weight: 700; max-width: 19ch;
  text-wrap: balance;
}
.hero h1 .dim {
  color: var(--ink-3); font-size: .78em; letter-spacing: -.03em;
  display: inline-block; margin-top: .12em;
}
.hero .lead {
  margin: clamp(20px, 3vw, 30px) 0 0; max-width: 62ch;
  font-size: clamp(1rem, 1.35vw, 1.16rem); color: var(--ink-2); line-height: 1.62;
}

/* 计数条 —— 数字从数据算，不写死 */
.tally {
  margin-top: clamp(34px, 5vw, 54px); display: flex; flex-wrap: wrap;
  gap: 0; border-top: 1px solid var(--rule);
}
.tally div {
  flex: 1 1 150px; padding: 18px 22px 16px; border-inline-end: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tally div:last-child { border-inline-end: none; }
.tally b {
  display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 680;
  letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums;
}
.tally .hot b { color: var(--signal); }
.tally span { display: block; margin-top: 9px; }

/* ── 分节标题 ──────────────────────────────────────── */
.sec { padding: clamp(46px, 6.5vw, 78px) 0; }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 {
  margin: 12px 0 0; font-size: clamp(1.6rem, 3.1vw, 2.5rem);
  letter-spacing: -.028em; line-height: 1.1; font-weight: 680; max-width: 22ch;
}
.sec-head p { margin: 14px 0 0; max-width: 62ch; color: var(--ink-2); }

/* ── 档案网格 ──────────────────────────────────────── */
.grid {
  display: grid; gap: 0; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.card {
  position: relative; background: var(--paper); border: 0; text-align: start;
  box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule);
  padding: 22px 22px 20px; cursor: pointer; display: flex; flex-direction: column;
  gap: 14px; min-height: 196px; font: inherit;
  transition: background .2s var(--ease), transform .14s var(--ease);
}
.card:hover { background: var(--paper-2); }
.card:active { transform: scale(.985); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-ico {
  width: 46px; height: 46px; border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
  background: var(--paper-2); object-fit: cover; flex: none;
}
.card.is-dim .card-ico { filter: grayscale(1); opacity: .45; }
.card-no { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--ink-3); }
.card h3 { margin: 0; font-size: 1.03rem; font-weight: 650; letter-spacing: -.015em; }
.card .cat { margin: 3px 0 0; font-size: .82rem; color: var(--ink-3); }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 7px; }

/* 状态灯 —— 只有 live 有颜色（饱和度孤立） */
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.st-live      .dot { background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.st-review    .dot { background: none; border: 1.5px solid var(--ink-3); }
.st-building  .dot { background: none; border: 1.5px dashed var(--ink-3); }
.st-unshipped .dot { background: var(--rule-2); }
.card-foot span { font-family: var(--mono); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.st-live .card-foot span { color: var(--signal); }
.st-unshipped .card-foot span { color: var(--ink-3); }

/* ── 状态图例 ──────────────────────────────────────── */
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--rule);
}
.legend div { display: flex; align-items: center; gap: 8px; }
.legend .k {
  font-family: var(--mono); font-size: .63rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-2);
}
.legend .v { font-size: .82rem; color: var(--ink-3); }
@media (max-width: 640px) { .legend { gap: 10px 18px; } .legend .v { display: none; } }

/* ── 档案抽屉 ──────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(12, 11, 9, .46);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 61; inset-inline: 0; bottom: 0; margin-inline: auto;
  width: min(680px, 100%); max-height: min(86vh, 780px); overflow-y: auto;
  background: var(--sheet); border: 1px solid var(--rule);
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(101%); transition: transform .42s var(--ease);
  overscroll-behavior: contain;
}
.sheet.on { transform: translateY(0); }
@media (min-width: 760px) {
  .sheet {
    top: 50%; bottom: auto; border-radius: var(--r-lg);
    transform: translateY(-46%) scale(.965); opacity: 0;
    transition: transform .38s var(--ease), opacity .26s var(--ease);
  }
  .sheet.on { transform: translateY(-50%) scale(1); opacity: 1; }
}
.sheet-in { padding: clamp(24px, 4vw, 38px); }
.sheet-hd { display: flex; gap: 16px; align-items: flex-start; }
.sheet-hd img { width: 60px; height: 60px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); flex: none; }
.sheet-hd h3 { margin: 2px 0 0; font-size: 1.5rem; letter-spacing: -.028em; font-weight: 680; }
.sheet-hd .cat { margin: 4px 0 0; color: var(--ink-3); font-size: .88rem; }
.sheet .close {
  margin-inline-start: auto; width: 32px; height: 32px; flex: none; border-radius: var(--r-sm);
  border: 1px solid var(--rule); background: none; cursor: pointer; display: grid; place-items: center;
  transition: transform .12s var(--ease), background .18s;
}
.sheet .close:hover { background: var(--paper-2); }
.sheet .close:active { transform: scale(.9); }
.sheet .close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.9; fill: none; }
.sheet .line { margin: 22px 0 0; font-size: 1.06rem; line-height: 1.58; }
.sheet ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.sheet li { position: relative; padding-inline-start: 20px; color: var(--ink-2); font-size: .94rem; }
.sheet li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .62em;
  width: 6px; height: 1.5px; background: var(--rule-2);
}
.meta { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 18px; display: grid; gap: 12px; }
.meta-row { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.meta-row .k { font-family: var(--mono); font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); min-width: 88px; }
.meta-row .v { font-size: .9rem; color: var(--ink-2); }
.plats { display: flex; gap: 6px; flex-wrap: wrap; }
.plat {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 3px 7px; color: var(--ink-2);
}
.sheet-cta { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  border-radius: var(--r-sm); padding: 12px 19px; font-size: .92rem; font-weight: 560;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .12s var(--ease), opacity .18s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--rule-2); }
.btn.off { border-style: dashed; color: var(--ink-3); border-color: var(--rule-2); background: none; pointer-events: none; }

/* ── 交付标准 ──────────────────────────────────────── */
.stds { display: grid; gap: 0; background: var(--paper); border: 1px solid var(--rule);
        border-radius: var(--r-md); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.std { background: var(--paper); padding: 26px 24px 24px;
       box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule); }
.std h4 { margin: 13px 0 0; font-size: .99rem; font-weight: 650; letter-spacing: -.012em; }
.std p { margin: 8px 0 0; font-size: .89rem; color: var(--ink-2); line-height: 1.58; }

/* ── 页脚 ──────────────────────────────────────────── */
.foot { border-top: 1px solid var(--rule); padding: clamp(40px, 6vw, 64px) 0 clamp(30px, 4vw, 44px); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 34px 60px; justify-content: space-between; }
.foot h5 { margin: 0 0 12px; font-family: var(--mono); font-size: .63rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: .88rem; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot address { font-style: normal; font-size: .88rem; color: var(--ink-2); line-height: 1.7; max-width: 30ch; }
.foot-btm { margin-top: clamp(30px, 4vw, 44px); padding-top: 20px; border-top: 1px solid var(--rule);
            display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* ── 进场：只在真正需要时动，一次一个 ─────────────── */
.rise { opacity: 0; transform: translateY(14px); }
.rise.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

/* ── 无障碍与偏好（T86） ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .12s !important; scroll-behavior: auto !important; }
  .sheet, .sheet.on { transform: none !important; }
  .sheet { top: auto; bottom: 0; }
  @media (min-width: 760px) { .sheet { top: 50%; bottom: auto; margin-block: 0; transform: translateY(-50%) !important; } }
  .rise { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .scrim { background: rgba(12, 11, 9, .62); }
}
@media (prefers-contrast: more) {
  :root { --rule: var(--ink-2); --ink-2: var(--ink); --ink-3: var(--ink-2); }
  .card, .std { border: 0; }
}

/* ── 书写方向（RTL 镜像靠逻辑属性，这里只修不对称的几处） ── */
[dir="rtl"] .btn svg, [dir="rtl"] .card-arrow { transform: scaleX(-1); }
[dir="rtl"] .tally div:last-child { border-inline-end: none; }

/* ── 窄屏 ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 168px; padding: 17px 15px 15px; gap: 11px; }
  .card-ico { width: 40px; height: 40px; border-radius: var(--r-sm); }
  .card h3 { font-size: .95rem; }
  .card .cat { font-size: .76rem; }
  .tally div { flex-basis: 50%; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
