/* ==========================================================================
   码上搞定 · netok.cn  —  官网样式
   深色 / 浅色双主题 · 科技大屏交互
   ========================================================================== */

/* ----- 配图开关：生成 AI 图后，把对应 url 改成你的图片文件即可（见 IMAGE-PROMPTS.md）----- */
:root {
  --img-hero:            url('../img/gen/hero.jpg');
  --img-hero-mobile:     url('../img/gen/hero-mobile.jpg');
  --img-services:        url('../img/gen/services.jpg');
  --img-capability:      url('../img/gen/capability.jpg');
  --img-process:         url('../img/gen/process.jpg');
  --img-about:           url('../img/gen/about.jpg');
  --img-contact:         url('../img/gen/contact.jpg');
  --img-showcase-mobile: url('../img/gen/showcase-mobile.jpg');
  --img-showcase-desktop:url('../img/gen/showcase-desktop.jpg');
  --img-cta:             url('../img/gen/cta-band.jpg');
  --img-texture:         url('../img/gen/texture-grid.jpg');
}

/* ----- 设计令牌（深色，默认）：深海军蓝 / 品牌蓝 / 校验橙 ----- */
:root {
  --bg:        #070C18;
  --bg-soft:   #0B1220;
  --bg-elev:   #101A2B;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #EEF3FA;
  --text-soft: #BBC6D6;
  --muted:     #7C8BA0;

  --cyan:   #4DA6FF;
  --blue:   #005BF9;
  --violet: #FD7D00;
  --pink:   #FF765F;
  --accent-rgb: 0, 91, 249;
  --signal-rgb: 253, 125, 0;

  --grad:        #005BF9;
  --grad-soft:   rgba(0, 91, 249, .14);
  --grad-text:   #4DA6FF;

  --grid-line: rgba(255,255,255,.028);
  --card-spot: rgba(0,126,252,.13);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow:    0 24px 60px -24px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 120px -30px rgba(0,0,0,.85);

  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 64px);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

/* ----- 浅色主题 ----- */
[data-theme="light"] {
  --bg:        #F4F7FC;
  --bg-soft:   #FBFCFF;
  --bg-elev:   #FFFFFF;
  --surface:   rgba(9, 37, 84, 0.025);
  --surface-2: rgba(9, 37, 84, 0.05);
  --line:      rgba(9, 37, 84, 0.10);
  --line-2:    rgba(9, 37, 84, 0.17);

  --text:      #101828;
  --text-soft: #3C485B;
  --muted:     #66758A;

  --cyan:      #004DEB;
  --blue:      #004DEB;
  --violet:    #B94700;
  --grad-text: #004DEB;

  --grid-line: rgba(9,37,84,.045);
  --card-spot: rgba(0,91,249,.09);

  --shadow:    0 24px 60px -28px rgba(12,35,74,.20);
  --shadow-lg: 0 40px 110px -36px rgba(12,35,74,.26);
  color-scheme: light;
}

/* ----- 重置 ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* 背景大气层：克制的工程网格，不使用彩色极光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  transition: background-color .5s var(--ease);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(var(--accent-rgb), .38); color: #fff; }

/* ----- 滚动进度条 ----- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 200; background: var(--grad);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .55);
  transition: width .08s linear;
}

/* ----- 鼠标光晕 ----- */
.spotlight {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .08), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s;
  mix-blend-mode: screen;
}
[data-theme="light"] .spotlight { background: radial-gradient(circle, rgba(var(--accent-rgb), .09), transparent 65%); mix-blend-mode: multiply; }

