:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC",
    "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --bg: #f8fafc;
  --bg-subtle: #ffffff;
  --panel: #ffffff;
  --card: #ffffff;
  --surface-2: #f3f6fb;
  --card-soft: var(--surface-2);
  --card-hover: #e9eef6;
  --border: #e5eaf2;
  --border-light: #f1f5f9;
  --ink: #0b1220;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #dbeafe;
  --primary-subtle: #eff6ff;
  --primary-strong: #1e3a8a;
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --accent-light: #ecfeff;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fee2e2;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.10), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.10), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --shell-width: 1120px;

  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 20px;

  --border-radius: var(--radius-s);
  --border-radius-lg: var(--radius-m);
  --border-radius-xl: var(--radius-l);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  --radius-md: var(--radius-m);
  --radius-lg: var(--radius-m);

  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.03);
  --shadow-2: 0 10px 22px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
  --shadow-3: 0 18px 42px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(15, 23, 42, 0.04);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;

  --ring: 0 0 0 4px rgba(29, 78, 216, 0.20);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.34); }
  70% { box-shadow: 0 0 0 10px rgba(29, 78, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

@keyframes shine {
  0% { left: -100%; opacity: 0; }
  20% { left: -100%; opacity: 0.5; }
  100% { left: 100%; opacity: 0; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(900px circle at 14% -12%, rgba(29, 78, 216, 0.06), transparent 58%),
    radial-gradient(820px circle at 86% 2%, rgba(8, 145, 178, 0.05), transparent 56%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 60%, #f8fafc 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
  font-family: var(--font-sans);
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

::selection {
  background: rgba(29, 78, 216, 0.16);
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}

@supports (text-wrap: balance) {
  h1,
  h2,
  h3 {
    text-wrap: balance;
  }
}

@supports (text-wrap: pretty) {
  p {
    text-wrap: pretty;
  }
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 3rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

strong, b {
  font-weight: 600;
  color: var(--text);
}

em, i {
  font-style: italic;
}

code {
  background: var(--card-soft);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--primary);
}

pre {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  overflow-x: auto;
  font-size: 0.875rem;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

blockquote {
  margin: 1.5rem 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid var(--primary);
  background: var(--primary-subtle);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-muted);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: var(--border-radius);
}

.shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}

.page {
  background: transparent;
}

.section {
  padding: clamp(44px, 5vw, 76px) 0;
}

.stack {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.stack.tight {
  gap: var(--space-md);
}

.stack.loose {
  gap: var(--space-xl);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
}

.flex.col {
  flex-direction: column;
}

.flex.wrap {
  flex-wrap: wrap;
}

.flex.center {
  align-items: center;
  justify-content: center;
}

.flex.between {
  justify-content: space-between;
}

.flex.gap-sm {
  gap: var(--space-sm);
}

.flex.gap-md {
  gap: var(--space-md);
}

.flex.gap-lg {
  gap: var(--space-lg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: var(--text);
  transition: transform var(--transition-base);
}

.brand:hover {
  transform: scale(1.02);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.brand:hover .brand-mark::before {
  opacity: 1;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav ul {
  display: flex;
  gap: 10px;
  order: 1;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-s);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.nav a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav a:hover::before,
.nav a.active::before {
  width: 80%;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-strong);
  background: rgba(29, 78, 216, 0.06);
  text-decoration: none;
}

.nav a.active {
  background: rgba(29, 78, 216, 0.10);
}

.nav a.nav-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.16);
}

.nav a.nav-cta::before {
  display: none;
}

.nav a.nav-cta:hover {
  background: var(--primary-hover);
  color: #fff;
}

.nav a.nav-cta.active {
  background: var(--primary-hover);
  color: #fff;
}

.nav .lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  order: 2;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.03);
}

.nav .lang-switcher .lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
  white-space: nowrap;
}

.nav .lang-switcher .lang-option::before {
  display: none;
}

.nav .lang-switcher .lang-option:hover {
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-strong);
}

.nav .lang-switcher .lang-option.active,
.nav .lang-switcher .lang-option[aria-current="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.nav .dropdown > a {
  position: relative;
  padding-right: 2rem;
}

.nav .dropdown > a::after {
  content: "\2304";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  opacity: 0.5;
  transition: all var(--transition-base);
  color: var(--text-muted);
}

.nav .dropdown:hover > a::after {
  opacity: 1;
  transform: translateY(-50%) rotate(180deg);
}

.nav-toggle {
  display: none;
  order: 3;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.625rem 0.75rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1.25rem;
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.nav-toggle:hover {
  background: var(--card-hover);
  transform: scale(1.05);
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-xs);
}

.nav-toggle:active {
  transform: scale(0.98);
}

.nav .dropdown {
  position: relative;
}

.nav .dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--space-md);
  background: transparent;
  display: block;
}

.nav .dropdown-menu {
  display: block;
  position: absolute;
  top: calc(100% + var(--space-md));
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  padding: var(--space-sm) 0;
  margin-top: 0;
  z-index: 100;
  overflow: hidden;
}

.nav .dropdown::before {
  content: '';
  position: absolute;
  top: calc(100% + var(--space-md) - 6px);
  left: 50%;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg) translateY(5px);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 101;
  pointer-events: none;
}

