/* =========================================================
   xmoieo.com — 电子工程主题站
   设计系统：墨黑/朱红(NOIR)  ·  奶油纸/墨黑(PAPER)
   单一朱红专色 #C8102E 贯穿两版
   ========================================================= */

/* ---------- 自托管字体（仅拉丁子集，体积小、无第三方阻塞） ---------- */
@font-face {
  font-family: "Antonio";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/antonio-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebasneue-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrainsmono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
[data-theme="dark"] {
  /* 字体栈：中文走系统字体（各端原生最优），拉丁展示字体本地加载 */
  --font-sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Antonio", "Segoe UI", system-ui, Impact, sans-serif;
  --font-condensed: "Bebas Neue", "Antonio", Impact, "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --bg:        #0F0E0E;
  --bg-2:      #171615;
  --fg:        #F5EFE3;
  --muted:     #8A857C;
  --line:      #2A2825;
  --line-soft: #3A3230;
  --accent:    #C8102E;
  --card:      #171615;
  --card-2:    #1F1D1B;
  --grid:      rgba(245, 239, 227, 0.055);
  --grid-strong: rgba(245, 239, 227, 0.10);
  --chrome-a:  #e6e9ec;
  --chrome-b:  #9aa0a6;
  /* 让浏览器原生控件/滚动条跟随主题 */
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:        #F5EFE3;
  --bg-2:      #FFFFFF;
  --fg:        #1A1A1A;
  --muted:     #6B655C;
  --line:      #D8D0C0;
  --line-soft: #E4DDCE;
  --accent:    #C8102E;
  --card:      #FFFFFF;
  --card-2:    #FBF7EE;
  --grid:      rgba(26, 26, 26, 0.05);
  --grid-strong: rgba(26, 26, 26, 0.10);
  --chrome-a:  #b9a07e;
  --chrome-b:  #d9c9a8;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 固定导航占位，锚点跳转不被顶栏遮挡 */
  scroll-padding-top: 96px;
  /* 防止移动端 Safari 横屏字号自动放大 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}

/* ---------- 细网格背景（径向渐隐，随主题切换） ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  transition: background-image .5s ease;
}

/* 让所有内容浮在网格之上 */
main, .footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

/* =========================================================
   导航
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  /* 默认完全透明、不占位、不形成任何面板/边界，与背景融为一体 */
  background: transparent;
  transition: top .5s cubic-bezier(.22,.61,.36,1);
}
/* 向下滚动时整条导航收起，把画面完整让给内容；向上滚动立即回位
   （用 top 位移而非 transform：避免影响内部毛玻璃的取样基准） */
.nav.is-hidden { top: -200px; }

/* 滚动后：一层自上而下渐隐的柔雾 + 轻磨砂为文字托底
   —— 没有下边界、没有条带，只是慢慢化开的一片雾 */
.nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 176px;
  z-index: 0;
  /* 兜底：不支持 color-mix 的旧内核 */
  background: linear-gradient(to bottom,
    rgba(15, 14, 14, 0.94) 0%,
    rgba(15, 14, 14, 0.68) 34%,
    transparent 100%);
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg) 68%, transparent) 34%,
    transparent 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 38%, transparent 100%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
[data-theme="light"] .nav::before {
  background: linear-gradient(to bottom,
    rgba(245, 239, 227, 0.94) 0%,
    rgba(245, 239, 227, 0.68) 34%,
    transparent 100%);
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg) 68%, transparent) 34%,
    transparent 100%);
}

.nav__row {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  height: 88px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__dot { width: 12px; height: 12px; background: var(--accent); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .5px;
}
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s ease;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--fg); }
.nav.is-scrolled .brand__name,
.nav.is-scrolled .nav__links a { color: var(--fg); }

/* 主题：三档显式切换（AUTO 跟随系统 / NOIR 深色 / PAPER 浅色）
   无背景、无边框，只靠字色与下划线表达选中 */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-switch__btn {
  position: relative;
  padding: 4px 0 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: var(--muted);
  transition: color .25s ease;
}
.theme-switch__btn:hover { color: var(--fg); }
.theme-switch__btn.is-active { color: var(--accent); }
.theme-switch__btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.3);
  transform-origin: left center;
  transition: opacity .3s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.theme-switch__btn.is-active::after { opacity: .8; transform: scaleX(1); }

/* =========================================================
   首屏 HERO
   ========================================================= */
