/* ============================================================
   Phase 3 (R2) 隔离预览 —— 视觉系统实现
   docs/portfolio/preview/phase-03/styles.css
   令牌、组件、M1–M10 模块规格见 docs/portfolio/design-system.md
   不加载任何网络字体，不引用任何外部资源。
   ============================================================ */

/* ---------- 1. 令牌 ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: #d2d2d7;
  --ctrl: #86868b;
  --dark: #1d1d1f;
  --ink-3-on-dark: #a1a1a6;
  --line-on-dark: #4a4a4e;
  --surface-on-dark-2: #3a3a3e;
  --link: #0066cc;
  --caution: #9a4f00;
  --disc-mid: #5c5c60;
  --node-hover: #2a2a2d;
  --disc-sub: #e6e6e8;
  --mask-solid: #000;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "PingFang SC", "Helvetica Neue", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-chip: 980px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;

  --mask-capsule: 999px;
  --mask-arch: 46% 46% 18px 18px / 38% 38% 18px 18px;
  --mask-circle: 50%;
  --mask-rect: 22px;

  --gutter: 40px;
  --maxw: 1120px;
  --t: .42s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: var(--r-sm); font-size: 15px; transition: top var(--t);
}
.skip:focus { top: 12px; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* 内部审阅标注开关（GX-07） */
html[data-clean="1"] .review-note { display: none !important; }

/* ---------- 3. 排版 ---------- */
.display { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.022em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(23px, 2.8vw, 31px); font-weight: 600; letter-spacing: -.018em; line-height: 1.2; margin: 0; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
h4 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
p { margin: 0 0 1em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }
.kick { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.band-label { font-size: clamp(19px, 2.4vw, 27px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.small { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.note { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 13px; }

/* ---------- 4. 顶栏（R2-06）---------- */
.nav { position: sticky; top: 12px; z-index: 90; padding: 12px var(--gutter) 0; }
.nav-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: stretch; gap: 12px; }

.nav-cap {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-chip);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  display: flex; align-items: center; height: 52px;
}
.nav-logo { padding: 0 18px; }
.nav-logo img { height: 28px; width: auto; }
.nav-logo:hover { text-decoration: none; }

/* 两端向内凹弧：外层切左缺口、内层切右缺口，各自只用一张遮罩，
   不依赖 mask-composite（该属性在部分浏览器上不稳定）。 */
.nav-mid-outer {
  flex: 1; display: flex;
  -webkit-mask-image: radial-gradient(circle 22px at 0 50%, transparent 21px, var(--mask-solid) 22px);
  mask-image: radial-gradient(circle 22px at 0 50%, transparent 21px, var(--mask-solid) 22px);
}
.nav-mid {
  flex: 1; justify-content: center; gap: 26px; padding: 0 44px;
  -webkit-mask-image: radial-gradient(circle 22px at 100% 50%, transparent 21px, var(--mask-solid) 22px);
  mask-image: radial-gradient(circle 22px at 100% 50%, transparent 21px, var(--mask-solid) 22px);
}
.nav-mid a, .nav-mid button { font-size: 15px; color: var(--ink-2); background: none; border: 0; font-family: inherit; }
.nav-mid a:hover { color: var(--ink); text-decoration: none; }
.nav-mid a[aria-current="page"] {
  color: var(--ink); font-weight: 600;
  border-bottom: 2px solid var(--ink); padding-bottom: 2px;
}
.lang { font-size: 13px; color: var(--ink-3); cursor: not-allowed; white-space: nowrap; }
.nav-contact { padding: 0; }
.nav-contact a {
  display: flex; align-items: center; height: 100%;
  padding: 0 22px; border-radius: var(--r-chip);
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500;
}
.nav-contact a:hover { background: var(--mask-solid); text-decoration: none; }

.nav-burger { display: none; }
.nav-panel { display: none; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-block; font-size: 15px; font-weight: 500;
  border-radius: var(--r-chip); padding: 7px 17px;
  border: 1px solid var(--ctrl); color: var(--ink); background: transparent;
  font-family: inherit; cursor: pointer; transition: background var(--t), border-color var(--t);
}
.btn:hover { background: var(--bg-alt); text-decoration: none; }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--mask-solid); }
.on-dark .btn { border-color: var(--ink-3-on-dark); color: var(--bg); }
.on-dark .btn:hover { background: rgba(255, 255, 255, .1); }

/* ---------- 6. 路由与入场 ---------- */
.page { display: none; }
.page.on { display: block; }
.rv { opacity: 0; transform: translateY(14px); }
.rv.in { opacity: 1; transform: none; transition: opacity .55s var(--t), transform .55s var(--t); transition-delay: var(--d, 0s); }

/* ---------- 7. 胶囊与徽标 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ink); border-radius: var(--r-chip);
  background: transparent; color: var(--ink);
  font-size: 12.5px; font-weight: 500; letter-spacing: normal;
  padding: 4px 13px 4px 11px; white-space: nowrap;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.on-dark .pill { border-color: var(--bg); color: var(--bg); }
.on-dark .pill::before { background: var(--bg); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 11.5px; line-height: 1.35; font-weight: 500;
  border: 1px solid var(--line); border-radius: var(--r-chip);
  padding: 3px 9px; color: var(--ink-3); white-space: nowrap;
}
.badge-caution { color: var(--caution); border-color: var(--caution); }
.badge-synthetic { border-style: dashed; border-color: var(--ctrl); }
.on-dark .badge { border-color: var(--line-on-dark); color: var(--ink-3-on-dark); }
.on-dark .badge-synthetic { border-color: var(--ink-3-on-dark); }

/* ---------- 8. Home · WHO I AM ---------- */
.who { padding-top: clamp(84px, 13vh, 150px); padding-bottom: clamp(70px, 11vh, 120px); text-align: center; }
.who .kick { margin-bottom: 18px; }
.who .display { margin-bottom: 26px; }
.who .claim {
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2);
  margin: 0 auto; max-width: 56em; text-wrap: balance;
}
.scroll-hint { margin-top: 52px; display: inline-flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }

/* ---------- 9. Home · WHAT I SOLVE ---------- */
.on-dark { background: var(--dark); color: var(--bg); }
.on-dark h2, .on-dark h3, .on-dark h4 { color: var(--bg); }
.on-dark p { color: var(--ink-3-on-dark); }
.on-dark .kick, .on-dark .note { color: var(--ink-3-on-dark); }

.solve { padding: clamp(56px, 8vh, 88px) 0 clamp(64px, 9vh, 104px); }
.solve .band-label { color: var(--bg); }

.fig { position: relative; width: min(1040px, 100%); margin: 26px auto 0; aspect-ratio: 1 / .546; }
.fig svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fig .ln { fill: none; stroke: var(--ink-3-on-dark); stroke-width: 1.2; }
.fig .arc { fill: none; stroke: var(--line-on-dark); stroke-width: 1; stroke-dasharray: 3 5; }

/* 中央圆盘 */
.disc {
  position: absolute; left: 50%; top: 71.8%; transform: translate(-50%, -50%);
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 6%; text-align: center; z-index: 3;
  background:
    linear-gradient(color-mix(in srgb, var(--dark) 55%, transparent), color-mix(in srgb, var(--dark) 55%, transparent)),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.085) 0deg 1.1deg, rgba(255,255,255,0) 1.1deg 2.6deg),
    radial-gradient(circle at 50% 42%, var(--ink-3-on-dark) 0%, var(--disc-mid) 38%, var(--dark) 100%);
  box-shadow: 0 0 0 1px var(--line-on-dark);
}
.disc:hover { text-decoration: none; }
.disc .dname { font-size: clamp(13px, 1.45vw, 19px); font-weight: 600; color: var(--bg); letter-spacing: -.01em; line-height: 1.18; }
.disc .dsub { font-size: clamp(10px, 1vw, 13px); color: var(--disc-sub); }
.disc .pill { font-size: clamp(9px, .92vw, 12px); padding: 3px 10px 3px 8px; }
.disc .pill::before { width: 6px; height: 6px; }

/* 三个能力节点 */
.anode {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
  background: var(--dark); border: 1px solid var(--ink-3-on-dark); border-radius: var(--r-md);
  padding: 9px 20px; font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; color: var(--bg);
  white-space: nowrap;
}
.anode:hover { background: var(--node-hover); text-decoration: none; }
.n-carbon { left: 50%; top: 25.6%; }
.n-ai { left: 20%; top: 71.8%; }
.n-del { left: 80%; top: 71.8%; }