.nav .dropdown:hover::before {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav .dropdown:focus-within::before {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.nav .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav .dropdown:focus-within > a::after {
  opacity: 1;
  transform: translateY(-50%) rotate(180deg);
}

.nav .dropdown-menu li {
  list-style: none;
  margin: 0;
  position: relative;
}

.nav .dropdown-menu li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.nav .dropdown-menu li:hover::before {
  transform: scaleY(1);
}

.nav .dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem 0.75rem 1.8rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 0;
  background: transparent;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.nav .dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-light);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav .dropdown-menu a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.nav .dropdown-menu a:hover::before {
  opacity: 1;
}

.nav .dropdown-menu a:first-child {
  border-radius: var(--radius-m) var(--radius-m) 0 0;
}

.nav .dropdown-menu a:last-child {
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}

.nav .dropdown-menu a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

.nav .dropdown-menu a.active::before {
  opacity: 1;
  background: var(--primary-light);
}

.hero {
  padding: clamp(44px, 6vw, 92px) 0;
  overflow: hidden;
  position: relative;
}

.hero.has-ambient .shell {
  position: relative;
  z-index: 1;
}

.hero-ambient {
  position: absolute;
  inset: -120px -140px auto -140px;
  width: calc(100% + 280px);
  height: min(640px, 70vh);
  pointer-events: none;
  opacity: 0.9;
  transform: translateZ(0);
  filter: saturate(1.05);
}

.hero-ambient-grid {
  position: absolute;
  inset: -120px -140px auto -140px;
  width: calc(100% + 280px);
  height: min(640px, 70vh);
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: screen;
  transform: translateZ(0);
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0) 82%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0) 82%);
}

.page-home .hero-ambient-grid {
  opacity: 0.22;
}

.hero.has-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.09) 0px,
    rgba(148, 163, 184, 0.09) 1px,
    rgba(148, 163, 184, 0) 6px,
    rgba(148, 163, 184, 0) 10px
  );
  opacity: 0.28;
  mix-blend-mode: overlay;
  animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 80px;
  }
}

body[data-category="all"] .hero {
  padding: clamp(28px, 4vw, 64px) 0;
}

body[data-category="all"] .hero + .section {
  padding-top: clamp(28px, 4vw, 56px);
}

.hero .shell > div {
  animation: fade-up 0.8s ease-out forwards;
  opacity: 0;
}

.hero .shell > div:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .shell {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
}

.hero .lede {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: 9999px;
  background: var(--card-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.pill:hover {
  background: var(--card-hover);
  transform: scale(1.05);
}

.pill.primary {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.pill.success {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.pill.warning {
  background: var(--warning-light);
  border-color: var(--warning);
  color: var(--warning);
}

.btn-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.7rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  background: var(--card);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: none;
}

.btn.primary:hover::after {
  animation: shine 0.75s;
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  padding-right: 2rem;
  position: relative;
}

.btn.ghost::after {
  content: "\2192";
  position: absolute;
  right: 1.2rem;
  transition: transform var(--transition-base), opacity var(--transition-base);
  opacity: 0.6;
}

.btn.ghost:hover {
  background: rgba(2, 6, 23, 0.04);
  border-color: var(--primary);
  color: var(--primary);
  padding-right: 2.5rem;
}

.btn.ghost:hover::after {
  transform: translateX(5px);
  opacity: 1;
}

.btn.secondary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn.secondary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn.sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn.lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-s);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* HUD accents (subtle, readability-first) */
.btn-label {
  position: relative;
  z-index: 2;
}

.btn.hud {
  --mx: 50%;
  --my: 50%;
}

.btn.hud::before {
  background: radial-gradient(420px circle at var(--mx) var(--my),
      rgba(56, 189, 248, 0.22),
      rgba(29, 78, 216, 0.10) 35%,
      transparent 60%);
}

@media (hover: hover) and (pointer: fine) {
  .btn.hud.is-hovered {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: var(--shadow-lg);
  }
}

.hud-panel,
.hud-card {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.hud-panel::before,
.hud-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
  background: radial-gradient(560px circle at var(--mx) var(--my),
      rgba(56, 189, 248, 0.14),
      rgba(29, 78, 216, 0.08) 35%,
      transparent 60%);
}

@media (hover: hover) and (pointer: fine) {
  .hud-panel.is-hovered::before,
  .hud-card.is-hovered::before {
    opacity: 1;
  }

  .hud-panel.is-hovered,
  .hud-card.is-hovered {
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow: var(--shadow-md);
  }
}

.hud-panel > :not(.hud-illus),
.hud-card > :not(.hud-illus) {
  position: relative;
  z-index: 2;
}

.hud-illus {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: min(320px, 55%);
  height: auto;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1) saturate(0.9) contrast(1.05);
  mix-blend-mode: multiply;
  transform: rotate(-2deg);
}

@media (max-width: 520px) {
  .hud-illus {
    display: none;
  }
}

.metric {
  position: relative;
}

.metric span,
.metric strong {
  position: relative;
  z-index: 2;
}

.hud-divider {
  position: relative;
  height: 34px;
  overflow: hidden;
  pointer-events: none;
}

.hud-divider--tight {
  height: 26px;
  opacity: 0.92;
}

.hud-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hud-divider-line {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: hud-divider-dash 14s linear infinite;
}

.hud-divider-line--glow {
  stroke-width: 6;
  opacity: 0.35;
  filter: blur(2px);
}

.hud-divider-dot {
  fill: rgba(56, 189, 248, 0.55);
}

@keyframes hud-divider-dash {
  to { stroke-dashoffset: -240; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card > :last-child {
  margin-bottom: 0;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 0%, rgba(29, 78, 216, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--primary-light);
}

.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  outline: none;
}

.card:hover::before {
  opacity: 1;
}

.card.soft {
  background: var(--card-soft);
  border-color: var(--border-light);
}

.card.interactive {
  cursor: pointer;
}

.card.interactive:active {
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.03em;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.pill-grid .pill {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-strong);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.metric {
  appearance: none;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 1.2rem 1.1rem;
  border-radius: var(--radius-m);
  background: var(--card-soft);
  border: 1px solid var(--border);
  text-align: center;
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.metric:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-md);
  border-color: rgba(29, 78, 216, 0.40);
}

.metric strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.metric small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@keyframes metric-aurora-rotate {
  to { transform: rotate(360deg); }
}

.page-home .hero .metrics {
  perspective: 900px;
}

.page-home .hero .metric {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;

  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;

  transition:
    transform 220ms var(--ease-out),
    opacity 700ms var(--ease-out),
    filter 700ms var(--ease-out),
    box-shadow 350ms var(--ease-out),
    border-color 350ms var(--ease-out);
  will-change: opacity, filter, transform;
}

.page-home .hero .metric {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(2,6,23,0.02)),
    var(--card-soft);
  backdrop-filter: blur(10px);
  transform: translateZ(0) rotateX(var(--rx)) rotateY(var(--ry));
}

@media (hover: hover) and (pointer: fine) {
  .page-home .hero .metric.is-hovered {
    border-color: rgba(56, 189, 248, 0.33);
    box-shadow: var(--shadow-lg);
  }

  .page-home .hero .metric.is-hovered::before {
    opacity: 1;
  }

  .page-home .hero .metric.is-hovered::after {
    opacity: 0.65;
  }
}

.js .page-home .hero .metric {
  opacity: 0;
  filter: blur(10px);
}

.page-home .hero .metric::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
  background:
    radial-gradient(520px circle at var(--mx) var(--my),
      rgba(29, 78, 216, 0.18),
      rgba(8, 145, 178, 0.10) 30%,
      transparent 55%);
}