.hero { position: relative; }
.hero__grid {
  position: absolute; inset: 0;
  /* 过孔阵列：密集圆点，呈现 PCB 焊盘/过孔底纹 */
  background-image: radial-gradient(circle, var(--grid-strong) 1.4px, transparent 2.2px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 74%);
          mask-image: radial-gradient(circle at 50% 50%, #000, transparent 74%);
  pointer-events: none;
}
.hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  /* 移动端动态视口高度，避免地址栏伸缩导致跳动 */
  min-height: 100dvh;
  padding: 132px 64px 64px;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 48px;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -3px;
}
.hero__title-main,
.hero__title-accent {
  display: block;
  font-size: clamp(72px, 12vw, 168px);
}
.hero__title-accent { color: var(--accent); }
.hero__cn {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 1px;
}
.hero__desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
}
.cta { width: fit-content; display: inline-block; }
.cta__row { display: flex; align-items: center; gap: 14px; }
.cta__row span { font-size: 17px; font-weight: 500; }
.cta__row svg { color: var(--accent); }
.cta__line { display: block; height: 2px; background: var(--accent); margin-top: 8px; transform: scaleX(1); transform-origin: left; transition: transform .3s ease; }
.cta:hover .cta__line { transform: scaleX(.4); }
.scroll-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}

/* 主视觉：PCB 印刷电路板（纯 SVG，无边界、无光膜、无 3D） */
.hero__visual { display: flex; flex-direction: column; gap: 16px; }
/* 容器透明，仅作定位；电路走线在边缘径向渐隐，与背景融为一体 */
.hero__glow { position: relative; width: 100%; height: 620px; }
.hero__circuit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 34%, transparent 82%);
          mask-image: radial-gradient(circle at 50% 50%, #000 34%, transparent 82%);
}
/* PCB 走线：45° 曼哈顿布线，统一线宽、平行排布，像真实电路板 */
.pcb-traces .trace {
  stroke: var(--fg); stroke-opacity: .18; stroke-width: 1.4;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.pcb-via circle { fill: var(--fg); fill-opacity: .34; }
/* 朱红信号：亮点沿 45° 走线流动 */
.pcb-signal {
  stroke: var(--accent); stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 12 500;
  filter: drop-shadow(0 0 5px rgba(200, 16, 46, 0.85));
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 85%, transparent));
  animation: pcbFlow 5s linear infinite;
}
.pcb-signal--2 { animation-duration: 7s; animation-delay: -2.5s; }
@keyframes pcbFlow { from { stroke-dashoffset: 512; } to { stroke-dashoffset: 0; } }
/* 中央 LQFP48 封装（顶视图：四边各 12 脚 + Die + 1脚圆点 + 定位缺口） */
.pcb-ic__body { stroke: var(--fg); stroke-opacity: .5; stroke-width: 1.8; fill: rgba(200, 16, 46, 0.07); fill: color-mix(in srgb, var(--accent) 7%, transparent); }
.pcb-ic__pins path { stroke: var(--fg); stroke-opacity: .4; stroke-width: 1.4; fill: none; }
.pcb-ic__die { stroke: var(--accent); stroke-opacity: .6; stroke-width: 1.3; fill: rgba(200, 16, 46, 0.12); fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.pcb-ic__hatch path { stroke: var(--accent); stroke-opacity: .3; stroke-width: .8; fill: none; }
.pcb-ic__pin1 { fill: var(--accent); }
.pcb-ic__notch { stroke: var(--fg); stroke-opacity: .5; stroke-width: 1.4; fill: none; }

/* 浅色主题：走线/过孔/IC 描边微调，保证奶油纸底上清晰且不刺眼 */
[data-theme="light"] .pcb-traces .trace { stroke-opacity: .14; }
[data-theme="light"] .pcb-via circle { fill-opacity: .4; }
[data-theme="light"] .pcb-ic__body { stroke-opacity: .5; }
[data-theme="light"] .pcb-ic__pins path { stroke-opacity: .45; }
.hero__caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.hero__caption-tag { color: var(--accent); }

/* =========================================================
   滚动字带 MARQUEE
   ========================================================= */
.marquee {
  background: var(--accent);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: var(--font-condensed);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--bg);
  letter-spacing: 2px;
  padding: 22px 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   区块通用标题
   ========================================================= */
.section-head, .caps__head, .about, .contact, .statement {
  max-width: 1440px;
  margin: 0 auto;
}
.section-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}
.section-no--accent { color: var(--accent); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 104px);
  line-height: .95;
  letter-spacing: -2px;
  margin-top: 12px;
}

/* =========================================================
   作品 SELECTED WORK
   ========================================================= */
