/* ==========================================================================
   HK OPTENTRA CO., LIMITED — Global Corporate Site
   Single stylesheet for the entire site. [复用-A]
   Design system: bold automotive energy — deep ink blues, a fast electric
   blue, an energetic amber accent, sharp geometry, confident motion.
   All colour values below are original tokens defined for this project.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Brand blues ------------------------------------------------------ */
  --brand-050: #eef4fe;
  --brand-100: #d8e6fc;
  --brand-200: #b6d0f8;
  --brand-300: #84acf2;
  --brand-400: #5586ea;
  --brand-500: #2f63dd;
  --brand-600: #1b4fc4;
  --brand-700: #133c9b;
  --brand-800: #0f2f78;
  --brand-900: #0b235a;

  /* --- Ink / dark surfaces ---------------------------------------------- */
  --ink-950: #050e1a;
  --ink-900: #0b1b2e;
  --ink-850: #0f2438;
  --ink-800: #122b42;
  --ink-700: #1b3a55;
  --ink-600: #2a4d6b;

  /* --- Neutral paper ---------------------------------------------------- */
  --paper: #ffffff;
  --paper-alt: #f4f7fb;
  --paper-sunk: #e8eef6;
  --line: #dce5f0;
  --line-strong: #c2d0e1;
  /* Interactive control boundaries need 3:1 against the surface (WCAG 1.4.11) */
  --line-control: #7d93ab;
  /* Large decorative numerals need 3:1 (WCAG 1.4.3 large text) */
  --num-watermark: #7d93ab;

  /* --- Accent (energy) -------------------------------------------------- */
  --accent-700: #9d3411;
  --accent-600: #c6431a;
  --accent-500: #ff6b2c;
  --accent-400: #ff8a4c;
  --accent-200: #ffd6c2;
  --accent-050: #fff2ec;

  /* --- Success / info --------------------------------------------------- */
  --success-600: #12774b;
  --success-500: #199a63;
  --info-600: #1b4fc4;

  /* --- Semantic text ---------------------------------------------------- */
  --text-strong: var(--ink-900);
  --text-body: #1f3348;
  --text-muted: #4a5d72;
  --text-faint: #5b6e82;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #aec2d8;

  /* --- Typography ------------------------------------------------------- */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.5rem, 1.35rem + 4.6vw, 5rem);
  --fs-h1: clamp(2.1rem, 1.25rem + 3.4vw, 3.6rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --fs-body: 1.02rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;
  --fs-eyebrow: 0.78rem;

  --lh-tight: 1.06;
  --lh-snug: 1.25;
  --lh-body: 1.72;

  --ls-display: -0.032em;
  --ls-tight: -0.018em;
  --ls-eyebrow: 0.16em;

  /* --- Spacing ---------------------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;
  --sp-9: 4.5rem;
  --sp-10: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);

  /* --- Radii ------------------------------------------------------------ */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 26px;
  --r-pill: 999px;
  --r-blade: 14px 4px 14px 4px;

  /* --- Shadows ---------------------------------------------------------- */
  --sh-xs: 0 1px 2px rgba(9, 26, 46, 0.06);
  --sh-sm: 0 2px 8px rgba(9, 26, 46, 0.08);
  --sh-md: 0 10px 26px -12px rgba(9, 26, 46, 0.28);
  --sh-lg: 0 26px 60px -26px rgba(9, 26, 46, 0.38);
  --sh-xl: 0 44px 90px -40px rgba(6, 18, 34, 0.55);
  --sh-brand: 0 18px 40px -20px rgba(27, 79, 196, 0.65);
  --sh-accent: 0 16px 34px -18px rgba(198, 67, 26, 0.7);

  /* --- Motion ----------------------------------------------------------- */
  --dur-xs: 140ms;
  --dur-sm: 220ms;
  --dur-md: 380ms;
  --dur-lg: 620ms;
  --dur-xl: 950ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout ----------------------------------------------------------- */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --header-h: 74px;

  /* --- Layers ----------------------------------------------------------- */
  --z-base: 1;
  --z-sticky: 60;
  --z-header: 200;
  --z-drawer: 260;
  --z-totop: 400;
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

img { background-color: var(--paper-alt); }

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--dur-sm) var(--ease-out);
}