.page-home .hero .metric::after {
  content: "";
  position: absolute;
  inset: -60%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
  background:
    conic-gradient(from 180deg at 50% 50%,
      rgba(29, 78, 216, 0.0),
      rgba(29, 78, 216, 0.22),
      rgba(8, 145, 178, 0.18),
      rgba(16, 185, 129, 0.14),
      rgba(29, 78, 216, 0.0));
  filter: blur(26px);
  animation: metric-aurora-rotate 10s linear infinite;
}

.js .page-home .hero .metric.is-inview {
  opacity: 1;
  filter: blur(0);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.page-home .hero .metric:focus-visible,
.page-home .hero .metric[data-active="true"] {
  border-color: rgba(29, 78, 216, 0.30);
  box-shadow: var(--shadow-lg);
}

.page-home .hero .metric:focus-visible::before,
.page-home .hero .metric:focus-visible::after,
.page-home .hero .metric[data-active="true"]::before,
.page-home .hero .metric[data-active="true"]::after {
  opacity: 1;
}

.page-home .hero .metric strong {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 55%, var(--success) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.modal-open {
  overflow: hidden;
}

.metric-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.metric-modal[hidden] {
  display: none;
}

.metric-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
}

.metric-modal-dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: min(82vh, 840px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 1.25rem 1.25rem 1.35rem;
}

.metric-modal-eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.metric-modal-title {
  margin: 0.35rem 0 0;
}

.metric-modal-close {
  appearance: none;
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.metric-modal-close:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-md);
}

@media (prefers-color-scheme: dark) {
  .metric-modal-backdrop {
    background: rgba(2, 6, 23, 0.65);
  }
  .metric-modal-close {
    background: rgba(15, 23, 42, 0.55);
  }
}

.metric-modal-body {
  display: grid;
  gap: 1.05rem;
  margin-top: 1.1rem;
}

.metric-modal-body h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, rgba(246, 248, 251, 0.98) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-2);
}

.panel > :last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

.list-check {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.list-check li {
  display: flex;
  gap: 0.6rem;
  color: var(--text-muted);
}

.list-check li::before {
  content: "\2713";
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.10);
  color: var(--accent);
  border: 1px solid rgba(8, 145, 178, 0.18);
  font-weight: 900;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--card);
}

.table th,
.table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  color: var(--text-muted);
  font-weight: 700;
  background: rgba(2, 6, 23, 0.02);
}

.table tbody tr:nth-child(even) td {
  background: rgba(2, 6, 23, 0.012);
}

.table tbody tr:hover td {
  background: rgba(29, 78, 216, 0.03);
}