/* 环绕圆点的位置（用类而非内联样式，便于按断点调整） */
.p-c1 { left: 42.9%; top: 12.7%; }
.p-c2 { left: 50%;   top: 7.3%; }
.p-c3 { left: 57.1%; top: 12.7%; }
.p-a1 { left: 11.5%; top: 56.3%; }
.p-a2 { left: 8%;    top: 71.8%; }
.p-a3 { left: 11.5%; top: 87.3%; }
.p-d1 { left: 88.5%; top: 56.3%; }
.p-d2 { left: 92%;   top: 71.8%; }
.p-d3 { left: 88.5%; top: 87.3%; }

/* 环绕的项目圆点 */
.pdot { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; transform: translate(-50%, -50%); }
.pdot .d { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--bg); background: transparent; flex: none; transition: background var(--t); }
.pdot .t { font-size: 14px; color: var(--bg); white-space: nowrap; }
.pdot:hover, .pdot:focus-visible { text-decoration: none; }
.pdot:hover .d, .pdot:focus-visible .d { background: var(--bg); }
.pdot:hover .t { text-decoration: underline; }
.pdot.right { flex-direction: row-reverse; }

.fig-list { display: none !important; }

/* ---------- 10. 分类页 ---------- */
.page-head { padding-top: clamp(52px, 8vh, 84px); padding-bottom: 8px; }
.page-head .lead { margin-top: 16px; }

.case-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(30px, 4vw, 52px) 0; border-top: 1px solid var(--line);
}
.case-row:first-of-type { border-top: 0; }
.case-row.flip .cr-media { order: 2; }
.cr-body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cr-body .q { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.cr-body .role { font-size: 14px; color: var(--ink-3); margin: 0; }

.cr-media { width: 100%; }
.cr-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt); }
.cr-media.photo img { filter: grayscale(1); transition: filter var(--t); }
.cr-media.photo:hover img { filter: none; }
.cr-media figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

/* 无图案例：大数字面板 */
.numpanel {
  background: var(--bg-alt); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 4 / 3; text-align: center; padding: 20px;
}
.numpanel .v { font-size: clamp(46px, 6.2vw, 86px); font-weight: 400; letter-spacing: -.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.numpanel .l { font-size: 12.5px; color: var(--ink-3); }

/* 合规链细线 */
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 0; }
.chain span { font-size: 12.5px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 4px 11px; white-space: nowrap; }
.chain i { color: var(--ink-3); font-style: normal; font-size: 12px; }
.on-dark .chain span { color: var(--bg); border-color: var(--line-on-dark); }
.on-dark .chain i { color: var(--ink-3-on-dark); }