a:hover { color: var(--brand-700); }

ul, ol { list-style: none; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.024em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 650; }

p { max-width: 72ch; }

strong { color: var(--text-strong); font-weight: 650; }

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.68;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--brand-500));
  border-radius: 2px;
}

.eyebrow--light { color: var(--brand-200); }
.eyebrow--accent { color: var(--accent-600); }

.section--dark .eyebrow,
.hero .eyebrow { color: var(--brand-200); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1360px; }

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--alt { background: var(--paper-alt); }
.section--tint { background: linear-gradient(180deg, var(--brand-050), var(--paper)); }
.section--dark {
  background: var(--ink-900);
  color: var(--text-on-dark-muted);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--text-on-dark); }
.section--dark p { color: var(--text-on-dark-muted); }
.section--dark .lead { color: var(--text-on-dark-muted); }

.section--ink {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(47, 99, 221, 0.22), transparent 58%),
    radial-gradient(90% 80% at 92% 8%, rgba(255, 107, 44, 0.13), transparent 55%),
    var(--ink-900);
  color: var(--text-on-dark-muted);
}

.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--text-on-dark); }

.section-head { max-width: 780px; margin-bottom: clamp(2rem, 1.2rem + 2vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head h2 { margin-block: 0.6rem 0.9rem; }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: flex-end;
  justify-content: space-between;
}

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem); }

/* Grid and flex children default to min-width:auto, which lets intrinsic
   image widths (e.g. a 960px hero) blow out the track and cause horizontal
   overflow on narrow viewports. Opt every track child out of that. */
.grid > *,
.split > *,
.hero__inner > *,
.app-layout > *,
.contact-grid > *,
.stats > *,
.services-grid > *,
.news-grid > *,
.timeline > *,
.marquee > *,
.cluster > * {
  min-width: 0;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto-lg { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }

.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #ffffff;
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--dur-sm) var(--ease-out),
              box-shadow var(--dur-sm) var(--ease-out),
              background-color var(--dur-sm) var(--ease-out),
              color var(--dur-sm) var(--ease-out),
              border-color var(--dur-sm) var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 65%);
  transform: translateX(-120%);
  transition: transform var(--dur-lg) var(--ease-out);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
}

.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--accent { --btn-bg: var(--accent-600); --btn-fg: #ffffff; }
.btn--accent:hover { box-shadow: var(--sh-accent); }

.btn--dark { --btn-bg: var(--ink-900); }
.btn--dark:hover { --btn-bg: var(--ink-800); box-shadow: var(--sh-lg); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-600);
  --btn-border: var(--line-control);
}
.btn--ghost:hover {
  --btn-fg: var(--brand-700);
  --btn-border: var(--brand-400);
  box-shadow: var(--sh-sm);
}

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.14);
  --btn-border: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn--lg { padding: 1.05em 1.9em; font-size: 1.02rem; }
.btn--sm { padding: 0.62em 1.05em; font-size: 0.85rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 650;
  color: var(--brand-600);
}
.link-arrow svg {
  width: 1em;
  height: 1em;
  transition: transform var(--dur-sm) var(--ease-out);
}
.link-arrow:hover svg { transform: translateX(4px); }

.section--dark .link-arrow,
.section--ink .link-arrow { color: var(--brand-200); }