.case-card h4 {
  color: var(--text);
  margin-bottom: 0.4rem;
}

.case-card p {
  color: var(--text-muted);
}

.cta {
  padding: 4rem 0;
}

.cta .cta-card {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  background: linear-gradient(135deg, var(--card-soft) 0%, var(--primary-subtle) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.8rem;
  box-shadow: var(--shadow-1);
}

.cta-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card-top {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-s);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--primary-strong);
  background: radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.22), rgba(29, 78, 216, 0.06) 55%, rgba(29, 78, 216, 0) 75%), var(--card-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-m);
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0) 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.service-card:hover .service-icon {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.50);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.10), var(--shadow-2);
}

.service-card:hover .service-icon::after {
  opacity: 1;
}

@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.page-home .service-card:nth-child(1) .service-icon {
  animation: icon-float 7s ease-in-out infinite;
}

.page-home .service-card:nth-child(2) .service-icon {
  animation: icon-float 8s ease-in-out infinite 0.2s;
}

.page-home .service-card:nth-child(3) .service-icon {
  animation: icon-float 9s ease-in-out infinite 0.4s;
}

.service-card h3 {
  margin-bottom: 0.4rem;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.08), var(--shadow-2);
}

.service-proof {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
}

.service-proof .plain a {
  color: var(--primary-strong);
  text-decoration: none;
}

.service-proof .plain a:hover {
  text-decoration: underline;
}

.service-proof-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.service-proof-cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-s);
}

.service-proof-cta:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.service-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.badge.green {
  background: var(--success-light);
  color: var(--success);
}

.panel-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.timeline .step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1rem 1rem 1rem 3rem;
  background: var(--card-soft);
}

