/* ============================================================
   铭文鼎成 · 官网设计系统
   深色极简 · 品牌蓝点缀 · 超大字 · 克制动效
   ============================================================ */

/* 自托管西文字体（去除 Google Fonts 依赖，国内可靠加载）。
   中文走系统 PingFang/微软雅黑，质感足够且零额外体积。 */
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:400;font-display:swap;src:url("../assets/fonts/space-grotesk-400.woff2") format("woff2");}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url("../assets/fonts/space-grotesk-500.woff2") format("woff2");}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("../assets/fonts/space-grotesk-700.woff2") format("woff2");}
@font-face{font-family:"Space Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../assets/fonts/space-mono-400.woff2") format("woff2");}

:root {
  /* ---- Brand ---- */
  --brand: #2f6bff;          /* 品牌蓝 */
  --brand-bright: #5b8cff;   /* 亮蓝（吉祥物色） */
  --brand-deep: #1b48c4;
  --brand-glow: rgba(47, 107, 255, 0.35);

  /* ---- Surfaces (dark) ---- */
  --bg: #07080b;
  --bg-1: #0c0e13;
  --bg-2: #11141b;
  --surface: #14171f;
  --surface-2: #1a1e28;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* ---- Text ---- */
  --text: #f4f6fb;
  --text-2: #b4bccb;
  --text-3: #767f91;
  --text-faint: #4a5263;

  /* ---- Type ---- */
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --font-en: "Space Grotesk", "Noto Sans SC", -apple-system, sans-serif;
  --font-mono: "Space Mono", "JetBrains Mono", ui-monospace, monospace;

  /* ---- Layout ---- */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --nav-h: 76px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-zh);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Background grain / glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 75% -5%, rgba(47,107,255,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(91,140,255,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   Typography utilities
   ============================================================ */
.mono {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.en { font-family: var(--font-en); }

.display {
  font-family: var(--font-zh);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

.accent { color: var(--brand-bright); }
.grad-text {
  background: linear-gradient(110deg, var(--text) 30%, var(--brand-bright) 75%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Layout
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.section {
  padding: clamp(70px, 11vw, 150px) 0;
}
.section-tight { padding: clamp(48px, 7vw, 90px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brand);
}

/* ============================================================
   Top navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__logo { height: 38px; width: auto; display: block; }
.footer .brand__logo { height: 46px; }
.brand__name {
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand__name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  color: var(--text-3);
  font-weight: 400;
  margin-top: 1px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}
.nav__link {
  font-size: 0.95rem;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--brand);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.nav__cta:hover { background: var(--brand-bright); box-shadow: 0 0 0 4px var(--brand-glow); transform: translateY(-1px); }
.nav__burger { display: none; width: 28px; height: 28px; flex-direction: column; justify-content: center; gap: 6px; }
.nav__burger span { height: 2px; width: 100%; background: var(--text); transition: 0.3s var(--ease); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-bright); box-shadow: 0 10px 40px -8px var(--brand-glow); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand-bright); color: var(--brand-bright); transform: translateY(-2px); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, black, transparent 75%);
  opacity: 0.5;
}
.hero__orb {
  position: absolute;
  width: 620px; height: 620px;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(47,107,255,0.30), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-54%) scale(1.06); }
}
.hero__inner { position: relative; z-index: 2; max-width: 1000px; }
.hero__kicker { margin-bottom: 30px; }
.hero h1 {
  font-weight: 900;
  font-size: clamp(2.7rem, 8.5vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: clamp(28px, 5vw, 70px);
  margin-top: 70px;
  flex-wrap: wrap;
}
.stat__num { font-family: var(--font-en); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1; }
.stat__num .accent { color: var(--brand-bright); }
.stat__label { font-size: 0.85rem; color: var(--text-3); margin-top: 8px; letter-spacing: 0.02em; }

/* ============================================================
   Section heading block
   ============================================================ */
.shead { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.shead h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.shead p { color: var(--text-2); font-size: 1.1rem; margin-top: 20px; font-weight: 300; max-width: 620px; }
.shead--center { margin-left: auto; margin-right: auto; text-align: center; }
.shead--center .eyebrow { }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-inline: auto;
}
.product-grid .card {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
}
.product-grid[data-product-count="1"] {
  max-width: 305px;
  grid-template-columns: minmax(0, 1fr);
}
.product-grid[data-product-count="2"] {
  max-width: 630px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-grid[data-product-count="3"] {
  max-width: 955px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-2); }
.card__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand-bright); letter-spacing: 0.15em; }
.card__icon {
  width: 52px; height: 52px;
  flex: 0 0 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(47,107,255,0.18), rgba(47,107,255,0.05));
  border: 1px solid var(--line);
  margin-bottom: 22px;
  color: var(--brand-bright);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: 0.98rem; font-weight: 300; line-height: 1.65; overflow-wrap: anywhere; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-3);
}

/* Feature card with accent glow on hover */
.card--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(47,107,255,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card--feature:hover::after { opacity: 1; }

/* Big bordered list rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}
.row:hover { background: var(--bg-1); padding-left: 18px; padding-right: 18px; }
.row__idx { font-family: var(--font-mono); color: var(--text-faint); font-size: 0.9rem; }
.row__title { font-size: 1.35rem; font-weight: 700; }
.row__desc { color: var(--text-2); font-weight: 300; font-size: 0.98rem; }
.row__arr { color: var(--text-3); transition: transform 0.3s var(--ease), color 0.3s; }
.row:hover .row__arr { transform: translateX(6px); color: var(--brand-bright); }

/* ============================================================
   News / article cards
   ============================================================ */
.posts { display: grid; gap: 2px; }
.post-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}
.post-card:first-child { border-top: 1px solid var(--line); }
.post-card:hover { background: var(--bg-1); padding-left: 16px; }
.post-card__meta { display: flex; flex-direction: column; gap: 8px; }
.post-card__date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); }
.post-card__cat {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47,107,255,0.12);
  color: var(--brand-bright);
  border: 1px solid rgba(47,107,255,0.22);
}
.post-card__title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; transition: color 0.3s; }
.post-card:hover .post-card__title { color: var(--brand-bright); }
.post-card__excerpt { color: var(--text-2); font-weight: 300; font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__arr { color: var(--text-faint); transition: transform 0.3s var(--ease), color 0.3s; }
.post-card:hover .post-card__arr { transform: translateX(6px); color: var(--brand-bright); }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 90px);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 50% 120%, rgba(47,107,255,0.20), transparent 70%),
    var(--bg-1);
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; margin-bottom: 22px; letter-spacing: -0.015em; }
.cta p { color: var(--text-2); font-size: 1.15rem; max-width: 520px; margin: 0 auto 38px; font-weight: 300; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   核心团队 Core team — 2/3/4 人自动居中
   ============================================================ */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 30px);
  width: 100%;
}
.team-card {
  flex: 0 1 248px;
  min-width: 212px;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 26px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s;
}
.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 180px at 50% 0%, rgba(47,107,255,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.team-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-2); }
.team-card:hover::after { opacity: 1; }
.team-card__photo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px rgba(47,107,255,0.06);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.team-card:hover .team-card__photo { box-shadow: 0 0 0 6px rgba(47,107,255,0.18), 0 14px 34px rgba(0,0,0,0.34); transform: scale(1.03); }
.team-card__photo--ph {
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand-bright);
  background: linear-gradient(140deg, rgba(47,107,255,0.2), rgba(47,107,255,0.04));
}
.team-card__name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--brand-bright);
  margin-top: 7px;
}
.team-card__bio {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .team-card { flex-basis: 100%; max-width: 360px; }
}

