/* ============================================================
   首页 v7 —— GPU 合成 · 现代 CSS
   底座样式由 style.css 提供，这里只覆盖首页
   ============================================================ */

.home {
  --c-bg: #060a0f;
  --c-bg-2: #080d13;
  --c-panel: #0c141c;
  --c-line: color-mix(in oklab, #8cbedc 16%, transparent);
  --c-line-strong: color-mix(in oklab, #8cbedc 28%, transparent);
  --c-text: #e4eef6;
  --c-mute: #8098aa;
  --c-dim: #4f6474;
  --c-neon: #3ee6c4;
  --c-amber: #ffb454;
  --c-neon-a: color-mix(in oklab, var(--c-neon) 14%, transparent);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  background: var(--c-bg);
  color: var(--c-text);
}

/* ---------- 静态降级底色 ---------- */
.home .gpu-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 22% 12%, color-mix(in oklab, var(--c-neon) 13%, transparent), transparent 70%),
    radial-gradient(46% 38% at 82% 28%, color-mix(in oklab, #3a7bd5 16%, transparent), transparent 72%),
    radial-gradient(60% 50% at 60% 92%, color-mix(in oklab, var(--c-amber) 8%, transparent), transparent 70%),
    var(--c-bg);
}

/* ---------- GPU 画布 ---------- */
.home #gpuCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
  display: block;
}
.home #gpuCanvas.on { opacity: 1; }

/* 有 GPU 时降低降级底色存在感，避免重复发光 */
.home.gpu-ready .gpu-fallback { opacity: .35; }

.home main, .home .site-footer { position: relative; z-index: 1; }

/* ---------- 滚动进度（scroll-driven animation，零 JS） ---------- */
.home .scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 300;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-neon), var(--c-amber));
  scale: 0 1;
}
@supports (animation-timeline: scroll()) {
  .home .scroll-progress {
    animation: growX linear;
    animation-timeline: scroll(root block);
  }
}
@keyframes growX { from { scale: 0 1 } to { scale: 1 1 } }

