/* =========================================================
   瓶礼科技 PINGLI TECH — 站点样式
   设计语言：克制的留白、细边框、单一品牌蓝、微光渐变
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #4d6bfe;
  --brand-strong: #3b56f0;
  --brand-soft: rgba(77, 107, 254, .10);
  --brand-line: rgba(77, 107, 254, .28);

  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-elev: #ffffff;
  --text: #0e1120;
  --text-2: #3c4256;
  --muted: #6b7186;
  --line: rgba(14, 17, 32, .09);
  --line-strong: rgba(14, 17, 32, .16);

  --shadow-sm: 0 1px 2px rgba(14, 17, 32, .05), 0 6px 18px -8px rgba(14, 17, 32, .10);
  --shadow-md: 0 2px 4px rgba(14, 17, 32, .04), 0 22px 48px -22px rgba(14, 17, 32, .22);
  --shadow-lg: 0 40px 90px -40px rgba(30, 44, 120, .38);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --container: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --brand: #7d95ff;
  --brand-strong: #6b85ff;
  --brand-soft: rgba(125, 149, 255, .12);
  --brand-line: rgba(125, 149, 255, .34);

  --bg: #0a0c13;
  --bg-soft: #0f1219;
  --bg-elev: #12161f;
  --text: #eef1f8;
  --text-2: #c3c9da;
  --muted: #939bb2;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .17);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px -8px rgba(0, 0, 0, .6);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 48px -22px rgba(0, 0, 0, .75);
  --shadow-lg: 0 40px 100px -40px rgba(0, 0, 0, .9);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.22; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 15px; font-weight: 550; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 24px -12px rgba(77, 107, 254, .9);
}
.btn-primary:hover { background: var(--brand-strong); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 16px 30px -14px rgba(77,107,254,1); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }

.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--text-2);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }

.text-link { color: var(--brand); font-weight: 550; border-bottom: 1px solid var(--brand-line); padding-bottom: 1px; }
.text-link:hover { border-color: var(--brand); }

/* 主题图标显隐 */
.icon-moon { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }
html[data-theme="dark"] .icon-sun { display: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header.is-scrolled { background: var(--bg); }
}