/* --------------------------------------------------------------------------
   6. BADGES / TAGS / PILLS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.42em 0.85em;
  border-radius: var(--r-pill);
  background: var(--brand-050);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge svg { width: 1em; height: 1em; }
.badge--accent { background: var(--accent-050); color: var(--accent-700); border-color: var(--accent-200); }
.badge--solid { background: var(--brand-600); color: #fff; border-color: transparent; }
.badge--light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.24); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.32em 0.7em;
  border-radius: var(--r-xs);
  background: var(--paper-sunk);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.tag--brand { background: var(--brand-050); color: var(--brand-700); }
.tag--accent { background: var(--accent-050); color: var(--accent-700); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--dur-sm) var(--ease-out);
}
.pill svg { width: 1.05em; height: 1.05em; color: var(--brand-500); }

.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --------------------------------------------------------------------------
   7. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.35rem, 1.1rem + 0.8vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform var(--dur-md) var(--ease-out),
              box-shadow var(--dur-md) var(--ease-out),
              border-color var(--dur-md) var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-500), var(--accent-500));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-md) var(--ease-out);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-200);
}
.card:hover::before { transform: scaleY(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--brand-050);
  color: var(--brand-600);
  flex: none;
  transition: background-color var(--dur-md) var(--ease-out),
              color var(--dur-md) var(--ease-out),
              transform var(--dur-md) var(--ease-spring);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon {
  background: var(--brand-600);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.card__title { font-size: 1.12rem; }
.card__text { color: var(--text-muted); font-size: var(--fs-sm); }

.card__list { display: grid; gap: 0.45rem; margin-top: 0.25rem; }
.card__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent-500);
  transform: rotate(45deg);
}

.card__foot { margin-top: auto; padding-top: var(--sp-3); }

.card--dark {
  background: var(--ink-850);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark-muted);
}
.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: var(--text-on-dark-muted); }
.card--dark .card__icon { background: rgba(255, 255, 255, 0.08); color: var(--brand-300); }
.card--dark:hover { border-color: rgba(255, 255, 255, 0.22); box-shadow: var(--sh-lg); }

.card--num { padding-top: 2.4rem; }
.card__num {
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--num-watermark);
  transition: color var(--dur-md) var(--ease-out);
}
.card--num:hover .card__num { color: var(--brand-500); }

.card--blade { border-radius: var(--r-blade); }

/* --------------------------------------------------------------------------
   8. HEADER  [复用-C styling]
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--dur-md) var(--ease-out),
              box-shadow var(--dur-md) var(--ease-out),
              backdrop-filter var(--dur-md) var(--ease-out);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 14, 26, 0.55), transparent);
  opacity: 1;
  transition: opacity var(--dur-md) var(--ease-out);
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), var(--sh-sm);
}
.site-header.is-scrolled::before { opacity: 0; }

.header-inner {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 750;
  letter-spacing: -0.015em;
  font-size: 1.08rem;
  flex: none;
}
.brand:hover { color: #fff; }
.site-header.is-scrolled .brand { color: var(--text-strong); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: var(--sh-brand);
  transition: transform var(--dur-md) var(--ease-spring);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-text small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 550;
  transition: color var(--dur-sm) var(--ease-out), background-color var(--dur-sm) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--accent-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after { transform: scaleX(1); }

.site-header.is-scrolled .nav-link { color: var(--text-muted); }
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active { color: var(--brand-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  place-items: center;
  transition: background-color var(--dur-sm) var(--ease-out),
              border-color var(--dur-sm) var(--ease-out);
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-header.is-scrolled .nav-toggle { border-color: var(--line-strong); color: var(--text-strong); }

.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: var(--z-drawer);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-md) var(--ease-out),
              opacity var(--dur-md) var(--ease-out),
              visibility var(--dur-md);
}
.mobile-drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

.mobile-drawer__inner {
  padding: var(--sp-5) var(--gutter) var(--sp-7);
  display: grid;
  gap: 0.25rem;
}
.mobile-drawer a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 1.08rem;
  font-weight: 600;
}
.mobile-drawer a.m-link.is-active { color: var(--brand-600); }
.mobile-drawer a.m-link svg { width: 18px; height: 18px; color: var(--brand-400); }
.mobile-drawer .btn { margin-top: var(--sp-5); width: 100%; }

/* --------------------------------------------------------------------------
   9. FOOTER  [复用-D styling]
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--ink-950);
  color: var(--text-on-dark-muted);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500), var(--brand-400));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-bottom: var(--sp-8);
}

.footer-brand .brand { color: #fff; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); color: var(--text-on-dark-muted); max-width: 42ch; }

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-col a svg { width: 15px; height: 15px; color: var(--brand-400); flex: none; }
.footer-col a:hover { color: #fff; }

.footer-contact { display: grid; gap: var(--sp-4); }
.footer-contact li {
  display: flex;
  gap: 0.7rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.footer-contact svg { width: 18px; height: 18px; color: var(--accent-500); flex: none; margin-top: 3px; }
.footer-contact strong { display: block; color: #fff; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--sp-5) var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-on-dark-muted);
}

.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.footer-legal a { color: var(--text-on-dark-muted); }
.footer-legal a:hover { color: #fff; }
.footer-legal .dot { color: rgba(255, 255, 255, 0.3); }

.footer-mascot {
  position: absolute;
  right: -18px;
  bottom: -14px;
  width: 150px;
  opacity: 0.1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }

.field { display: grid; gap: 0.45rem; }
.field__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__label .req { color: var(--accent-600); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line-control);
  border-radius: var(--r-sm);
  color: var(--text-strong);
  font-size: 0.98rem;
  transition: border-color var(--dur-sm) var(--ease-out),
              box-shadow var(--dur-sm) var(--ease-out),
              background-color var(--dur-sm) var(--ease-out);
}
.input::placeholder,
.textarea::placeholder { color: var(--text-faint); }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(47, 99, 221, 0.16);
}
.textarea { min-height: 150px; resize: vertical; }

.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select { border-color: var(--accent-600); background: var(--accent-050); }

.field__error {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-700);
}
.field.has-error .field__error { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.checkbox input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  border: 1px solid var(--line-control);
  border-radius: var(--r-xs);
  background: var(--paper);
  transition: all var(--dur-sm) var(--ease-out);
}
.checkbox input:checked {
  background: var(--brand-600);
  border-color: var(--brand-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}
.checkbox a { font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }

.form__note { font-size: var(--fs-xs); color: var(--text-faint); }

.form__status {
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  background: rgba(25, 154, 99, 0.1);
  border: 1px solid rgba(25, 154, 99, 0.35);
  color: #0e5c3a;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form__status.is-visible { display: flex; }
.form__status svg { width: 20px; height: 20px; flex: none; color: var(--success-600); }

/* --------------------------------------------------------------------------
   11. TABLES
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 520px;
}
.table th,
.table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table thead th {
  background: var(--ink-900);
  color: #fff;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.table tbody tr:nth-child(even) { background: var(--paper-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td strong { color: var(--text-strong); }

/* --------------------------------------------------------------------------
   12. ANIMATION UTILITIES  [复用-G]
   -------------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translate3d(-38px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translate3d(38px, 0, 0); } to { opacity:  1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bounceKf { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px); } 70% { transform: translateY(-3px); } }
@keyframes pulseKf { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: 0.86; } }
@keyframes wiggleKf { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes spinKf { to { transform: rotate(360deg); } }
@keyframes marqueeKf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sweepKf { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes ringKf { 0% { transform: scale(0.7); opacity: 0.55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes barKf { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--dur-lg) var(--ease-out), transform var(--dur-lg) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

.fade-up { animation: fadeUp var(--dur-lg) var(--ease-out) both; }
.fade-in { animation: fadeIn var(--dur-lg) var(--ease-out) both; }
.slide-left { animation: slideInLeft var(--dur-lg) var(--ease-out) both; }
.slide-right { animation: slideInRight var(--dur-lg) var(--ease-out) both; }
.zoom-in { animation: zoomIn var(--dur-lg) var(--ease-spring) both; }
.float { animation: floaty 4.6s var(--ease-in-out) infinite; }
.bounce { animation: bounceKf 1.9s var(--ease-in-out) infinite; }
.pulse { animation: pulseKf 2.3s var(--ease-in-out) infinite; }
.wiggle { animation: wiggleKf 1.5s var(--ease-in-out) infinite; }
.spin-slow { animation: spinKf 22s linear infinite; }

.stagger > * { opacity: 0; transform: translate3d(0, 26px, 0); }
.stagger.in > * {
  animation: fadeUp var(--dur-lg) var(--ease-out) forwards;
}
.stagger.in > *:nth-child(1) { animation-delay: 0.02s; }
.stagger.in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger.in > *:nth-child(3) { animation-delay: 0.18s; }
.stagger.in > *:nth-child(4) { animation-delay: 0.26s; }
.stagger.in > *:nth-child(5) { animation-delay: 0.34s; }
.stagger.in > *:nth-child(6) { animation-delay: 0.42s; }
.stagger.in > *:nth-child(7) { animation-delay: 0.5s; }
.stagger.in > *:nth-child(8) { animation-delay: 0.58s; }
.stagger.in > *:nth-child(9) { animation-delay: 0.66s; }
.stagger.in > *:nth-child(10) { animation-delay: 0.74s; }
.stagger.in > *:nth-child(n + 11) { animation-delay: 0.82s; }

.delayed-1 { animation-delay: 0.12s !important; }
.delayed-2 { animation-delay: 0.24s !important; }
.delayed-3 { animation-delay: 0.36s !important; }
.delayed-4 { animation-delay: 0.48s !important; }
.delayed-5 { animation-delay: 0.6s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   13. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 5vw, 5.5rem));
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(115% 85% at 78% 4%, rgba(47, 99, 221, 0.4), transparent 56%),
    radial-gradient(85% 70% at 6% 92%, rgba(255, 107, 44, 0.14), transparent 58%),
    linear-gradient(165deg, var(--ink-950) 0%, var(--ink-900) 46%, var(--ink-850) 100%);
  color: var(--text-on-dark-muted);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(120% 95% at 70% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 95% at 70% 0%, #000 20%, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -180px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--brand-500), var(--accent-500), var(--brand-700), var(--brand-500));
  filter: blur(90px);
  opacity: 0.34;
  animation: spinKf 44s linear infinite;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero__title {
  color: #fff;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: var(--ls-display);
  margin-block: var(--sp-4) var(--sp-5);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--accent-400), var(--brand-300) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.02rem, 0.96rem + 0.5vw, 1.22rem);
  color: var(--text-on-dark-muted);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-7); }

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 640px;
}
.hero__proof div strong {
  display: block;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__proof div span {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero__media { position: relative; min-width: 0; }
.hero__media img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--sh-xl);
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-strong);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.hero__badge svg { width: 18px; height: 18px; color: var(--brand-600); }
.hero__badge--tl { top: -18px; left: -12px; animation: floaty 5.2s var(--ease-in-out) infinite; }
.hero__badge--br { bottom: -16px; right: -8px; animation: floaty 6.4s var(--ease-in-out) infinite; }

.hero__mascots {
  position: absolute;
  left: -22px;
  bottom: -30px;
  display: flex;
  gap: 0.35rem;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.scroll-cue svg { width: 18px; height: 18px; animation: bounceKf 1.8s var(--ease-in-out) infinite; }

/* --- Page hero (inner pages) -------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.2rem, 1.4rem + 3.4vw, 4rem));
  padding-bottom: clamp(2.4rem, 1.6rem + 3vw, 4.2rem);
  background:
    radial-gradient(105% 100% at 88% 0%, rgba(47, 99, 221, 0.36), transparent 58%),
    linear-gradient(150deg, var(--ink-950), var(--ink-900) 70%, var(--ink-850));
  color: var(--text-on-dark-muted);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 90px);
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.page-hero__inner { position: relative; }
.page-hero h1 { color: #fff; margin-block: 0.7rem 1rem; max-width: 18ch; }
.page-hero p { max-width: 62ch; color: var(--text-on-dark-muted); font-size: 1.08rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 13px; height: 13px; opacity: 0.6; }

/* --------------------------------------------------------------------------
   14. SERVICES
   -------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out), border-color var(--dur-md) var(--ease-out);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--brand-200); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-500);
}
.service-card__title { font-size: 1.2rem; }
.service-card__text { color: var(--text-muted); font-size: var(--fs-sm); flex: 1; }
.service-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }

.scope-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  border-radius: var(--r-md);
  background: var(--ink-900);
  color: var(--text-on-dark-muted);
  box-shadow: var(--sh-lg);
}
.scope-banner__label {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-400);
}
.scope-banner__label svg { width: 26px; height: 26px; }
.scope-banner strong { display: block; color: #fff; margin-bottom: 0.3rem; font-size: 1.05rem; }
.scope-banner p { font-size: var(--fs-sm); margin: 0; }

/* --------------------------------------------------------------------------
   15. APP HIGHLIGHT / PHONE MOCKUP
   -------------------------------------------------------------------------- */