/* ---------- 顶栏（首页覆盖） ---------- */
.home .site-header {
  background: color-mix(in oklab, var(--c-bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
}
.home .site-logo { color: var(--c-text); }
.home .site-logo-mark {
  background: var(--c-neon); color: #04120f;
  border-color: transparent; box-shadow: none; border-radius: 9px;
}
.home .main-nav a { color: var(--c-mute); }
.home .main-nav a:hover { color: var(--c-text); background: color-mix(in oklab, #fff 6%, transparent); }
.home .main-nav .current-menu-item > a,
.home .main-nav .current_page_item > a { color: var(--c-neon); background: var(--c-neon-a); border-color: transparent; }
.home .lang-switch { background: transparent; border-color: var(--c-line); box-shadow: none; }
.home .lang-switch a, .home .lang-switch span { color: var(--c-mute); }
.home .lang-switch a:hover { background: color-mix(in oklab, #fff 6%, transparent); color: var(--c-text); }
.home .lang-switch .active { background: var(--c-neon); color: #04120f; }
.home .nav-toggle { background: transparent; border-color: var(--c-line); box-shadow: none; }
.home .nav-toggle span { background: var(--c-text); }

/* ================= HERO ================= */
.home .hero {
  position: relative;
  padding: clamp(44px, 6vw, 76px) 0 clamp(32px, 4vw, 52px);
  background: transparent;
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  container-type: inline-size;
}

.hero-wrap { position: relative; }

.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 4vw, 42px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: color-mix(in oklab, #fff 3%, transparent);
  color: var(--c-mute);
  white-space: nowrap;
}
.chip-live { color: var(--c-text); }
.chip-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-neon);
  animation: livePulse 2.2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-neon) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.chip-tech { color: var(--c-neon); border-color: color-mix(in oklab, var(--c-neon) 30%, transparent); }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  margin-bottom: clamp(34px, 5vw, 60px);
}
.hero-left { min-width: 0; }

.hero-h1 { display: flex; flex-direction: column; gap: 12px; }
.h1-hi {
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.2vw, 15px);
  letter-spacing: .16em;
  color: var(--c-mute);
}
.h1-name {
  font-family: var(--font-serif);
  font-size: clamp(50px, 8.4cqw, 108px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #f4fafd;
  /* 现代 text-wrap + 平衡断行 */
  text-wrap: balance;
  background: linear-gradient(100deg, #f4fafd 20%, var(--c-neon) 50%, #f4fafd 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 9s linear infinite;
}
@keyframes shine {
  0% { background-position: 120% 0 }
  100% { background-position: -60% 0 }
}
.home.no-anim .h1-name { animation: none; background: none; -webkit-text-fill-color: #f4fafd; }

.hero-role {
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.2vw, 14.5px);
  letter-spacing: .04em;
  color: var(--c-neon);
  margin-top: 20px;
}
.hero-desc {
  font-size: clamp(14.5px, 1.3vw, 16px);
  line-height: 1.95;
  color: color-mix(in oklab, var(--c-text) 66%, var(--c-bg));
  max-width: 52ch;
  margin-top: 18px;
  text-wrap: pretty;
}

.hero-keys { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.key {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 700;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  background: color-mix(in oklab, #fff 3%, transparent);
  transition: all .28s var(--ease-out);
}
.key:hover { border-color: var(--c-neon); color: var(--c-neon); transform: translateY(-2px); }
.key-primary {
  background: var(--c-neon); border-color: var(--c-neon); color: #04120f;
  box-shadow: 0 14px 40px -18px color-mix(in oklab, var(--c-neon) 80%, transparent);
}
.key-primary:hover { background: #fff; border-color: #fff; color: #04120f; }
.key-arrow { transition: transform .28s var(--ease-out); }
.key:hover .key-arrow { transform: translateX(4px); }
.key-ghost { color: var(--c-mute); background: transparent; }

/* 右侧：画像 + 终端 */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  justify-content: center;
}

.terminal {
  border-radius: 12px;
  border: 1px solid var(--c-line);
  background: linear-gradient(180deg, color-mix(in oklab, var(--c-panel) 96%, transparent), color-mix(in oklab, var(--c-bg) 96%, transparent));
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--c-line);
}
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2b3946; }
.term-bar i:nth-child(1) { background: #ff5f57 }
.term-bar i:nth-child(2) { background: #febc2e }
.term-bar i:nth-child(3) { background: #28c840 }
.term-bar span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--c-dim); }
.term-body { padding: 18px 20px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.9; letter-spacing: .02em; }
.term-body p { color: #cfe0ec; margin: 0 0 2px; }
.term-body b { color: var(--c-neon); margin-right: 7px; font-weight: 400; }
.term-body p.o { color: var(--c-mute); padding-left: 16px; margin-bottom: 16px; }
.term-body em { color: var(--c-amber); font-style: normal; }

/* 数据 */
.gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-line);
  margin: 0;
}
.gauge {
  display: flex; flex-direction: column-reverse; gap: 6px;
  padding: 22px 10px 8px;
  border-right: 1px solid var(--c-line);
}
.gauge:last-child { border-right: none; }
.gauge dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--c-dim); }
.gauge dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2cqw, 44px);
  line-height: 1;
  color: #f4fafd;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  color: var(--c-dim); text-transform: uppercase;
}
.scroll-cue i {
  display: block; width: 1px; height: 26px;
  background: linear-gradient(var(--c-neon), transparent);
  animation: cueDrop 1.8s var(--ease-out) infinite;
}
@keyframes cueDrop { 0% { transform: scaleY(.2); opacity: 0 } 50% { opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }

/* ================= 通用区块 ================= */
.home .sec {
  padding: clamp(52px, 6.5vw, 88px) 0;
  border-bottom: 1px solid var(--c-line);
  background: color-mix(in oklab, var(--c-bg) 82%, transparent);
  backdrop-filter: blur(3px);
}
.sec-head { margin-bottom: clamp(26px, 3vw, 40px); }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  color: var(--c-neon);
  margin-bottom: 14px;
}
.sec-tag i { font-style: normal; color: var(--c-dim); }
.sec-head h2, .sec-contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4cqw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #f4fafd;
}
.sec-sub { font-size: 13.5px; color: var(--c-mute); margin-top: 10px; max-width: 48ch; text-wrap: pretty; }
.link-more { font-family: var(--mono); font-size: 12px; color: var(--c-neon); white-space: nowrap; }
.link-more:hover { color: #fff; }

/* 滚动驱动揭示（新特性，零 JS） */
@supports (animation-timeline: view()) {
  .home .px-card,
  .home .arc-row,
  .home .note {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 26%;
  }
  @keyframes revealUp {
    from { opacity: 0; translate: 0 22px; }
    to   { opacity: 1; translate: 0 0; }
  }
}

/* ================= 卡片（@container 自适应 + :has） ================= */
.cards {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 288px), 1fr));
  gap: 16px;
}

