: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;
  --z-header: 50;
  --z-dropdown: 100;
  --z-overlay: 300;

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

@supports (content-visibility: auto) {
  main > .section:not(.hero),
  .page-post .article-shell,
  .services-grid > .card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 760px;
  }

  .articles-grid > .article-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 420px;
  }
}

.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: var(--z-header);
  --header-height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
}

.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: var(--header-height);
}

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

.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: calc(100% - 0.75rem);
}

.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: var(--z-dropdown);
  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: calc(var(--z-dropdown) + 1);
  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:focus-visible {
  outline: none;
  color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: inset 0 0 0 2px rgba(29, 78, 216, 0.18);
}

.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);
  box-shadow: 0 0 0 2px var(--primary-light);
}

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

.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 !important;
  box-shadow: none !important;
}

/* 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;
  }

  .hud-panel,
  .hud-card {
    background-image: radial-gradient(circle at 88% 86%, rgba(29, 78, 216, 0.08), transparent 58%);
    background-repeat: no-repeat;
  }
}

.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(-2px);
  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(300px, 1fr));
  align-items: stretch;
}

.service-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-m) - 4px);
  margin: -0.1rem 0 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.30);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.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-card:hover .service-card-media {
  transform: translateY(-1px);
  box-shadow: 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;
}

.footer-trust-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
}

.footer-trust-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-trust-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.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;
  align-items: center;
}

.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: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.filter-row button:hover,
.filter-row a:hover {
  border-color: rgba(29, 78, 216, 0.34);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.filter-row button:focus-visible,
.filter-row a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.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;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.88) 100%);
}

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

.blog-search::placeholder {
  color: var(--text-subtle);
}

.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-search-clear {
  min-height: 44px;
  border-color: rgba(148, 163, 184, 0.45);
}

.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;
    padding: 0.72rem;
  }

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

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

  .home-featured-articles .split {
    align-items: flex-start;
  }

  .article-card {
    padding: 1.05rem;
  }
}

.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: clamp(0.95rem, 1.8vw, 1.2rem);
  align-items: stretch;
}

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

.home-featured-articles .split {
  align-items: flex-end;
  gap: 1rem;
}

.home-featured-articles .split h2 {
  margin-bottom: 0.3rem;
}

.article-card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  position: relative;
  cursor: pointer;
  display: grid;
  gap: 0.78rem;
  align-content: start;
  min-height: 100%;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.28) 0%, rgba(16, 185, 129, 0.4) 52%, rgba(37, 99, 235, 0.2) 100%);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.article-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.44);
}

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

.article-card h3 {
  margin: 0;
  line-height: 1.44;
}

.article-card h3 > a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.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;
  margin: 0;
  line-height: 1.65;
}

.article-card .meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.2;
}

.article-card .meta > span:not(.badge) {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-subtle);
}

.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 .qr-box {
  min-height: 400px;
}

.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 .lang-switcher {
    display: inline-flex;
    margin-right: 0.35rem;
  }
  .nav {
    gap: 0;
  }

  .grid {
    gap: var(--space-md);
  }
  .nav ul {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    flex-direction: column;
    width: 280px;
    box-sizing: border-box;
    height: calc(100vh - var(--header-height));
    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: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    width: 100%;
    box-sizing: border-box;
    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;
    pointer-events: none;
    transition: all var(--transition-base);
    border-radius: var(--border-radius);
  }

  .nav .dropdown.open .dropdown-menu {
    max-height: 600px;
    box-shadow: var(--shadow-md);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
  }

  .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) {
  .site-header {
    --header-height: 64px;
  }

  .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: 100%;
    left: 0;
    right: 0;
    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: none;
  box-shadow: var(--ring);
  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(47, 79, 124, 0.95);
  color: #fff;
  border-color: rgba(47, 79, 124, 0.48);
}

.contact-fab-main:hover {
  background: rgba(34, 58, 91, 0.98);
  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;
  }
}

/* 2026-02 visual polish pass: navigation, reading rhythm, and trust footer hierarchy */
:root {
  --reading-measure: 74ch;
}

.site-header {
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.nav {
  gap: 0.75rem;
}

.nav ul {
  gap: 0.55rem;
}

.nav a {
  padding: 0.58rem 0.95rem;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

.nav a::before {
  height: 1.5px;
}

.nav a:hover,
.nav a.active {
  background: rgba(29, 78, 216, 0.07);
  border-color: rgba(148, 163, 184, 0.34);
}

.nav a.active {
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.08);
}

.nav a.nav-cta {
  padding-inline: 1rem;
}

.nav-toggle:hover {
  transform: translateY(-1px);
}

.btn {
  padding: 0.72rem 1.08rem;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-xs);
  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),
    color var(--dur-2) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn.primary {
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.26);
}

.btn.ghost {
  padding-right: 1.25rem;
}

.btn.ghost::after {
  right: 0.9rem;
}

.btn.ghost:hover {
  padding-right: 1.25rem;
}

.btn.ghost:hover::after {
  transform: translateX(3px);
}

.card {
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}

.site-footer {
  padding: 3.2rem 0 2.1rem;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  gap: 0.7rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom > span {
  line-height: 1.45;
}

.footer-trust-links {
  gap: 0.5rem;
}

.footer-trust-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.18rem 0.38rem;
  border-radius: 8px;
  color: var(--text-subtle);
}

.footer-trust-links a + a::before {
  content: "";
  position: absolute;
  left: -0.34rem;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(148, 163, 184, 0.55);
}

.footer-trust-links a:hover {
  color: var(--primary-strong);
  background: rgba(29, 78, 216, 0.08);
  text-decoration: none;
}

.article-body {
  max-width: 860px;
  padding: clamp(1.35rem, 2.2vw, 2.25rem);
  line-height: 1.82;
  font-size: 1.03rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: clamp(1.4rem, 2.6vw, 2.05rem);
}

.article-body p {
  margin-bottom: 1.1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
  margin: 0.75rem 0 1.2rem;
}

.article-body li {
  margin: 0.35rem 0;
}

.page-post .article-body {
  max-width: var(--reading-measure);
}

.page-post .article-content {
  max-width: var(--reading-measure);
  padding: clamp(1.4rem, 2.1vw, 2.2rem);
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) h2 {
  margin-top: 2.1rem;
  margin-bottom: 0.75rem;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) h3 {
  margin-top: 1.45rem;
  margin-bottom: 0.55rem;
}

.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 {
  line-height: 1.88;
}