.app-section {
  position: relative;
  background:
    radial-gradient(90% 75% at 88% 12%, rgba(47, 99, 221, 0.26), transparent 58%),
    var(--ink-900);
  color: var(--text-on-dark-muted);
  overflow: hidden;
}
.app-section h2,
.app-section h3 { color: #fff; }

.app-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  align-items: center;
}

.app-features { display: grid; gap: var(--sp-3); margin-block: var(--sp-6); }
.app-feature {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color var(--dur-md) var(--ease-out), transform var(--dur-md) var(--ease-out), border-color var(--dur-md) var(--ease-out);
}
.app-feature:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); transform: translateX(6px); }
.app-feature__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--brand-600);
  color: #fff;
}
.app-feature__icon svg { width: 22px; height: 22px; }
.app-feature strong { display: block; color: #fff; margin-bottom: 0.2rem; font-size: 1rem; }
.app-feature span { font-size: var(--fs-sm); }

.store-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--r-sm);
  background: var(--ink-950);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: transform var(--dur-sm) var(--ease-out), border-color var(--dur-sm) var(--ease-out), box-shadow var(--dur-sm) var(--ease-out);
}
.store-badge:hover { transform: translateY(-3px); border-color: var(--brand-400); box-shadow: var(--sh-lg); color: #fff; }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge small { display: block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; }
.store-badge strong { font-size: 0.98rem; letter-spacing: -0.01em; }

.phone-stage { position: relative; display: grid; place-items: center; padding: var(--sp-6) 0; }
.phone-stage::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 99, 221, 0.36), transparent 66%);
  animation: pulseKf 4.4s var(--ease-in-out) infinite;
}
.phone {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 9 / 19;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(160deg, #2b3d52, #0d1a29);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 18px;
  border-radius: var(--r-pill);
  background: #060d16;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper-alt);
  display: flex;
  flex-direction: column;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; background: var(--ink-900); }
.phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 26px 14px 8px; background: var(--ink-900); color: #fff; font-size: 0.62rem; }
.phone__body { flex: 1; padding: 12px; display: grid; gap: 8px; align-content: start; }
.phone__tile { border-radius: 8px; padding: 9px 10px; background: #fff; border: 1px solid var(--line); }
.phone__tile span { display: block; font-size: 0.58rem; color: var(--text-faint); }
.phone__tile strong { font-size: 0.86rem; color: var(--text-strong); }
.phone__tile--brand { background: var(--brand-050); border-color: var(--brand-100); }
.phone__tile--accent { background: var(--accent-050); border-color: var(--accent-200); }

.app-shot {
  position: absolute;
  width: 168px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--sh-xl);
  background: var(--ink-850);
}
.app-shot img { width: 100%; border-radius: var(--r-md); }
.app-shot--left { left: -6%; top: 6%; animation: floaty 6.2s var(--ease-in-out) infinite; }
.app-shot--right { right: -6%; bottom: 4%; animation: floaty 7.4s var(--ease-in-out) infinite; }

.app-mascot { position: absolute; bottom: -10px; left: 6%; width: 96px; animation: floaty 5s var(--ease-in-out) infinite; }

/* --------------------------------------------------------------------------
   16. STATS
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.4vw, 1.8rem); }
.stat {
  position: relative;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.stat::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-lg) var(--ease-out);
}
.stat:hover::before { transform: scaleX(1); }
.stat__num {
  display: block;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.stat__num .suffix { color: var(--accent-600); }
.stat__label { display: block; margin-top: 0.55rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   17. TIMELINE (culture)
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: var(--sp-6); }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--accent-400), transparent);
}
.timeline__item { position: relative; padding-left: 62px; }
.timeline__marker {
  position: absolute;
  left: 0; top: 2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--brand-500);
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.timeline__year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-600);
  margin-bottom: 0.4rem;
}
.timeline__title { font-size: 1.18rem; margin-bottom: 0.4rem; }
.timeline__text { color: var(--text-muted); font-size: var(--fs-sm); max-width: 62ch; }

/* --------------------------------------------------------------------------
   18. VALUES / MISSION
   -------------------------------------------------------------------------- */
.value-card {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.value-card__top { display: flex; align-items: center; justify-content: space-between; }
.value-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600); }
.value-card__icon svg { width: 24px; height: 24px; }
.value-card p { color: var(--text-muted); font-size: var(--fs-sm); }