.px-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 26px 24px 22px;
  border-radius: 14px;
  border: 1px solid var(--c-line);
  background: linear-gradient(180deg, color-mix(in oklab, var(--c-panel) 92%, transparent), color-mix(in oklab, var(--c-bg) 92%, transparent));
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s, transform .35s var(--ease-out);
}
.px-card:hover { border-color: color-mix(in oklab, var(--c-neon) 42%, transparent); transform: translateY(-4px); }

/* 鼠标跟随光斑：由 --mx/--my 驱动（JS 写入），无 JS 时静止 */
.px-glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(200px 200px at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--c-neon) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
.px-card:hover .px-glow { opacity: 1; }

/* 有强调色的卡片用 :has() 自动识别标题关键词 */
.px-card:has(h3) .px-no { color: var(--c-dim); }

.px-no { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; margin-bottom: 14px; }
.px-card h3 {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700; line-height: 1.35;
  letter-spacing: -.005em; color: #eef6fb; margin-bottom: 10px;
}
.px-card p { font-size: 13.5px; line-height: 1.75; color: color-mix(in oklab, var(--c-text) 52%, var(--c-bg)); flex: 1; margin-bottom: 16px; }
.px-tech {
  font-family: var(--mono); font-size: 10.5px; color: var(--c-dim);
  padding-top: 13px; border-top: 1px dashed var(--c-line);
}
.px-go {
  position: absolute; top: 24px; right: 22px;
  font-size: 14px; color: var(--c-dim);
  transition: transform .3s var(--ease-out), color .3s;
}
.px-card:hover .px-go { transform: translate(3px, -3px); color: var(--c-neon); }

/* 单列容器里（手机）自动降级排版 */
@container (max-width: 520px) {
  .px-card { min-height: 0; padding: 22px 20px 18px; }
  .px-card h3 { font-size: 19px; }
}

/* ================= 归档列表 ================= */
.arc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.arc-list li:last-child .arc-row { border-bottom: none; }
.arc-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 20px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--c-line);
  transition: background .25s, padding-left .25s var(--ease-out);
}
.arc-row:hover { background: var(--c-neon-a); padding-left: 14px; }
.ar-no { font-family: var(--mono); font-size: 11px; color: var(--c-dim); }
.ar-title { font-size: clamp(15px, 1.5cqw, 17.5px); font-weight: 500; color: var(--c-text); }
.arc-row:hover .ar-title { color: var(--c-neon); }
.ar-tech { font-family: var(--mono); font-size: 10.5px; color: var(--c-dim); white-space: nowrap; text-align: right; }
.ar-go { font-size: 14px; color: var(--c-dim); text-align: right; transition: transform .25s var(--ease-out), color .25s; }
.arc-row:hover .ar-go { transform: translate(3px, -3px); color: var(--c-neon); }

/* ================= 文章 ================= */
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.note {
  display: flex; flex-direction: column;
  padding: 24px 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--c-line);
  background: color-mix(in oklab, #fff 2%, transparent);
  transition: border-color .3s, background .3s, transform .35s var(--ease-out);
}
.note:hover { border-color: color-mix(in oklab, var(--c-neon) 40%, transparent); background: var(--c-neon-a); transform: translateY(-3px); }
.note-feature {
  grid-column: 1 / -1;
  background: linear-gradient(140deg, color-mix(in oklab, var(--c-neon) 8%, transparent), color-mix(in oklab, #fff 2%, transparent));
}
.nt-date { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--c-dim); margin-bottom: 12px; }
.note h3 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 18px; line-height: 1.45; letter-spacing: -.005em;
  color: #eef6fb; margin-bottom: 9px;
}
.note-feature h3 { font-size: clamp(22px, 2.4cqw, 29px); line-height: 1.3; }
.note p { font-size: 13px; line-height: 1.75; color: color-mix(in oklab, var(--c-text) 50%, var(--c-bg)); flex: 1; }
.nt-more { font-family: var(--mono); font-size: 11px; color: var(--c-neon); margin-top: 16px; opacity: .65; transition: opacity .25s; }
.note:hover .nt-more { opacity: 1; }