.timeline .step::before {
  content: attr(data-step);
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.timeline .step .step-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.skills-title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--card-hover);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--card-soft);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -80px;
  pointer-events: none;
  opacity: 0.16;
  background: radial-gradient(900px circle at 50% 0%,
      rgba(56, 189, 248, 0.18),
      rgba(29, 78, 216, 0.10) 35%,
      transparent 70%);
  mask-image: url('pattern-circuit-board.svg');
  -webkit-mask-image: url('pattern-circuit-board.svg');
  mask-repeat: repeat;
  -webkit-mask-repeat: repeat;
  mask-size: 300px 300px;
  -webkit-mask-size: 300px 300px;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -200px;
  bottom: -240px;
  width: 640px;
  height: 640px;
  pointer-events: none;
  opacity: 0.11;
  background: radial-gradient(circle at 50% 50%,
      rgba(16, 185, 129, 0.18),
      rgba(56, 189, 248, 0.12) 40%,
      transparent 72%);
  mask-image: url('pattern-floating-cogs.svg');
  -webkit-mask-image: url('pattern-floating-cogs.svg');
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.site-footer .shell {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.site-footer h4 {
  margin-bottom: 0.8rem;
}

.footer-wechat-qr {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.footer-wechat-qr:hover {
  text-decoration: none;
}

.footer-qr-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-qr-img {
  width: 132px;
  height: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.muted {
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 0.8rem;
}

.hero-article {
  padding-bottom: 2rem;
}

.hero-article h1 {
  margin-bottom: 0.5rem;
}

.meta-row,
.tag-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--card-soft);
  font-weight: 500;
  color: var(--text-muted);
}

.article-shell {
  padding: 0 0 2rem;
}

.article-body {
  background: var(--panel);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.75;
  max-width: 900px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 1.6rem;
  color: var(--ink);
}

.article-body h1 {
  font-size: 2rem;
}

.article-body h2 {
  font-size: 1.5rem;
}

.article-body h3 {
  font-size: 1.25rem;
}

.article-body p {
  color: var(--text);
  font-size: 1rem;
}

.article-body a {
  color: var(--primary);
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  color: var(--text);
  background: var(--card-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.filter-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms ease, transform 650ms ease;
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.filter-row button,
.filter-row a {
  border: 1px solid var(--border);
  background: var(--card-soft);
  color: var(--text);
  border-radius: var(--radius-s);
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.filter-row button.active,
.filter-row a.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.blog-tools {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  max-width: 720px;
}

.blog-search {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

.blog-search:focus {
  border-color: rgba(29, 78, 216, 0.40);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10);
}

.blog-search-status {
  grid-column: 1 / -1;
}

.blog-start-here {
  margin-bottom: 1.25rem;
}

.blog-start-here-grid {
  margin-top: 1rem;
}

.blog-start-here-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .blog-tools {
    grid-template-columns: 1fr;
  }

  .blog-search-clear {
    width: 100%;
    justify-content: center;
  }

  .blog-start-here-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

.pager {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pager-info {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.home-featured-articles .articles-grid {
  margin-top: 0.75rem;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  position: relative;
  cursor: pointer;
  display: grid;
  gap: 0.7rem;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.article-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.article-card h3 {
  margin: 0;
}

.article-card h3 > a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-card p {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article-card .meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.badge.cat-google {
  background: var(--primary-light);
  color: var(--primary-strong);
}

.badge.cat-seo {
  background: var(--success-light);
  color: #065f46;
}

.badge.cat-marketing {
  background: var(--warning-light);
  color: #92400e;
}

.badge.cat-ecommerce {
  background: #e9d5ff;
  color: #6b21a8;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(180deg, var(--panel) 0%, rgba(246, 248, 251, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.8rem;
  box-shadow: var(--shadow-1);
}

.qr-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1rem;
  text-align: center;
}

.page-contact .hero .shell {
  align-items: start;
}

.page-contact .pill-grid {
  margin-top: 1rem;
}

.page-contact .contact-card {
  align-items: start;
  box-shadow: var(--shadow-1);
}

.page-contact .qr-box p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-contact .contact-details {
  grid-column: 1 / -1;
  margin-top: 1.25rem;
}

.page-contact .contact-details .card.soft {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(226, 232, 240, 0.95);
}

.qr-box img {
  margin: 0 auto;
  border-radius: var(--radius-s);
  border: 6px solid var(--panel);
  box-shadow: var(--shadow-2xl);
}

@media (max-width: 768px) {
  .shell {
    padding: 0 var(--space-md);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .nav ul {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    flex-direction: column;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl);
    border-radius: 0 0 0 var(--border-radius-lg);
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: var(--shadow-2xl);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    overflow-y: auto;
  }

  .nav ul.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 51;
  }

  .nav-toggle.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
  }

  .brand-name {
    font-size: 1rem;
  }

  .btn-row {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero .shell {
    gap: var(--space-xl);
  }

  .panel {
    padding: var(--space-lg);
    border-radius: var(--border-radius);
  }

  .nav .dropdown {
    width: 100%;
  }

  .nav .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: 1px solid var(--border);
    background: var(--card-soft);
    margin: var(--space-sm) 0 0 0;
    padding: var(--space-sm) 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
    border-radius: var(--border-radius);
  }

  .nav .dropdown.open .dropdown-menu {
    max-height: 600px;
    box-shadow: var(--shadow-md);
  }

  .nav .dropdown > a {
    padding-right: 2rem;
  }

  .nav .dropdown > a::after {
    font-size: 0.8rem;
    right: 1rem;
    transition: all var(--transition-base);
  }

  .nav .dropdown.open > a::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .nav .dropdown::before,
  .nav .dropdown::after {
    display: none;
  }

  .nav .dropdown-menu li {
    margin: 0;
  }

  .nav .dropdown-menu li::before {
    display: none;
  }

  .nav .dropdown-menu a {
    display: block !important;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.2s ease;
    width: 100% !important;
    text-align: left;
    background: transparent;
  }

  .nav .dropdown-menu a:hover {
    background: var(--primary-subtle);
    transform: none;
  }

  .nav .dropdown-menu a:first-child {
    border-radius: var(--radius-m) var(--radius-m) 0 0;
  }

  .nav .dropdown-menu a:last-child {
    border-radius: 0 0 var(--radius-m) var(--radius-m);
  }

  .nav .dropdown-menu a.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
  }

  .page-post .article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .page-post .article-body th,
  .page-post .article-body td {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .shell {
    padding: 0 var(--space-sm);
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    max-width: none;
  }

  .nav ul {
    width: 100vw;
    border-radius: 0;
    padding: var(--space-lg);
  }

  .btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
  }

  .card {
    padding: var(--space-lg);
  }

  .grid.four {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

@media (min-width: 1400px) {
  .shell {
    max-width: 1320px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero .shell {
    gap: var(--space-2xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.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;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: var(--shadow-md), var(--ring);
}

.focus-ring:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--card-soft);
  border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--border-radius);
  transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--card-soft);
}

::selection {
  background: rgba(29, 78, 216, 0.16);
  color: var(--text);
}

::-moz-selection {
  background: rgba(29, 78, 216, 0.16);
  color: var(--text);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

.page-post .article-shell {
  padding: clamp(30px, 4vw, 54px) 0;
}

.page-post .hero.hero-article {
  padding: clamp(20px, 3vw, 40px) 0 clamp(14px, 2vw, 24px);
}

.page-post .hero.hero-article .shell {
  display: block;
  max-width: 78ch;
}

.page-post .hero.hero-article .article-hero {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 96px) 1fr;
  gap: 1rem;
  align-items: start;
}

.page-post .hero.hero-article .article-hero-thumb {
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-1);
  background: rgba(241, 245, 249, 0.9);
}

.page-post .hero.hero-article .article-hero-content {
  min-width: 0;
}

.page-post .hero.hero-article .eyebrow {
  text-transform: none;
}

.page-post .hero.hero-article h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin: 0.4rem 0 0.65rem;
}

.page-post .hero.hero-article .lede {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: none;
}

.page-post .hero.hero-article .meta-row {
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
}

.page-post .hero.hero-article .tag-row {
  margin-top: 0.55rem;
}

.page-post .article-body {
  max-width: 78ch;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.82;
}

.page-post .article-body.article-body-with-toc {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-post .article-content {
  width: 100%;
  max-width: 78ch;
  justify-self: end;
  font-size: 1.06rem;
  line-height: 1.82;
  background: var(--panel);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.page-post .article-toc {
  position: sticky;
  top: calc(72px + 18px);
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: var(--shadow-1);
}

.page-post .article-toc-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.page-post .article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.page-post .article-toc-item {
  margin: 0;
}

.page-post .article-toc-item a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-s);
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.35;
}

.page-post .article-toc-item.level-h3 a {
  padding-left: 1.15rem;
  font-size: 0.95em;
}

.page-post .article-toc-item a:hover {
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-hover);
  text-decoration: none;
}

.page-post .article-toc-item a.active {
  background: rgba(29, 78, 216, 0.12);
  color: var(--primary-strong);
  font-weight: 600;
}

.page-post .post-toc-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  display: grid;
  gap: 0.85rem;
}

.page-post .post-toc-cta-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-post .post-toc-cta-desc {
  margin: 0;
}

.page-post .post-toc-cta-actions {
  display: grid;
  gap: 0.6rem;
}

.page-post .post-toc-cta-actions .btn {
  width: 100%;
  justify-content: center;
}

.page-post .post-toc-cta-qr {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: var(--radius-m);
  text-decoration: none;
  color: inherit;
}

.page-post .post-toc-cta-qr img {
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}

.page-post .post-toc-cta-qr-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mobile-cta-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: none;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: var(--shadow-1);
  z-index: 40;
}