.work { padding: 110px 64px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 48px;
}
.section-note {
  font-size: 16px;
  color: var(--muted);
  text-align: right;
  max-width: 320px;
  line-height: 1.7;
}
.work__grid { display: flex; flex-direction: column; gap: 24px; }
.work__row { display: grid; gap: 24px; }
.work__row--a { grid-template-columns: 2fr 1fr; }
.work__row--b { grid-template-columns: 1fr 2fr; }
.card {
  background: var(--card);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  overflow: hidden;
  /* 用柔光阴影做层次，不用描边，避免任何硬边界 */
  box-shadow: 0 24px 48px -30px rgba(0,0,0,.6);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 44px -8px rgba(200, 16, 46, 0.45); box-shadow: 0 0 44px -8px color-mix(in srgb, var(--accent) 45%, transparent); }

.card__visual {
  position: relative;
  height: 280px;
  background:
    radial-gradient(120% 140% at 80% 20%, rgba(200, 16, 46, 0.55), transparent 60%),
    linear-gradient(135deg, var(--card-2), var(--bg-2));
  background:
    radial-gradient(120% 140% at 80% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    linear-gradient(135deg, var(--card-2), var(--bg-2));
  overflow: hidden;
}
.card__visual--chrome {
  background:
    linear-gradient(135deg, var(--chrome-a), var(--chrome-b) 45%, #2a2a2a 100%);
}
/* 卡 02：PCB 板视觉 */
.card__visual--pcb { background: linear-gradient(135deg, var(--card-2), var(--bg-2)); }
.pcb-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcb-art__traces path { stroke: var(--fg); stroke-opacity: .16; stroke-width: 1.3; fill: none; }
.pcb-art__via circle { fill: var(--fg); fill-opacity: .3; }
.pcb-art__body { stroke: var(--fg); stroke-opacity: .4; stroke-width: 1.4; fill: rgba(200, 16, 46, 0.08); fill: color-mix(in srgb, var(--accent) 8%, transparent); }
.pcb-art__pins path { stroke: var(--fg); stroke-opacity: .35; stroke-width: 1.3; fill: none; }
.pcb-art__die { stroke: var(--accent); stroke-opacity: .6; stroke-width: 1.2; fill: rgba(200, 16, 46, 0.14); fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.pcb-art__pin1 { fill: var(--accent); }
/* 卡 01：角落 IC 芯片 */
.ic-mini { position: absolute; top: 16px; right: 16px; width: 92px; height: 92px; opacity: .92; }
.ic-mini__body { stroke: var(--fg); stroke-opacity: .4; stroke-width: 1.4; fill: rgba(200, 16, 46, 0.08); fill: color-mix(in srgb, var(--accent) 8%, transparent); }
.ic-mini__pins path { stroke: var(--fg); stroke-opacity: .35; stroke-width: 1.3; fill: none; }
.ic-mini__leads path { stroke: var(--fg); stroke-opacity: .32; stroke-width: 1.3; fill: none; }
.ic-mini__die { stroke: var(--accent); stroke-opacity: .6; stroke-width: 1.2; fill: rgba(200, 16, 46, 0.14); fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.ic-mini__pin1 { fill: var(--accent); }
[data-theme="light"] .pcb-art__traces path,
[data-theme="light"] .ic-mini__body { stroke-opacity: .4; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave__line { fill: none; stroke-width: 2; opacity: .9; }
.wave__line--a { stroke: var(--accent); }
.wave__line--b { stroke: var(--fg); opacity: .55; }
.wave__line--c { stroke: var(--fg); opacity: .3; }

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 28px;
  gap: 16px;
}
.card__meta--stack { flex-direction: column; align-items: flex-start; padding: 24px; }
.card__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.card__title { font-size: 22px; font-weight: 700; margin-top: 8px; }
.card__title--lg { font-family: var(--font-display); font-size: clamp(56px, 8vw, 92px); line-height: .95; letter-spacing: -2px; }
.card__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}

.card--red { background: var(--accent); border-color: var(--accent); justify-content: space-between; padding: 32px; }
.card--red:hover { transform: translateY(-4px); }
.card__no--onred { color: var(--bg); }
.card__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 150px;
  line-height: .9;
  color: var(--bg);
}
.card__title--onred { color: var(--bg); font-size: 20px; }

.card--oss {
  background: linear-gradient(135deg, var(--card), var(--bg-2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--card)), var(--bg-2));
}
.card__oss-inner { padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; height: 100%; justify-content: space-between; }
.card__desc { font-size: 16px; color: var(--muted); max-width: 560px; line-height: 1.7; }
.card__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--accent); }

/* =========================================================
   能力 CAPABILITIES
   ========================================================= */
.caps { padding: 110px 64px; background: var(--bg-2); }
.caps__head { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: start; }
.caps__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 8vw, 88px);
  line-height: .95;
  letter-spacing: -2px;
  margin: 12px 0 20px;
}
.caps__cn { font-size: 17px; color: var(--muted); max-width: 340px; line-height: 1.7; }
.caps__list { display: flex; flex-direction: column; }
.cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
}
.cap__title { font-size: 24px; font-weight: 700; }
.cap__desc { font-size: 15px; color: var(--muted); margin-top: 8px; max-width: 520px; line-height: 1.6; }
.cap__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--accent); white-space: nowrap; }