/* ================= 联系 ================= */
.home .sec-contact { border-bottom: none; }
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding-bottom: clamp(40px, 5vw, 60px);
}
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.key-light { background: transparent; color: var(--c-text); font-family: inherit; cursor: pointer; }

.marquee {
  border-top: 1px solid var(--c-line);
  padding: 16px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; gap: 24px; width: max-content;
  animation: mq 46s linear infinite;
}
.home.no-anim .marquee-track { animation: none; }
.mq-item, .marquee-track > span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--c-dim); white-space: nowrap; text-transform: uppercase; }
.marquee-track i { color: var(--c-neon); opacity: .45; margin-left: 22px; font-style: normal; }
@keyframes mq { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ================= Popover 弹层（原生 API） ================= */
.lb {
  border: 1px solid var(--c-line-strong);
  border-radius: 16px;
  padding: 0;
  background: var(--c-panel);
  max-width: min(92vw, 720px);
  box-shadow: 0 60px 120px -40px #000;
}
.lb::backdrop {
  background: color-mix(in oklab, var(--c-bg) 82%, transparent);
  backdrop-filter: blur(10px);
}
.lb img { display: block; width: 100%; height: auto; border-radius: 15px; }
.lb-qr { max-width: min(92vw, 340px); }
.lb-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--c-line-strong);
  background: color-mix(in oklab, var(--c-bg) 70%, transparent);
  color: #fff; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: var(--c-neon); color: #04120f; border-color: var(--c-neon); }

/* 开屏过渡（View Transitions） */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .38s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

/* ================= 响应式 ================= */
@container (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 30px; }
  .hero-right { flex-direction: column; }
  .contact-wrap { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 1024px) {
  .notes { grid-template-columns: 1fr; }
  .note-feature { grid-column: auto; }
}

@media (max-width: 768px) {
  .home .main-nav { background: #080e15; border-bottom: 1px solid var(--c-line); }
  .home .main-nav a { color: var(--c-mute); border: none; }
  .home .main-nav .current_page_item > a { background: var(--c-neon-a); color: var(--c-neon); }

  .home .hero { padding: 28px 0 30px; }
  .chip { font-size: 10px; padding: 5px 11px; }
  .hero-top { margin-bottom: 22px; }
  .h1-hi { font-size: 11.5px; }
  .h1-name { font-size: clamp(46px, 14cqw, 62px); }
  .hero-role { font-size: 11.5px; margin-top: 14px; }
  .hero-desc { font-size: 13.5px; line-height: 1.85; margin-top: 12px; }
  .hero-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
  .hero-keys .key-primary { grid-column: 1 / -1; }
  .hero-keys .key-ghost { grid-column: 1 / -1; }
  .key { justify-content: center; padding: 12px 14px; font-size: 13.5px; }

  .hero-right { flex-direction: column; }
  .term-body { font-size: 11.5px; padding: 12px 14px 14px; }

  .gauges { grid-template-columns: repeat(2, 1fr); }
  .gauge { padding: 16px 6px 4px; border-bottom: 1px solid var(--c-line); }
  .gauge:nth-child(2n) { border-right: none; }
  .gauge:nth-last-child(-n+2) { border-bottom: none; }
  .gauge dd { font-size: 28px; }
  .gauge dt { font-size: 10px; }

  .home .sec { padding: 40px 0 34px; }
  .sec-tag { font-size: 10px; margin-bottom: 10px; }
  .sec-head h2, .sec-contact h2 { font-size: 25px; }
  .sec-sub { font-size: 12.5px; margin-top: 8px; }
  .link-more { font-size: 11px; }

  .arc-row { grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 12px; padding: 14px 2px; }
  .ar-tech { display: none; }
  .ar-title { font-size: 14.5px; line-height: 1.45; }

  .note { padding: 20px 18px 16px; }
  .note h3 { font-size: 17px; }
  .note-feature h3 { font-size: 20px; }
  .note p { font-size: 12.5px; }

  .contact-actions { flex-direction: column; }
  .contact-actions .key { width: 100%; justify-content: center; }
  .marquee-track { animation-duration: 32s; }
}

@media (max-width: 480px) {
  .h1-name { font-size: 42px; }
  .gauge dd { font-size: 25px; }
}

/* ---------- 无障碍 / 省电 ---------- */
@media (prefers-reduced-motion: reduce) {
  .home .h1-name { animation: none; background: none; -webkit-text-fill-color: #f4fafd; }
  .home .marquee-track { animation: none; }
  .home #gpuCanvas { display: none; }
  .home .scroll-cue i { animation: none; }
  .home .chip-live .dot { animation: none; }
}

/* ---------- 定位修正：各类弹层居中 ---------- */
.lb {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-height: 92vh;
  overflow: auto;
}
.lb-qr { width: min(92vw, 340px); }

/* ---------- 项目归档页：状态分组 ---------- */
.proj-group { margin-bottom: 46px; }
.proj-group:last-child { margin-bottom: 0; }
.proj-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line, #cfe3ee);
}
.proj-group-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #8a5a00; flex-shrink: 0;
}
.proj-group-done .proj-group-dot { background: #0a6b4d; }
.proj-group-head h2 {
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  margin: 0;
}
.proj-group-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute, #6b8598);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
  .proj-group { margin-bottom: 32px; }
  .proj-group-head h2 { font-size: 15.5px; }
}