.page-post :is(.article-body:not(.article-body-with-toc), .article-content) blockquote {
  padding: 0.95rem 1.05rem 0.95rem 1.15rem;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .nav ul {
    width: min(86vw, 320px);
    padding: 1.25rem 1rem 1rem;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
  }

  .nav ul > li {
    width: 100%;
  }

  .nav ul > li > a {
    width: 100%;
    justify-content: flex-start;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.78;
  }

  .page-post .article-content {
    padding: 1.25rem;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-trust-links {
    gap: 0.15rem 0.45rem;
  }

  .footer-trust-links a + a::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-trust-links a {
    min-height: 28px;
    padding: 0.16rem 0.28rem;
    font-size: 0.84rem;
  }
}

@media (prefers-color-scheme: dark) {
  .nav a:hover,
  .nav a.active {
    border-color: rgba(148, 163, 184, 0.36);
  }

  .blog-tools {
    border-color: rgba(71, 85, 105, 0.74);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84) 0%, rgba(15, 23, 42, 0.62) 100%);
  }

  .blog-search {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(71, 85, 105, 0.74);
    color: #e2e8f0;
  }

  .blog-search::placeholder {
    color: #94a3b8;
  }

  .article-card {
    border-color: rgba(71, 85, 105, 0.74);
  }

  .article-card .meta > span:not(.badge) {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
  }

  .footer-bottom {
    border-top-color: rgba(71, 85, 105, 0.65);
  }

  .footer-trust-links a {
    color: #cbd5e1;
  }

  .footer-trust-links a + a::before {
    background: rgba(148, 163, 184, 0.45);
  }

  .footer-trust-links a:hover {
    color: #e2e8f0;
    background: rgba(30, 58, 138, 0.28);
  }
}

/* 2026-02 visual refinement round 2: stronger hierarchy for nav, aggregation blocks, and footer */
:root {
  --surface-raise: rgba(255, 255, 255, 0.82);
  --surface-raise-strong: rgba(255, 255, 255, 0.94);
  --stroke-soft: rgba(148, 163, 184, 0.28);
  --stroke-strong: rgba(71, 85, 105, 0.24);
}

.section > .shell > .split {
  align-items: end;
  gap: clamp(0.8rem, 1.8vw, 1.35rem);
}

.section > .shell > .split h2 {
  margin-bottom: 0.28rem;
}

.section > .shell > .split p.muted {
  max-width: 62ch;
}

.hero .lede {
  max-width: 66ch;
  color: var(--text-muted);
}

.site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  border-bottom-color: var(--stroke-soft);
}

.site-header.scrolled {
  border-bottom-color: rgba(148, 163, 184, 0.4);
}

.nav a {
  position: relative;
  border-color: transparent;
  background: transparent;
  font-weight: 600;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.34rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.65), rgba(16, 185, 129, 0.5), rgba(37, 99, 235, 0));
  transform: scaleX(0.08);
  opacity: 0;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--stroke-soft);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav .dropdown-menu {
  border: 1px solid var(--stroke-soft);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.nav .dropdown-menu a {
  font-weight: 600;
  letter-spacing: 0.005em;
}

.filter-row {
  gap: 0.52rem;
}

.filter-row button,
.filter-row a {
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  border-color: var(--stroke-soft);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.92rem;
}

.filter-row button.active,
.filter-row a.active {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.95), rgba(16, 185, 129, 0.82));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.26);
}

.blog-tools {
  position: relative;
  border-color: var(--stroke-soft);
  background: linear-gradient(165deg, var(--surface-raise-strong), var(--surface-raise));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.blog-search {
  border-color: rgba(148, 163, 184, 0.36);
}

.blog-search-clear {
  min-width: 7.2rem;
}

.article-card {
  border-color: var(--stroke-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.24), rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.12)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}

.article-card:hover::after,
.article-card:focus-within::after {
  opacity: 1;
}

.article-card h3 {
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.article-card p {
  color: #4b6077;
}

.article-card .meta {
  gap: 0.38rem;
}

.article-card .meta > span:not(.badge),
.article-card .meta .tag {
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.72);
  color: #52657d;
  font-size: 0.79rem;
}

.home-featured-articles .split {
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.34);
}

.pager {
  margin-top: 1.55rem;
}

.pager .btn {
  min-width: 7.2rem;
  justify-content: center;
}

.pager-info {
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.75);
}

.site-footer {
  background: linear-gradient(180deg, rgba(243, 246, 251, 0.96), rgba(238, 243, 250, 0.98));
  border-top-color: var(--stroke-soft);
}

.footer-grid {
  gap: 1rem;
}

.footer-grid > div {
  padding: 0.25rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.footer-grid > div:first-child {
  background: transparent;
}

.site-footer .plain a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer .plain a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.site-footer .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 1rem;
  border-radius: 10px;
}

.footer-bottom {
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  padding: 0.74rem 0.92rem;
}

.footer-trust-links a {
  border: 1px solid transparent;
  font-weight: 600;
}

.footer-trust-links a:hover {
  border-color: rgba(148, 163, 184, 0.34);
}

@media (max-width: 768px) {
  .section > .shell > .split {
    align-items: start;
    gap: 0.72rem;
  }

  .nav ul {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.96));
    border-left-color: var(--stroke-soft);
  }

  .blog-tools {
    padding: 0.75rem;
  }

  .article-card {
    border-radius: 14px;
  }

  .footer-grid > div {
    padding: 0.2rem 0;
  }

  .footer-bottom {
    padding: 0.66rem 0.72rem;
  }
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.84));
    border-bottom-color: rgba(100, 116, 139, 0.42);
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(15, 23, 42, 0.66);
    border-color: rgba(100, 116, 139, 0.5);
  }

  .filter-row button,
  .filter-row a {
    background: rgba(15, 23, 42, 0.66);
    border-color: rgba(100, 116, 139, 0.45);
    color: #dbe5f5;
  }

  .article-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.76));
    border-color: rgba(100, 116, 139, 0.6);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
  }

  .article-card p {
    color: #b6c3d8;
  }

  .article-card .meta > span:not(.badge),
  .article-card .meta .tag {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(100, 116, 139, 0.5);
    color: #c8d3e5;
  }

  .site-footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.9));
    border-top-color: rgba(100, 116, 139, 0.5);
  }

  .footer-grid > div {
    background: transparent;
    border-color: transparent;
  }

  .footer-bottom {
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(100, 116, 139, 0.46);
  }

  .pager-info {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(100, 116, 139, 0.44);
    color: #cbd5e1;
  }
}
}

/* 2026-02 homepage layout refinement after AI media integration */
.page-home .home-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(44px, 6vw, 72px);
}

.page-home .home-hero .shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
}

.page-home .home-hero .hero-copy {
  display: grid;
  gap: clamp(0.65rem, 1.6vw, 1rem);
  max-width: 66ch;
}

.page-home .home-hero .hero-panel {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(1rem, 2.1vw, 1.35rem);
  min-height: 100%;
}

.page-home .home-hero .hero-panel .hud-illus {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  opacity: 0.95;
  filter: none;
  mix-blend-mode: normal;
  transform: none;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: var(--shadow-sm);
}