/* =========================================================
   观点 STATEMENT
   ========================================================= */
.statement {
  background: var(--accent);
  color: var(--bg);
  margin: 0;
  max-width: none;
  padding: 110px 64px 90px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.statement > * { max-width: 1440px; margin-left: auto; margin-right: auto; width: 100%; }
.statement__no {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 2px; color: var(--bg);
}
.statement__quote {
  font-size: clamp(44px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.25;
}
.statement__by {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1.5px; color: var(--bg);
}
.statement__rule { height: 1px; background: var(--bg); opacity: .35; }
.statement__metrics { display: flex; gap: 64px; flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 6vw, 64px); line-height: 1; }
.metric__label { font-size: 13px; }

/* =========================================================
   关于 ABOUT
   ========================================================= */
.about {
  padding: 110px 64px;
  display: grid;
  grid-template-columns: 660px 1fr;
  gap: 64px;
  align-items: center;
}
.about__title { font-size: clamp(40px, 5vw, 52px); font-weight: 700; line-height: 1.3; margin: 12px 0 28px; }
.about__desc { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.9; }
.about__figure { display: flex; justify-content: center; }
.chip { width: 100%; max-width: 480px; height: auto; }
.chip__leads path { stroke: var(--fg); stroke-opacity: .16; stroke-width: 1.2; fill: none; }
.chip__via circle { fill: var(--fg); fill-opacity: .3; }
.chip__body { stroke: var(--fg); stroke-opacity: .35; stroke-width: 1.6; fill: rgba(200, 16, 46, 0.06); fill: color-mix(in srgb, var(--accent) 6%, transparent); }
.chip__pins path { stroke: var(--fg); stroke-opacity: .4; stroke-width: 1.6; fill: none; }
.chip__die { stroke: var(--accent); stroke-opacity: .65; stroke-width: 1.4; fill: rgba(200, 16, 46, 0.14); fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip__die-hatch path { stroke: var(--accent); stroke-opacity: .35; stroke-width: .8; }
.chip__pin1 { fill: var(--accent); }
.chip__notch { stroke: var(--fg); stroke-opacity: .5; stroke-width: 1.4; fill: none; }

/* =========================================================
   联系 CONTACT
   ========================================================= */
.contact {
  padding: 110px 64px 90px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: linear-gradient(135deg, var(--bg), #250e12);
  background: linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--accent) 12%, var(--bg)));
}
[data-theme="light"] .contact {
  background: linear-gradient(135deg, var(--bg), #f0d4cd);
  background: linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--accent) 12%, var(--bg)));
}
.contact__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); }
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -4px;
}
.contact__title span { display: block; font-size: clamp(90px, 14vw, 170px); }
.contact__title-accent { color: var(--accent); }
.contact__cn { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
.contact__email { width: fit-content; }
.contact__email-row { display: flex; align-items: center; gap: 16px; }
.contact__email-row span { font-family: var(--font-mono); font-size: 24px; }
.contact__email-row svg { color: var(--accent); }
.contact__email-line { display: block; height: 2px; background: var(--accent); margin-top: 10px; }

/* =========================================================
   页脚 FOOTER
   ========================================================= */
.footer { padding: 0 64px; background: var(--bg); }
.footer__row {
  max-width: 1440px; margin: 0 auto;
  height: 120px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer__brand, .footer__mid {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1.5px; color: var(--muted);
}
.footer__nav { display: flex; gap: 28px; }
.footer__nav a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--fg); }
.footer__nav a.is-accent { color: var(--accent); }

/* =========================================================
   滚动 reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .nav__row { padding: 0 32px; }
  .hero__inner { grid-template-columns: 1fr; padding: 112px 32px 48px; }
  .hero__glow { height: 460px; }
  .work, .caps, .about, .contact, .statement { padding-left: 32px; padding-right: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-note { text-align: left; }
  .work__row { grid-template-columns: 1fr; }
  .caps__head { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-columns: 1fr; }
  .footer { padding: 0 32px; }
  .footer__row { flex-direction: column; justify-content: center; gap: 12px; height: auto; padding: 28px 0; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .theme-switch { gap: 11px; }
  .theme-switch__btn { font-size: 9.5px; letter-spacing: 1px; }
  .hero__title-main, .hero__title-accent { font-size: 64px; letter-spacing: -2px; }
  .card__big { font-size: 110px; }
  .statement__metrics { gap: 32px; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .pcb-signal { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .nav { transition: none; }
  html { scroll-behavior: auto; }
}