/* ----- 布局 ----- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-family: var(--mono);
}
[data-theme="light"] .eyebrow { color: var(--cyan); }
.eyebrow::before {
  content: ""; width: 14px; height: 2px;
  background: var(--violet);
}
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .eyebrow::before { display: none; }
.section__title {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 16px 0 14px;
}
.section__desc { color: var(--text-soft); font-size: clamp(15px, 1.6vw, 18px); }

.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----- 按钮 ----- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), .6), inset 0 1px 0 rgba(255,255,255,.20), inset 0 -3px 0 rgba(var(--signal-rgb), .92); }
.btn--primary:hover { box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), .58), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -3px 0 rgba(var(--signal-rgb), 1); filter: brightness(1.06); }
.btn--ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(var(--accent-rgb), .55); background: var(--surface-2); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 13px; }

/* ----- 导航 ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, border-color .35s, box-shadow .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,12,24,.82);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
[data-theme="light"] .nav.scrolled { background: rgba(255,255,255,.78); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__mark { width: auto; height: 52px; flex: none; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 9px 15px; border-radius: 10px; font-size: 15px; color: var(--text-soft);
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a.current { color: var(--text); }
.nav__links a.current::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav__right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text-soft); display: grid; place-items: center; transition: .3s;
}
.theme-toggle:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .5); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; transition: .3s; border-radius: 2px; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ----- HERO ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding: clamp(118px, 14vh, 154px) 0 clamp(78px, 9vh, 108px);
  overflow: hidden;
}
#fx { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--img-hero);
  background-size: cover; background-position: center;
  opacity: .24;
  filter: grayscale(1) sepia(.14) hue-rotate(168deg) saturate(.75) contrast(1.05);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
}
[data-theme="light"] .hero__media { opacity: .065; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(72% 62% at 38% 42%, transparent, var(--bg) 96%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { max-width: 900px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-soft); backdrop-filter: blur(6px);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--signal-rgb)); box-shadow: 0 0 10px rgba(var(--signal-rgb), .75); }
.hero h1 {
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero__typed { color: var(--text-soft); display: inline-flex; width: 6.4em; white-space: nowrap; }
.typed { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cursor { display: inline-block; width: 3px; margin-left: 3px; background: var(--cyan); animation: blink 1s steps(1) infinite; border-radius: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero__sub { font-size: clamp(16px, 2vw, 20px); color: var(--text-soft); max-width: 620px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero__mini { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); }
.hero__mini .m b { font-size: clamp(22px, 3vw, 30px); font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--mono); }
.hero__mini .m > span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.scrollcue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: 12px; letter-spacing: .2em; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scrollcue i { width: 22px; height: 34px; border: 1px solid var(--line-2); border-radius: 12px; position: relative; }
.scrollcue i::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 3px; background: var(--cyan); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ----- 价值主张 ----- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.value:hover { transform: translateY(-5px); border-color: var(--line-2); }
.value .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 16px; color: var(--cyan); }
.value .ic svg { width: 22px; height: 22px; }
.value h3 { font-size: 17px; margin-bottom: 6px; }
.value p { font-size: 14px; color: var(--muted); }

/* ----- 分区背景图层 ----- */
.svc-bg, .cap-bg, .proc-bg, .about-bg, .contact-bg, .github-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: .10; filter: grayscale(1) sepia(.12) hue-rotate(168deg) saturate(.72); will-change: transform; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.svc-bg { background-image: var(--img-services); }
.cap-bg { background-image: var(--img-capability); }
.proc-bg { background-image: var(--img-process); }
.about-bg { background-image: var(--img-about); opacity: .13; }
.contact-bg { background-image: var(--img-contact); }
.github-bg { background-image: var(--img-texture); opacity: .1; }
[data-theme="light"] .svc-bg, [data-theme="light"] .cap-bg, [data-theme="light"] .proc-bg, [data-theme="light"] .contact-bg, [data-theme="light"] .github-bg { opacity: .05; }
[data-theme="light"] .about-bg { opacity: .07; }
.section .wrap { position: relative; z-index: 1; }