/* ============================================================
   产品图集（产品详情页）
   ============================================================ */
.prod-gallery { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr; }
.prod-gallery__item {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #050607;
  aspect-ratio: 16 / 10;
}
.prod-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.prod-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__cover {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #050607; margin-bottom: 18px;
}
.card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.card:hover .card__cover img { transform: scale(1.05); }
@media (max-width: 720px) {
  .prod-gallery { grid-template-columns: 1fr 1fr; }
  .prod-gallery__item:first-child { aspect-ratio: 16 / 9; }
}

/* ============================================================
   控制台 · 富文本编辑器（admin-content.js）
   ============================================================ */
.rt-toolbar {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
  padding: 9px 10px; background: var(--bg-1);
  border: 1px solid var(--line); border-bottom: none; border-radius: 12px 12px 0 0;
  position: sticky; top: 0; z-index: 2;
}
.rt-toolbar button {
  min-width: 32px; height: 30px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface, #14171f); color: var(--text-2);
  font-size: 0.84rem; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.rt-toolbar button:hover { color: var(--brand-bright); border-color: var(--brand); }
.rt-toolbar .rt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rt-editor {
  min-height: 340px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 0 0 12px 12px;
  background: var(--surface, #14171f); color: var(--text, #e7ebf2);
  font-size: 1rem; line-height: 1.8; font-weight: 300; outline: none;
  overflow-wrap: anywhere;
}
.rt-editor:focus { border-color: var(--brand); }
.rt-editor:empty::before { content: "在这里输入正文…"; color: var(--text-3); }
.rt-editor h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 26px 0 12px; }
.rt-editor h3 { font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 22px 0 10px; }
.rt-editor p { margin: 0 0 14px; }
.rt-editor ul, .rt-editor ol { margin: 0 0 16px; padding-left: 24px; }
.rt-editor li { margin-bottom: 7px; }
.rt-editor a { color: var(--brand-bright); text-decoration: underline; }
.rt-editor blockquote {
  margin: 18px 0; padding: 12px 20px; border-left: 3px solid var(--brand);
  background: var(--bg-1); border-radius: 0 10px 10px 0; color: var(--text);
}
.rt-editor figure { margin: 18px 0; }
.rt-editor img, .rt-editor video { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.rt-editor figcaption { color: var(--text-3); font-size: 0.86rem; text-align: center; margin-top: 8px; }
.rt-editor figcaption:empty::before { content: "（可选）图片 / 视频说明"; color: var(--text-3); opacity: 0.6; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: var(--bg-1); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.2fr; gap: 40px; margin-bottom: 56px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__desc { color: var(--text-3); font-size: 0.92rem; font-weight: 300; max-width: 280px; line-height: 1.7; }
.footer__col h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; font-family: var(--font-mono); font-weight: 400; }
.footer__col a { display: block; color: var(--text-2); font-size: 0.94rem; padding: 7px 0; transition: color 0.25s, transform 0.25s var(--ease); }
.footer__col a:hover { color: var(--brand-bright); transform: translateX(3px); }
.footer__qr { width: 110px; height: 110px; border-radius: 12px; background: #fff; padding: 8px; }
.footer__qr img { width: 100%; height: 100%; }
.footer__contact { font-size: 0.92rem; color: var(--text-2); font-weight: 300; }
.footer__contact a { color: var(--brand-bright); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-3);
  font-size: 0.85rem;
}
.footer__bottom a:hover { color: var(--text-2); }

/* ============================================================
   Page header (sub pages)
   ============================================================ */
.phead {
  padding-top: calc(var(--nav-h) + clamp(60px, 9vw, 120px));
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.phead__bg {
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 0%, rgba(47,107,255,0.12), transparent 65%);
  pointer-events: none;
}
.phead h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.phead p { color: var(--text-2); font-size: clamp(1.05rem, 2vw, 1.3rem); margin-top: 24px; max-width: 640px; font-weight: 300; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--text-3); margin-bottom: 26px; font-family: var(--font-mono); }
.breadcrumb a:hover { color: var(--brand-bright); }
.breadcrumb span { color: var(--text-faint); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* Hero 滚动提示 */
.hero__scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}
.hero__scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--brand-bright);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   FX — 动效层（fx.js 配合）
   ============================================================ */