.mv-card {
  position: relative;
  padding: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  border-radius: var(--r-lg);
  color: #fff;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-900), var(--ink-800));
  box-shadow: var(--sh-lg);
}
.mv-card::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -90px; bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 99, 221, 0.5), transparent 68%);
}
.mv-card h3 { color: #fff; margin-bottom: var(--sp-3); }
.mv-card p { color: var(--text-on-dark-muted); font-size: var(--fs-sm); position: relative; z-index: 1; }
.mv-card--accent { background: linear-gradient(150deg, var(--brand-700), var(--brand-900)); }

/* --------------------------------------------------------------------------
   19. NEWS
   -------------------------------------------------------------------------- */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  margin-bottom: var(--sp-6);
}
.filter {
  padding: 0.55rem 1.05rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--dur-sm) var(--ease-out);
}
.filter:hover { border-color: var(--brand-400); color: var(--brand-700); }
.filter.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.filter__count {
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.3rem;
  color: inherit;
}

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.1rem, 0.8rem + 1vw, 1.7rem); }
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out), border-color var(--dur-md) var(--ease-out);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--brand-200); }
.news-card__thumb { position: relative; overflow: hidden; background: var(--ink-900); aspect-ratio: 16 / 10; }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-lg) var(--ease-out); }
.news-card:hover .news-card__thumb img { transform: scale(1.07); }
.news-card__cat {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  padding: 0.35em 0.75em;
  border-radius: var(--r-pill);
  background: rgba(11, 27, 46, 0.86);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-card__body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-xs); color: var(--text-faint); }