/* ============================================================
   手机端尺寸细分适配
   小屏 320-359 / 标准 360-413 / 大屏 414+ / 超小 320 以下
   ============================================================ */

/* ---------- 通用：触控友好（最小 44px 点击区） ---------- */
@media (max-width: 820px) {
  .home .key,
  .home .btn,
  .home .link-more {
    min-height: 46px;
  }
  .home .key { padding: 13px 16px; font-size: 14.5px; }
  .home .term-body { font-size: 12.5px; line-height: 1.85; }
  .home .term-body p.o { margin-bottom: 12px; }
}

/* ---------- 小屏 320–359（iPhone SE1 / 老安卓） ---------- */
@media (max-width: 359px) {
  .home .wrap { padding-left: 14px; padding-right: 14px; }

  .home .chip { font-size: 9.5px; padding: 5px 9px; letter-spacing: .08em; }
  .home .hero-top { gap: 6px; margin-bottom: 18px; }

  .home .h1-hi { font-size: 11px; letter-spacing: .12em; margin-bottom: 6px; }
  .home .h1-name { font-size: 38px; letter-spacing: -.025em; line-height: 1.02; }
  .home .hero-role { font-size: 11px; margin-top: 12px; line-height: 1.6; }
  .home .hero-desc { font-size: 13px; line-height: 1.8; margin-top: 10px; }

  .home .hero-keys { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .home .hero-keys .key-primary,
  .home .hero-keys .key-ghost { grid-column: 1; }
  .home .key { width: 100%; justify-content: center; padding: 13px 12px; }

  .home .term-body { font-size: 11.5px; padding: 12px 12px 14px; line-height: 1.8; }
  .home .term-bar span { font-size: 9.5px; }
  .home .term-body p.o { padding-left: 12px; }

  .home .gauges { grid-template-columns: 1fr 1fr; }
  .home .gauge { padding: 14px 4px 4px; }
  .home .gauge dd { font-size: 24px; }
  .home .gauge dt { font-size: 9.5px; letter-spacing: .04em; }

  .home .scroll-cue { margin-top: 18px; font-size: 9.5px; }
  .home .scroll-cue i { height: 20px; }

  .home .sec { padding: 34px 0 28px; }
  .home .sec-tag { font-size: 9.5px; letter-spacing: .14em; }
  .home .sec-head h2, .home .sec-contact h2 { font-size: 22px; }
  .home .sec-sub { font-size: 12px; }
  .home .link-more { font-size: 10.5px; }

  .home .px-card { padding: 20px 16px 16px; }
  .home .px-card h3 { font-size: 17px; }
  .home .px-card p { font-size: 12.5px; }
  .home .px-tech { font-size: 10px; }
  .home .px-go { top: 18px; right: 16px; }

  .home .arc-row { grid-template-columns: 26px minmax(0,1fr) 16px; gap: 9px; }
  .home .ar-title { font-size: 13.5px; }
  .home .ar-no { font-size: 10px; }

  .home .note { padding: 18px 16px 16px; }
  .home .note h3 { font-size: 16px; }
  .home .note-feature h3 { font-size: 18.5px; }
  .home .note p { font-size: 12px; }

  .home .mq-item, .home .marquee-track > span { font-size: 10.5px; }
  .home .marquee-track { gap: 16px; }
}

/* ---------- 标准 360–413（多数安卓 / iPhone 12/13/14） ---------- */
@media (min-width: 360px) and (max-width: 413px) {
  .home .wrap { padding-left: 18px; padding-right: 18px; }
  .home .h1-name { font-size: clamp(42px, 12.5vw, 52px); }
  .home .hero-desc { font-size: 13.5px; }
  .home .gauge dd { font-size: 27px; }
  .home .sec-head h2, .home .sec-contact h2 { font-size: 24px; }
  .home .px-card h3 { font-size: 18px; }
}

/* ---------- 大屏手机 414+（Plus / Pro Max / 大屏安卓） ---------- */
@media (min-width: 414px) and (max-width: 820px) {
  /* 收紧左右留白，把横向空间用起来 */
  .home .wrap { padding-left: 20px; padding-right: 20px; }

  .home .h1-name { font-size: clamp(54px, 12.4vw, 72px); }
  .home .h1-hi { font-size: 12.5px; }
  .home .hero-role { font-size: 13px; }
  .home .hero-desc { font-size: 15.5px; line-height: 1.92; max-width: none; }
  .home .hero-keys { gap: 10px; margin-top: 30px; }
  .home .key { font-size: 16px; padding: 15px 20px; min-height: 52px; }

  .home .term-body { font-size: 13.5px; line-height: 1.9; padding: 16px 18px 18px; }
  .home .term-bar span { font-size: 11px; }

  .home .gauges { grid-template-columns: repeat(4, 1fr); }
  .home .gauge dd { font-size: 32px; }
  .home .gauge dt { font-size: 11px; }

  .home .sec { padding: 46px 0 38px; }
  .home .sec-tag { font-size: 11px; }
  .home .sec-head h2, .home .sec-contact h2 { font-size: 28px; }
  .home .sec-sub { font-size: 14px; }
  .home .link-more { font-size: 12.5px; }

  .home .px-card { padding: 25px 22px 21px; }
  .home .px-card h3 { font-size: 20px; }
  .home .px-card p { font-size: 14px; line-height: 1.8; }
  .home .px-tech { font-size: 11px; }

  .home .ar-title { font-size: 16px; }
  .home .ar-no, .home .ar-tech { font-size: 11px; }

  .home .note { padding: 22px 20px 18px; }
  .home .note h3 { font-size: 18.5px; }
  .home .note-feature h3 { font-size: 23px; }
  .home .note p { font-size: 13.5px; }

  .home .mq-item, .home .marquee-track > span { font-size: 12.5px; }
}

/* ---------- 横屏手机（高度很矮） ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .home .hero { padding: 20px 0 22px; }
  .home .h1-name { font-size: 40px; }
  .home .hero-desc { max-height: none; font-size: 13px; }
  .home .hero-keys { margin-top: 16px; }
  .home .gauges { display: none; }
  .home .scroll-cue { display: none; }
}

/* ---------- 超小屏 280–319（折叠屏外屏等） ---------- */
@media (max-width: 319px) {
  .home .wrap { padding-left: 12px; padding-right: 12px; }
  .home .h1-name { font-size: 34px; }
  .home .hero-desc { font-size: 12.5px; }
  .home .px-card h3 { font-size: 16px; }
  .home .note h3 { font-size: 15px; }
  .home .gauge dd { font-size: 22px; }
}