.mobile-cta-bar .btn {
  flex: 1;
  justify-content: center;
  min-height: 44px;
}

@media (max-width: 860px) {
  .mobile-cta-bar {
    display: flex;
  }

  body.page-post {
    padding-bottom: 92px;
  }

  .page-post .post-toc-cta-qr {
    display: none;
  }
}

.contact-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 0.5rem;
  z-index: 39;
}

.contact-fab a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}

.contact-fab a:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-1);
}

.contact-fab-main {
  background: rgba(29, 78, 216, 0.95);
  color: #fff;
  border-color: rgba(29, 78, 216, 0.40);
}

.contact-fab-main:hover {
  background: rgba(29, 78, 216, 1);
  transform: translateY(-1px);
}

.contact-fab-sub {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.contact-fab-sub:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .contact-fab {
    display: none;
  }
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) > :first-child {
  margin-top: 0 !important;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  margin: 0 0 1rem;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) h2 {
  margin-top: 2.2rem;
  padding-top: 0.2rem;
  font-size: 1.55rem;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) h3 {
  margin-top: 1.6rem;
  font-size: 1.25rem;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) h2,
.page-post :is(.article-body:not(.article-body-with-toc), .article-content) h3 {
  scroll-margin-top: 96px;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) p,
.page-post :is(.article-body:not(.article-body-with-toc), .article-content) li {
  color: #0f172a;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) blockquote {
  border-left-color: rgba(29, 78, 216, 0.9);
  box-shadow: var(--shadow-1);
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) pre {
  box-shadow: var(--shadow-1);
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-1);
  margin: 1.25rem 0;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) th,
.page-post :is(.article-body:not(.article-body-with-toc), .article-content) td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  vertical-align: top;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) th {
  background: rgba(241, 245, 249, 0.9);
  font-weight: 600;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) tr:last-child td {
  border-bottom: 0;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) picture {
  display: block;
  margin: 1.25rem 0;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

@media (max-width: 1024px) {
  .page-post .article-body.article-body-with-toc {
    grid-template-columns: 1fr;
  }

  .page-post .article-toc {
    position: relative;
    top: auto;
    max-height: none;
  }

  .page-post .article-content {
    justify-self: center;
  }
}

.bg-white { background-color: #ffffff; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-subtle: #1e293b;
    --panel: #1e293b;
    --card: #1e293b;
    --card-soft: #334155;
    --card-hover: #475569;
    --border: #334155;
    --border-light: #475569;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
  }

  .site-header {
    background: rgba(15, 23, 42, 0.82);
  }

  .site-header.scrolled {
    background: rgba(15, 23, 42, 0.9);
  }

  .pill {
    border-color: var(--border);
  }

  .badge.green {
    background: #064e3b;
    color: #6ee7b7;
  }

  .article-body blockquote {
    background: #1e3a3a;
  }

  .skills span {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
  }

  .cta .cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a5a 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .shell > div {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-ambient {
    display: none !important;
  }

  .hero-ambient-grid {
    display: none !important;
  }

  .hero.has-ambient::after {
    display: none !important;
  }

  .page-home .service-icon {
    animation: none !important;
  }

  .page-home .hero .metric {
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.u-text-center {
  text-align: center !important;
}

.u-justify-center {
  justify-content: center !important;
}

@media print {
  .nav,
  .site-footer,
  .btn,
  .cta,
  .contact-fab,
  .mobile-cta-bar {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
    break-inside: avoid;
  }
}

/* Orbit story theme (home) */
:root {
  --font-display: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.page-home {
  --bg: #f6f8fc;
  --panel: rgba(255, 255, 255, 0.92);
  --card: rgba(255, 255, 255, 0.92);
  --card-soft: rgba(248, 250, 252, 0.86);
  --border: rgba(148, 163, 184, 0.25);
  --border-light: rgba(226, 232, 240, 0.7);
  --primary: #2f6bff;
  --primary-hover: #1f55d6;
  --accent: #2bb5ff;
  --accent-hover: #0ea5e9;
  --success: #16a34a;
  background:
    radial-gradient(1200px circle at 12% 6%, rgba(47, 107, 255, 0.12), transparent 58%),
    radial-gradient(900px circle at 88% 10%, rgba(34, 197, 195, 0.10), transparent 55%),
    radial-gradient(740px circle at 50% 100%, rgba(59, 130, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f5f7fb 100%);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.page-home .site-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.page-home .site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

.page-home .hero.hero-story {
  min-height: 110vh;
  padding: clamp(64px, 10vw, 120px) 0 0;
}

.page-home .hero.hero-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px circle at 18% 30%, rgba(47, 107, 255, 0.14), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.page-home .hero-pin {
  position: sticky;
  top: clamp(72px, 10vw, 140px);
  z-index: 2;
  padding-bottom: clamp(24px, 6vw, 72px);
}

.page-home .hero-orbits {
  position: absolute;
  inset: -18% -8% auto -8%;
  height: 78vh;
  pointer-events: none;
  z-index: 1;
}

.page-home .hero-orbits .orbit {
  position: absolute;
  left: 54%;
  top: 42%;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 255, var(--opacity));
  transform: translate(-50%, -50%) rotate(var(--tilt));
  animation: orbit-rotate var(--duration) linear infinite;
  box-shadow: 0 0 30px rgba(47, 107, 255, 0.06);
}

.page-home .hero-orbits .orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #93c5fd 55%, rgba(147, 197, 253, 0) 72%);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.55);
}

.page-home .orbit-1 { --size: 520px; --duration: 42s; --opacity: 0.28; --tilt: -8deg; }
.page-home .orbit-2 { --size: 720px; --duration: 64s; --opacity: 0.2; --tilt: 12deg; }
.page-home .orbit-3 { --size: 940px; --duration: 88s; --opacity: 0.14; --tilt: -18deg; }

@keyframes orbit-rotate {
  from { transform: translate(-50%, -50%) rotate(var(--tilt)); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--tilt) + 360deg)); }
}

.page-home .hero .panel.hud-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(12px);
}