/* ----- 服务卡片 ----- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card:hover::before { opacity: .8; }
.card:hover { background: var(--surface-2); }
.service { padding: 30px 28px; }
.service .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan); margin-bottom: 20px; }
.service .ic svg { width: 26px; height: 26px; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service > p { color: var(--text-soft); font-size: 15px; margin-bottom: 16px; }
.service ul { display: flex; flex-direction: column; gap: 8px; }
.service li { position: relative; padding-left: 20px; font-size: 14px; color: var(--muted); }
.service li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: rgb(var(--signal-rgb)); }
.service .no { position: absolute; top: 22px; right: 26px; font-family: var(--mono); font-size: 13px; color: var(--line-2); }

/* ----- 作品集 ----- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter__btn {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--line); transition: .3s;
}
.filter__btn:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.filter__btn.active { color: #fff; background: var(--grad); border-color: transparent; font-weight: 600; }

.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .45s, background .45s, box-shadow .45s;
  overflow: hidden;
  transform-style: preserve-3d;
}
.work::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, -20%), var(--card-spot), transparent 60%);
  opacity: 0; transition: opacity .4s; z-index: 0;
}
.work:hover::before { opacity: 1; }
.work::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--grad-soft); filter: blur(30px); opacity: 0; transition: opacity .5s; z-index: 0; }
.work:hover { border-color: var(--line-2); background: var(--surface-2); box-shadow: var(--shadow); }
.work:hover::after { opacity: 1; }
.work.is-hidden { display: none; }
.work > * { position: relative; z-index: 1; }
.work__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.work__icon {
  width: 56px; height: 56px; flex: none; border-radius: 15px; object-fit: cover;
  background: var(--bg-elev); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.8);
}
.work__icon.letter { display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: var(--grad); }
.work__name { font-size: 19px; font-weight: 700; line-height: 1.2; }
.work__cat { font-size: 12px; color: var(--cyan); font-family: var(--mono); margin-top: 3px; }
[data-theme="light"] .work__cat { color: #0891B2; }
.work__one { font-size: 14px; color: var(--text-soft); font-weight: 600; margin-bottom: 8px; }
.work__desc { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.work__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { font-size: 11.5px; padding: 4px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); font-family: var(--mono); }
.work__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.work__status { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.work__status .dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }
.work__status.oss .dot { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.work__status.dev .dot { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.work__link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-soft); transition: color .25s; }
.work__link:hover { color: var(--cyan); }
.work__link svg { width: 15px; height: 15px; }
.work__star { font-family: var(--mono); }
.github-star { font-variant-numeric: tabular-nums; transition: opacity .25s, color .25s; }
.github-star.is-loading { opacity: .55; }

/* ----- 能力 / 技术栈 ----- */
.cap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cap__media { aspect-ratio: 16/10; border-radius: var(--radius-lg); background-color: var(--bg-elev); background-image: var(--img-capability); background-size: cover; background-position: center; background-blend-mode: luminosity; border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cap__media::after { content: ""; position: absolute; inset: 0; background: rgba(var(--accent-rgb), .06); }
.cap__list { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.cap__item { display: flex; gap: 14px; }
.cap__item .ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan); }
.cap__item .ic svg { width: 20px; height: 20px; }
.cap__item h4 { font-size: 16px; margin-bottom: 2px; }
.cap__item p { font-size: 14px; color: var(--muted); }