.news-card__meta svg { width: 14px; height: 14px; }
.news-card__title { font-size: 1.08rem; line-height: 1.35; }
.news-card__excerpt { font-size: var(--fs-sm); color: var(--text-muted); flex: 1; }
.news-card.is-hidden { display: none; }

.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: var(--sp-7); }
.page-btn {
  min-width: 40px;
  height: 40px;
  padding-inline: 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 650;
  transition: all var(--dur-sm) var(--ease-out);
}
.page-btn:hover { border-color: var(--brand-400); color: var(--brand-700); }
.page-btn.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* --------------------------------------------------------------------------
   20. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.6rem, 1rem + 3vw, 3.4rem); align-items: start; }

.contact-card {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.contact-card + .contact-card { margin-top: var(--sp-4); }
.contact-card__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--ink-900); color: #fff; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.06rem; }

.contact-row { display: flex; gap: var(--sp-3); padding-block: 0.75rem; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row dt { flex: none; width: 96px; color: var(--text-faint); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; padding-top: 2px; }
.contact-row dd { color: var(--text-strong); line-height: 1.6; }
.contact-row dd a { font-weight: 600; }

.map-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.map-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-frame__pin {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -100%);
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50% 50% 50% 6px;
  background: var(--accent-500);
  color: #fff;
  box-shadow: var(--sh-lg);
  animation: bounceKf 2.6s var(--ease-in-out) infinite;
}
.map-frame__pin svg { width: 20px; height: 20px; }
.map-frame__label {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 0.6rem 0.95rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sh-md);
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--text-strong);
  max-width: 78%;
}