.page-home .hero .metric {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.page-home .hero .metric.is-inview {
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.15), 0 10px 22px rgba(37, 99, 235, 0.12);
}

.page-home .section.section-story {
  padding: clamp(32px, 4vw, 60px) 0;
}

.page-home .section.section-story .stack {
  gap: clamp(14px, 2.5vw, 22px);
}

.page-home .stack-stage {
  position: relative;
  padding: clamp(4px, 3vw, 16px) 0 clamp(16px, 5vw, 52px);
}

.page-home .stacked-cards {
  display: grid;
  gap: clamp(12px, 2.8vw, 24px);
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
  margin: 0;
}

.page-home .stacked-cards .stack-card {
  position: relative;
  top: auto;
  z-index: calc(10 - var(--stack));
  margin-top: calc(var(--stack) * -8px);
  transform: translateY(calc(var(--stack) * 6px)) scale(calc(1 - var(--stack) * 0.02));
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(10px);
}

.page-home .stacked-cards .stack-card.reveal {
  opacity: 1;
  transform: translateY(calc(var(--stack) * 6px)) scale(calc(1 - var(--stack) * 0.02));
}

.page-home .stacked-cards .stack-card.reveal.is-revealed {
  transform: translateY(calc(var(--stack) * 6px)) scale(calc(1 - var(--stack) * 0.02));
}

.page-home .stacked-cards .stack-card:not(:last-child) {
  margin-bottom: 0;
}

.page-home .case-rail {
  position: relative;
  min-height: clamp(420px, 80vh, 760px);
  padding: clamp(8px, 3vw, 24px) 0;
  overflow: hidden;
}

.page-home .case-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at 15% 50%, rgba(47, 107, 255, 0.12), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.page-home .case-track {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  position: sticky;
  top: clamp(48px, 7vw, 110px);
  align-items: stretch;
  will-change: transform;
  padding: clamp(8px, 2vw, 16px) 0;
}

.page-home .case-track .case-card {
  min-width: clamp(260px, 50vw, 520px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.page-home .orbit-timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  padding-left: clamp(24px, 5vw, 48px);
}

.page-home .orbit-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.06));
}

.page-home .orbit-timeline::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 2px;
  height: calc(var(--timeline-progress, 0) * 100%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.55), rgba(34, 197, 195, 0.2));
  box-shadow: 0 0 12px rgba(47, 107, 255, 0.25);
}

.page-home .orbit-timeline .step {
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1.1rem 3rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-1);
  transform: translateY(18px);
  opacity: 0.65;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}

.page-home .orbit-timeline .step::before {
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(59, 130, 246, 0.6));
  box-shadow: 0 0 14px rgba(47, 107, 255, 0.3);
}

.page-home .orbit-timeline .step.is-active {
  transform: translateY(0);
  opacity: 1;
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(47, 107, 255, 0.1);
}

.page-home .cta-story {
  position: relative;
  padding-top: clamp(32px, 6vw, 64px);
}