.header-inner { display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7a93ff, #3a4ede);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(61, 86, 240, .55);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; font-weight: 650; letter-spacing: .01em; }
.brand-text small { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link {
  position: relative;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.is-active { color: var(--brand); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand); transform: translateX(-50%);
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }
.icon-close { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 76px);
  padding-bottom: 88px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 22%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 22%, #000 10%, transparent 72%);
  opacity: .55;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.orb-a {
  width: 520px; height: 520px;
  top: -180px; right: -80px;
  background: radial-gradient(circle at 40% 40%, #8ea7ff, rgba(142, 167, 255, 0));
}
.orb-b {
  width: 420px; height: 420px;
  top: 120px; left: -160px;
  background: radial-gradient(circle at 50% 50%, #b9c6ff, rgba(185, 198, 255, 0));
  opacity: .38;
}
html[data-theme="dark"] .orb { opacity: .22; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 4.9vw, 4.05rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 680;
}
.grad-text {
  background: linear-gradient(104deg, #4d6bfe 6%, #7d95ff 42%, #a58bff 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .grad-text {
  background-image: linear-gradient(104deg, #8ba2ff 6%, #a9bcff 46%, #c4aaff 90%);
}

.hero-sub {
  max-width: 33em;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.78;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Hero 视觉 */
.hero-visual { position: relative; min-height: 400px; display: grid; place-items: center; min-width: 0; }
.halo {
  position: absolute; width: 112%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 148, 255, .22), rgba(123, 148, 255, 0) 62%);
  filter: blur(6px);
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed var(--line-strong);
  opacity: .8;
}
.ring-1 { width: 86%; aspect-ratio: 1; animation: spin 46s linear infinite; }
.ring-2 { width: 64%; aspect-ratio: 1; border-style: solid; opacity: .45; animation: spin 34s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.code-card {
  position: relative; z-index: 2;
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.code-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

.code-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dots i:first-child { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.code-file { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-right: auto; }
.code-body {
  margin: 0; padding: 22px 20px;
  font-family: var(--font-mono);
  font-size: 12.6px; line-height: 1.95;
  white-space: pre; overflow-x: auto;
  color: var(--text-2);
}
.c-method { color: var(--brand); font-weight: 600; }
.c-path { color: var(--text); }
.c-key { color: #8a6dff; }
html[data-theme="dark"] .c-key { color: #b39bff; }
.c-str { color: #0f9d70; }
html[data-theme="dark"] .c-str { color: #5ee2b0; }
.c-num { color: #d97706; }
.c-punc { color: var(--muted); }
.c-com { color: var(--muted); }

.code-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 6px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #12a150;
  box-shadow: 0 0 0 3px rgba(18, 161, 80, .15);
}

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.3; }
.float-card strong { font-size: 15px; letter-spacing: -.02em; }
.float-card span:not(.float-icon) { font-size: 11.5px; color: var(--muted); }
.float-icon {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
}
.float-icon svg { width: 17px; height: 17px; }
.float-a { top: 14px; right: -26px; }
.float-b { bottom: -18px; left: -30px; animation-delay: -3.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* 数据条 */
.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 76px;
  border-block: 1px solid var(--line);
}
.stat { padding: 26px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 680; letter-spacing: -.03em; }
.stat dd { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* ---------- 章节标题 ---------- */
.section { padding: 104px 0; }
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.section-head h2, .about-copy h2, .contact-copy h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  letter-spacing: -.03em;
  line-height: 1.24;
  text-wrap: balance;
}
.section-sub {
  margin-top: 16px;
  font-size: 15.5px; color: var(--muted);
  line-height: 1.8;
}

/* ---------- 服务卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--brand-soft), transparent 62%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 17.5px; letter-spacing: -.015em; }
.service-card p {
  margin-top: 10px;
  font-size: 14.3px; color: var(--muted); line-height: 1.75;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag-list li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--text-2);
  background: var(--bg-soft);
}

/* ---------- 技术栈跑马灯 ---------- */
.stack { padding: 46px 0; border-bottom: 1px solid var(--line); }
.stack-inner { display: flex; align-items: center; gap: 40px; }
.stack-label {
  flex: none;
  font-size: 12px; letter-spacing: .04em; color: var(--muted);
}
.marquee {
  flex: 1; min-width: 0;
  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);
}
.marquee-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 0 20px;
  font-size: 13.5px; color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}
.marquee-track span:hover { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 案例 ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--brand-line); box-shadow: var(--shadow-md); }

.work-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
}
.cover-a { background: linear-gradient(140deg, #4f6bff, #7c5cff 55%, #2f3bb8); }
.cover-b { background: linear-gradient(140deg, #1f9d8d, #3fb0e8 58%, #2155a8); }
.cover-c { background: linear-gradient(140deg, #e0763a, #ef5f7c 58%, #8e2d6b); }
.cover-d { background: linear-gradient(140deg, #0f766e, #34d399 58%, #115e59); }
.cover-e { background: linear-gradient(140deg, #1e40af, #6366f1 56%, #312e81); }
.cover-f { background: linear-gradient(140deg, #a21caf, #ec4899 56%, #831843); }
.work-shot {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.work-card:hover .work-shot { transform: scale(1.035); }
.work-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8, 10, 25, .52) 0%, rgba(8, 10, 25, .10) 34%, transparent 58%);
}
.work-index {
  position: absolute; z-index: 2;
  left: 18px; bottom: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .1em;
  text-shadow: 0 1px 6px rgba(8, 10, 25, .45);
}

.work-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.work-kicker {
  font-family: var(--font-mono); font-size: 10.8px;
  color: var(--brand); letter-spacing: .02em;
}
.work-body h3 { margin-top: 8px; font-size: 18px; letter-spacing: -.02em; }
.work-body > p:not(.work-kicker) {
  margin-top: 9px;
  font-size: 14px; color: var(--muted); line-height: 1.75;
}
.work-metrics {
  display: flex; gap: 26px;
  margin-top: auto; padding-top: 20px;
}
.work-metrics li { display: flex; flex-direction: column; }
.work-metrics strong { font-size: 20px; letter-spacing: -.03em; }
.work-metrics span { font-size: 11.5px; color: var(--muted); }

/* 客户评价 */
.voices-wrap { margin-top: 68px; }
.voices-label {
  margin-bottom: 18px;
  text-align: center;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.voice {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.voice blockquote {
  margin: 0;
  font-size: 14.2px; line-height: 1.8; color: var(--text-2);
}
.voice blockquote::before {
  content: "“";
  margin-right: 2px;
  color: var(--brand);
  font-size: 1.25em;
  line-height: 0;
}
.voice figcaption {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.voice-avatar {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px; font-weight: 600;
}
.voice-meta { display: flex; flex-direction: column; line-height: 1.4; }
.voice-meta strong { font-size: 12.6px; font-weight: 600; }
.voice-meta span { font-size: 11.4px; color: var(--muted); }

/* ---------- 流程 ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: none;
}
.process-step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.process-step::before {
  content: ""; position: absolute; top: -3.5px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.step-no {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--brand); letter-spacing: .06em;
}
.process-step h3 { margin-top: 8px; font-size: 17px; }
.process-step p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.75; }

.quote {
  position: relative;
  margin: 76px 0 0;
  padding: 40px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--brand-soft), transparent 62%);
}
.quote-mark {
  position: absolute; top: 28px; right: 34px;
  width: 42px; height: 34px;
  color: var(--brand); opacity: .16;
}
.quote blockquote {
  margin: 0;
  max-width: 46em;
  text-wrap: pretty;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  font-weight: 500; letter-spacing: -.015em; line-height: 1.6;
}
.quote figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 64px;
  align-items: start;
}
.about-copy > p {
  margin-top: 18px;
  font-size: 15.2px; color: var(--muted); line-height: 1.85;
}
.value-list { margin-top: 34px; display: grid; gap: 20px; }
.value-list li { padding-left: 18px; border-left: 2px solid var(--brand-line); }
.value-list h3 { font-size: 15px; }
.value-list p { margin-top: 4px; font-size: 13.8px; color: var(--muted); }
.about-cta { display: flex; align-items: center; gap: 20px; margin-top: 34px; }

.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
}
.panel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.panel-body { padding: 24px 22px; }
.panel-body > p:first-child { font-family: var(--font-mono); font-size: 12.5px; }
.cm { color: var(--brand); }
.panel-body ul { display: grid; gap: 13px; margin-top: 18px; }
.panel-body li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.8px; color: var(--text-2); line-height: 1.6;
}
.panel-body li svg { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--brand); }
.panel-note {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
}
.panel-foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}

/* ---------- 联系 ---------- */
.contact { padding-bottom: 112px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: start;
}
.contact-copy .section-sub { max-width: 28em; }
.contact-list { margin-top: 34px; display: grid; gap: 16px; }
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: var(--text-2);
}
.contact-list a:hover { color: var(--brand); }
.ci {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand);
  background: var(--bg-elev);
}
.ci svg { width: 16px; height: 16px; }

.contact-form {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 12.8px; font-weight: 550; color: var(--text-2); }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field.has-error input, .field.has-error textarea {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .12);
}
.field-error { min-height: 0; font-size: 12px; color: #e5484d; }
.field-error:empty { display: none; }

.form-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.form-success {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  border: 1px solid rgba(18, 161, 80, .28);
  border-radius: 12px;
  background: rgba(18, 161, 80, .08);
}
.form-success[hidden] { display: none; }
.form-success svg { width: 20px; height: 20px; color: #12a150; flex: none; margin-top: 2px; }
.form-success div { display: flex; flex-direction: column; gap: 2px; }
.form-success strong { font-size: 14px; }
.form-success span { font-size: 12.5px; color: var(--muted); }

#submit-btn.is-loading { pointer-events: none; opacity: .75; }
#submit-btn.is-loading svg { display: none; }
#submit-btn.is-loading .btn-label::after {
  content: "…";
  display: inline-block;
  margin-left: 2px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h3 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px; color: var(--text-2);
  transition: color .2s;
}
.footer-cols a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.8px; color: var(--muted);
}

/* ---------- 滚动入场 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner { gap: 32px; }
  .float-a { right: -8px; }
  .float-b { left: -8px; }
  .about-grid, .contact-grid { gap: 44px; }
}

@media (max-width: 940px) {
  .hero { padding-top: calc(var(--header-h) + 52px); padding-bottom: 64px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: 380px; }
  .code-card { transform: none; width: min(100%, 480px); }
  .float-a { right: -4px; }
  .float-b { left: -4px; }

  .card-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .voices { grid-template-columns: 1fr; }
  .voices-wrap { margin-top: 52px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 22px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-panel { max-width: 560px; }
  .stack-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 14px 20px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-link { padding: 12px 8px; font-size: 15px; border-radius: 8px; }
  .nav-link.is-active::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; height: 46px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .section { padding: 72px 0; }
  .hero { padding-bottom: 52px; }
  .hero-copy h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-sub { font-size: 15.2px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stat { padding: 20px 6px; }
  .stat:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .card-grid, .work-grid, .process, .footer-cols { grid-template-columns: 1fr; }
  .voice { padding: 22px 20px 18px; }
  .service-card { padding: 24px 22px; }
  .section-head { margin-bottom: 40px; }
  .quote { padding: 28px 24px; }
  .quote-mark { top: 18px; right: 20px; width: 32px; }
  .contact-form { padding: 22px 18px; }
  .about-cta { flex-wrap: wrap; }
  .hero-visual { min-height: 320px; }
  .code-body { font-size: 11px; padding: 18px 16px; }
  .float-card { padding: 9px 12px; }
  .float-card strong { font-size: 13.5px; }
  .float-card span:not(.float-icon) { font-size: 10.5px; }
  .float-icon { width: 28px; height: 28px; }
  .footer-bottom { flex-direction: column; }
  .marquee-track span { padding: 0 14px; font-size: 12.5px; }
}

@media (max-width: 400px) {
  .float-b { display: none; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