/* 碳资产小卡 */
.asset-card { margin: 10px 0 48px; border: 1px dashed var(--line); border-radius: var(--r-md); padding: 16px 18px; max-width: 620px; }
.asset-card h4 { color: var(--ink-2); }
.asset-card p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* 项目索引 */
.index-tools { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 16px; }
.chip { font-size: 13px; border: 1px solid var(--ctrl); border-radius: var(--r-chip); padding: 4px 13px; background: transparent; color: var(--ink-2); font-family: inherit; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.index-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.index-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.index-item .t { font-size: 15px; font-weight: 600; color: var(--ink); }
.index-item .m { font-size: 13px; color: var(--ink-3); }

/* ---------- 11. 案例页模块 M1–M10 ---------- */
.mod { padding: clamp(38px, 5vw, 64px) 0; }
.mod.alt { background: var(--bg-alt); }
.mod.dark { background: var(--dark); color: var(--bg); }
.crumb { font-size: 13px; color: var(--ink-3); padding-top: 22px; }
.crumb a { color: var(--ink-3); }
.draft { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; border: 1px dashed var(--ctrl); border-radius: var(--r-sm); padding: 4px 10px; color: var(--ink-3); }

/* M1 */
.m1 { text-align: center; }
.m1 h1 { margin: 12px 0 14px; }
.m1 .q { max-width: 44em; margin: 16px auto 0; font-size: 17px; color: var(--ink-2); }
.m1 .hero-img { width: min(680px, 100%); margin: 30px auto 0; }
.m1 .hero-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* M2 */
.m2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bignum { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.bignum .v { font-size: clamp(52px, 7vw, 96px); font-weight: 400; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bignum .l { font-size: 12.5px; color: var(--ink-3); }
.ring-num { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.ring-num .ring { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ring-num .ring.frame { border: 1px solid var(--line); }
.ring-num .ring .v { font-size: 25px; font-weight: 400; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-num .l { font-size: 12.5px; color: var(--ink-3); }

/* M3 三根胶囊柱 */
.m3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col-pill { border: 1px solid var(--line); border-radius: var(--mask-capsule); padding: 30px 26px; }
.col-pill h4 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.col-pill ul { margin: 0; padding-left: 17px; }
.col-pill li { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 7px; }

/* M4 三张圆角卡 */
.m4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lenscard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.lenscard .ico { width: 30px; height: 30px; }
.lenscard .ico svg { width: 100%; height: 100%; display: block; }
.lenscard p { font-size: 14.5px; margin: 0; }
.proves { font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 11px; margin-top: auto; }
.proves b { color: var(--ink); font-weight: 600; }

/* M5 拱形图加三个圆 */
.m5 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.m5 .arch img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top center; }
.circ-list { display: flex; flex-direction: column; gap: 18px; }
.circ-item { display: flex; gap: 16px; align-items: center; }
.circ-item .c { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-size: 17px; color: var(--ink); }
.circ-item .tx { font-size: 14.5px; color: var(--ink-2); }

/* M6 圆环链 */
.m6 { border: 1px solid var(--line); border-radius: var(--mask-capsule); padding: 26px clamp(18px, 3vw, 40px); }
.chainring { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.chainring .node { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: none; width: 104px; }
.chainring .node .c { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ctrl); display: grid; place-items: center; font-size: 13px; color: var(--ink-3); }
.chainring .node .t { font-size: 12.5px; color: var(--ink-2); text-align: center; line-height: 1.35; }
.chainring .seg { flex: 1; height: 1px; background: var(--line); min-width: 10px; }

/* M7 四个圆 */
.m7 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.step .c { width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.step .t { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.fixsel { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }

/* M8 边界带 */
.m8-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 44px); }
.m8 ul { margin: 0; padding-left: 17px; }
.m8 li { font-size: 14px; line-height: 1.55; margin-bottom: 7px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* M9 双大图 */
.m9 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* M10 尾部 */
.m10 { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* 通用图框 */
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg-alt); }
.shot.plain { border: 0; background: none; overflow: visible; }
.shot img { width: 100%; }
.shot figcaption { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); padding: 10px 13px; border-top: 1px solid var(--line); }
.shot.plain figcaption { padding: 10px 2px 0; border-top: 0; }

/* 遮罩形状：放在 .shot 之后，确保覆盖通用图框的圆角 */
.shape-arch { border-radius: var(--mask-arch); }
.shape-capsule { border-radius: var(--mask-capsule); }
.shape-rect { border-radius: var(--mask-rect); }
/* 遮罩只裁图片本身，图注留在遮罩之外，不被裁掉 */
.shape-arch > img, .shape-capsule > img, .shape-rect > img { border-radius: inherit; }
.numpanel.shape-arch { overflow: hidden; }
.block { background: var(--bg-alt); border-radius: var(--r-md); padding: 20px; }
.mod.alt .block { background: var(--bg); }
.block ul { margin: 0; padding-left: 17px; }
.block li { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 7px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* 原型嵌入三态 */
.embed { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 18px; }
.embed-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.embed-bar .st { font-size: 13px; color: var(--ink-3); }
.embed-body { height: 190px; display: grid; place-items: center; text-align: center; padding: 20px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--ink-3); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.embed-note { font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; border-top: 1px solid var(--line); }

/* ---------- 12. Contact ---------- */
.mail { font-size: clamp(22px, 3.4vw, 34px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin: 18px 0 26px; word-break: break-all; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-ok { font-size: 13px; color: var(--ink-3); }

/* ---------- 13. 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.foot a { font-size: 14px; color: var(--ink-3); }

/* ---------- 14. 光标 FX ---------- */
html.has-fx-cursor, html.has-fx-cursor * { cursor: none; }
html.has-fx-cursor input, html.has-fx-cursor textarea, html.has-fx-cursor select { cursor: auto; }
html.fx-off, html.fx-off * { cursor: auto; }
#fxCanvas, #fxDot, #fxRing { position: fixed; pointer-events: none; z-index: 200; mix-blend-mode: difference; }
#fxCanvas { inset: 0; }
#fxDot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); left: 0; top: 0; margin: -5px 0 0 -5px; }
#fxRing {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bg);
  background: rgba(255, 255, 255, 0); left: 0; top: 0; margin: -19px 0 0 -19px;
  transition: width .18s ease, height .18s ease, margin .18s ease, background-color .18s ease;
}
#fxRing.hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(255, 255, 255, .12); }
#fxDot.hide, #fxRing.hide, #fxCanvas.hide { opacity: 0; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-mid-outer { display: none; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    flex: 1; background: none; border: 0; font-family: inherit; font-size: 15px; color: var(--ink);
  }
  .nav-panel[data-open="1"] {
    display: flex; flex-direction: column; gap: 4px;
    max-width: var(--maxw); margin: 8px auto 0; padding: 14px 18px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
  }
  .nav-panel a, .nav-panel button {
    font-size: 16px; color: var(--ink-2); padding: 9px 4px; text-align: left;
    background: none; border: 0; font-family: inherit;
  }
  .nav-panel a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .case-row, .m2, .m5, .m8-in, .m9, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .case-row.flip .cr-media { order: 0; }
  .m3, .m4 { grid-template-columns: 1fr; }
  .m7 { grid-template-columns: 1fr 1fr; }
  .index-list { grid-template-columns: 1fr; }
  .chainring { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .chainring .seg { display: none; }
  .two-cols { grid-template-columns: 1fr; }
  .fig { aspect-ratio: 1 / .70; }
  .fig .pdot .t { font-size: 13px; }
  .n-ai { left: 25%; } .n-del { left: 75%; }
  .p-a1, .p-a3 { left: 16%; } .p-a2 { left: 13%; }
  .p-d1, .p-d3 { left: 84%; } .p-d2 { left: 87%; }
  .p-c1 { left: 38%; } .p-c3 { left: 62%; }
}
@media (max-width: 520px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .nav { padding-top: 8px; top: 8px; }
  .nav-cap { height: 46px; }
  .nav-logo { padding: 0 14px; }
  .nav-logo img { height: 24px; }
  .nav-contact a { padding: 0 16px; font-size: 14px; }
  /* 窄屏：圆盘缩小，环绕圆点的标签改为图形下方的分组列表 */
  .fig { aspect-ratio: 1 / .76; }
  .disc { width: 42%; }
  .n-ai { left: 12%; } .n-del { left: 88%; }
  .p-a1, .p-a3 { left: 4%; } .p-a2 { left: 2%; }
  .p-d1, .p-d3 { left: 96%; } .p-d2 { left: 98%; }
  .pdot .t { display: none; }
  .fig-list { display: grid !important; grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
  .fig-list h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3-on-dark); margin-bottom: 7px; }
  .fig-list p { font-size: 15px; color: var(--bg); margin: 0; }
  .fig-list a { color: var(--bg); }
  .m7 { grid-template-columns: 1fr; }
  .col-pill { border-radius: var(--r-xl); padding: 22px 20px; }
  .m6 { border-radius: var(--r-xl); }
}

/* ---------- 16. 减少动效 / 强制颜色 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv.in { opacity: 1; transform: none; transition: none; }
  .spinner { animation: none; }
  * { transition-duration: .001ms !important; }
}
@media (forced-colors: active) {
  .nav-cap, .shot, .embed, .index-item, .badge, .pill, .col-pill, .lenscard, .m6, .circ-item .c, .step .c { border: 1px solid CanvasText; }
  .nav-mid, .nav-mid-outer { -webkit-mask-image: none; mask-image: none; }
}

/* 2026-10-03 review corrections */
[id^="lens-"], #project-index { scroll-margin-top: 112px; }
.verification-table { max-width:100%; overflow-x:auto; }
.verification-table table { width:100%; min-width:1000px; border-collapse:collapse; font-size:14px; }
.verification-table th, .verification-table td { border:1px solid var(--line); padding:12px; text-align:left; vertical-align:top; }
.verification-table th { background:var(--bg-alt); }
.verification-table caption { text-align:left; padding:16px 0; }

@media (max-width:520px) { .fig .pdot { pointer-events:none; } }