/* 滚动进度条 */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
}

/* Hero 粒子画布 */
.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 全站光标柔光 */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  will-change: transform;
}

/* 逐元素揭示（比 .reveal 更精细，可叠加 data-delay） */
.fx-rise { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fx-rise.in { opacity: 1; transform: none; }

/* 行级 mask 揭示（用于大标题） */
.fx-line { display: block; overflow: hidden; }
.fx-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.fx-line.in > span { transform: none; }

/* Hero 上方内容：CSS 自动播放入场（不依赖 JS / 滚动，永远可见） */
@keyframes lineRise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.js .hero .fx-line > span { transform: translateY(110%); animation: lineRise 1.05s var(--ease) both; }
.js .hero h1 .fx-line:nth-child(1) > span { animation-delay: 0.12s; }
.js .hero h1 .fx-line:nth-child(2) > span { animation-delay: 0.26s; }
.js .hero__kicker { opacity: 0; animation: heroFadeUp 0.8s var(--ease) 0.02s both; }
.js .hero__sub { opacity: 0; animation: heroFadeUp 0.9s var(--ease) 0.5s both; }
.js .hero__actions { opacity: 0; animation: heroFadeUp 0.9s var(--ease) 0.66s both; }
.js .hero__stats { opacity: 0; animation: heroFadeUp 0.9s var(--ease) 0.82s both; }
@media (prefers-reduced-motion: reduce) {
  .js .hero .fx-line > span { transform: none; animation: none; }
  .js .hero__kicker, .js .hero__sub, .js .hero__actions, .js .hero__stats { opacity: 1; animation: none; }
}

/* 卡片倾斜光斑 */
.tilt { transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s; transform-style: preserve-3d; }
.tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(47,107,255,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.tilt:hover::before { opacity: 1; }

/* 磁吸按钮过渡 */
.magnetic { transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.25s var(--ease); will-change: transform; }

/* ============================================================
   Marquee — 无限滚动文字带
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg-1);
  position: relative;
  z-index: 1;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--brand);
  display: inline-block;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.marquee__item.is-ghost { color: transparent; -webkit-text-stroke: 1px var(--text-faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .cursor-glow { display: none; }
  .fx-line > span { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,8,11,0.97);
    backdrop-filter: blur(18px);
    padding: 24px var(--gutter) 32px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav__links.open .nav__link { padding: 12px 0; font-size: 1.1rem; width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-grid,
  .product-grid[data-product-count] {
    max-width: none;
    grid-template-columns: 1fr;
  }
  .row { grid-template-columns: 50px 1fr; grid-template-areas: "idx title" "idx desc"; gap: 6px 18px; }
  .row__desc { grid-column: 2; }
  .row__arr { display: none; }
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .post-card__arr { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .hero__stats { gap: 28px 36px; }
  .phead h1 { font-size: 2.15rem; letter-spacing: 0; line-height: 1.12; }
}