.stack-marquee { margin-top: 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.stack-track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.stack-marquee:hover .stack-track { animation-play-state: paused; }
.stack-pill { font-family: var(--mono); font-size: 14px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .stack-track { animation: none; } }

/* ----- 数据统计 ----- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 36px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.stat:hover { transform: translateY(-5px); border-color: var(--line-2); }
.stat::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: var(--grad); opacity: .6; }
.stat b { display: block; font-size: clamp(34px, 5vw, 54px); font-weight: 850; line-height: 1; font-family: var(--mono); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat b .suf { font-size: .55em; }
.stat span { display: block; margin-top: 12px; color: var(--text-soft); font-size: 14px; }

/* ----- GitHub 个人档案 ----- */
.github-profile {
  padding: clamp(22px, 4vw, 42px); border-radius: var(--radius-lg);
  background: #0d1117; border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.github-profile__hero { display: block; max-width: 980px; margin: 0 auto; border-radius: 16px; overflow: hidden; }
.github-profile__hero img { width: 100%; }
.github-profile__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.github-profile__links > img, .github-profile__links > a:not(.github-profile__badge), .github-profile__links > a:not(.github-profile__badge) img { height: 22px; }
.github-profile__badge { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 3px; background: #21262d; border-left: 3px solid #27c93f; color: #fff; font: 11px/1 var(--mono); }
.github-profile__storeline { margin-top: 16px; text-align: center; color: #9fb0cc; font-size: 13px; }
.github-profile__storeline b, .github-profile__storeline span { color: #27c93f; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.github-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.github-panel { min-width: 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.github-panel--wide { grid-column: 1 / -1; }
.github-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; font-family: var(--mono); }
.github-panel__head span { color: var(--text); font-weight: 700; }
.github-panel__head small { color: var(--cyan); font-size: 10px; letter-spacing: .12em; }
.github-panel__media { min-height: 230px; padding: 20px; display: grid; place-items: center; border-radius: var(--radius-sm); overflow: hidden; background: #0d1117; border: 1px solid rgba(255,255,255,.08); }
.github-panel__media img, .github-panel__media picture { width: 100%; }
.github-panel__media--snake { min-height: 190px; }
.github-more { display: flex; justify-content: center; margin-top: 26px; }
.github-more .btn svg { width: 16px; height: 16px; }

/* ----- 流程 ----- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.process::before { content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__no { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 20px; color: var(--text); background: var(--bg-elev); border: 1px solid var(--line-2); position: relative; z-index: 1; transition: .4s; }
.step:hover .step__no { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 0 28px -8px rgba(var(--accent-rgb), .72); transform: translateY(-4px); }
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ----- 关于 ----- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__text p { color: var(--text-soft); margin-bottom: 16px; font-size: 16px; }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.about__points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-soft); }
.about__points svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.about__media { aspect-ratio: 4/5; border-radius: var(--radius-lg); background-color: var(--bg-elev); background-image: var(--img-about); background-size: cover; background-position: center; background-blend-mode: luminosity; border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.about__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,7,13,.85)); }
.about__card { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; padding: 18px 20px; border-radius: var(--radius); background: rgba(10,13,24,.7); backdrop-filter: blur(14px); border: 1px solid var(--line-2); color: #EAEFFA; }
.about__card b { font-size: 16px; }
.about__card span { font-size: 13px; color: #9fb0cc; }

/* ----- 联系 ----- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 52px); }
.contact__cards { display: flex; flex-direction: column; gap: 14px; }
.cc {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: .35s;
}
.cc:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateX(4px); }
.cc .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan); }
.cc .ic svg { width: 22px; height: 22px; }
.cc small { color: var(--muted); font-size: 12px; display: block; font-family: var(--mono); letter-spacing: .04em; }
.cc b { font-size: 16px; font-weight: 600; }
.cc--wechat { display: grid; grid-template-columns: 46px 1fr; align-items: center; }
.cc--wechat:hover { transform: none; }
.cc--wechat b + span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.wechat-qr { grid-column: 1 / -1; width: min(100%, 300px); justify-self: center; margin-top: 4px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px -26px rgba(0,0,0,.8); transition: transform .3s var(--ease), box-shadow .3s; }
.wechat-qr:hover { transform: translateY(-3px); box-shadow: 0 24px 56px -24px rgba(0,0,0,.9); }
.wechat-qr:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .7); outline-offset: 3px; }
.wechat-qr img { width: 100%; height: auto; border-radius: 10px; }

.form { padding: clamp(24px, 3vw, 38px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.form::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--grad); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }
.field label .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--text);
  font-family: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s;
}
[data-theme="light"] .field input, [data-theme="light"] .field select, [data-theme="light"] .field textarea { background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237C8AA6' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ----- CTA 横幅 ----- */
.cta-band { position: relative; border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 80px) var(--pad); text-align: center; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-elev); box-shadow: inset 4px 0 0 rgba(var(--signal-rgb), .82); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--img-cta); background-size: cover; background-position: center; filter: grayscale(1) sepia(.12) hue-rotate(168deg) saturate(.72); opacity: .12; }
[data-theme="light"] .cta-band::before { opacity: .08; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 850; letter-spacing: -.02em; margin-bottom: 14px; }
.cta-band p { color: var(--text-soft); max-width: 560px; margin: 0 auto 30px; font-size: 17px; }
.cta-band .hero__cta { justify-content: center; margin: 0; }

/* ----- 页脚 ----- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer .brand__mark { height: 64px; }
.footer p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer h5 { font-size: 13px; color: var(--text); margin-bottom: 16px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; transition: color .25s; }
.footer ul a:hover { color: var(--cyan); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__filings { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.footer__filings a { white-space: nowrap; }
.footer__filings a + a::before { content: "·"; margin-right: 14px; color: var(--line-2); }
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--text-soft); }

/* ----- 滚动渐显 ----- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ----- 响应式 ----- */
@media (max-width: 1024px) {
  .services__grid, .works__grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .cap, .about, .contact { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .process::before { display: none; }
  .about__media { aspect-ratio: 16/10; max-height: 460px; }
}
@media (max-width: 768px) {
  .nav__links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--pad) 24px; background: rgba(7,12,24,.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s; }
  [data-theme="light"] .nav__links { background: rgba(255,255,255,.97); }
  .nav.open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 15px; font-size: 16px; }
  .nav__links a.current::after { display: none; }
  .nav__cta.in-nav { display: none; }
  .nav__toggle { display: block; }
  #fx { opacity: .55; }
  .hero { padding-top: 112px; padding-bottom: 76px; }
  .hero__media { background-image: var(--img-hero-mobile); opacity: .32; }
  .hero__typed { display: flex; width: auto; min-height: 1.05em; }
  .services__grid, .works__grid, .stats__grid, .values { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .github-panels { grid-template-columns: 1fr; }
  .github-panel--wide { grid-column: auto; }
}
@media (max-height: 720px) {
  .scrollcue { display: none; }
}
@media (max-width: 460px) {
  .hero h1 { font-size: clamp(34px, 10vw, 42px); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__mini { gap: 22px; }
  .github-panel { padding: 16px; }
  .github-panel__media { min-height: 160px; padding: 12px; }
  .github-panel__head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .wechat-qr { width: min(100%, 260px); }
}

/* ----- 精选案例 / 截图展示 ----- */
.showcase { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); margin-bottom: clamp(56px, 8vw, 96px); }
.feature { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.feature__media { order: 1; }
.feature__info { order: 2; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature:nth-child(even) .feature__info { order: 1; }

.win { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-elev); box-shadow: var(--shadow-lg); position: relative; }
.win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); pointer-events: none; }
.win__bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 15px; background: rgba(255,255,255,.05); border-bottom: 1px solid var(--line); }
[data-theme="light"] .win__bar { background: rgba(15,23,42,.035); }
.win__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win__bar i:nth-child(1) { background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; }
.win__bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.win__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; cursor: zoom-in; background: var(--bg-soft); transition: opacity .3s; }