.office-hero { display: flex; align-items: flex-start; gap: var(--sp-4); }
.office-hero .contact-card__icon { width: 52px; height: 52px; border-radius: var(--r-md); background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); }
.office-hero .contact-card__icon svg { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   21. CTA BAND / MARQUEE
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(2.4rem, 1.6rem + 3vw, 4.2rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 130% at 88% 10%, rgba(255, 107, 44, 0.28), transparent 55%),
    linear-gradient(120deg, var(--ink-950), var(--brand-900));
  color: var(--text-on-dark-muted);
  overflow: hidden;
  box-shadow: var(--sh-xl);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px);
}
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: var(--text-on-dark-muted); margin-top: 0.6rem; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-4);
  background: var(--ink-950);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--sp-6);
  animation: marqueeKf 26s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item svg { width: 18px; height: 18px; color: var(--brand-400); }

/* --------------------------------------------------------------------------
   22. MASCOTS  [复用-E]
   -------------------------------------------------------------------------- */
.mascot { width: 58px; height: 58px; flex: none; }
.mascot--sm { width: 40px; height: 40px; }
.mascot--lg { width: 92px; height: 92px; }
.mascot--xl { width: 148px; height: 148px; }
.mascot--float { animation: floaty 4.8s var(--ease-in-out) infinite; }
.mascot--tilt { animation: wiggleKf 2.4s var(--ease-in-out) infinite; }
.mascot--spin { animation: spinKf 16s linear infinite; }
.mascot-wrap {
  display: inline-grid;
  place-items: center;
  transition: transform var(--dur-md) var(--ease-spring);
}
.mascot-wrap:hover { transform: translateY(-6px) rotate(-7deg) scale(1.06); }
.mascot-wrap--rounded {
  padding: 0.7rem;
  border-radius: 50%;
  background: var(--brand-050);
}