.page-home .cta-story::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(520px circle at 20% 30%, rgba(47, 107, 255, 0.14), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.page-home .cta-story .cta-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
  .page-home .hero.hero-story {
    min-height: 120vh;
  }

  .page-home .case-track {
    position: relative;
    top: auto;
    transform: none !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .case-rail {
    min-height: auto;
  }

  .page-home .case-track .case-card {
    min-width: auto;
  }

  .page-home .stacked-cards .stack-card {
    position: relative;
    top: auto;
    transform: none;
    margin-bottom: 1.5rem;
  }

  .page-home .stacked-cards .stack-card:not(:last-child) {
    margin-bottom: 1.5rem;
  }

  .page-home .hero-pin {
    position: relative;
    top: auto;
  }

  .page-home .hero-orbits {
    height: 60vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-orbits .orbit {
    animation: none;
  }

  .page-home .case-track {
    transform: none !important;
  }

  .page-home .stacked-cards .stack-card {
    position: relative;
    top: auto;
    transform: none;
  }

  .page-home .hero-pin {
    position: relative;
    top: auto;
  }

  .parallax-layer,
  .parallax-content,
  .parallax-card,
  .count-up-number {
    transform: none !important;
  }
}

/* ========================================
   Apple 风格 3D 视差效果
   ======================================== */

/* 启用 3D 视差的 Hero 容器 */
.page-home .hero {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* 视差背景层 - 最远层 */
.page-home .hero-ambient {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* 视差网格层 - 中远景 */
.page-home .hero-ambient-grid {
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* 视差内容层 - 包含文字 */
.page-home .hero .shell > div:first-child {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

/* 视差卡片层 - 前景 */
.page-home .hero .hud-panel {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* 卡片内各层的不同深度 */
.page-home .hero .hud-panel h2 {
  transform: translateZ(20px);
  transition: transform 0.1s ease-out;
}

.page-home .hero .hud-panel .metrics {
  transform: translateZ(40px);
  transition: transform 0.1s ease-out;
}

.page-home .hero .metric {
  transform-style: preserve-3d;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
  transform: translateZ(0);
}

/* 鼠标悬停时卡片的 3D 效果增强 */
@media (hover: hover) and (pointer: fine) {
  .page-home .hero .metric:hover {
    transform: translateZ(30px) scale(1.02);
    box-shadow:
      0 20px 40px rgba(15, 23, 42, 0.12),
      0 0 0 1px rgba(29, 78, 216, 0.1),
      var(--shadow-lg);
    border-color: rgba(29, 78, 216, 0.25);
    background: linear-gradient(135deg, var(--card-soft), rgba(29, 78, 216, 0.03));
  }

  /* 悬停时指标数字的发光效果 */
  .page-home .hero .metric:hover strong {
    text-shadow: 0 0 20px rgba(29, 78, 216, 0.4);
  }

  /* 悬停时 metric 的 3D 倾斜 */
  .page-home .hero .metric.is-hovered {
    transform:
      translateZ(25px)
      rotateX(var(--rx, 0deg))
      rotateY(var(--ry, 0deg));
  }
}

/* 数字滚动动画基础样式 */
.count-up-number {
  display: inline-block;
  min-width: 1ch;
}

/* 滚动进入视口时的动画触发 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero 区域元素的错峰进入动画 */
.page-home .hero .reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-home .hero .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 错峰延迟 - 通过 JS 设置 --stagger 变量 */
.page-home .hero .reveal[style*="--stagger"] {
  transition-delay: calc(var(--stagger, 0) * 0.12s);
}

/* 标题的特殊动画 */
.page-home .hero h1 {
  transform-origin: left center;
}

.page-home .hero .reveal h1 {
  transform: translateY(40px) scale(0.95);
}

/* 指标卡片的进入动画 */
.page-home .hero .metric.reveal {
  transform: translateY(50px) translateZ(0) scale(0.9);
  opacity: 0;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s ease;
}

.page-home .hero .metric.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) translateZ(0) scale(1);
}

/* 数字高亮动画 */
@keyframes number-highlight {
  0% {
    text-shadow: 0 0 0 rgba(29, 78, 216, 0);
  }
  50% {
    text-shadow: 0 0 30px rgba(29, 78, 216, 0.6);
  }
  100% {
    text-shadow: 0 0 20px rgba(29, 78, 216, 0.3);
  }
}

.page-home .hero .metric.is-revealed strong {
  animation: number-highlight 0.8s ease-out 0.3s both;
}

/* 按钮的磁性效果准备 */
.btn.magnetic {
  transition: transform 0.25s var(--ease-out);
}

/* 滚动时的视差减弱（离开视口） */
.page-home .hero.leaving-viewport .parallax-layer {
  transition-duration: 0.4s;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .page-home .hero {
    perspective: none;
  }

  .page-home .hero-ambient,
  .page-home .hero-ambient-grid,
  .page-home .hero .shell > div:first-child,
  .page-home .hero .hud-panel,
  .page-home .hero .hud-panel h2,
  .page-home .hero .hud-panel .metrics {
    transform: none !important;
    transition: none;
  }

  .page-home .hero .metric {
    transform: translateZ(0) !important;
  }

  .page-home .hero .metric:hover {
    transform: translateZ(0) scale(1.02) !important;
  }
}