.feature__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.feature__thumbs img { width: 84px; height: 52px; object-fit: cover; object-position: top center; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s, transform .25s; }
.feature__thumbs img:hover { opacity: 1; transform: translateY(-2px); }
.feature__thumbs img.active { opacity: 1; border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .22); }

.feature__info .eyebrow { margin-bottom: 14px; }
.feature__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.feature__head img { width: 50px; height: 50px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg-elev); }
.feature__head .letter { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: var(--grad); }
.feature__info h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.feature__info h3 small { display: block; font-size: 13px; font-weight: 600; color: var(--cyan); font-family: var(--mono); margin-top: 4px; letter-spacing: .02em; }
[data-theme="light"] .feature__info h3 small { color: #0891B2; }
.feature__one { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.feature__desc { font-size: 15px; color: var(--text-soft); margin-bottom: 18px; }
.feature__metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.feature__metrics span { font-size: 13px; padding: 6px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); }
.feature__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.works-sub { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 26px; }
.works-sub h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.01em; }
.works-sub span { color: var(--muted); font-size: 14px; }

/* ----- 灯箱 ----- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3,5,12,.92); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 64px); opacity: 0; transition: opacity .3s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); }
.lightbox figcaption { color: #cfd8e8; font-size: 14px; font-family: var(--mono); }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: .25s; }
.lb-btn:hover { background: rgba(255,255,255,.18); transform: scale(1.06); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 22px; right: 24px; }
.lb-prev { left: clamp(12px, 3vw, 40px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(12px, 3vw, 40px); top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature__media, .feature:nth-child(even) .feature__media { order: 1; }
  .feature__info, .feature:nth-child(even) .feature__info { order: 2; }
}