/* --------------------------------------------------------------------------
   23. BACK TO TOP
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  bottom: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  z-index: var(--z-totop);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity var(--dur-md) var(--ease-out), transform var(--dur-md) var(--ease-spring), visibility var(--dur-md), background-color var(--dur-sm) var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   24. LEGAL DOCUMENT  [复用-I]
   -------------------------------------------------------------------------- */
.legal {
  max-width: 880px;
  margin-inline: auto;
  color: var(--text-body);
}
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.legal__meta strong { color: var(--text-strong); }

.legal h2 {
  font-size: 1.42rem;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  padding-left: 0.85rem;
  border-left: 4px solid var(--brand-500);
  line-height: 1.3;
}
.legal h3 {
  font-size: 1.08rem;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.legal p { margin-bottom: var(--sp-3); line-height: 1.78; }
.legal ul,
.legal ol { margin: 0 0 var(--sp-4); padding-left: 1.35rem; }
.legal ul li { list-style: disc; margin-bottom: 0.5rem; line-height: 1.72; }
.legal ol li { list-style: decimal; margin-bottom: 0.5rem; line-height: 1.72; }
.legal ul ul { margin-top: 0.5rem; }
.legal li::marker { color: var(--brand-500); font-weight: 700; }
.legal strong { color: var(--text-strong); }
.legal a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 0;
  font-size: var(--fs-sm);
}
.legal table th,
.legal table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.legal table thead th { background: var(--ink-900); color: #fff; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.legal table tbody tr:nth-child(even) { background: var(--paper-alt); }

/* Wide legal tables scroll inside their own wrapper so they never force
   page-level horizontal overflow on narrow screens. */
.legal .table-wrap {
  margin-block: var(--sp-4);
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.legal .table-wrap table { min-width: 660px; }
.legal__note {
  padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--accent-500);
  background: var(--accent-050);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.legal__note strong { color: var(--accent-700); }

/* --------------------------------------------------------------------------
   25. UTILITIES
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.gap-5 { gap: var(--sp-5); }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.hide { display: none !important; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.grid--tight { gap: var(--sp-4); }
.cluster--center { justify-content: center; }
.ml-auto { margin-left: auto; }
.icon-inline { width: 1em; height: 1em; vertical-align: -2px; flex: none; }

/* --------------------------------------------------------------------------
   26. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .app-layout { grid-template-columns: 1fr; }
  .app-shot--left { left: 2%; }
  .app-shot--right { right: 2%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
  .split--wide-left { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: clamp(2.8rem, 2rem + 4vw, 4.5rem); }
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .grid--auto,
  .grid--auto-lg { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__proof { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero__proof div { display: flex; align-items: baseline; gap: 0.6rem; }
  .hero__proof div strong { font-size: 1.35rem; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .scope-banner { grid-template-columns: 1fr; }
  .contact-row { flex-direction: column; gap: 0.25rem; }
  .contact-row dt { width: auto; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .phone-stage { padding-block: var(--sp-8); }
  .app-shot { display: none; }
  .legal h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.1rem; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .store-badges { flex-direction: column; }
  .store-badge { justify-content: flex-start; }
  .hero__actions .btn { width: 100%; }
  .pagination { flex-wrap: wrap; }
}