.page-home .home-hero .hero-panel h2 {
  margin: 0.1rem 0;
}

.page-home .home-hero .hero-panel .metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.page-home .home-hero .hero-panel .metric {
  min-height: 100%;
  text-align: left;
  padding: 0.82rem 0.7rem;
  transform: translateZ(0) !important;
}

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

.page-home .home-hero .hero-panel .metric strong {
  font-size: 1.35rem;
  margin: 0.2rem 0;
}

.page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) {
  padding-block: clamp(48px, 6vw, 82px);
}

.page-home main > .section {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.page-home .home-services-shell {
  gap: clamp(1rem, 2.4vw, 1.4rem);
}

.page-home .home-services-grid {
  gap: clamp(0.9rem, 2vw, 1.25rem);
  align-items: stretch;
}

.page-home .home-services-grid .service-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.72rem;
  min-height: 0;
  height: 100%;
  padding: 0.92rem;
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.page-home .home-services-grid .service-card .service-card-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.page-home .home-services-grid .service-card .service-card-top {
  margin: 0;
  gap: 0.7rem;
  align-items: center;
}

.page-home .home-services-grid .service-card .service-icon {
  width: 42px;
  height: 42px;
}

.page-home .home-services-grid .service-card .list-check {
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.page-home .home-services-grid .service-card .list-check li {
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-home .home-compare-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(0.9rem, 2.2vw, 1.3rem);
}

.page-home .home-compare-layout > .card {
  padding: clamp(1rem, 2.1vw, 1.35rem);
}

.page-home .home-compare-layout > .card .table {
  margin-top: 0.7rem;
}

.page-home .home-compare-points {
  gap: 0.85rem;
}

.page-home .home-compare-points > .card {
  min-height: 0;
  padding: 1rem 1.05rem;
}

.page-home .home-cases-shell {
  gap: clamp(0.95rem, 2.2vw, 1.35rem);
}

.page-home .home-cases-grid {
  gap: clamp(0.8rem, 1.9vw, 1.1rem);
  align-items: stretch;
}

.page-home .home-cases-grid .case-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-height: 0;
  height: 100%;
  padding: clamp(1rem, 1.9vw, 1.2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}

.page-home .home-cases-grid .case-card p {
  line-height: 1.62;
}

.page-home .section-home-process .home-process-shell {
  gap: clamp(0.9rem, 2.1vw, 1.25rem);
}

.page-home .home-process-timeline {
  gap: clamp(0.65rem, 1.7vw, 0.95rem);
}

.page-home .home-process-timeline .step {
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  opacity: 0.94;
  transform: none;
}

.page-home .home-process-timeline .step h3 {
  margin-bottom: 0.35rem;
}

.page-home .home-process-timeline .step.is-active {
  transform: none;
}

.page-home .section-home-insights .home-insights-shell {
  gap: clamp(0.9rem, 2vw, 1.2rem);
}

.page-home .section-home-insights .articles-grid {
  margin-top: 0.4rem;
  gap: clamp(0.85rem, 1.7vw, 1.1rem);
}

.page-home .home-cta {
  padding-top: clamp(36px, 5vw, 62px);
}

.page-home .home-cta .cta-card {
  border-radius: 18px;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
}

@media (max-width: 1080px) {
  .page-home .home-hero .shell {
    grid-template-columns: 1fr;
  }

  .page-home .home-hero .hero-panel {
    max-width: 700px;
  }
}

@media (max-width: 900px) {
  .page-home .home-compare-layout {
    grid-template-columns: 1fr;
  }

  .page-home .home-services-grid .service-card {
    padding: 0.86rem;
  }
}

@media (max-width: 680px) {
  .page-home .home-hero .hero-panel .metrics {
    grid-template-columns: 1fr;
  }

  .page-home .home-hero .hero-panel .metric {
    text-align: center;
  }

  .page-home .home-process-timeline {
    padding-left: 20px;
  }

  .page-home .home-process-timeline::before,
  .page-home .home-process-timeline::after {
    left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero .hero-panel .metric,
  .page-home .home-services-grid .service-card,
  .page-home .home-cases-grid .case-card {
    transition: none;
    transform: none !important;
  }
}

/* 2026-02 paper brochure theme: solid surfaces, no gradients, no glass */
:root {
  --bg: #f4efe4;
  --panel: #fffdf7;
  --card: #fffdf7;
  --card-soft: #fffdf7;
  --card-hover: #f7f1e6;
  --border: #c8baa2;
  --border-light: #ddd0bb;
  --text: #1f2730;
  --text-muted: #4f5b69;
  --ink: #131a22;
  --primary: #2f4f7c;
  --primary-hover: #223a5b;
  --primary-strong: #1d2f47;
  --primary-light: #e5ebf4;
  --accent: #5a6f8f;
}

body,
.page,
body.page-home {
  background: #f4efe4 !important;
  background-image: none !important;
  color: #1f2730 !important;
}

.hero,
.section,
.cta,
.site-footer {
  background-image: none !important;
}

.hero-ambient,
.hero-ambient-grid,
.page-home .hero-orbits,
.hud-divider,
.hud-divider--tight {
  display: none !important;
}

.hero.has-ambient::after,
.page-home .hero.hero-story::before,
.page-home .case-rail::before,
.page-home .cta-story::before {
  content: none !important;
  display: none !important;
}

.site-header,
.page-home .site-header,
.site-header.scrolled,
.page-home .site-header.scrolled {
  background: #f9f4e9 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 2px solid #c8baa2 !important;
}

.site-footer,
.footer-bottom,
.footer-grid > div {
  background: #f9f4e9 !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: #c8baa2 !important;
}

.card,
.panel,
.article-card,
.blog-tools,
.blog-search,
.timeline .step,
.metric,
.metric-modal-dialog,
.table,
.cta .cta-card,
.page-home .home-cases-grid .case-card,
.page-home .home-services-grid .service-card,
.page-home .home-compare-layout > .card {
  background: #fffdf7 !important;
  background-image: none !important;
  border: 2px solid #c8baa2 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.card::before,
.article-card::before,
.article-card::after,
.btn::before,
.btn::after,
.hud-panel::before,
.hud-card::before,
.metric::before,
.metric::after,
.nav a::before,
.nav a::after,
.brand-mark::before {
  content: none !important;
  display: none !important;
}

.brand-mark,
.pill,
.badge,
.pager-info,
.filter-row button,
.filter-row a,
.nav .dropdown-menu,
.nav .dropdown-menu a,
.nav .lang-switcher,
.nav .lang-switcher .lang-option.active,
.nav .lang-switcher .lang-option[aria-current="true"] {
  background: #f7f1e6 !important;
  background-image: none !important;
  border-color: #c8baa2 !important;
  box-shadow: none !important;
}

.btn,
.btn.ghost,
.nav a {
  background: #fffdf7 !important;
  background-image: none !important;
  color: #1d2a39 !important;
  border: 2px solid #2f3e4f !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn.primary,
.filter-row button.active,
.filter-row a.active,
.nav a.nav-cta {
  background: #2f4f7c !important;
  color: #ffffff !important;
  border-color: #2f4f7c !important;
  box-shadow: none !important;
}

.btn.secondary {
  background: #3c5f8c !important;
  border-color: #3c5f8c !important;
  color: #ffffff !important;
}

.btn:hover,
.btn:focus-visible,
.nav a:hover,
.nav a.active {
  transform: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.service-icon {
  background: #f2ebdc !important;
  border: 2px solid #c8baa2 !important;
  box-shadow: none !important;
}

.service-icon::after {
  content: none !important;
  display: none !important;
}

.service-card-media,
.page-home .home-services-grid .service-card .service-card-media {
  border: 2px solid #c8baa2 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.page-home .hero .metric,
.page-home .home-hero .hero-panel .metric,
.js .page-home .hero .metric {
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.page-home .hero .metric strong,
.metric strong {
  background: none !important;
  -webkit-text-fill-color: currentColor;
  color: #2f4f7c !important;
}

/* hard-card cleanup for nav dropdown and contact page card */
.contact-card,
.page-contact .contact-card,
.contact-card.hud-card,
.nav .dropdown-menu,
.nav .dropdown-menu a {
  background: #fffdf7 !important;
  background-image: none !important;
  border: 2px solid #c8baa2 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 2026-02 UX fixes: mobile overlap, dropdown ghost row, footer touch targets, and reveal stability */
@supports (content-visibility: auto) {
  main > .section:not(.hero) {
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
  }
}

.page-home .hero .reveal {
  transition:
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-home .hero .reveal[style*="--stagger"] {
  transition-delay: calc(var(--stagger, 0) * 0.02s);
}

.page-home .hero .reveal.is-immediate {
  transition-delay: 0s !important;
  transition-duration: 0.01s !important;
}

@media (max-width: 860px) {
  .page-post .post-toc-cta {
    display: none !important;
  }

  .nav .dropdown-menu {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav .dropdown.open .dropdown-menu {
    margin-top: var(--space-sm) !important;
    padding-top: var(--space-sm) !important;
    padding-bottom: var(--space-sm) !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-color: var(--border) !important;
    max-height: 600px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .site-footer .plain a,
  .footer-trust-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .footer-trust-links a {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

/* Restore dropdown caret and strengthen brand mark after global pseudo-element reset */
.brand-mark {
  background: #2f4f7c !important;
  color: #ffffff !important;
  border: 2px solid #2f4f7c !important;
}

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

.nav .dropdown > a::after {
  content: "\25BE" !important;
  display: block !important;
  position: absolute !important;
  left: auto !important;
  right: 0.85rem;
  bottom: auto !important;
  top: 50%;
  width: auto !important;
  height: auto !important;
  background: none !important;
  border-radius: 0 !important;
  transform: translateY(-50%);
  opacity: 0.75;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}

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

.site-footer .plain a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

@media (max-width: 860px) {
  .brand {
    min-height: 44px;
  }

  .nav .lang-switcher .lang-option {
    min-height: 44px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .nav ul {
    width: min(340px, calc(100vw - 12px));
    border-radius: 12px 0 0 12px;
  }

  .nav .dropdown > a::after {
    right: 0.95rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .nav ul {
    width: 100%;
    border-radius: 0;
  }
}

/* 2026-02 header layout and floating contact contrast refinement */
.nav .lang-switcher {
  margin-left: 0.4rem;
}

.nav ul > li:nth-last-child(2) {
  margin-left: 0.35rem;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(148, 163, 184, 0.38);
}

.nav ul > li:last-child > a {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary) !important;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.18);
}

.nav ul > li:last-child > a::before {
  display: none;
}

.nav ul > li:last-child > a:hover,
.nav ul > li:last-child > a:focus-visible,
.nav ul > li:last-child > a.active {
  background: var(--primary-hover) !important;
  color: #ffffff !important;
  border-color: var(--primary-hover) !important;
}

.contact-fab a {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-fab a.contact-fab-main {
  background: #2f4f7c !important;
  color: #ffffff !important;
  border-color: #2f4f7c !important;
}

.contact-fab a.contact-fab-main:hover {
  background: #223a5b !important;
  color: #ffffff !important;
  border-color: #223a5b !important;
}

.contact-fab a.contact-fab-sub {
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--text) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}

.contact-fab a.contact-fab-sub:hover {
  background: #ffffff !important;
}

@media (max-width: 768px) {
  .nav > .lang-switcher {
    display: none !important;
  }

  .nav ul > li.nav-lang-item {
    margin: 0 0 0.55rem;
    padding: 0;
    border: 0;
  }

  .nav ul > li.nav-lang-item .lang-switcher {
    display: inline-flex !important;
    margin: 0;
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.05);
  }

  .nav ul > li.nav-lang-item .lang-option {
    min-height: 40px;
    padding: 0.5rem 0.85rem;
  }

  .nav ul > li:last-child > a {
    margin-top: 0.35rem;
    justify-content: center;
  }
}

/* 2026-02 dropdown visual refinement: unify desktop and mobile panel quality */
.nav .dropdown::before {
  display: none !important;
}

.nav .dropdown-menu {
  display: block !important;
  height: auto !important;
  background: rgba(255, 255, 255, 0.98) !important;
  background-image: none !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 12px !important;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.15),
    0 4px 12px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  padding: 0.32rem !important;
  overflow: hidden !important;
}

.nav .dropdown-menu li::before,
.nav .dropdown-menu a::before {
  display: none !important;
}

.nav .dropdown-menu a {
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--text) !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 0;
  padding: 0.62rem 0.85rem !important;
  font-size: 0.92rem;
  line-height: 1.35;
}

.nav .dropdown-menu a:first-child,
.nav .dropdown-menu a:last-child {
  border-radius: 8px !important;
}

.nav .dropdown-menu a:hover,
.nav .dropdown-menu a:focus-visible {
  background: rgba(29, 78, 216, 0.09) !important;
  color: var(--primary) !important;
  transform: none !important;
}

.nav .dropdown-menu a.active {
  background: rgba(29, 78, 216, 0.16) !important;
  color: var(--primary) !important;
  border: 0 !important;
}

@media (max-width: 860px) {
  .nav .dropdown-menu {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
    border-radius: 10px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    pointer-events: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav .dropdown.open .dropdown-menu {
    margin-top: 0.5rem !important;
    padding: 0.3rem !important;
    border-width: 1px !important;
    border-color: rgba(148, 163, 184, 0.44) !important;
    background: rgba(248, 250, 252, 0.97) !important;
    box-shadow:
      0 8px 20px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    max-height: 560px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav .dropdown-menu li + li {
    margin-top: 0.14rem;
  }

  .nav .dropdown-menu a {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.91rem;
  }
}

/* 2026-02 navigation unification system: align top-level, dropdown, language switcher, and mobile panel */
.nav > ul > li:nth-last-child(2) {
  margin-left: 0 !important;
  padding-left: 0 !important;
  border-left: 0 !important;
}

.nav > ul > li {
  margin: 0;
  padding: 0;
  border: 0;
}

.nav > ul > li > a,
.nav .lang-switcher .lang-option {
  min-height: 42px;
  padding: 0.56rem 0.95rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.4) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--text) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 3px 10px rgba(15, 23, 42, 0.07) !important;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.nav > ul > li > a:hover,
.nav > ul > li > a:focus-visible,
.nav .lang-switcher .lang-option:hover,
.nav .lang-switcher .lang-option:focus-visible {
  background: rgba(241, 245, 249, 0.95) !important;
  border-color: rgba(100, 116, 139, 0.52) !important;
  color: var(--text-strong) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(15, 23, 42, 0.1) !important;
}

.nav > ul > li > a.active {
  background: rgba(47, 79, 124, 0.14) !important;
  border-color: rgba(47, 79, 124, 0.42) !important;
  color: #2f4f7c !important;
}

.nav .lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  border-radius: 12px !important;
  background: rgba(248, 250, 252, 0.78) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.nav .lang-switcher .lang-option {
  min-width: 2.65rem;
  justify-content: center;
  text-align: center;
}

.nav .lang-switcher .lang-option.active,
.nav .lang-switcher .lang-option[aria-current="true"] {
  background: rgba(47, 79, 124, 0.14) !important;
  border-color: rgba(47, 79, 124, 0.42) !important;
  color: #2f4f7c !important;
}

.nav .dropdown > a {
  padding-right: 2.15rem !important;
}

.nav .dropdown > a::after {
  right: 0.8rem;
}

.nav .dropdown-menu > li:last-child > a {
  background: transparent !important;
  color: var(--text-strong) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.nav .dropdown-menu > li:last-child > a:hover,
.nav .dropdown-menu > li:last-child > a:focus-visible,
.nav .dropdown-menu > li:last-child > a.active {
  background: rgba(47, 79, 124, 0.14) !important;
  border-color: rgba(47, 79, 124, 0.3) !important;
  color: #2f4f7c !important;
}

.nav > ul > li:last-child > a {
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--text) !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 3px 10px rgba(15, 23, 42, 0.07) !important;
}

.nav > ul > li:last-child > a:hover,
.nav > ul > li:last-child > a:focus-visible {
  background: rgba(241, 245, 249, 0.95) !important;
  border-color: rgba(100, 116, 139, 0.52) !important;
  color: var(--text-strong) !important;
}

.nav > ul > li:last-child > a.active {
  background: rgba(47, 79, 124, 0.14) !important;
  border-color: rgba(47, 79, 124, 0.42) !important;
  color: #2f4f7c !important;
}

@media (max-width: 860px) {
  .nav > ul {
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.38);
    box-shadow:
      0 14px 36px rgba(15, 23, 42, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.84);
    padding: 0.92rem 0.72rem 1rem;
    gap: 0.52rem;
  }

  .nav > ul > li > a {
    width: 100% !important;
    justify-content: flex-start;
  }

  .nav > .lang-switcher {
    display: inline-flex !important;
    position: static;
    margin: 0 0.18rem 0 0;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
  }

  .nav > ul > li.nav-lang-item {
    margin: 0 0 0.48rem;
  }

  .nav > ul > li.nav-lang-item .lang-switcher {
    display: inline-flex !important;
    width: auto;
    margin: 0;
  }

  .nav .dropdown.open .dropdown-menu {
    margin-top: 0.45rem !important;
  }
}

/* 2026-02 homepage insights title tone unification */
.page-home .section-home-insights .split h2,
.page-home .section-home-insights .articles-grid .article-card h3 > a {
  color: #1f2730 !important;
}

.page-home .section-home-insights .articles-grid .article-card h3 > a:hover,
.page-home .section-home-insights .articles-grid .article-card h3 > a:focus-visible {
  color: #2f4f7c !important;
}

/* 2026-03 editorial polish: spacing and responsive refinements without changing the paper brochure palette */
.site-header .shell {
  gap: 0.8rem;
}

.nav {
  gap: 0.8rem;
}

.nav > ul {
  align-items: center;
  gap: 0.72rem;
}

.nav > ul > li > a,
.nav .lang-switcher .lang-option,
.btn {
  min-height: 44px;
}

.nav-toggle {
  width: 46px;
  height: 46px;
}

.page-home .hero {
  padding: clamp(52px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
}

.page-home .hero .shell {
  gap: clamp(28px, 5vw, 60px);
  align-items: stretch;
}

.page-home .hero-copy {
  display: grid;
  align-content: center;
  gap: 0.95rem;
  max-width: 620px;
}

.page-home .hero-copy > * {
  margin-top: 0;
}

.page-home .hero h1 {
  margin-bottom: 0;
  max-width: 10ch;
  line-height: 1.03;
  font-size: clamp(2.7rem, 5.6vw, 4rem);
}

.page-home .hero .lede {
  margin-bottom: 0;
  max-width: 33rem;
  line-height: 1.72;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}

.page-home .hero .btn-row {
  margin-top: 0.5rem;
}

.page-home .hero .btn {
  min-width: 170px;
  min-height: 50px;
}

.services-grid,
.articles-grid {
  gap: clamp(14px, 2vw, 20px);
}

.service-card,
.case-card,
.article-card {
  padding: clamp(1rem, 2vw, 1.3rem);
}

.service-card {
  display: grid;
  gap: 0.95rem;
}

.service-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-card-top {
  align-items: center;
  margin-bottom: 0;
}

.service-card p,
.case-card p,
.article-card p {
  margin-bottom: 0;
  line-height: 1.72;
}

.article-card h3 {
  margin-bottom: 0;
  line-height: 1.42;
  font-size: clamp(1.06rem, 1.3vw, 1.18rem);
}

.article-card .meta {
  gap: 0.55rem;
}

.home-featured-articles .split {
  align-items: end;
  gap: 1rem;
}

.site-footer {
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(44px, 6vw, 64px) 0 clamp(24px, 4vw, 36px);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 1.8rem);
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.site-footer .plain li {
  margin-bottom: 0;
}

.footer-wechat-qr {
  margin-top: 1rem;
}

.footer-qr-img {
  width: 116px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.2rem;
  align-items: start;
}

.footer-trust-links {
  justify-content: flex-end;
  align-self: center;
}

@media (max-width: 860px) {
  .nav ul {
    width: min(348px, calc(100vw - 16px));
    padding: 0.95rem;
    gap: 0.45rem;
  }

  .page-home .hero {
    padding-top: 2rem;
  }

  .page-home .hero .shell {
    gap: 1.5rem;
  }

  .page-home .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 14vw, 3.4rem);
  }

  .page-home .hero .btn {
    width: 100%;
  }

  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-trust-links {
    justify-content: flex-start;
  }

  .contact-fab {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .page-home .hero .pill {
    width: 100%;
    justify-content: center;
  }

  .page-home .hero .pill-grid {
    gap: 0.5rem;
  }
}
/* 2026-03 editorial cover polish: stronger magazine-cover hierarchy on top of the paper brochure palette */
.page-home .home-hero {
  border-bottom: 2px solid #c8baa2;
}

.page-home .home-hero .shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.page-home .hero-copy {
  padding-right: clamp(0rem, 2vw, 1.2rem);
}

.page-home .hero-copy .pill:first-child {
  align-self: flex-start;
  min-height: 40px;
  padding: 0.45rem 1.15rem;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .hero h1 {
  max-width: 9ch;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.page-home .hero .lede {
  color: #55616f;
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
}

.page-home .hero .btn-row {
  padding-top: 0.15rem;
}

.page-home .hero .pill-grid {
  padding-top: 0.15rem;
}

.page-home .home-hero .hero-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 1.7rem);
}

.page-home .home-hero .hero-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-home .home-hero .hero-panel > .muted {
  margin-top: 0;
  padding-top: 0.95rem;
  border-top: 1px solid #ddd0bb;
  color: #5a6572;
}

.page-home .home-hero .hero-panel .metrics {
  gap: 0.9rem;
}

.page-home .home-hero .hero-panel .metric {
  min-height: 130px;
  padding: 1.05rem 1rem;
  text-align: left;
}

.page-home .home-hero .hero-panel .metric strong {
  font-size: clamp(1.9rem, 2.2vw, 2.3rem);
}

.page-home .home-hero .hero-panel .metric .muted {
  line-height: 1.45;
}

.page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .split {
  align-items: end;
  gap: 1rem;
}

.page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .split > div:first-child h2,
.page-home .home-featured-articles .split h2 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  letter-spacing: -0.04em;
}

.page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .split > div:first-child h2::after,
.page-home .home-featured-articles .split h2::after {
  content: "";
  flex: 1 1 auto;
  min-width: 56px;
  height: 1px;
  background: #c8baa2;
}

.page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .split > div:first-child .muted,
.page-home .home-featured-articles .split .muted {
  max-width: 44rem;
  color: #5c6774;
}

.page-home .home-services-grid {
  align-items: stretch;
}

.page-home .home-services-grid .service-card {
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
}

.page-home .home-services-grid .service-card .service-card-media {
  aspect-ratio: 16 / 10;
  border-radius: 6px !important;
}

.page-home .home-services-grid .service-card .badge,
.page-home .home-cases-grid .case-card .badge,
.article-card .badge {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.page-home .home-services-grid .service-card h3,
.page-home .home-cases-grid .case-card h3,
.article-card h3 {
  color: #18202a;
}

.page-home .home-services-grid .service-card .list-check,
.article-card .meta {
  padding-top: 0.65rem;
  border-top: 1px solid #ddd0bb;
}

.page-home .home-cases-grid .case-card,
.article-card {
  box-shadow: inset 0 3px 0 #ded2be !important;
}

.page-home .home-cases-grid .case-card h3 {
  font-size: clamp(1.26rem, 1.7vw, 1.48rem);
  line-height: 1.28;
}

.article-card {
  grid-template-rows: auto auto 1fr;
}

.article-card p {
  color: #5a6674;
}

body[data-category] .hero {
  border-bottom: 2px solid #c8baa2;
}

.filter-row {
  gap: 0.65rem;
}

.filter-row button,
.filter-row a {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-weight: 700;
}

.blog-tools {
  padding: 1rem;
}

.blog-tools .blog-search {
  min-height: 48px;
  font-size: 1rem;
}

.pager-info {
  font-weight: 700;
}

.site-footer .brand {
  margin-bottom: 0.4rem;
}

.site-footer h4 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6874;
}

.footer-grid > div:first-child {
  padding-right: clamp(0rem, 1vw, 0.75rem);
}

.footer-bottom {
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 2px solid #c8baa2;
}

.footer-bottom > span:first-child {
  color: #1f2730;
  font-weight: 700;
}

.footer-bottom > span:nth-child(2) {
  color: #5a6572;
}

@media (max-width: 860px) {
  .page-home .home-hero .shell {
    grid-template-columns: 1fr;
  }

  .page-home .hero-copy {
    padding-right: 0;
  }

  .page-home .hero h1 {
    max-width: none;
    line-height: 0.96;
  }

  .page-home .home-hero .hero-panel {
    gap: 0.8rem;
  }

  .page-home .home-hero .hero-panel .metric {
    min-height: 116px;
  }

  .page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .split > div:first-child h2::after,
  .page-home .home-featured-articles .split h2::after {
    display: none;
  }

  .filter-row {
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .page-home .hero h1 {
    font-size: clamp(2.6rem, 15vw, 3.45rem);
  }

  .page-home .hero-copy .pill:first-child {
    width: 100%;
    justify-content: center;
  }

  .page-home .home-hero .hero-panel .metric {
    text-align: center;
  }
}

/* 2026-03 editorial cover polish v2: warmer magazine hierarchy without changing the paper palette */
.page-home .hero-copy {
  position: relative;
  gap: clamp(0.8rem, 1.9vw, 1.12rem);
}

.page-home .hero-copy::after {
  content: "";
  display: block;
  width: min(160px, 36%);
  height: 2px;
  margin-top: 0.1rem;
  background: #2f4f7c;
}

.page-home .hero-copy .pill:first-child {
  background: #f7f1e6 !important;
  box-shadow: inset 0 0 0 1px #ddd0bb;
}

.page-home .hero .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .hero .pill-grid {
  gap: 0.65rem;
}

.page-home .hero .pill-grid .pill {
  min-height: 36px;
  padding-inline: 0.9rem;
  font-weight: 700;
  color: #44505d;
}

.page-home .home-hero .hero-panel {
  border-top-width: 3px !important;
  gap: 1rem;
}

.page-home .home-hero .hero-panel .metric {
  min-height: 136px;
  border-top-width: 3px !important;
  background: #fffaf1 !important;
}

.page-home .home-hero .hero-panel .metric strong {
  display: block;
  margin: 0.16rem 0 0.24rem;
}

.page-home .home-hero .hero-panel .metric .muted:first-child {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: #66717d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page-home .section-home-services .split > div:first-child h2::before,
.page-home .section-home-compare .split > div:first-child h2::before,
.page-home .section-home-cases .split > div:first-child h2::before,
.page-home .section-home-process .split > div:first-child h2::before,
.page-home .section-home-insights .split > div:first-child h2::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #c8baa2;
  border-radius: 999px;
  background: #fffaf1;
  color: #5d6874;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-home .section-home-services .split > div:first-child h2::before {
  content: "01";
}

.page-home .section-home-compare .split > div:first-child h2::before {
  content: "02";
}

.page-home .section-home-cases .split > div:first-child h2::before {
  content: "03";
}

.page-home .section-home-process .split > div:first-child h2::before {
  content: "04";
}

.page-home .section-home-insights .split > div:first-child h2::before {
  content: "05";
}

.page-home .home-services-grid .service-card,
.page-home .home-cases-grid .case-card,
.article-card,
.page-home .home-process-timeline .step,
.blog-tools {
  border-top-width: 3px !important;
}

.page-home .home-services-grid .service-card:first-child,
.page-home .home-cases-grid .case-card:first-child,
.page-home .section-home-insights .articles-grid > .article-card:first-child,
.page-home .home-process-timeline .step:first-child,
.blog-tools {
  border-top-color: #2f4f7c !important;
}

.page-home .home-services-grid .service-card h3,
.page-home .home-cases-grid .case-card h3,
.article-card h3 {
  line-height: 1.2;
}

.page-home .home-services-grid .service-card p,
.page-home .home-cases-grid .case-card p,
.article-card p {
  line-height: 1.65;
}

.page-home .home-services-grid .service-card .service-card-top {
  align-items: start;
}

.page-home .home-services-grid .service-card .service-icon {
  margin-top: 0.1rem;
}

.page-home .home-process-timeline .step::before {
  background: #2f4f7c !important;
  color: #ffffff !important;
  border-color: #2f4f7c !important;
  box-shadow: none !important;
}

.page-home .section-home-insights .articles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-home .section-home-insights .articles-grid > .article-card:first-child {
  grid-column: span 2;
}

.page-home .section-home-insights .articles-grid > .article-card:first-child h3 {
  font-size: clamp(1.45rem, 2vw, 1.72rem);
}

.page-home .section-home-insights .articles-grid > .article-card:first-child p {
  max-width: 54ch;
}

body[data-category] .hero .shell > div {
  display: grid;
  gap: clamp(0.75rem, 1.8vw, 1rem);
}

body[data-category] .hero h1 {
  max-width: 12ch;
  margin-bottom: 0;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

body[data-category] .hero .lede {
  max-width: 42rem;
  color: #5a6572;
}

.filter-row {
  flex-wrap: wrap;
  align-items: center;
}

.filter-row button,
.filter-row a {
  border-radius: 999px;
}

.blog-tools {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.blog-tools .blog-search {
  background: #fffaf1;
  border: 1px solid #ddd0bb;
  border-radius: 999px;
  padding-inline: 1rem;
}

.blog-tools .blog-search-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin-top: -0.1rem;
}

.footer-grid {
  gap: clamp(1rem, 3vw, 2rem);
}

.footer-wechat-qr {
  padding: 0.75rem;
  border: 2px solid #c8baa2;
  border-radius: 10px;
  background: #fffaf1;
}

.footer-qr-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4f5b69;
}

.footer-qr-img {
  border: 1px solid #ddd0bb;
  padding: 0.35rem;
  background: #fffdf7;
}

@media (max-width: 1040px) {
  .page-home .section-home-insights .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .section-home-insights .articles-grid > .article-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .page-home .hero-copy::after {
    width: 120px;
  }

  .page-home .home-hero .hero-panel .metric {
    min-height: 122px;
  }
}

@media (max-width: 640px) {
  .page-home .section-home-insights .articles-grid {
    grid-template-columns: 1fr;
  }

  .page-home .section-home-insights .articles-grid > .article-card:first-child {
    grid-column: span 1;
  }

  body[data-category] .hero h1 {
    max-width: none;
  }

  .blog-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-home .hero-copy::after {
    width: 96px;
  }

  .page-home .hero .btn-row {
    gap: 0.55rem;
  }

  .page-home .home-hero .hero-panel .metric {
    min-height: 112px;
  }
}

/* 2026-03 premium editorial finish: stronger first-screen sophistication within the warm paper palette */
.site-header {
  box-shadow: 0 4px 18px rgba(88, 67, 40, 0.04) !important;
}

.site-header .shell {
  min-height: 74px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.025em;
}

.nav a {
  min-height: 42px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .home-hero {
  padding-top: clamp(72px, 8vw, 118px);
}

.page-home .home-hero .shell {
  position: relative;
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #d9ccb8;
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow:
    0 20px 46px rgba(88, 67, 40, 0.07),
    0 3px 12px rgba(88, 67, 40, 0.04) !important;
}

.page-home .home-hero .shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(200, 186, 162, 0.72);
  border-radius: 16px;
  pointer-events: none;
}

.page-home .hero-copy {
  padding-right: clamp(1.1rem, 3vw, 2rem);
  border-right: 1px solid #ddd0bb;
}

.page-home .hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 86px;
  border-top: 2px solid #c8baa2;
  border-left: 2px solid #c8baa2;
  opacity: 0.82;
}

.page-home .hero-copy .pill:first-child {
  min-height: 38px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-home .hero h1 {
  max-width: 7ch;
  font-size: clamp(3.9rem, 7vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.page-home .hero .lede {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  line-height: 1.78;
  color: #4f5b69;
}

.page-home .hero .btn-row .btn {
  min-height: 48px;
  padding-inline: 1.15rem;
}

.page-home .hero .pill-grid {
  padding-top: 0.55rem;
  border-top: 1px solid #ddd0bb;
}

.page-home .hero .pill-grid .pill {
  background: #fffaf1 !important;
}

.page-home .hero-copy::after {
  width: min(180px, 44%);
  margin-top: 0.55rem;
}

.page-home .home-hero .hero-panel {
  position: relative;
  padding-top: clamp(2.75rem, 4vw, 3.2rem);
  background: #fffdf7 !important;
  box-shadow:
    0 16px 34px rgba(88, 67, 40, 0.06),
    0 2px 10px rgba(88, 67, 40, 0.035) !important;
}

.page-home .home-hero .hero-panel::before {
  content: "精选指标" !important;
  position: absolute;
  top: 1rem;
  left: 1.35rem;
  display: block !important;
  color: #5d6874;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.page-home .home-hero .hero-panel h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
}

.page-home .home-hero .hero-panel .metric {
  border-color: #d7c9b4 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(88, 67, 40, 0.05) !important;
}

.page-home .home-hero .hero-panel .metric .muted:last-child {
  color: #586371;
}

.page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .shell,
body[data-category] main > .section > .shell {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid #ddd0bb;
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.56);
  box-shadow:
    0 16px 34px rgba(88, 67, 40, 0.05),
    0 2px 10px rgba(88, 67, 40, 0.03);
}

.page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .shell::before,
body[data-category] main > .section > .shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200, 186, 162, 0.62);
  border-radius: 14px;
  pointer-events: none;
}

.page-home .home-services-grid .service-card,
.page-home .home-cases-grid .case-card,
.page-home .home-compare-layout > .card,
.page-home .home-process-timeline .step,
.article-card,
.blog-start-here,
.blog-tools,
.page-home .home-cta .cta-card,
.footer-bottom,
.footer-wechat-qr {
  box-shadow:
    0 14px 30px rgba(88, 67, 40, 0.06),
    0 2px 8px rgba(88, 67, 40, 0.035) !important;
}

.page-home .home-services-grid .service-card,
.page-home .home-cases-grid .case-card,
.article-card,
.page-home .home-compare-layout > .card,
.page-home .home-process-timeline .step,
.blog-start-here,
.blog-tools {
  overflow: hidden;
  border-radius: 14px !important;
}

.page-home .home-services-grid .service-card h3,
.page-home .home-cases-grid .case-card h3 {
  font-size: clamp(1.34rem, 1.75vw, 1.62rem);
}

.page-home .home-services-grid .service-card .badge,
.page-home .home-cases-grid .case-card .badge,
.article-card .badge {
  background: #f0e6d6 !important;
  color: #2f4f7c !important;
  border-color: #d5c6ad !important;
}

.page-home .home-compare-layout > .card:first-child h3,
.page-home .home-process-timeline .step h3,
.page-home .home-cta .cta-card h3 {
  letter-spacing: -0.04em;
}

.page-home .home-cases-grid .case-card p,
.page-home .home-compare-layout > .card p,
.page-home .home-process-timeline .step p,
.article-card p {
  color: #55616f;
}

.page-home .home-featured-articles .articles-grid > .article-card:first-child,
body[data-category] main > .section > .shell > .articles-grid > .article-card:first-child {
  background: #fffaf1 !important;
}

.page-home .home-featured-articles .articles-grid > .article-card:first-child h3,
body[data-category] main > .section > .shell > .articles-grid > .article-card:first-child h3 {
  font-size: clamp(1.52rem, 2vw, 1.94rem);
  line-height: 1.1;
}

.page-home .home-cta .shell {
  padding-inline: 0;
}

.page-home .home-cta .cta-card {
  position: relative;
  overflow: hidden;
  background: #1f2730 !important;
  border-color: #1f2730 !important;
  border-radius: 22px !important;
  color: #ffffff !important;
  box-shadow: 0 24px 44px rgba(31, 39, 48, 0.18) !important;
}

.page-home .home-cta .cta-card::before {
  content: "" !important;
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: block !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  pointer-events: none;
}

.page-home .home-cta .cta-card .eyebrow,
.page-home .home-cta .cta-card .muted {
  color: rgba(244, 239, 228, 0.76) !important;
}

.page-home .home-cta .cta-card h3 {
  color: #ffffff !important;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.page-home .home-cta .cta-card .btn.primary {
  background: #fffdf7 !important;
  color: #1f2730 !important;
  border-color: #fffdf7 !important;
}

.page-home .home-cta .cta-card .btn.ghost {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}

body[data-category] .hero {
  padding-top: clamp(58px, 7vw, 88px);
}

body[data-category] .hero .shell > div {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #ddd0bb;
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.68);
  box-shadow:
    0 16px 34px rgba(88, 67, 40, 0.05),
    0 2px 10px rgba(88, 67, 40, 0.03);
}

body[data-category] .hero .shell > div::after {
  content: "";
  width: 120px;
  height: 2px;
  background: #2f4f7c;
}

body[data-category] .hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 5.4vw, 4.4rem);
  line-height: 0.92;
}

body[data-category] .hero .lede {
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  line-height: 1.72;
}

.blog-start-here {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  background: #fffaf1 !important;
  border-radius: 16px !important;
}

.blog-start-here h2 {
  letter-spacing: -0.04em;
}

.blog-start-here-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.15rem);
}

.blog-start-here-actions {
  padding-top: 0.85rem;
  border-top: 1px solid #ddd0bb;
  align-items: center;
}

body[data-category] main > .section > .shell > .articles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.95rem, 1.8vw, 1.2rem);
}

body[data-category] main > .section > .shell > .articles-grid > .article-card:first-child {
  grid-column: span 2;
  padding: clamp(1.2rem, 2vw, 1.45rem);
}

body[data-category] main > .section > .shell > .articles-grid > .article-card:first-child p {
  max-width: 56ch;
}

.article-card .meta > span:not(.badge),
.article-card .meta .tag {
  background: #fffaf1;
  border-color: #ddd0bb;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd0bb;
}

.site-footer {
  margin-top: clamp(68px, 8vw, 104px);
}

.footer-grid > div h4 {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #ddd0bb;
}

.footer-bottom {
  border-radius: 14px;
  padding: 1rem 1.15rem;
  background: #fffaf1 !important;
}

.footer-wechat-qr {
  align-self: start;
  background: #fffaf1;
}

@media (max-width: 1080px) {
  .page-home .home-hero .shell {
    padding: 1.35rem;
  }

  body[data-category] main > .section > .shell > .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-home .home-hero .shell::before,
  .page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .shell::before,
  body[data-category] main > .section > .shell::before {
    inset: 10px;
  }

  .page-home .hero-copy {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid #ddd0bb;
    padding-bottom: 1rem;
  }

  .page-home .hero h1 {
    max-width: none;
  }

  .blog-start-here-grid,
  body[data-category] main > .section > .shell > .articles-grid {
    grid-template-columns: 1fr;
  }

  body[data-category] main > .section > .shell > .articles-grid > .article-card:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .site-header .shell {
    min-height: 68px;
  }

  .page-home .home-hero .shell,
  .page-home :is(.section-home-services, .section-home-compare, .section-home-cases, .section-home-process, .section-home-insights) .shell,
  body[data-category] .hero .shell > div,
  body[data-category] main > .section > .shell {
    padding: 1rem;
    border-radius: 16px;
  }

  .page-home .hero-copy::before {
    width: 64px;
    height: 64px;
  }

  .page-home .hero h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  body[data-category] .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .pager {
    flex-direction: column;
    align-items: stretch;
  }

  .pager .btn,
  .pager .pager-info {
    justify-content: center;
    text-align: center;
  }
}
