/* ==========================================================================
   简码工坊 · 极简精密工程设计系统 (Editorial Swiss Studio Design System)
   克制、高信任、零廉价霓虹渐变与 Emoji，专注内容清晰度与商业转化
   ========================================================================== */

:root,
[data-theme="dual"],
[data-theme="light"] {
  /* Core Palette — Calm Charcoal Ink + Authoritative Cobalt Blue */
  --brand-primary: #1D4ED8;
  --brand-primary-hover: #1E40AF;
  --brand-primary-soft: #EFF6FF;
  --brand-ink: #111827;
  --brand-ink-hover: #1F2937;
  --brand-emerald: #059669;
  --brand-emerald-soft: #ECFDF5;
  --brand-amber: #B45309;
  --brand-amber-soft: #FFFBEB;
  --brand-rose: #DC2626;

  /* Surfaces */
  --bg-page: #FFFFFF;
  --bg-subtle: #F7F8FA;
  --bg-surface: #F3F4F6;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAFB;
  --bg-elevated: #FFFFFF;
  --bg-stage: #F1F4F9;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-on-dark: #F9FAFB;
  --text-on-dark-muted: #9CA3AF;

  /* Hairline Borders & Subtle Elevation */
  --border-color: #E5E7EB;
  --border-strong: #D1D5DB;
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 18px 42px rgba(17, 24, 39, 0.10);

  /* Header */
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-text: #111827;
  --nav-text-muted: #4B5563;
  --nav-border: #E5E7EB;

  /* Layout & Radius (Alibaba/Tencent Cloud Enterprise Sharp Precision: 0px / 2px / 4px) */
  --container-max: 1200px;
  --radius-xs: 0px;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 4px;
  --radius-xl: 4px;
  --radius-full: 2px;

  /* Typography */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --brand-primary: #3B82F6;
  --brand-primary-hover: #2563EB;
  --brand-primary-soft: rgba(59, 130, 246, 0.14);
  --brand-ink: #F9FAFB;
  --brand-ink-hover: #E5E7EB;
  --bg-page: #0D1117;
  --bg-subtle: #111827;
  --bg-surface: #161E2E;
  --bg-card: #141B29;
  --bg-card-hover: #1A2334;
  --bg-elevated: #182032;
  --bg-stage: #0F1623;
  --text-primary: #F3F4F6;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --border-color: rgba(156, 163, 175, 0.18);
  --border-strong: rgba(156, 163, 175, 0.30);
  --nav-bg: rgba(13, 17, 23, 0.92);
  --nav-text: #F9FAFB;
  --nav-text-muted: #9CA3AF;
  --nav-border: rgba(156, 163, 175, 0.18);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.ui-icon {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

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

/* ==========================================================================
   Layout & Sections
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 44px 0;
}

.section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-dark {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.eyebrow-ai {
  color: var(--brand-primary);
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

/* Grids & Flex Helpers */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }

/* ==========================================================================
   Buttons — Clean, High-Contrast, Zero Neon Glow
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

.btn-primary {
  background: var(--brand-ink);
  color: #FFFFFF;
  border-color: var(--brand-ink);
}

.btn-primary:hover {
  background: var(--brand-ink-hover);
  border-color: var(--brand-ink-hover);
}

[data-theme="dark"] .btn-primary {
  background: #F9FAFB;
  color: #111827;
  border-color: #F9FAFB;
}

/* Formerly neon gradient — now clean authoritative Cobalt Blue */
.btn-ai {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.btn-ai:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.btn-emerald {
  background: var(--brand-emerald);
  color: #FFFFFF;
  border-color: var(--brand-emerald);
}

.btn-emerald:hover {
  background: #047857;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
}

.btn-ghost-dark {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost-dark:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
}

/* ==========================================================================
   Header & Navigation — Crisp White Architectural Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--nav-text);
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  background: #111827;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-emerald-soft);
  color: #065F46;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #A7F3D0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--nav-text);
  background: var(--bg-subtle);
}

.nav-links a.active {
  color: var(--brand-primary);
  font-weight: 600;
  background: var(--brand-primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero — Clean Editorial Canvas with Subtle Architectural Grid
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--bg-page);
  background-image:
    linear-gradient(to right, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text-primary);
  padding: 58px 0 60px;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .hero {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 40px;
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 590px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.hero-kpi-val {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Right Panel — Clean Architectural Path Finder Card (Zero Mac Traffic Dots!) */
.hero-console {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.hero-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.hero-console-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-path-list {
  display: grid;
  gap: 10px;
}

.hero-path-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hero-path-item:hover {
  border-color: var(--brand-primary);
  background: var(--bg-card);
}

.hero-path-left {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.hero-path-icon {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-path-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.hero-path-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-path-price {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-primary);
  white-space: nowrap;
  padding-top: 2px;
}

.hero-console-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Page Banner (Subpages — Calm Paper Header, Zero Dark Purple Box!)
   ========================================================================== */
.page-banner {
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 36px 0 34px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-lead {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 100%;
  line-height: 1.7;
}

/* ==========================================================================
   Cards, Badges, Tags
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.card-dark:hover {
  border-color: var(--brand-primary);
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
}

.card-title a:hover {
  color: var(--brand-primary);
}

.card-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  margin-bottom: 14px;
}

.icon-box-ai {
  background: var(--brand-primary-soft);
  border-color: #BFDBFE;
  color: var(--brand-primary);
}

.icon-box-emerald {
  background: var(--brand-emerald-soft);
  border-color: #A7F3D0;
  color: var(--brand-emerald);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.badge-blue {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-color: #BFDBFE;
}

.badge-ai {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-color: #BFDBFE;
}

.badge-emerald {
  background: var(--brand-emerald-soft);
  color: #065F46;
  border-color: #A7F3D0;
}

.badge-amber {
  background: var(--brand-amber-soft);
  color: #92400E;
  border-color: #FDE68A;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: border-color 0.14s ease, color 0.14s ease;
}

a.tag:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Miniature Product UI Preview Canvas (Authentic Visual Thumbnails for Cases & Templates)
   ========================================================================== */
.mini-ui {
  border-radius: var(--radius-md);
  background: #F1F4F9;
  border: 1px solid var(--border-color);
  padding: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  user-select: none;
}

[data-theme="dark"] .mini-ui {
  background: #0F172A;
}

.mini-ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-ui-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mini-ui-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.mini-ui-split {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 9px;
  min-height: 104px;
}

.mini-ui-sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-line {
  height: 6px;
  border-radius: 2px;
  background: #E5E7EB;
}

.mini-line.active { background: #1D4ED8; }
.mini-line.strong { height: 9px; background: #1F2937; }
.mini-line.w-90 { width: 90%; }
.mini-line.w-85 { width: 85%; }
.mini-line.w-80 { width: 80%; }
.mini-line.w-75 { width: 75%; }
.mini-line.w-70 { width: 70%; }
.mini-line.w-65 { width: 65%; }
.mini-line.w-60 { width: 60%; }
.mini-line.w-55 { width: 55%; }
.mini-line.w-50 { width: 50%; }
.mini-line.w-40 { width: 40%; }

.mini-ui-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mini-chat-u {
  align-self: flex-end;
  background: #111827;
  color: #FFFFFF;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 2px;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-chat-a {
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-chat-ref {
  font-size: 9.5px;
  font-weight: 600;
  color: #1D4ED8;
}

.mini-mobile-stage {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 10px;
  align-items: stretch;
  min-height: 104px;
}

.mini-phone {
  background: var(--bg-card);
  border: 2px solid #1F2937;
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-phone-top {
  width: 24px;
  height: 3px;
  background: #D1D5DB;
  border-radius: 99px;
  margin: 0 auto 2px;
}

.mini-phone-hero {
  height: 22px;
  border-radius: 4px;
  background: #1D4ED8;
  opacity: 0.14;
  border: 1px solid rgba(29, 78, 216, 0.25);
}

.mini-phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.mini-phone-grid span {
  height: 12px;
  border-radius: 3px;
  background: #E5E7EB;
}

.mini-phone-row {
  height: 10px;
  border-radius: 3px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
}

.mini-phone-row.short { width: 70%; }

.mini-side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.mini-kpi-label {
  font-size: 10px;
  color: var(--text-muted);
}

.mini-kpi-num {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
}

.mini-tag-strip {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.mini-tag-strip span {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--brand-emerald-soft);
  color: #065F46;
}

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.mini-stat-row div {
  height: 24px;
  border-radius: 2px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  padding: 5px;
}

.mini-stat-row span {
  display: block;
  width: 60%;
  height: 5px;
  border-radius: 2px;
  background: #1D4ED8;
  opacity: 0.6;
}

.mini-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-table-row {
  height: 12px;
  border-radius: 2px;
  background: #F3F4F6;
}

.mini-table-row.head {
  background: #E5E7EB;
  height: 10px;
}

.mini-web-canvas {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 9px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-web-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.mini-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #111827;
}

.mini-web-hero {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 0;
}

.mini-web-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}

.mini-web-cols div {
  border-radius: 2px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  min-height: 26px;
}

/* ==========================================================================
   Case Live Interactive Simulator — Clean Architectural Showcase
   ========================================================================== */
.home-case-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case-switch-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.case-switch-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.case-switch-btn.active {
  background: var(--brand-ink);
  color: #FFFFFF;
  border-color: var(--brand-ink);
}

.sim-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.sim-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.sim-tab {
  padding: 6px 13px;
  border-radius: 2px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.sim-tab:hover {
  color: var(--text-primary);
}

.sim-tab.active {
  background: var(--brand-ink);
  color: #FFFFFF;
}

.sim-stage {
  padding: 26px 24px;
  background: var(--bg-stage);
  min-height: 440px;
}

.sim-mobile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.iphone-bezel {
  width: 296px;
  margin: 0 auto;
  background: #18181B;
  border-radius: 36px;
  padding: 10px;
  border: 2px solid #27272A;
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.18);
}

.iphone-screen {
  background: #F8FAFC;
  color: #111827;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
  position: relative;
}

.iphone-notch {
  height: 26px;
  background: #111827;
  color: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
}

.iphone-island {
  width: 68px;
  height: 14px;
  border-radius: 99px;
  background: #000000;
}

.iphone-appbar {
  padding: 10px 14px;
  background: #111827;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iphone-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.iphone-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 11px;
  margin-bottom: 9px;
  transition: border-color 0.14s ease;
  cursor: pointer;
}

.iphone-card:hover {
  border-color: var(--brand-primary);
}

.iphone-tabbar {
  display: flex;
  border-top: 1px solid #E5E7EB;
  background: #FFFFFF;
  padding: 6px 4px;
}

.iphone-tab-btn {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  padding: 4px 2px;
}

.iphone-tab-btn.active {
  color: var(--brand-primary);
}

.iphone-toast {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 58px;
  background: #111827;
  color: #FFFFFF;
  padding: 9px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.sim-side-notes {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  color: var(--text-primary);
}

.sim-side-notes h4 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text-primary);
}

.sim-side-notes ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.8;
}

/* SaaS Browser Simulator */
.saas-browser {
  background: #FFFFFF;
  color: #111827;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.saas-browser-bar {
  background: #F3F4F6;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.saas-url-pill {
  flex: 1;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: #4B5563;
}

.saas-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 390px;
  min-width: 0;
}

.saas-shell > * {
  min-width: 0;
}

.saas-sidebar {
  background: #111827;
  color: #E5E7EB;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.saas-menu-btn {
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border-radius: 2px;
  border: 0;
  background: transparent;
  color: #D1D5DB;
  font-size: 13px;
  font-weight: 500;
}

.saas-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.saas-menu-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  font-weight: 600;
}

.saas-main {
  padding: 18px 20px;
  background: #FAFAFB;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.saas-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.saas-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 12px;
}

.saas-table-wrap {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  overflow-x: auto;
}

.saas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.saas-table th, .saas-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #F3F4F6;
  overflow-wrap: anywhere;
}

.saas-table th {
  background: #F9FAFB;
  color: #4B5563;
  font-weight: 600;
  font-size: 12px;
}

/* AI Agent Sandbox Simulator */
.ai-sandbox {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  min-height: 440px;
  min-width: 0;
}

.ai-sandbox-prompts {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.ai-preset-btn {
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.45;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: all 0.14s ease;
}

.ai-preset-text {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.ai-preset-btn:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.ai-sandbox-chat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.ai-sandbox-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  min-height: 310px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ai-quickstart-card {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 2px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ai-quickstart-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.ai-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-quickstart-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 10px 11px;
  border-radius: 2px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-quickstart-item:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.08);
}

.ai-quickstart-item > div {
  min-width: 0;
  flex: 1;
}

.ai-quickstart-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ai-quickstart-item span {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  margin-top: 3px;
}

.ai-quickstart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid #E2E8F0;
  font-size: 11.5px;
  color: #64748B;
}

.ai-quickstart-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sandbox-bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 2px;
  font-size: 13.5px;
  line-height: 1.65;
}

.sandbox-bubble.user {
  align-self: flex-end;
  background: #111827;
  color: #FFFFFF;
}

.sandbox-bubble.bot {
  align-self: flex-start;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.sandbox-citation {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 2px;
  background: var(--brand-primary-soft);
  border: 1px solid #BFDBFE;
  font-size: 12px;
  color: #1E3A8A;
}

.sandbox-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.sim-footer-bar {
  padding: 14px 22px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Template Picker, Configurator & Compare Drawer
   ========================================================================== */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  padding: 6px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.14s ease;
}

.filter-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--brand-ink);
  color: #FFFFFF;
  border-color: var(--brand-ink);
}

.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.template-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.template-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.price-figure {
  font-size: 21px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Template Detail Configurator */
.tpl-detail-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: start;
}

.device-stage-frame {
  background: var(--bg-stage);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.device-viewport {
  margin: 0 auto;
  background: #FFFFFF;
  color: #111827;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  transition: max-width 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.device-viewport[data-device="desktop"], .device-viewport.mode-pc { max-width: 100%; }
.device-viewport[data-device="tablet"], .device-viewport.mode-tablet { max-width: 560px; }
.device-viewport[data-device="mobile"], .device-viewport.mode-mobile { max-width: 340px; border: 4px solid #1F2937; border-radius: 4px; }

.configurator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 84px;
}

.edition-option, .addon-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  margin-bottom: 9px;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.edition-option:hover, .addon-option:hover {
  border-color: var(--border-strong);
}

.edition-option.selected, .addon-option.selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.price-summary-box {
  background: #111827;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 18px 0 14px;
}

/* Compare Bar */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120px);
  z-index: 65;
  background: #111827;
  color: #FFFFFF;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  border: 1px solid #374151;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.22s ease;
  max-width: calc(100vw - 32px);
}

.compare-bar.visible {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   AI Quote Studio — Real Engineering Quotation Sheet
   ========================================================================== */
.quote-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

.quote-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.biz-card {
  padding: 13px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.biz-card:hover {
  border-color: var(--border-strong);
}

.biz-card.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.feature-item.checked {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

/* Engineering Quotation Sheet (Clean White Paper + Ink Header) */
.quote-black-card {
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 84px;
  overflow: hidden;
}

.quote-sheet-head {
  background: #111827;
  color: #FFFFFF;
  padding: 20px 24px;
}

.quote-sheet-body {
  padding: 20px 24px 24px;
}

.quote-price-hero {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 6px 0;
}

.quote-stream-output {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-height: 220px;
  max-height: 440px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* ==========================================================================
   Tables, TL;DR, FAQ & Prose (GEO Answer-First Blocks)
   ========================================================================== */
.tldr-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.tldr-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 13.5px;
}

.spec-table th, .spec-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.spec-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-primary);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; color: var(--text-muted); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; color: var(--brand-primary); }

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.prose h2 { margin: 28px 0 12px; font-size: 21px; font-weight: 700; }
.prose h3 { margin: 20px 0 10px; font-size: 17px; font-weight: 700; }
.prose p { margin: 0 0 14px; color: var(--text-secondary); line-height: 1.82; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-secondary); }
.prose li { margin-bottom: 6px; }
.prose code {
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ==========================================================================
   Compact Non-Overlapping Floating Customer Service Pill & Chat Drawer
   ========================================================================== */
.floating-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.dock-rail {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.floating-dock:hover .dock-rail,
.floating-dock:focus-within .dock-rail {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.dock-btn:last-child {
  border-bottom: 0;
}

.dock-btn:hover {
  background: var(--bg-subtle);
  color: var(--brand-primary);
}

.dock-btn-ai {
  background: #111827;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 9px 14px;
  border: 1px solid #111827;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.dock-btn-ai:hover {
  background: #1F2937;
  color: #FFFFFF;
}

@media (max-width: 1380px) {
  .floating-dock { right: 10px; bottom: 16px; }
  .dock-btn-ai {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    position: relative;
  }
  .dock-btn-ai > span:not(.pulse-dot) {
    display: none;
  }
  .dock-btn-ai .pulse-dot {
    position: absolute;
    top: 7px;
    right: 7px;
  }
}

.grid > *,
.card,
.tpl-detail-grid > *,
.quote-layout > *,
.device-stage-frame,
.device-viewport,
.tldr-box,
.configurator-card,
.quote-black-card,
.quote-sheet-body,
.quote-sheet-body > * {
  min-width: 0;
  max-width: 100%;
}

.source-tree-pre {
  max-width: 100%;
  overflow-x: auto;
}

.quote-sub-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

main#main-content {
  padding-bottom: 48px;
}

.chat-msg strong {
  font-weight: 700;
  color: inherit;
}

.chat-msg code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.08);
}

.ai-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: 376px;
  max-width: calc(100vw - 24px);
  height: 530px;
  max-height: calc(100vh - 108px);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 80;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-panel.open {
  display: flex;
}

.ai-chat-head {
  padding: 14px 16px;
  background: #111827;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 2px;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.chat-msg.user {
  align-self: flex-end;
  background: #111827;
  color: #FFFFFF;
}

.chat-msg.assistant {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.chat-action-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  width: 92%;
}

.chat-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.chat-action-card:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.chat-action-card.primary {
  background: var(--brand-primary-soft);
  border-color: #93C5FD;
  color: #1E40AF;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.chat-chip {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
}

.chat-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.ai-chat-foot {
  padding: 10px 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Modals & Empty States
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 24, 39, 0.52);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.modal-lg { max-width: 960px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer — Clean Architectural Footer
   ========================================================================== */
.site-footer {
  background: #111827;
  color: #D1D5DB;
  padding: 56px 0 28px;
  border-top: 1px solid #1F2937;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12.5px;
  color: #9CA3AF;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile 375px)
   ========================================================================== */
@media (max-width: 1380px) {
  :root,
  [data-theme="dual"],
  [data-theme="light"] {
    --container-max: 1160px;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .tpl-detail-grid,
  .quote-layout,
  .sim-mobile-layout,
  .ai-sandbox {
    grid-template-columns: 1fr;
  }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .configurator-card, .quote-black-card { position: static; }
  .nav-status-pill { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 36px 0 40px; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-2, .grid-3, .grid-4, .biz-grid, .feature-grid { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saas-shell { grid-template-columns: 1fr; }
  .saas-kpi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .floating-dock { right: 12px; bottom: 14px; }
  .dock-rail { display: none; }
  .ai-chat-panel { right: 10px; left: 10px; width: auto; bottom: 68px; height: 74vh; }
  .iphone-bezel { width: 100%; max-width: 296px; }
}

/* ==========================================================================
   Domestic Template & Case Portal Components (mobanwang / adminbuy / bootstrapmb style)
   ========================================================================== */
.portal-search-band {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 28px 0 24px;
}

[data-theme="dark"] .portal-search-band {
  background: var(--bg-subtle);
}

.portal-search-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.portal-headline {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.portal-subline {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.portal-search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 780px;
  width: 100%;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.08);
}

.portal-search-select {
  border: 0;
  border-right: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.portal-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: 14.5px;
  outline: none;
  min-width: 0;
}

.portal-search-btn {
  border: 0;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 0 24px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.14s ease;
}

.portal-search-btn:hover {
  background: var(--brand-primary-hover);
}

.portal-hot-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.portal-hot-tags a {
  padding: 2px 9px;
  border-radius: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.14s ease;
}

.portal-hot-tags a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.portal-service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.service-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.service-strip-item:hover {
  border-color: var(--brand-primary);
  background: var(--bg-card);
}

.service-strip-icon {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-strip-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-strip-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Portal Section Bar with Inline Tabs */
.portal-section {
  padding: 40px 0;
}

.portal-section-alt {
  background: #F4F6F9;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .portal-section-alt {
  background: var(--bg-subtle);
}

.portal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--border-color);
}

.portal-bar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.portal-bar-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-bar-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand-primary);
  display: inline-block;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-tab {
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.14s ease;
}

.portal-tab:hover {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.portal-tab.active {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  border-color: #BFDBFE;
  font-weight: 700;
}

/* Elevated Commercial Showcase Gallery Card */
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.gallery-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
  transform: translateY(-3px);
}

/* Dedicated Non-Overlapping Top Metadata Frame Bar */
.gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  min-height: 36px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
}

.gallery-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gallery-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background: #ECFDF5;
  color: #047857;
  flex-shrink: 0;
}

.gallery-type-icon-blue {
  background: #EFF6FF;
  color: #1D4ED8;
}

.gallery-industry-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-status-emerald {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.gallery-status-blue {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.gallery-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.gallery-compare-toggle input {
  margin: 0;
  width: 12px;
  height: 12px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.gallery-compare-toggle:hover,
.gallery-compare-toggle:has(input:checked) {
  border-color: var(--brand-primary);
  background: #EFF6FF;
  color: var(--brand-primary);
}

/* Framed 16:10 Preview Canvas */
.gallery-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: linear-gradient(180deg, #F1F5F9 0%, #E7EEF7 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.gallery-canvas {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  background: #FFFFFF;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-canvas {
  transform: scale(1.02);
}

.gallery-thumb .mini-ui {
  margin: 0;
  border: 0;
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

.gallery-thumb .mini-ui div {
  min-width: 0;
  overflow: hidden;
}

/* Crisp Dark-Frosted Hover Action Bar */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.78) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-overlay-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.gallery-overlay-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.65);
}

.gallery-card:hover .gallery-overlay,
.gallery-card:focus-within .gallery-overlay {
  opacity: 1;
}

/* Legacy fallback badges kept if used elsewhere */
.gallery-badge-tl {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(17, 24, 39, 0.82);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

.gallery-badge-tr {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 2px;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  font-size: 11px;
  font-weight: 700;
}

/* Disciplined Uniform Vertical Rhythm Card Body */
.gallery-body {
  padding: 14px 16px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 22px;
  margin-bottom: 9px;
}

.gallery-meta-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.gallery-pill-cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 2px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-pill-delivery {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 2px;
  background: #ECFDF5;
  color: #047857;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-meta-stat {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-title {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.42;
  min-height: 45px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-title a {
  color: inherit;
  text-decoration: none;
}

.gallery-title a:hover {
  color: var(--brand-primary);
}

.gallery-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #4B5563;
  line-height: 1.54;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single-Line Clean Tech Stack Strip (Never Wraps Messily) */
.gallery-stack-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
  min-height: 25px;
}

.gallery-stack-row::-webkit-scrollbar {
  display: none;
}

.gallery-stack-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 2px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

a.gallery-stack-pill:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
  color: var(--brand-primary);
}

/* Polished Card Footer */
.gallery-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gallery-foot-left {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  flex-wrap: nowrap;
}

.gallery-foot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gallery-foot-actions .btn-sm {
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 12.5px;
}

.grid-4 .gallery-foot-actions .btn-sm {
  padding: 5px 8px;
  font-size: 12px;
}

.grid-4 .gallery-body {
  padding: 13px 14px 14px;
}

.grid-4 .gallery-title {
  font-size: 15px;
  min-height: 43px;
}

.gallery-price-del {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.gallery-price-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.gallery-cycle-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-commercial {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #EA580C;
  white-space: nowrap;
}

.price-commercial small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Compact Inline Quoter Bar on Homepage */
.quick-quote-box {
  background: var(--bg-card);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
}

/* Grouped Tech Stack Bar (High SEO Link Density) */
.tech-group-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.tech-group-row:last-child {
  border-bottom: 0;
}

.tech-group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.tech-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.14s ease;
}

.tech-pill-link:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

/* Trust Strip Bar */
.trust-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.trust-kpi-cell {
  border-right: 1px solid var(--border-color);
  padding-right: 14px;
}

.trust-kpi-cell:last-child {
  border-right: 0;
}

/* Portal Two-Column News + FAQ */
.portal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.article-list-compact {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-list-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.14s ease;
}

.article-list-row:last-child {
  border-bottom: 0;
}

.article-list-row:hover {
  background: var(--bg-subtle);
}

@media (max-width: 1380px) {
  :root,
  [data-theme="dual"],
  [data-theme="light"] {
    --container-max: 1160px;
  }
}

@media (max-width: 1080px) {
  .portal-service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-quote-box, .portal-info-grid { grid-template-columns: 1fr; }
  .trust-kpi-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-kpi-cell { border-right: 0; padding-right: 0; }
}

@media (max-width: 768px) {
  .portal-service-strip { grid-template-columns: 1fr; }
  .portal-search-form { flex-wrap: wrap; }
  .portal-search-select { width: 100%; border-right: 0; border-bottom: 1px solid var(--border-color); padding: 9px 12px; }
  .tech-group-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   Anti-Flicker Cross-Document View Transitions & CLS Guard
   ========================================================================== */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 120ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
  overflow-x: clip;
}

.sim-stage {
  min-height: 520px;
}

[data-biz-grid] {
  min-height: 170px;
}

[data-feature-grid] {
  min-height: 240px;
}

/* Mobile Nav Drawer Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  top: 56px;
  z-index: 55;
  background: rgba(17, 24, 39, 0.44);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Principal PM Case Live Simulator — Mobile, SaaS Console & AI RAG Workbench
   ========================================================================== */
.sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Titanium Hardware Frame */
.sim-mobile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1020px;
  margin: 0 auto;
}

.iphone-bezel {
  width: 316px;
  max-width: 100%;
  margin: 0 auto;
  background: linear-gradient(145deg, #2B2F38 0%, #16181D 52%, #242830 100%);
  border-radius: 44px;
  padding: 11px;
  border: 1.5px solid #3F4552;
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.iphone-screen {
  background: #F4F6F9;
  color: #111827;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 568px;
  position: relative;
}

.iphone-notch {
  height: 30px;
  background: #111827;
  color: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.iphone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.iphone-island {
  width: 74px;
  height: 16px;
  border-radius: 99px;
  background: #000000;
}

.iphone-appbar {
  padding: 9px 12px 10px 14px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.iphone-appbar-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

.wx-capsule-div {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.32);
}

.wx-capsule-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, 0.9);
}

.iphone-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 11px 12px;
  background: #F4F6F9;
}

.mp-search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 99px;
  padding: 6px 11px;
  margin-bottom: 10px;
  color: #9CA3AF;
}

.mp-search-box input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: #111827;
  width: 100%;
  min-width: 0;
}

.mp-hero-banner {
  border-radius: 12px;
  padding: 12px 13px;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.mp-banner-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 5px;
}

.mp-banner-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.mp-banner-sub {
  font-size: 11px;
  opacity: 0.88;
  margin-top: 3px;
  line-height: 1.45;
}

.mp-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 8px 6px;
  margin-bottom: 10px;
}

.mp-quick-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #4B5563;
  font-weight: 500;
}

.mp-quick-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #F3F4F6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-item-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  margin-bottom: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}

.mp-item-card.mp-item-new {
  border-color: #6EE7B7;
  background: #F0FDF4;
}

.mp-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.mp-item-body {
  flex: 1;
  min-width: 0;
}

.mp-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.mp-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.mp-pill-blue, .mp-pill-green {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mp-pill-blue {
  background: #EFF6FF;
  color: #1D4ED8;
}

.mp-pill-green {
  background: #D1FAE5;
  color: #047857;
}

.mp-item-desc {
  font-size: 11px;
  color: #6B7280;
  margin: 4px 0 7px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mp-item-price {
  font-size: 12px;
  font-weight: 700;
  color: #EA580C;
  font-family: var(--font-mono);
}

.mp-item-cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
}

.mp-empty {
  text-align: center;
  padding: 28px 14px;
  font-size: 12px;
  color: #6B7280;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px dashed #D1D5DB;
}

/* Mobile Detail Slide View */
.mp-detail-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.mp-detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 12px;
}

.mp-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-detail-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.mp-detail-price {
  font-size: 13px;
  font-weight: 700;
  color: #EA580C;
  font-family: var(--font-mono);
}

.mp-detail-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 11px 12px;
}

.mp-detail-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.mp-detail-copy {
  margin: 0;
  font-size: 12px;
  color: #4B5563;
  line-height: 1.6;
}

.mp-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 11.5px;
  color: #6B7280;
}

.mp-spec-row:last-child { border-bottom: 0; }
.mp-spec-row strong { color: #111827; font-weight: 600; }

.mp-sticky-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 10px 12px;
}

.mp-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.mp-tab-icon {
  position: relative;
  display: inline-flex;
}

.mp-tab-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iphone-home-bar {
  background: #FFFFFF;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iphone-home-bar span {
  width: 96px;
  height: 4px;
  border-radius: 2px;
  background: #111827;
  opacity: 0.22;
}

.iphone-toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 66px;
  background: #111827;
  color: #FFFFFF;
  padding: 9px 11px;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 600;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  z-index: 15;
}

/* Confirmation Modal Sheet inside Phone */
.mp-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.50);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  z-index: 20;
}

.mp-sheet-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.mp-sheet-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.mp-sheet-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}

.mp-sheet-sub {
  font-size: 12px;
  color: #4B5563;
  margin: 5px 0 13px;
  line-height: 1.55;
}

.mp-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mp-sheet-btn-sec, .mp-sheet-btn-pri {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.mp-sheet-btn-sec {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.mp-sheet-btn-pri {
  background: #1D4ED8;
  color: #FFFFFF;
  border: 0;
}

/* Right-Side Interactive 3-Step Guide */
.sim-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sim-progress-pill {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-emerald);
  background: var(--brand-emerald-soft);
  padding: 3px 9px;
  border-radius: 2px;
}

.sim-guide-lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.sim-checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sim-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.sim-checklist li.done {
  background: var(--brand-emerald-soft);
  border-color: #A7F3D0;
}

.sim-check-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-checklist li.done .sim-check-dot {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #FFFFFF;
}

.sim-checklist li strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
}

.sim-checklist li > div > span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sim-activity-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 11px 13px;
}

.sim-activity-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sim-activity-list {
  margin: 0 !important;
  padding-left: 16px !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
  color: var(--text-muted) !important;
}

/* SaaS Console Overhaul (Sparklines + Bar Chart + Live Drawer) */
.saas-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  white-space: nowrap;
}

.saas-brand-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
  padding: 4px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.saas-menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.saas-menu-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.saas-menu-count {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  color: #E5E7EB;
}

.saas-main {
  position: relative;
  min-width: 0;
}

.saas-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.saas-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 2px;
  padding: 5px 10px;
  color: #6B7280;
  min-width: 220px;
}

.saas-search-wrap input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  color: #111827;
  width: 100%;
}

.saas-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.saas-kpi-label {
  font-size: 11.5px;
  color: #6B7280;
}

.saas-kpi-delta {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  background: #ECFDF5;
  padding: 1px 6px;
  border-radius: 2px;
}

.saas-kpi-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.saas-kpi-val {
  font-size: 19px;
  font-weight: 800;
  color: #111827;
  font-family: var(--font-mono);
}

.saas-sparkline {
  width: 68px;
  height: 24px;
  flex-shrink: 0;
}

.saas-analytics-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.saas-chart-card, .saas-filter-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.saas-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #111827;
}

.saas-chart-toggle {
  display: inline-flex;
  background: #F3F4F6;
  border-radius: 2px;
  padding: 2px;
}

.saas-chart-toggle button {
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  padding: 3px 8px;
  border-radius: 2px;
}

.saas-chart-toggle button.active {
  background: #FFFFFF;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.saas-bar-chart {
  width: 100%;
  height: 106px;
}

.saas-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.saas-f-pill {
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  color: #4B5563;
  font-size: 11.5px;
  font-weight: 600;
}

.saas-f-pill.active {
  background: #111827;
  border-color: #111827;
  color: #FFFFFF;
}

.saas-row-clickable {
  cursor: pointer;
  transition: background 0.12s ease;
}

.saas-row-clickable:hover {
  background: #EFF6FF;
}

.saas-row-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #1D4ED8;
  white-space: nowrap;
}

.saas-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.25);
  z-index: 12;
}

.saas-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 92%;
  background: #FFFFFF;
  border-left: 1px solid #D1D5DB;
  box-shadow: -8px 0 28px rgba(17, 24, 39, 0.14);
  z-index: 15;
  display: flex;
  flex-direction: column;
}

.saas-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #E5E7EB;
}

.saas-drawer-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.saas-drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.saas-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.saas-drawer-field {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 12.5px;
}

.saas-drawer-field span { color: #6B7280; flex-shrink: 0; }
.saas-drawer-field strong { color: #111827; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.saas-drawer-audit {
  margin-top: 14px;
  padding: 10px 12px;
  background: #F9FAFB;
  border-radius: 2px;
  border: 1px solid #E5E7EB;
}

.saas-audit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4B5563;
  margin-top: 4px;
}

.saas-drawer-foot {
  padding: 12px 16px;
  border-top: 1px solid #E5E7EB;
}

/* AI Agent RAG Workbench */
.ai-kb-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 10px 12px;
  min-width: 0;
  overflow: hidden;
}

.ai-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  min-width: 0;
}

.ai-kb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}

.ai-kb-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
}

.ai-kb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  flex-shrink: 0;
}

.ai-kb-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-preset-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ai-preset-btn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ai-preset-num {
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-workbench-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-subtle);
}

.ai-bot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  background: #111827;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-trace-box {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: grid;
  gap: 5px;
}

.ai-trace-step {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: #9CA3AF;
  transition: color 0.16s ease;
}

.ai-trace-step.active {
  color: #047857;
  font-weight: 600;
}

.ai-trace-step code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #F3F4F6;
  color: #111827;
  padding: 1px 5px;
  border-radius: 2px;
}

.ai-stream-answer {
  white-space: pre-wrap;
  line-height: 1.7;
}

.ai-cite-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ai-cite-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.ai-cite-idx {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #1D4ED8;
}

.ai-cite-item em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #047857;
}

.sim-iframe-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  background: var(--bg-card);
  padding: 11px 14px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
}

/* Template Detail 3-Device Reflowing Preview */
.dv-browser-bar, .dv-tablet-bar {
  background: #111827;
  color: #FFFFFF;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.dv-url {
  flex: 1;
  font-size: 12px;
  color: #D1D5DB;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dv-pc-shell {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  min-height: 290px;
}

.dv-pc-side {
  background: #1F2937;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dv-pc-nav {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #D1D5DB;
  transition: background 0.14s ease, color 0.14s ease;
}

.dv-pc-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.dv-pc-nav.active {
  background: #1D4ED8;
  color: #FFFFFF;
  font-weight: 600;
}

.dv-pc-main {
  padding: 14px;
  background: #F8FAFC;
}

.dv-kpi-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.dv-kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dv-kpi-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dv-kpi {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 10px 12px;
}

.dv-kpi span {
  display: block;
  font-size: 11px;
  color: #6B7280;
}

.dv-kpi strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-top: 3px;
}

.dv-panel {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 12px 14px;
}

.dv-panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 9px;
}

.dv-hl-grid {
  display: grid;
  gap: 7px;
}

.dv-hl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #374151;
}

.dv-hl-item .ui-icon { color: #059669; }

.dv-mob-status {
  height: 26px;
  background: #111827;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 10.5px;
  font-weight: 600;
}

.dv-mob-appbar {
  background: #1D4ED8;
  color: #FFFFFF;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.dv-mob-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 10px;
  margin-bottom: 8px;
}

.dv-mob-icon {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  background: #EFF6FF;
  color: #1D4ED8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dv-mob-card strong { display: block; font-size: 12.5px; color: #111827; }
.dv-mob-card p { margin: 2px 0 0; font-size: 11.5px; color: #6B7280; line-height: 1.45; }

/* ==========================================================================
   Complete 4-Viewport Responsive Matrix (1440px / 1024px / 768px / 375px)
   ========================================================================== */

/* 1024px — Laptop & Tablet Landscape */
@media (max-width: 1180px) {
  .container { padding: 0 20px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-foot-actions .btn-sm { padding: 5px 8px; font-size: 12px; }
  .price-commercial { font-size: 16.5px; }
  .gallery-price-del { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 9px; font-size: 13.5px; }
  .nav-status-pill { display: none; }
  .sim-mobile-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
  .iphone-bezel { width: 298px; }
  .saas-analytics-row { grid-template-columns: 1fr; }
}

/* 768px — Tablet Portrait */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-mobile-layout,
  .ai-sandbox,
  .tpl-detail-grid,
  .quote-layout { grid-template-columns: 1fr; }
  .configurator-card, .quote-black-card { position: static; }
  .saas-shell { grid-template-columns: 1fr; }
  .saas-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 10px;
  }
  .saas-brand-title { display: none; }
  .saas-menu-btn { width: auto; white-space: nowrap; }
  .dv-pc-shell { grid-template-columns: 1fr; }
  .dv-pc-side { flex-direction: row; overflow-x: auto; }
}

/* 375px — Mobile */
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .nav-inner { height: 56px; }
  .nav-links {
    top: 56px;
    z-index: 60;
    padding: 12px 14px 18px;
  }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }
  .nav-mobile-toggle {
    width: 40px;
    height: 40px;
  }
  .portal-search-band { padding: 20px 0 18px; }
  .portal-hot-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .portal-hot-tags::-webkit-scrollbar { display: none; }
  .portal-hot-tags a { flex-shrink: 0; }
  .portal-service-strip,
  .grid-2, .grid-3, .grid-4,
  .biz-grid, .feature-grid {
    grid-template-columns: 1fr;
  }
  .gallery-title,
  .gallery-desc { min-height: auto; }
  .gallery-foot-actions .btn-sm { min-height: 36px; padding: 7px 12px; font-size: 12.5px; }
  .ai-quickstart-grid { grid-template-columns: 1fr; }
  .quote-sub-actions { grid-template-columns: 1fr; }
  .quote-sheet-body .btn { white-space: normal; text-align: center; line-height: 1.35; }
  .device-stage-frame { padding: 12px; }
  .tpl-stage-toolbar { gap: 10px; }
  .trust-kpi-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .portal-tabs, .home-case-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .portal-tabs::-webkit-scrollbar,
  .home-case-switcher::-webkit-scrollbar { display: none; }
  .portal-tab, .case-switch-btn { flex-shrink: 0; min-height: 38px; }

  /* Mobile Smart Simulator Adaptation: edge-to-edge without redundant phone outer bezel */
  .sim-stage { padding: 12px; min-height: 460px; }
  .sim-header { padding: 12px 14px; }
  .sim-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .sim-tab { flex-shrink: 0; min-height: 38px; }
  .iphone-bezel {
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: 0;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
  }
  .iphone-notch, .iphone-home-bar { display: none; }
  .iphone-screen {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 500px;
  }
  .saas-kpi-grid, .dv-kpi-3, .dv-kpi-2 { grid-template-columns: 1fr; }
  .saas-search-wrap { width: 100%; min-width: 0; }
  .quick-quote-box > div:last-child { padding-left: 0 !important; border-left: 0 !important; }
  .spec-table { display: block; overflow-x: auto; }
  .btn-lg { min-height: 44px; }
}

/* ==========================================================================
   Commercial Flagship Expansion Components (1360px Generous Layout)
   ========================================================================== */
.flagship-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 36px 0 32px;
}

.flagship-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 26px;
}

.flagship-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flagship-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 2px;
  background: var(--brand-primary-soft);
  border: 1px solid #BFDBFE;
  color: var(--brand-primary);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.flagship-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.flagship-desc {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 720px;
}

.flagship-value-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.flagship-value-pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.flagship-value-pills .ui-icon {
  color: var(--brand-emerald);
}

.flagship-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.flagship-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.flagship-kpi-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-primary);
  line-height: 1.2;
}

.flagship-kpi-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Right Studio Direct-Booking Trust Profile Card */
.studio-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.studio-schedule-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 2px;
  background: var(--brand-emerald-soft);
  border: 1px solid #A7F3D0;
  color: #047857;
  font-size: 12.5px;
  font-weight: 600;
}

.studio-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.studio-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.studio-trust-list .ui-icon {
  color: var(--brand-primary);
  margin-top: 2px;
}

.studio-trust-list strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
}

.studio-trust-list span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.studio-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio-stack-pills span {
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.studio-profile-foot {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* Search Panel & 4 Generous Pathway Cards */
.flagship-search-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.flagship-search-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flagship-search-row .portal-search-form {
  max-width: 100%;
}

.flagship-pathway-grid {
  margin-top: 16px;
}

.pathway-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.pathway-card:hover {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.pathway-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pathway-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.pathway-card-who {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pathway-card-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

/* Mall Summary Strip */
.mall-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mall-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.mall-summary-item .ui-icon {
  color: var(--brand-primary);
}

.mall-summary-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
}

.mall-summary-item span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Case Mini KPI Strip inside Gallery Cards (Uniform 2-Column Bordered Box) */
.case-mini-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
  min-height: 54px;
}

.case-mini-kpis > div,
.case-mini-kpi-cell {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.case-mini-kpis > div:first-child,
.case-mini-kpi-cell:first-child {
  border-right: 1px solid #E2E8F0;
}

.case-mini-kpis strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-mini-kpis span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3-Way Direct Developer Comparison */
.comparison-3way .compare-win {
  background: #F8FBFF;
  color: #111827;
}

/* Executive Case Showcase Header + 2x2 KPI Board */
.case-exec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.case-kpi-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-kpi-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}

.case-kpi-num {
  font-size: 24px;
  font-weight: 850;
  font-family: var(--font-mono);
  color: var(--brand-primary);
  line-height: 1.2;
}

.case-kpi-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.case-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.compare-route-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.compare-route-tpl {
  background: #F0FDF4;
  border-color: #A7F3D0;
}

/* Simulator & Template Fullscreen Mode */
.sim-fs-lock {
  overflow: hidden !important;
}

.sim-fullscreen {
  position: fixed !important;
  inset: 14px !important;
  z-index: 220 !important;
  margin: 0 !important;
  overflow-y: auto !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45) !important;
  background: var(--bg-card) !important;
  border-radius: 2px !important;
}

/* Website / Global B2B Landing Simulator */
.web-lang-switch {
  display: inline-flex;
  background: #E5E7EB;
  border-radius: 2px;
  padding: 2px;
}

.web-lang-switch button {
  border: 0;
  background: transparent;
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: #4B5563;
}

.web-lang-switch button.active {
  background: #111827;
  color: #FFFFFF;
}

.web-sim-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  flex-wrap: wrap;
}

.web-sim-nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.web-sim-nav-links button {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4B5563;
}

.web-sim-nav-links button.active {
  background: #EFF6FF;
  color: #1D4ED8;
}

.web-sim-body {
  padding: 18px 20px;
  background: #F8FAFC;
  min-height: 350px;
}

.web-sim-hero {
  background: linear-gradient(135deg, #111827 0%, #1E3A8A 100%);
  color: #FFFFFF;
  border-radius: 2px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.web-sim-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.web-sim-hero h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.web-sim-hero p {
  margin: 0;
  font-size: 13px;
  color: #D1D5DB;
}

.web-sim-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.web-sim-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.web-sim-sku {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #6B7280;
}

.web-sim-meta {
  font-size: 11.5px;
  color: #6B7280;
  margin-bottom: 8px;
}

.web-sim-link {
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.web-sim-rfq {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 18px;
}

.web-sim-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 2px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

.web-sim-success p {
  margin: 4px 0 0;
  font-size: 12.5px;
}

/* Template Detail Landing Stage & 4 High-Trust Buyer Detail Cards */
.tpl-stage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.dv-hl-clickable {
  width: 100%;
  text-align: left;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  padding: 8px 10px;
  border-radius: 2px;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.dv-hl-clickable:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.dv-mob-clickable {
  width: 100%;
  border: 1px solid #E5E7EB;
  cursor: pointer;
}

.dv-mob-clickable:hover {
  border-color: var(--brand-primary);
}

.buyer-sec-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.buyer-sec-head .ui-icon {
  color: var(--brand-primary);
}

.buyer-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
}

.buyer-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.buyer-check-list .ui-icon {
  color: var(--brand-emerald);
  margin-top: 3px;
}

.source-tree-pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 2px;
  background: #111827;
  color: #E5E7EB;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
}

/* Detailed Quoter Workbench Styles */
.quote-layout-detailed {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr);
}

.biz-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.platform-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.platform-pill.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.mod-group-block {
  margin-bottom: 16px;
}

.mod-group-block:last-child {
  margin-bottom: 0;
}

.mod-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border-radius: 2px;
  margin-bottom: 9px;
  color: var(--text-primary);
}

.mod-group-head span {
  color: var(--text-muted);
  font-size: 11.5px;
}

.quote-subpanel {
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 11px 13px;
  margin-bottom: 12px;
  background: var(--bg-card);
}

.quote-subpanel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.quote-breakdown-scroll {
  max-height: 175px;
  overflow-y: auto;
}

.quote-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.quote-mini-table td {
  padding: 5px 0;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text-secondary);
}

.quote-mini-table tr:last-child td { border-bottom: 0; }
.quote-mini-table .adj-row td { color: var(--brand-primary); font-weight: 600; }

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.milestone-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 7px 9px;
}

.milestone-pill span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.milestone-pill strong {
  display: block;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-top: 2px;
}

.quote-savings-box {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 2px;
  padding: 11px 13px;
  margin-bottom: 12px;
}

/* Responsive additions for Flagship 1360px Components */
@media (max-width: 1380px) {
  :root,
  [data-theme="dual"],
  [data-theme="light"] {
    --container-max: 1160px;
  }
}

@media (max-width: 1080px) {
  .flagship-hero-grid,
  .case-exec-grid,
  .quote-layout-detailed {
    grid-template-columns: 1fr;
  }
  .mall-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .flagship-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-sim-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mall-summary-strip,
  .case-kpi-board,
  .milestone-grid { grid-template-columns: 1fr; }
  .sim-fullscreen { inset: 6px !important; }
}

/* ==========================================================================
   OBSIDIAN & IVORY ARCHITECTURAL LUXURY LAYER
   高端大气商业美学体系：曜石深墨 × 瓷白留白 × 香槟钛金微点缀（零紫青霓虹）
   ========================================================================== */
:root,
[data-theme="dual"],
[data-theme="light"] {
  --lux-obsidian: #090D16;
  --lux-obsidian-2: #0F1524;
  --lux-champagne: #C89B54;
  --lux-champagne-light: #DFBA7C;
  --lux-ivory: #FFFFFF;
  --lux-mist: #F5F6F8;
  --lux-ink: #0B1220;
  --lux-border: #E5E7EC;
  --container-max: 1260px;
}

.container {
  max-width: var(--container-max);
  padding: 0 28px;
}

/* 1. Architectural Obsidian Sticky Header */
.site-header {
  background: rgba(9, 13, 22, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  height: 68px;
  justify-content: flex-start;
  gap: 20px;
}

.nav-brand-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #FFFFFF;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
  padding-top: 1px;
}

.brand-wordmark-cn {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.08em;
  margin-right: -0.08em;
  color: #F8FAFC;
  white-space: nowrap;
}

.brand-wordmark-en {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  color: #D4B072;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0.94;
}

.brand-wordmark-en > span {
  display: inline-block;
}

.brand-logo-svg {
  transition: transform 0.18s ease, filter 0.18s ease;
}

@media (hover: hover) {
  .brand-logo:hover .brand-logo-svg {
    filter: brightness(1.08);
  }
  .brand-logo:hover .brand-wordmark-en {
    color: #E8C78B;
  }
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  color: var(--lux-champagne-light);
  border: 1px solid rgba(200, 155, 84, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-status-pill {
  background: rgba(16, 185, 129, 0.14);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 10px;
  font-size: 11.5px;
}

.nav-links a {
  color: rgba(226, 232, 240, 0.86);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  padding: 20px 15px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .nav-links a {
    font-size: 14px;
    padding: 20px 10px;
  }
}

.nav-links a:hover {
  color: #FFFFFF;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.nav-links a.active {
  color: #FFFFFF;
  background: transparent;
  border-bottom-color: var(--lux-champagne-light);
  font-weight: 600;
}

.site-header .btn-outline {
  background: transparent;
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.20);
}

.site-header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.42);
  color: #FFFFFF;
}

.site-header .btn-ai {
  background: #FFFFFF;
  color: var(--lux-obsidian);
  border-color: #FFFFFF;
  font-weight: 700;
}

.site-header .btn-ai:hover {
  background: #F1F5F9;
  border-color: #F1F5F9;
  color: var(--lux-obsidian);
}

.nav-mobile-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .nav-brand-divider {
    display: none;
  }
  .nav-links {
    background: #0F1524;
    border-bottom-color: rgba(255, 255, 255, 0.10);
  }
  .nav-links a {
    color: #E2E8F0;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links a.active {
    background: rgba(200, 155, 84, 0.14);
    border-bottom-color: var(--lux-champagne-light);
  }
}

/* 2. Grand Obsidian Flagship Hero (Zero Neon Purple-Cyan; Architectural Champagne Glow) */
.flagship-hero {
  background-color: var(--lux-obsidian);
  background-image:
    radial-gradient(ellipse 58% 48% at 86% 6%, rgba(200, 155, 84, 0.12), transparent 64%),
    radial-gradient(ellipse 46% 42% at 14% 92%, rgba(30, 64, 175, 0.14), transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  color: #FFFFFF;
  padding: 58px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flagship-hero-grid {
  grid-template-columns: 1.24fr 0.76fr;
  gap: 44px;
  align-items: center;
}

.flagship-eyebrow {
  background: rgba(200, 155, 84, 0.10);
  border: 1px solid rgba(200, 155, 84, 0.30);
  border-left: 2px solid var(--lux-champagne-light);
  border-radius: 2px;
  color: var(--lux-champagne-light);
  padding: 6px 14px;
  font-size: 12.5px;
  letter-spacing: 0.015em;
  margin-bottom: 22px;
}

.flagship-title {
  color: #FFFFFF;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.flagship-desc {
  color: #CBD5E1;
  font-size: 16px;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 0 22px;
}

.flagship-value-pills {
  gap: 16px;
  margin-bottom: 28px;
}

.flagship-value-pills span {
  color: #E2E8F0;
  font-size: 13.5px;
  font-weight: 500;
}

.flagship-value-pills svg {
  color: var(--lux-champagne-light);
}

.flagship-ctas {
  gap: 12px;
  margin-bottom: 34px;
}

.flagship-hero .btn-ai {
  background: #FFFFFF;
  color: var(--lux-obsidian);
  border-color: #FFFFFF;
  padding: 13px 24px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.flagship-hero .btn-ai:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
}

.flagship-hero .btn-primary {
  background: rgba(200, 155, 84, 0.16);
  color: #F8FAFC;
  border-color: rgba(200, 155, 84, 0.45);
  padding: 13px 22px;
}

.flagship-hero .btn-primary:hover {
  background: rgba(200, 155, 84, 0.25);
  border-color: var(--lux-champagne-light);
}

.flagship-hero .btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.20);
  padding: 13px 20px;
}

.flagship-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

.flagship-kpi-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  gap: 20px;
}

.flagship-kpi-item {
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  padding-right: 16px;
}

.flagship-kpi-item:last-child {
  border-right: 0;
}

.flagship-kpi-item strong {
  color: #FFFFFF;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.flagship-kpi-item span {
  color: #94A3B8;
  font-size: 12.5px;
}

/* Right Studio Frosted Obsidian Glass Profile Card (Alibaba/Tencent Cloud Sharp Authority) */
.studio-profile-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--lux-champagne);
  border-radius: 2px;
  padding: 24px 26px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.studio-profile-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.studio-profile-kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lux-champagne-light);
  letter-spacing: 0.04em;
}

.studio-profile-title {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.studio-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6EE7B7;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.studio-schedule-box {
  background: rgba(200, 155, 84, 0.12);
  border: 1px solid rgba(200, 155, 84, 0.30);
  color: #FDE6B8;
  border-radius: 2px;
  padding: 10px 13px;
  font-size: 12.5px;
}

.studio-schedule-box .ui-icon,
.studio-schedule-box svg {
  color: #FDE6B8;
  flex-shrink: 0;
}

.studio-trust-list li {
  color: #E2E8F0;
}

.studio-trust-list .ui-icon,
.studio-trust-list li svg {
  color: var(--lux-champagne-light);
}

.studio-trust-list strong {
  color: #FFFFFF;
  font-size: 13.5px;
}

.studio-trust-list span {
  color: #94A3B8;
  font-size: 12px;
}

.studio-stack-pills span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 12px;
}

.btn-luxury-light {
  background: #FFFFFF;
  color: var(--lux-obsidian);
  border-color: #FFFFFF;
  font-weight: 700;
}

.btn-luxury-light:hover {
  background: #F1F5F9;
}

.btn-luxury-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-luxury-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

/* 3. Smooth Cool-Mist Architectural Gateway Band (Alibaba/Tencent Cloud Seam-Free Transition) */
.flagship-gateway-band {
  background: linear-gradient(180deg, #EEF2F7 0%, #F5F7FA 55%, #FFFFFF 100%);
  padding: 32px 0 60px;
  border-bottom: 1px solid #E6EAF0;
  position: relative;
}

.flagship-search-panel {
  margin-top: 0;
  position: relative;
  z-index: 4;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
  padding: 24px 26px 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.portal-search-form {
  border: 1px solid #C5D0DF;
  border-radius: 2px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-search-form:focus-within {
  border-color: #0F172A;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.portal-search-btn {
  background: #0B1220;
  padding: 0 26px;
  border-radius: 0;
}

.portal-search-btn:hover {
  background: #1E293B;
}

.pathway-card {
  background: #FAFBFD;
  border: 1px solid #DCE2EA;
  border-radius: 2px;
  padding: 18px 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.pathway-card:hover {
  background: #FFFFFF;
  border-color: #0B1220;
  box-shadow: 0 8px 20px rgba(9, 13, 22, 0.08);
  transform: translateY(-2px);
}

.pathway-card .service-strip-icon {
  background: #0B1220;
  color: var(--lux-champagne-light);
  border-color: #0B1220;
}

.pathway-cycle-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid var(--lux-border);
  padding: 2px 9px;
  border-radius: 2px;
}

.pathway-price {
  color: var(--lux-ink);
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 800;
}

.pathway-more {
  color: #1D4ED8;
  font-size: 12.5px;
  font-weight: 600;
}

/* 4. Unified Obsidian Subpage Banners (.page-banner) */
.page-banner {
  background-color: var(--lux-obsidian);
  background-image:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(200, 155, 84, 0.10), transparent 65%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: #FFFFFF;
  padding: 46px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-banner .breadcrumbs {
  color: #94A3B8;
}

.page-banner .breadcrumbs a:hover {
  color: #FFFFFF;
}

.page-banner .page-title {
  color: #FFFFFF;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.page-banner .page-lead {
  color: #CBD5E1;
}

.page-banner .badge {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.16);
}

.page-banner .badge-blue {
  background: rgba(200, 155, 84, 0.16);
  color: var(--lux-champagne-light);
  border-color: rgba(200, 155, 84, 0.36);
}

.page-banner .badge-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.32);
}

.page-banner .btn-ai {
  background: #FFFFFF;
  color: var(--lux-obsidian);
  border-color: #FFFFFF;
  font-weight: 700;
}

.page-banner .btn-ai:hover {
  background: #F1F5F9;
}

.page-banner .btn-primary {
  background: rgba(200, 155, 84, 0.18);
  color: #FFFFFF;
  border-color: rgba(200, 155, 84, 0.45);
}

.page-banner .btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.22);
}

.page-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.page-banner .mall-summary-card,
.page-banner .case-kpi-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.page-banner .mall-summary-card strong,
.page-banner .case-kpi-tile strong {
  color: #FFFFFF;
}

.page-banner .mall-summary-card span,
.page-banner .case-kpi-tile span {
  color: #94A3B8;
}

.page-banner .mall-summary-card svg {
  color: var(--lux-champagne-light);
}

/* 5. Generous Gallery Rhythm & Quiet-Luxury Cards */
.portal-section {
  padding: 72px 0;
}

.portal-section-alt {
  background: var(--lux-mist);
}

.portal-bar {
  padding-bottom: 18px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--lux-border);
}

.portal-bar-title {
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.portal-bar-title::before {
  width: 3px;
  height: 22px;
  background: var(--lux-champagne);
}

.portal-tab.active {
  background: var(--lux-obsidian);
  color: #FFFFFF;
  border-color: var(--lux-obsidian);
}

.gallery-card {
  border-radius: 2px;
  border: 1px solid #DCE2EA;
  box-shadow: 0 1px 4px rgba(9, 13, 22, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: #0B1220;
  box-shadow: 0 12px 26px rgba(9, 13, 22, 0.09);
}

.gallery-canvas {
  border-radius: 2px;
}

.gallery-topbar {
  background: #FAFBFD;
  border-bottom: 1px solid #EDF0F5;
  padding: 10px 14px;
}

.gallery-body {
  padding: 18px 20px 20px;
}

.gallery-title {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Sculptural Deep Ink Pricing (Quiet Luxury instead of Promo Orange) */
.price-commercial {
  font-size: 20px;
  font-weight: 800;
  color: var(--lux-ink);
  letter-spacing: -0.02em;
}

/* 6. Mid-Page Deep Obsidian Feature Climax (Online Quoter Showcase Box) */
.quick-quote-box {
  background-color: var(--lux-obsidian);
  background-image:
    radial-gradient(ellipse 50% 80% at 95% 15%, rgba(200, 155, 84, 0.14), transparent 65%),
    linear-gradient(135deg, #090D16 0%, #111827 100%);
  border: 1px solid rgba(200, 155, 84, 0.32);
  border-top: 2px solid var(--lux-champagne);
  border-radius: 2px;
  padding: 36px 40px;
  color: #FFFFFF;
  box-shadow: 0 14px 34px rgba(9, 13, 22, 0.16);
}

.quick-quote-box h2 {
  color: #FFFFFF !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  letter-spacing: -0.02em;
}

.quick-quote-box p {
  color: #CBD5E1 !important;
}

.quick-quote-box .tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
}

.quick-quote-box .tag:hover {
  background: rgba(200, 155, 84, 0.20);
  border-color: var(--lux-champagne-light);
  color: #FFFFFF;
}

.quick-quote-box .btn-ai {
  background: #FFFFFF;
  color: var(--lux-obsidian);
  border-color: #FFFFFF;
  font-weight: 700;
}

.quick-quote-box .btn-ai:hover {
  background: #F1F5F9;
}

.quick-quote-box .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.24);
}

.quick-quote-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.quick-quote-box > div:last-child {
  border-left-color: rgba(255, 255, 255, 0.12) !important;
}

/* Simulator Theater Upgrade */
.sim-wrapper {
  border: 1px solid #CFD6E0;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(9, 13, 22, 0.06);
}

.quote-black-card {
  border-radius: 2px;
  border-top: 2px solid var(--lux-champagne);
}

.dock-btn-ai {
  border-radius: 2px;
  background: var(--lux-obsidian);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 2px solid var(--lux-champagne);
  box-shadow: 0 6px 18px rgba(9, 13, 22, 0.24);
}

.dock-rail {
  border-radius: 2px;
  border-color: #CBD5E1;
}

.sim-header {
  background: #FFFFFF;
  padding: 18px 24px;
}

.sim-stage {
  background: #EEF1F6;
  padding: 28px;
}

/* Footer Architectural Polish */
.site-footer {
  background: #070A12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 68px 0 32px;
}

/* ==========================================================================
   Enterprise Trust Endorsement Wall & Real Tech-Logo Matrix (Alibaba/Tencent Precision)
   ========================================================================== */
.studio-stack-pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tech-brand-svg {
  display: inline-block;
  flex-shrink: 0;
}

.tech-banner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Immediate Upper-Page Trust Endorsement Panel */
.trust-endorsement-panel {
  margin-top: 20px;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.trust-compliance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #0B1220;
  color: #FFFFFF;
  border-bottom: 1px solid #1E293B;
}

.trust-compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  min-width: 0;
}

.trust-compliance-item:last-child {
  border-right: 0;
}

.trust-compliance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(200, 155, 84, 0.14);
  border: 1px solid rgba(200, 155, 84, 0.34);
  border-radius: 2px;
  color: var(--lux-champagne-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-compliance-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 3px;
}

.trust-compliance-item > div > span {
  display: block;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.45;
}

.client-endorsement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E5EAF2;
}

.client-endorsement-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1E293B;
}

.client-endorsement-label svg {
  color: var(--lux-champagne);
}

.client-endorsement-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #1D4ED8;
}

.client-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-proof-card {
  padding: 15px 18px;
  border-right: 1px solid #E8EDF4;
  border-bottom: 1px solid #E8EDF4;
  background: #FFFFFF;
  min-width: 0;
  transition: background 0.15s ease;
}

.client-proof-card:nth-child(3n) {
  border-right: 0;
}

.client-proof-card:nth-last-child(-n+3) {
  border-bottom: 0;
}

.client-proof-card:hover {
  background: #FAFBFD;
}

.client-proof-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  min-width: 0;
}

.client-proof-emblem {
  display: inline-flex;
  flex-shrink: 0;
}

.client-proof-meta {
  min-width: 0;
}

.client-proof-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-proof-meta span {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-proof-project {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Real Tech Brand-Logo Matrix */
.tech-matrix-wrap {
  padding: 6px 22px;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
}

.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.tech-matrix-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-matrix-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: #FAFBFD;
  border: 1px solid #E2E8F0;
  border-radius: 2px;
  color: #0F172A;
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tech-matrix-card:hover {
  background: #FFFFFF;
  border-color: #0B1220;
  box-shadow: 0 4px 12px rgba(9, 13, 22, 0.06);
}

.tech-matrix-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 2px;
  flex-shrink: 0;
}

.tech-matrix-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-matrix-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-matrix-text span {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Deep Trust Section: 4 Verifiable Engineering Proof Ledger Cards */
.proof-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.proof-ledger-card {
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-top: 2px solid #0B1220;
  border-radius: 2px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proof-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.proof-ledger-badge {
  font-size: 11px;
  font-weight: 700;
  color: #855D22;
  background: #FDF6E7;
  border: 1px solid #EED6A4;
  padding: 2px 8px;
  border-radius: 2px;
}

.proof-ledger-icon {
  color: #0B1220;
}

.proof-ledger-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.35;
}

.proof-ledger-card p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.65;
  flex: 1;
}

.proof-ledger-meta {
  padding-top: 10px;
  border-top: 1px solid #EDF1F7;
  font-size: 11.5px;
  font-weight: 600;
  color: #1E293B;
}

.workflow-step-card {
  padding: 16px 18px;
}

.workflow-day-tag {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

.promise-enterprise-card {
  padding: 16px 18px;
  border-left: 2px solid #047857;
}

.promise-metric-tag {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Verified Enterprise Client Testimonials */
.testimonial-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.testimonial-section-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0B1220;
}

.testimonial-section-head span {
  font-size: 12.5px;
  color: #64748B;
}

.testimonial-enterprise-card {
  margin: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #DCE3EE;
  background: #FFFFFF;
}

.testimonial-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.verified-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.testimonial-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: 2px;
}

.testimonial-headline {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.55;
}

.testimonial-detail {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
  flex: 1;
}

.testimonial-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #E8EDF4;
}

.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0B1220;
  color: var(--lux-champagne-light);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-foot strong {
  display: block;
  font-size: 13px;
  color: #0B1220;
  line-height: 1.3;
}

.testimonial-foot > div > span {
  display: block;
  font-size: 11.5px;
  color: #64748B;
}

@media (max-width: 1380px) {
  :root,
  [data-theme="dual"],
  [data-theme="light"] {
    --container-max: 1160px;
  }
}

@media (max-width: 1080px) {
  .flagship-hero { padding: 48px 0 46px; }
  .flagship-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .quick-quote-box { padding: 28px 24px; }
  .quick-quote-box > div:last-child { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; }
  .trust-compliance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-compliance-item:nth-child(2n) { border-right: 0; }
  .trust-compliance-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .client-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-proof-card:nth-child(3n) { border-right: 1px solid #E8EDF4; }
  .client-proof-card:nth-child(2n) { border-right: 0; }
  .client-proof-card:nth-last-child(-n+3) { border-bottom: 1px solid #E8EDF4; }
  .client-proof-card:nth-last-child(-n+2) { border-bottom: 0; }
  .tech-matrix-grid, .tech-matrix-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .flagship-hero { padding: 36px 0 36px; }
  .flagship-gateway-band { padding: 20px 0 44px; }
  .flagship-search-panel { margin-top: 0; padding: 16px; }
  .portal-section { padding: 48px 0; }
  .page-banner { padding: 32px 0 30px; }
  .flagship-kpi-item { border-right: 0; padding-right: 0; }
  .trust-compliance-strip,
  .client-proof-grid,
  .tech-matrix-grid,
  .tech-matrix-grid-4,
  .proof-ledger-grid { grid-template-columns: 1fr; }
  .trust-compliance-item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .trust-compliance-item:last-child { border-bottom: 0; }
  .client-proof-card { border-right: 0 !important; border-bottom: 1px solid #E8EDF4 !important; }
  .client-proof-card:last-child { border-bottom: 0 !important; }
  .tech-matrix-wrap { padding: 10px 14px; }
}

/* ==========================================================================
   Enterprise Precision Card Motion & Hover System (Strict Boundary Control)
   阿里云/腾讯云级克制微动效：零抖动、零溢出、零布局偏移（CLS = 0）
   ========================================================================== */
:root {
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-fast: 180ms;
  --fx-base: 220ms;
  --fx-reveal: 280ms;
}

/* 1. Boundary-Safe Scroll Entrance (Below-fold cards only; auto-cleaned after settle) */
.fx-card-ready {
  opacity: 0;
  transform: translateY(8px);
}

.fx-card-ready.fx-card-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--fx-reveal) var(--fx-ease), transform var(--fx-reveal) var(--fx-ease);
}

/* 2. Universal Standalone Card Top-Edge Architectural Sweep (Contained inside border-box) */
.pathway-card,
.gallery-card,
.proof-ledger-card,
.workflow-step-card,
.promise-enterprise-card,
.testimonial-enterprise-card,
.card.card-hover {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--fx-base) var(--fx-ease),
    border-color var(--fx-base) var(--fx-ease),
    box-shadow var(--fx-base) var(--fx-ease),
    background-color var(--fx-base) var(--fx-ease);
}

.pathway-card::before,
.gallery-card::before,
.workflow-step-card::before,
.testimonial-enterprise-card::before,
.card.card-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0B1220 0%, var(--lux-champagne) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--fx-ease);
  pointer-events: none;
  z-index: 4;
}

.proof-ledger-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lux-champagne);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--fx-ease);
  pointer-events: none;
  z-index: 4;
}

/* 3. Connected Grid Cells (Stay flat inside grid borders; zero border-seam breakage) */
.client-proof-card,
.trust-compliance-item,
.article-list-row {
  position: relative;
  overflow: hidden;
  transition:
    background-color var(--fx-fast) var(--fx-ease),
    border-color var(--fx-fast) var(--fx-ease);
}

.client-proof-card::before,
.trust-compliance-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lux-champagne);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms var(--fx-ease);
  pointer-events: none;
}

.article-list-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #0B1220;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 200ms var(--fx-ease);
  pointer-events: none;
}

/* 4. Dense Tech Matrix & Selectable Quote Workbench Cards */
.tech-matrix-card {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--fx-fast) var(--fx-ease),
    border-color var(--fx-fast) var(--fx-ease),
    background-color var(--fx-fast) var(--fx-ease),
    box-shadow var(--fx-fast) var(--fx-ease);
}

.tech-matrix-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--lux-champagne);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 200ms var(--fx-ease);
  pointer-events: none;
}

.tech-matrix-icon,
.tech-matrix-icon svg,
.client-proof-emblem svg,
.trust-compliance-icon,
.pathway-card .service-strip-icon,
.pathway-more,
.proof-ledger-icon,
.workflow-step-card .step-badge,
.testimonial-avatar {
  transition:
    transform var(--fx-fast) var(--fx-ease),
    color var(--fx-fast) var(--fx-ease),
    background-color var(--fx-fast) var(--fx-ease),
    border-color var(--fx-fast) var(--fx-ease);
}

.biz-card,
.feature-check,
.platform-pill,
.mall-summary-card,
.case-kpi-tile,
.studio-profile-card {
  transition:
    transform var(--fx-fast) var(--fx-ease),
    border-color var(--fx-base) var(--fx-ease),
    box-shadow var(--fx-base) var(--fx-ease),
    background-color var(--fx-fast) var(--fx-ease);
}

/* 5. Desktop Pointer Hover Interactions (Strict @media (hover: hover) Guard) */
@media (hover: hover) and (pointer: fine) {
  .pathway-card:hover,
  .pathway-card:focus-visible {
    transform: translateY(-2px);
    border-color: #0B1220;
    background-color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(9, 13, 22, 0.08);
  }
  .pathway-card:hover::before,
  .pathway-card:focus-visible::before {
    transform: scaleX(1);
  }
  .pathway-card:hover .pathway-more {
    transform: translateX(3px);
    color: #0B1220;
  }
  .pathway-card:hover .service-strip-icon {
    border-color: var(--lux-champagne);
    box-shadow: inset 0 0 0 1px rgba(200, 155, 84, 0.35);
  }

  .gallery-card:hover,
  .gallery-card:focus-within {
    transform: translateY(-2px);
    border-color: #0B1220;
    box-shadow: 0 12px 28px rgba(9, 13, 22, 0.10);
  }
  .gallery-card:hover::before,
  .gallery-card:focus-within::before {
    transform: scaleX(1);
  }
  .gallery-card:hover .gallery-canvas {
    transform: scale(1.018);
  }

  .proof-ledger-card:hover {
    transform: translateY(-2px);
    border-color: #94A3B8;
    border-top-color: var(--lux-champagne);
    box-shadow: 0 10px 24px rgba(9, 13, 22, 0.07);
  }
  .proof-ledger-card:hover::before {
    transform: scaleX(1);
  }
  .proof-ledger-card:hover .proof-ledger-icon {
    color: var(--lux-champagne);
    transform: translateY(-1px);
  }

  .workflow-step-card:hover {
    transform: translateY(-2px);
    border-color: #0B1220;
    box-shadow: 0 8px 20px rgba(9, 13, 22, 0.07);
  }
  .workflow-step-card:hover::before {
    transform: scaleX(1);
  }
  .workflow-step-card:hover .step-badge {
    background: #0B1220;
    color: var(--lux-champagne-light);
    border-color: #0B1220;
  }

  .promise-enterprise-card:hover {
    transform: translateY(-2px);
    border-color: #94A3B8;
    border-left-color: #059669;
    box-shadow: 0 8px 20px rgba(9, 13, 22, 0.06);
  }

  .testimonial-enterprise-card:hover {
    transform: translateY(-2px);
    border-color: #94A3B8;
    box-shadow: 0 10px 24px rgba(9, 13, 22, 0.07);
  }
  .testimonial-enterprise-card:hover::before {
    transform: scaleX(1);
  }
  .testimonial-enterprise-card:hover .testimonial-avatar {
    box-shadow: inset 0 0 0 1px var(--lux-champagne-light);
  }

  .card.card-hover:hover {
    transform: translateY(-2px);
    border-color: #0B1220;
    box-shadow: 0 10px 24px rgba(9, 13, 22, 0.08);
  }
  .card.card-hover:hover::before {
    transform: scaleX(1);
  }

  /* Connected Grid Cells: Zero vertical jump, pure crisp accent & tint */
  .client-proof-card:hover {
    background-color: #F8FAFC;
  }
  .client-proof-card:hover::before {
    transform: scaleX(1);
  }
  .client-proof-card:hover .client-proof-emblem svg {
    transform: scale(1.06);
  }

  .trust-compliance-item:hover {
    background-color: rgba(255, 255, 255, 0.035);
  }
  .trust-compliance-item:hover::before {
    transform: scaleX(1);
  }
  .trust-compliance-item:hover .trust-compliance-icon {
    border-color: var(--lux-champagne-light);
    background-color: rgba(200, 155, 84, 0.22);
  }

  .article-list-row:hover {
    background-color: #F8FAFC;
  }
  .article-list-row:hover::before {
    transform: scaleY(1);
  }

  /* Tech Matrix Cards */
  .tech-matrix-card:hover,
  .tech-matrix-card:focus-visible {
    transform: translateY(-1px);
    background-color: #FFFFFF;
    border-color: #0B1220;
    box-shadow: 0 6px 16px rgba(9, 13, 22, 0.07);
  }
  .tech-matrix-card:hover::before,
  .tech-matrix-card:focus-visible::before {
    transform: scaleY(1);
  }
  .tech-matrix-card:hover .tech-matrix-icon {
    border-color: #CBD5E1;
  }
  .tech-matrix-card:hover .tech-matrix-icon svg {
    transform: scale(1.08);
  }

  /* Dark Hero Dossier & Subpage KPI Tiles (Anchored, Zero Float) */
  .studio-profile-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    border-top-color: var(--lux-champagne-light);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }

  .page-banner .mall-summary-card:hover,
  .page-banner .case-kpi-tile:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(200, 155, 84, 0.42);
  }

  /* Quote Workbench Selectable Cards */
  .biz-card:hover,
  .feature-check:hover,
  .platform-pill:hover {
    transform: translateY(-1px);
    border-color: #0B1220;
    box-shadow: 0 4px 12px rgba(9, 13, 22, 0.06);
  }
}

/* Tactile Press Feedback (Desktop & Touch) */
.pathway-card:active,
.tech-matrix-card:active,
.biz-card:active,
.platform-pill:active {
  transform: translateY(0);
}

/* Strict Accessibility Guard: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .fx-card-ready,
  .fx-card-ready.fx-card-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pathway-card,
  .gallery-card,
  .proof-ledger-card,
  .workflow-step-card,
  .promise-enterprise-card,
  .testimonial-enterprise-card,
  .card.card-hover,
  .client-proof-card,
  .trust-compliance-item,
  .tech-matrix-card,
  .biz-card,
  .feature-check,
  .platform-pill,
  .studio-profile-card,
  .gallery-canvas {
    transition: none !important;
    transform: none !important;
  }
  .pathway-card::before,
  .gallery-card::before,
  .proof-ledger-card::before,
  .workflow-step-card::before,
  .testimonial-enterprise-card::before,
  .card.card-hover::before,
  .client-proof-card::before,
  .trust-compliance-item::before,
  .article-list-row::before,
  .tech-matrix-card::before {
    transition: none !important;
  }
}

/* ==========================================================================
   Ultra-Granular Services Hub & Online Quote Workbench Styles (0px/2px Enterprise)
   ========================================================================== */
.svc-banner-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 300px;
}

.svc-pillar-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
}

.svc-pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.svc-pillar-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #0B1220;
  line-height: 1.35;
}

.svc-pillar-title a {
  color: inherit;
  text-decoration: none;
}

.svc-pillar-title a:hover {
  color: var(--brand-primary);
}

.svc-pillar-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  background: #FAFBFD;
  border: 1px solid #E5EAF2;
  border-radius: 2px;
  margin-bottom: 18px;
}

.svc-sub-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.svc-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: #334155;
}

.svc-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}

.svc-check-list li svg {
  color: #047857;
  margin-top: 2px;
  flex-shrink: 0;
}

.svc-pillar-foot {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Industry Vertical Solution Switcher */
.industry-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.industry-solution-panel {
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-top: 2px solid #0B1220;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(9, 13, 22, 0.04);
}

.industry-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: #FAFBFD;
  border-bottom: 1px solid #E5EAF2;
}

.industry-panel-pricing {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #0B1220;
  color: #FFFFFF;
  border-radius: 2px;
  border-left: 2px solid var(--lux-champagne);
}

.industry-panel-pricing span {
  display: block;
  font-size: 11px;
  color: #94A3B8;
}

.industry-panel-pricing strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFFFFF;
  margin-top: 2px;
}

.industry-panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.industry-col-box {
  padding: 22px 24px;
  min-width: 0;
}

.industry-col-box:first-child {
  border-right: 1px solid #E5EAF2;
}

.industry-col-box h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0B1220;
}

.industry-col-box h4 svg {
  color: var(--lux-champagne);
}

.industry-pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.industry-pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}

.industry-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #F1F5F9;
  color: #0B1220;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  flex-shrink: 0;
}

.industry-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #FAFBFD;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.industry-tech-chip:hover {
  border-color: #0B1220;
  background: #FFFFFF;
}

.arch-layer-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.arch-layer-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  background: #FAFBFD;
  border: 1px solid #E2E8F0;
  border-left: 2px solid #0B1220;
  border-radius: 2px;
  font-size: 12.5px;
}

.arch-layer-tag {
  font-weight: 700;
  color: #0B1220;
  font-size: 12px;
}

.arch-layer-desc {
  color: #475569;
  line-height: 1.5;
}

.industry-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Role Allocation & Security Baseline */
.role-bars-stack {
  display: grid;
  gap: 13px;
}

.role-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 5px;
}

.role-bar-head strong {
  color: #0B1220;
}

.role-bar-head span {
  font-size: 12px;
  font-weight: 700;
  color: var(--lux-gold-ink, #855D22);
}

.role-bar-track {
  height: 6px;
  background: #E2E8F0;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 4px;
}

.role-bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0B1220 0%, #C89B54 100%);
}

.role-bar-desc {
  font-size: 12px;
  color: #64748B;
}

.security-baseline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.security-baseline-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  background: #FAFBFD;
  border: 1px solid #E2E8F0;
  border-radius: 2px;
  min-width: 0;
}

.security-baseline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #0B1220;
  color: var(--lux-champagne-light);
  border-radius: 2px;
  flex-shrink: 0;
}

.security-baseline-item strong {
  display: block;
  font-size: 13px;
  color: #0B1220;
  margin-bottom: 2px;
}

.security-baseline-item span {
  display: block;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
}

/* Service Detail Blueprint & Interactive Picker Summary */
.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.blueprint-layer-card {
  padding: 16px;
  border-top: 2px solid #0B1220;
}

.blueprint-layer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #0B1220;
}

.blueprint-chips {
  display: grid;
  gap: 6px;
}

.blueprint-chips span {
  display: block;
  padding: 6px 9px;
  background: #FAFBFD;
  border: 1px solid #E2E8F0;
  border-radius: 2px;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}

.svc-picker-summary {
  margin-top: 18px;
  padding: 18px 22px;
  background: #0B1220;
  color: #FFFFFF;
  border-radius: 2px;
  border-top: 2px solid var(--lux-champagne);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.svc-picker-metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.svc-picker-metrics span {
  display: block;
  font-size: 11.5px;
  color: #94A3B8;
}

.svc-picker-metrics strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFFFFF;
  margin-top: 2px;
}

/* Online Quote Workbench: Presets, Integrations, Search, Role Bars & Dual Compare */
.quote-presets-bar {
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-top: 2px solid #0B1220;
  border-radius: 2px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.quote-presets-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: #0B1220;
}

.quote-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quote-preset-btn {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 11px 13px;
  background: #FAFBFD;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 180ms var(--fx-ease), border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.quote-preset-btn strong {
  font-size: 13px;
  color: #0B1220;
}

.quote-preset-btn > span {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.45;
}

.quote-preset-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #855D22;
  background: #FDF6E7;
  border: 1px solid #EED6A4;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.quote-preset-btn:hover {
  transform: translateY(-1px);
  border-color: #0B1220;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(9, 13, 22, 0.06);
}

.quote-preset-btn.active {
  border-color: #0B1220;
  border-left: 3px solid var(--lux-champagne);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.08);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-mod-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.quote-mod-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background: #FAFBFD;
  color: #64748B;
}

.quote-mod-search:focus-within {
  border-color: #0B1220;
  background: #FFFFFF;
}

.quote-mod-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: #0B1220;
}

.quote-mod-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-link-xs {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lux-gold-ink, #855D22);
  cursor: pointer;
}

.btn-link-xs:hover {
  text-decoration: underline;
}

.quote-head-submetrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: #CBD5E1;
}

.quote-head-submetrics span {
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 2px;
}

.quote-role-bars {
  display: grid;
  gap: 8px;
}

.quote-role-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 3px;
}

.quote-role-meta strong {
  font-family: var(--font-mono);
  color: #0B1220;
}

.quote-role-track {
  height: 5px;
  background: #E2E8F0;
  overflow: hidden;
}

.quote-role-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0B1220 0%, var(--lux-champagne) 100%);
}

.compare-slot-list {
  display: grid;
  gap: 8px;
}

.compare-slot-item {
  padding: 8px 10px;
  background: #FAFBFD;
  border: 1px solid #DCE3EE;
  border-left: 2px solid var(--lux-champagne);
  border-radius: 2px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .svc-banner-kpis { min-width: 0; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .industry-panel-body { grid-template-columns: 1fr; }
  .industry-col-box:first-child { border-right: 0; border-bottom: 1px solid #E5EAF2; }
  .blueprint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-presets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .svc-banner-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-pillar-cols,
  .security-baseline-grid,
  .blueprint-grid,
  .quote-presets-grid,
  .integration-grid { grid-template-columns: 1fr; }
  .arch-layer-row { grid-template-columns: 1fr; gap: 4px; }
  .svc-picker-metrics { gap: 14px; }
}

/* ==========================================================================
   Visual & Layout Polish — 5 Screenshot Targeted Fixes
   ========================================================================== */

/* 1. Homepage Case Switcher: Full-Width 6-Col Architectural Tabs (Zero Truncation) */
.home-case-switcher {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.case-switch-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-bottom: 2px solid #DCE3EE;
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.case-switch-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.case-switch-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.case-switch-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  border-bottom-color: #0B1220;
}

.case-switch-btn.active {
  background: #0B1220;
  border-color: #0B1220;
  border-bottom: 2px solid var(--lux-champagne);
  color: #FFFFFF;
}

.case-switch-btn.active .case-switch-kicker {
  color: var(--lux-champagne-light);
}

.case-switch-btn.active .case-switch-title {
  color: #FFFFFF;
}

/* 2. Unified .portal-bar Alignment: Title + Right Action Buttons Always Flush Row-1 */
.portal-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.portal-bar-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.portal-bar > :not(.portal-bar-left) {
  flex-shrink: 0;
  margin-top: 2px;
}

.portal-bar-title {
  flex-wrap: wrap;
  max-width: 100%;
}

/* 3. Homepage Trust Compliance Strip: Harmonious Light Architectural Slate (No Harsh Black Bar) */
.trust-compliance-strip {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  color: #0B1220;
  border-bottom: 1px solid #DCE3EE;
}

.trust-compliance-item {
  border-right: 1px solid #DCE3EE;
}

.trust-compliance-icon {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0B1220;
}

.trust-compliance-item strong {
  color: #0B1220;
}

.trust-compliance-item > div > span {
  color: #475569;
}

@media (hover: hover) and (pointer: fine) {
  .trust-compliance-item:hover {
    background-color: #FFFFFF;
  }
  .trust-compliance-item:hover .trust-compliance-icon {
    border-color: var(--lux-champagne);
    background-color: #FDF9F0;
    color: #855D22;
  }
}

/* 4. /templates & Subpage Dark Banner: Frosted Glass Summary Tiles + Warm Champagne Primary CTA */
.page-banner .mall-summary-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 2px solid rgba(200, 155, 84, 0.45);
  border-radius: 2px;
  padding: 14px 16px;
  color: #FFFFFF;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.page-banner .mall-summary-item svg,
.page-banner .mall-summary-item .ui-icon {
  color: var(--lux-champagne-light);
  flex-shrink: 0;
}

.page-banner .mall-summary-item strong {
  color: #FFFFFF;
}

.page-banner .mall-summary-item span {
  color: #94A3B8;
}

@media (hover: hover) and (pointer: fine) {
  .page-banner .mall-summary-item:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(200, 155, 84, 0.45);
  }
}

.page-banner .btn-ai {
  background: #D6B06C;
  color: #090D16;
  border-color: #D6B06C;
  font-weight: 700;
}

.page-banner .btn-ai:hover {
  background: #E4C384;
  border-color: #E4C384;
  color: #090D16;
}

/* 5. /services Banner: Symmetrical 2-Column Enterprise Split (Zero Empty Right Void) */
.svc-banner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
  gap: 36px;
  align-items: center;
}

.svc-banner-main {
  min-width: 0;
}

.svc-banner-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.svc-banner-kpis .case-kpi-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 2px solid rgba(200, 155, 84, 0.50);
  border-radius: 2px;
}

.svc-banner-kpis .case-kpi-tile strong {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFFFFF;
  line-height: 1.15;
}

.svc-banner-kpis .case-kpi-tile span {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .home-case-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .svc-banner-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .svc-banner-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .trust-compliance-item:nth-child(-n+2) {
    border-bottom: 1px solid #DCE3EE;
  }
}

@media (max-width: 768px) {
  .portal-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .portal-bar > * {
    max-width: 100%;
    flex-shrink: 1;
  }
  .home-case-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }
  .svc-banner-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-compliance-item {
    border-bottom: 1px solid #DCE3EE;
  }
}

/* ==========================================================================
   UNIFIED OBSIDIAN & CHAMPAGNE THEME LAYER
   全站色彩彻底统一：曜石黑 (#090D16 / #0B1220) × 瓷白冷雾 × 温润香槟金 (#C89B54 / #8C6323)
   消除所有突兀亮蓝按钮/标签与深底刺眼纯白块，保持 100% 大厂级高级秩序感
   ========================================================================== */
:root,
[data-theme="dual"],
[data-theme="light"] {
  --brand-primary: #8C6323;
  --brand-primary-hover: #704D18;
  --brand-primary-soft: #FAF5EA;
  --lux-gold-cta: #D6B06C;
  --lux-gold-cta-hover: #E4C384;
  --lux-gold-ink: #855D22;
  --lux-gold-border: #E5D1A8;
  --lux-gold-tint: #FAF5EA;
}

/* 1. Unify ALL Primary CTAs on Dark Surfaces to Warm Champagne Gold (Zero Glaring Pure White Blocks) */
.site-header .btn-ai,
.flagship-hero .btn-ai,
.btn-luxury-light,
.page-banner .btn-ai,
.quick-quote-box .btn-ai {
  background: var(--lux-gold-cta);
  color: #090D16;
  border-color: var(--lux-gold-cta);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.site-header .btn-ai:hover,
.flagship-hero .btn-ai:hover,
.btn-luxury-light:hover,
.page-banner .btn-ai:hover,
.quick-quote-box .btn-ai:hover {
  background: var(--lux-gold-cta-hover);
  border-color: var(--lux-gold-cta-hover);
  color: #090D16;
}

/* 2. Unify ALL Primary Buttons on Light Surfaces to Deep Obsidian Ink (Zero Clashing Bright Blue) */
.btn-ai,
.btn-primary,
.ai-chat-foot .btn-ai {
  background: #0B1220;
  color: #FFFFFF;
  border-color: #0B1220;
}

.btn-ai:hover,
.btn-primary:hover,
.ai-chat-foot .btn-ai:hover {
  background: #1E293B;
  border-color: #1E293B;
  color: #FFFFFF;
}

/* Keep dark-banner secondary .btn-primary subtle champagne-tinted glass */
.flagship-hero .btn-primary,
.page-banner .btn-primary {
  background: rgba(200, 155, 84, 0.15);
  color: #F8FAFC;
  border-color: rgba(200, 155, 84, 0.45);
}

.flagship-hero .btn-primary:hover,
.page-banner .btn-primary:hover {
  background: rgba(200, 155, 84, 0.25);
  border-color: var(--lux-champagne-light);
  color: #FFFFFF;
}

/* 3. Unify ALL Rogue Blue Badges, Pills, Links & Active States to Antique Champagne / Obsidian */
.badge-blue,
.badge-ai,
.gallery-pill-cat,
.gallery-status-blue,
.article-list-row .badge-blue {
  background: var(--lux-gold-tint);
  color: var(--lux-gold-ink);
  border: 1px solid var(--lux-gold-border);
}

.gallery-type-icon-blue {
  background: var(--lux-gold-tint);
  color: var(--lux-gold-ink);
}

.gallery-type-icon {
  background: #F1F5F9;
  color: #0B1220;
}

.pathway-more,
.client-endorsement-link,
.role-bar-pct {
  color: var(--lux-gold-ink);
}

.pathway-more:hover,
.client-endorsement-link:hover {
  color: #0B1220;
}

.quote-mini-table .adj-row td:last-child,
.quote-sheet-head .quote-kicker {
  color: var(--lux-champagne-light);
}

.quote-black-card .quote-mini-table .adj-row td:last-child {
  color: var(--lux-gold-ink);
}

.biz-card.active,
.platform-pill.active,
.integration-card.checked,
.feature-item.checked,
.feature-item.selected {
  border-color: #0B1220;
  background: #FDFBF6;
  box-shadow: inset 0 0 0 1px rgba(11, 18, 32, 0.08);
}

.biz-card.active .biz-card-icon {
  background: #0B1220;
  color: var(--lux-champagne-light);
  border-color: #0B1220;
}

.platform-pill.active {
  color: #0B1220;
}

.platform-pill input,
.integration-card input,
.feature-item input,
.gallery-compare-toggle input,
.svc-picker-item input {
  accent-color: #0B1220;
}

.gallery-compare-toggle:hover,
.gallery-compare-toggle:has(input:checked) {
  border-color: #0B1220;
  background: var(--lux-gold-tint);
  color: #0B1220;
}

.svc-picker-item.checked,
.svc-picker-item:has(input:checked) {
  border-color: #0B1220;
  background: #FDFBF6;
}

/* Simulator / Quote subtle link & accent consistency */
.sim-header .badge-blue,
.quote-step-card .step-badge {
  background: var(--lux-gold-tint);
  color: var(--lux-gold-ink);
  border-color: var(--lux-gold-border);
}

.faq-icon,
.faq-item[open] .faq-q {
  color: var(--lux-gold-ink);
}

.faq-item[open] {
  border-color: var(--lux-gold-border);
}

a.gallery-stack-pill:hover,
.tag:hover,
.tech-pill-link:hover {
  border-color: #0B1220;
  background: var(--lux-gold-tint);
  color: #0B1220;
}

.gallery-stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill.active {
  background: #0B1220;
  border-color: #0B1220;
  color: #FFFFFF;
}

/* 4. Homepage Trust Compliance Strip Icons: Crisp Solid Obsidian + Champagne (Centered) */
.trust-compliance-item > .trust-compliance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0B1220;
  border: 1px solid #0B1220;
  color: #E6C486;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.trust-compliance-item > .trust-compliance-icon svg {
  display: block;
  color: #E6C486;
  stroke: #E6C486;
}

@media (hover: hover) and (pointer: fine) {
  .trust-compliance-item:hover .trust-compliance-icon {
    background: #1E293B;
    border-color: var(--lux-champagne);
    color: var(--lux-gold-cta-hover);
  }
  .trust-compliance-item:hover .trust-compliance-icon svg {
    color: var(--lux-gold-cta-hover);
    stroke: var(--lux-gold-cta-hover);
  }
}

/* 5. Custom Enterprise <select> Dropdown Arrows (Zero Cramped Native Browser Arrow) */
.select,
.portal-search-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px !important;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px 14px;
  cursor: pointer;
}

.select:focus {
  border-color: #0B1220;
  box-shadow: 0 0 0 2px rgba(11, 18, 32, 0.08);
  outline: none;
}

/* 6. /services 6-Column Full-Width Industry Tabs (Zero Orphan Tab on Row 2) */
.industry-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.industry-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-bottom: 2px solid #DCE3EE;
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.industry-tab-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.industry-tab-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.industry-tab-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  border-bottom-color: #0B1220;
}

.industry-tab-btn.active {
  background: #0B1220;
  border-color: #0B1220;
  border-bottom: 2px solid var(--lux-champagne);
  color: #FFFFFF;
}

.industry-tab-btn.active .industry-tab-kicker {
  color: var(--lux-champagne-light);
}

.industry-tab-btn.active .industry-tab-title {
  color: #FFFFFF;
}

/* 7. /services Security Baseline Cards: Refined Warm Champagne Emblem Tiles (No Heavy Black Blobs) */
.security-baseline-card {
  gap: 12px;
  padding: 14px 15px;
  background: #FAFBFD;
  border: 1px solid #E2E8F0;
}

.security-baseline-icon {
  width: 34px;
  height: 34px;
  background: var(--lux-gold-tint);
  border: 1px solid var(--lux-gold-border);
  color: var(--lux-gold-ink);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 8. Floating Online Customer Service Drawer (.ai-chat-panel): Executive Architectural Frame */
.ai-chat-panel {
  border: 1px solid rgba(11, 18, 32, 0.26);
  border-top: 2px solid var(--lux-champagne);
  border-radius: 2px;
  box-shadow: 0 22px 54px rgba(9, 13, 22, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.10);
  background: #FFFFFF;
}

.ai-chat-head {
  background: #090D16;
  border-bottom: 1px solid rgba(200, 155, 84, 0.26);
  padding: 14px 16px;
}

.ai-chat-body {
  background: #F6F7FA;
}

.chat-msg.assistant {
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(9, 13, 22, 0.04);
}

.chat-msg.user {
  background: #0B1220;
  border-radius: 2px;
}

.chat-action-card {
  border-radius: 2px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0B1220;
}

.chat-action-card.primary {
  background: var(--lux-gold-tint);
  border: 1px solid var(--lux-gold-border);
  border-left: 2px solid var(--lux-champagne);
  color: #0B1220;
}

.chat-action-card:hover,
.chat-action-card.primary:hover {
  border-color: #0B1220;
  background: #F4E9D2;
  color: #0B1220;
}

.chat-chips {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}

.chat-chip {
  background: #F8FAFC;
  border: 1px solid #DCE3EE;
  color: #334155;
  border-radius: 2px;
}

.chat-chip:hover {
  border-color: #0B1220;
  background: var(--lux-gold-tint);
  color: #0B1220;
}

.ai-chat-foot {
  background: #FFFFFF;
  border-top: 1px solid #DCE3EE;
}

.ai-chat-foot .input {
  border: 1px solid #CBD5E1;
  border-radius: 2px;
}

.ai-chat-foot .input:focus {
  border-color: #0B1220;
  outline: none;
}

@media (max-width: 1080px) {
  .industry-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .industry-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   PRECISION VISUAL CONTRAST, ALIGNMENT & SIMULATOR POLISH
   ============================================================ */

/* 1. Dark Page-Banner KPI Tiles & Sleek Dark-Glass Tech Stack Pills */
.page-banner .case-kpi-num {
  color: var(--lux-champagne-light);
}

.page-banner .case-kpi-name {
  color: #F8FAFC;
  font-weight: 700;
}

.page-banner .case-kpi-sub {
  color: #94A3B8;
}

.page-banner .tag,
.page-banner .gallery-stack-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  border-radius: 2px;
  padding: 5px 10px;
}

.page-banner a.tag:hover,
.page-banner a.gallery-stack-pill:hover {
  background: rgba(214, 176, 108, 0.16);
  border-color: rgba(214, 176, 108, 0.45);
  color: #FFFFFF;
}

/* 2. SaaS & Website Simulator Browser Chrome (Restored Traffic Dots + Clean Left-Aligned URL Bar) */
.traffic-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.traffic-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.traffic-dots span:nth-child(1) { background: #E5A09B; }
.traffic-dots span:nth-child(2) { background: #DFBA7C; }
.traffic-dots span:nth-child(3) { background: #86C5A4; }

.saas-browser-bar {
  justify-content: flex-start;
  gap: 14px;
}

.saas-url-pill {
  flex: 1 1 320px;
  max-width: 500px;
  margin-right: auto;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  color: #475569;
  padding: 5px 11px;
  border-radius: 2px;
}

.saas-row-clickable:hover {
  background: #FAF5EA;
}

.saas-row-link {
  color: var(--lux-gold-ink);
}

/* 3. Case Detail Comparison Cards: Equal-Height Bottom-Aligned CTAs */
.compare-route-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 2px;
}

.compare-route-box > .btn {
  margin-top: auto;
}

/* 4. Simulator 3-Step Guide Numbered Badges (Zero Vertical Squish / Crisp Square Index) */
.sim-checklist li > .sim-check-dot {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: var(--lux-gold-tint);
  border: 1px solid var(--lux-gold-border);
  color: var(--lux-gold-ink);
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.sim-checklist li.done > .sim-check-dot {
  background: #0B1220;
  border-color: #0B1220;
  color: var(--lux-champagne-light);
}

/* 5. Homepage Testimonial Monogram Avatars (Centered Bright Champagne on Obsidian) */
.testimonial-foot > .testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0B1220;
  color: #E6C486;
  border: 1px solid rgba(214, 176, 108, 0.35);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   6. CASE REAL CLIENT AVATARS, VERIFIED REVIEWS & DELIVERY PROOF
   ============================================================ */
.testimonial-avatar-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  border: 1px solid rgba(200, 155, 84, 0.55);
  background: #0B1220;
  flex-shrink: 0;
}

.testimonial-case-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lux-gold-ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.testimonial-case-link:hover {
  color: #0B1220;
}

/* Case Card Embedded Real-Avatar Endorsement Strip (/cases) */
.case-card-review-strip {
  margin-top: 12px;
  padding: 10px 12px;
  background: #FAF8F3;
  border: 1px solid #EBE2CE;
  border-left: 2px solid var(--lux-champagne);
  border-radius: 2px;
}

.case-card-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.case-card-avatar-img,
.case-card-avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  flex-shrink: 0;
}

.case-card-avatar-img {
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(200, 155, 84, 0.5);
  background: #0B1220;
}

.case-card-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0B1220;
  color: #E6C486;
  font-size: 12px;
  font-weight: 700;
}

.case-card-review-meta {
  flex: 1;
  min-width: 0;
}

.case-card-review-meta strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0B1220;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-card-review-meta span {
  display: block;
  font-size: 11px;
  color: #64748B;
}

.case-card-rating-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--lux-gold-ink);
  background: #FFFFFF;
  border: 1px solid var(--lux-gold-border);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.case-card-review-quote {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dedicated Case Client Review Wall Cards (/cases#case-reviews-wall & /cases/reviews) */
.case-review-wall-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border-radius: 2px;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  height: 100%;
}

.case-review-wall-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.case-review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.case-review-portrait,
.case-review-portrait-fallback {
  width: 54px;
  height: 54px;
  border-radius: 2px;
  flex-shrink: 0;
}

.case-review-portrait {
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(200, 155, 84, 0.55);
  background: #0B1220;
}

.case-review-portrait-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0B1220;
  color: #E6C486;
  font-size: 18px;
  font-weight: 700;
}

.case-review-person strong,
.case-detail-contact {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0B1220;
  line-height: 1.3;
}

.case-review-company {
  font-size: 12.5px;
  color: #475569;
  margin-top: 2px;
}

.case-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  margin-top: 4px;
}

.case-review-score-box {
  text-align: right;
  flex-shrink: 0;
}

.case-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #C89B54;
}

.case-review-score-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--lux-gold-ink);
  margin-top: 3px;
}

.case-review-wall-body {
  margin: 0 0 14px;
  padding: 13px 15px;
  background: #FAF8F3;
  border-left: 2px solid var(--lux-champagne);
  font-size: 13.5px;
  line-height: 1.75;
  color: #1E293B;
}

.case-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.case-review-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--lux-gold-ink);
  background: var(--lux-gold-tint);
  border: 1px solid var(--lux-gold-border);
  padding: 3px 8px;
  border-radius: 2px;
}

.case-review-artifacts-mini {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 2px;
}

.case-review-artifacts-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0B1220;
  margin-bottom: 8px;
}

.case-review-artifacts-mini ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.case-review-artifacts-mini li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.case-review-artifacts-mini li svg {
  color: #047857;
  margin-top: 2px;
  flex-shrink: 0;
}

.case-review-wall-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #E8EDF4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.case-review-project-link {
  flex: 1;
  min-width: 180px;
}

.case-review-proj-kicker {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-bottom: 2px;
}

.case-review-project-link a {
  font-size: 13px;
  font-weight: 700;
  color: #0B1220;
}

.case-review-project-link a:hover {
  color: var(--lux-gold-ink);
}

/* Case Detail Page: Client Review + Contract Delivery Artifacts 2-Column Showcase */
.case-proof-section {
  margin-bottom: 32px;
}

.case-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.case-proof-grid-single {
  grid-template-columns: 1fr;
}

.case-detail-review-card,
.case-artifacts-card {
  padding: 24px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.case-detail-portrait,
.case-detail-portrait-fallback {
  width: 64px;
  height: 64px;
  border-radius: 2px;
  flex-shrink: 0;
}

.case-detail-portrait {
  object-fit: cover;
  object-position: center top;
  border: 2px solid #0B1220;
  box-shadow: 0 0 0 1px rgba(200, 155, 84, 0.65);
  background: #0B1220;
}

.case-detail-portrait-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0B1220;
  color: #E6C486;
  font-size: 22px;
  font-weight: 700;
}

.case-detail-quote {
  margin: 4px 0 16px;
  padding: 16px 18px;
  background: #FAF8F3;
  border-left: 3px solid var(--lux-champagne);
  font-size: 14.5px;
  line-height: 1.85;
  color: #0B1220;
}

.case-detail-proof-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #E8EDF4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-detail-proof-stat {
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 2px;
}

.case-detail-proof-stat span {
  display: block;
  font-size: 11px;
  color: #64748B;
}

.case-detail-proof-stat strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0B1220;
  margin-top: 2px;
}

.case-artifacts-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #E8EDF4;
}

.case-artifacts-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 800;
  color: #0B1220;
}

.case-artifacts-head span {
  font-size: 12px;
  color: #64748B;
}

.case-artifacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.case-artifacts-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 2px;
}

.case-artifact-icon {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background: var(--lux-gold-tint);
  border: 1px solid var(--lux-gold-border);
  color: var(--lux-gold-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.case-artifact-body {
  flex: 1;
  min-width: 0;
}

.case-artifact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.case-artifact-top strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #0B1220;
}

.case-artifact-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--lux-gold-ink);
  background: #FFFFFF;
  border: 1px solid var(--lux-gold-border);
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.case-artifact-body p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

@media (max-width: 960px) {
  .case-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .case-review-wall-card,
  .case-detail-review-card,
  .case-artifacts-card {
    padding: 16px;
  }
  .case-review-wall-top {
    flex-direction: column;
    gap: 10px;
  }
  .case-review-score-box {
    text-align: left;
  }
}

/* ============================================================
   7. ALIMAMA FANGYUANTI VF (Self-Hosted Commercial-Free Variable Font)
   Copyright (c) Alibaba Design - Alimama FangYuanTi VF (wght 200-700, BEVL 1-100)
   ============================================================ */
@font-face {
  font-family: "Alimama FangYuanTi VF";
  src: url("/assets/fonts/AlimamaFangYuanTiVF-Thin.woff2") format("woff2-variations"),
       url("/assets/fonts/AlimamaFangYuanTiVF-Thin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="dual"],
[data-theme="light"] {
  --font-display: "Alimama FangYuanTi VF", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.flagship-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-variation-settings: "wght" 650, "BEVL" 28;
  font-synthesis-weight: none;
  font-size: clamp(30px, 3.15vw, 44px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-variation-settings: "wght" 650, "BEVL" 28;
  font-synthesis-weight: none;
  line-height: 1.28;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.portal-bar-title,
.section-title,
.studio-profile-title,
.compare-kpi-num,
.flagship-kpi-item strong {
  font-family: var(--font-display);
  font-weight: 620;
  font-variation-settings: "wght" 620, "BEVL" 26;
  font-synthesis-weight: none;
  letter-spacing: 0.008em;
}

/* ============================================================
   8. UPGRADED 3-LAYER COMPARISON SHOWCASE (Executive Decision Matrix)
   ============================================================ */
.compare-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.compare-kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-top: 2px solid #0B1220;
  border-radius: 2px;
}

.compare-kpi-card-highlight {
  border-top-color: var(--lux-champagne);
  background: linear-gradient(180deg, #FDFBF6 0%, #FFFFFF 100%);
}

.compare-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #0B1220;
  color: #E6C486;
  border-radius: 2px;
  flex-shrink: 0;
}

.compare-kpi-icon svg {
  display: block;
}

.compare-kpi-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #0B1220;
  line-height: 1.25;
}

.compare-kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--lux-gold-ink);
  margin-top: 2px;
}

.compare-kpi-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
  margin-top: 4px;
}

.compare-matrix-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
  background: #FFFFFF;
}

.comparison-3way {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.comparison-3way thead th {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  background: #F8FAFC;
  border-bottom: 1px solid #DCE3EE;
  border-right: 1px solid #E8EDF4;
}

.comparison-3way thead th:last-child {
  border-right: 0;
}

.comparison-3way thead th.compare-col-head-win {
  background: #0B1220;
  color: #FFFFFF;
  border-top: 3px solid var(--lux-champagne);
  border-bottom-color: #0B1220;
}

.compare-col-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.compare-col-kicker-win {
  background: rgba(214, 176, 108, 0.18);
  color: #E6C486;
  border: 1px solid rgba(214, 176, 108, 0.4);
}

.compare-col-kicker-muted {
  background: #E2E8F0;
  color: #475569;
}

.compare-col-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.compare-col-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
  opacity: 0.78;
}

.comparison-3way tbody th,
.comparison-3way tbody td {
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid #E8EDF4;
  border-right: 1px solid #E8EDF4;
  font-size: 13px;
  line-height: 1.6;
}

.comparison-3way tbody td:last-child {
  border-right: 0;
}

.comparison-3way tbody tr:last-child th,
.comparison-3way tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-3way tbody th {
  background: #FAFBFD;
  color: #0B1220;
  font-weight: 700;
}

.compare-dim-cell {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.compare-dim-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--lux-gold-tint);
  border: 1px solid var(--lux-gold-border);
  color: var(--lux-gold-ink);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 1px;
}

.compare-dim-icon svg {
  display: block;
}

.compare-dim-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0B1220;
}

.compare-dim-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  margin-top: 1px;
}

.comparison-3way tbody td.compare-win {
  background: #FDFBF6;
  color: #1E293B;
}

.compare-cell-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.compare-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-status-icon svg {
  display: block;
}

.compare-status-ok {
  color: #047857;
}

.compare-status-warn {
  color: #B45309;
}

.compare-status-risk {
  color: #94A3B8;
}

.compare-cell-lead {
  display: block;
  font-weight: 700;
  color: #0B1220;
  margin-bottom: 2px;
}

.compare-cell-sub {
  display: block;
  font-size: 12.5px;
  color: #475569;
}

.compare-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.compare-path-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
}

.compare-path-card-featured {
  border-color: var(--lux-gold-border);
  background: linear-gradient(180deg, #FDFBF6 0%, #FFFFFF 100%);
}

.compare-path-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.compare-path-head strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #0B1220;
}

.compare-path-card p {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #475569;
  flex: 1;
}

.compare-path-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #E8EDF4;
}

.compare-path-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--lux-gold-ink);
}

@media (max-width: 960px) {
  .compare-kpi-strip,
  .compare-path-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Managed Operations (/operations) & Core Team (/team) Enterprise Styles
   ========================================================================== */
@media (max-width: 1360px) and (min-width: 769px) {
  .nav-inner {
    gap: 14px;
  }
  .nav-links a {
    padding: 21px 10px;
    font-size: 13.5px;
  }
}

@media (max-width: 1120px) and (min-width: 769px) {
  .nav-inner {
    gap: 10px;
  }
  .nav-brand-divider {
    display: none;
  }
  .nav-links a {
    padding: 21px 7px;
    font-size: 13px;
  }
}

.ops-billing-switch {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ops-service-card,
.home-ops-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
}

.ops-service-card.ops-selected {
  border-color: #0B1220;
  border-top: 2px solid var(--lux-champagne);
  box-shadow: 0 8px 22px rgba(9, 13, 22, 0.08);
}

.ops-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.ops-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #0B1220;
  color: var(--lux-champagne-light);
  border-radius: 2px;
  flex-shrink: 0;
}

.ops-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0B1220;
  line-height: 1.35;
}

.ops-price-box {
  text-align: right;
  flex-shrink: 0;
}

.ops-price-box strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.ops-price-box span {
  font-size: 11.5px;
  color: #64748B;
}

.ops-card-tagline {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #855D22;
}

.ops-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #E2E8F0;
  background: #FAFBFD;
  margin-bottom: 14px;
}

.ops-metric-cell {
  padding: 8px 10px;
  border-right: 1px solid #E2E8F0;
  text-align: center;
  min-width: 0;
}

.ops-metric-cell:last-child {
  border-right: 0;
}

.ops-metric-cell strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #0B1220;
}

.ops-metric-cell span {
  display: block;
  font-size: 11px;
  color: #64748B;
}

.ops-deliverables-box {
  padding: 12px 14px;
  background: #FAFBFD;
  border: 1px solid #E5EAF2;
  border-radius: 2px;
  margin-bottom: 12px;
  flex: 1;
}

.ops-deliverables-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 8px;
}

.ops-highlights-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
  font-size: 11.5px;
  color: #334155;
}

.ops-highlights-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ops-highlights-strip svg {
  color: var(--lux-champagne);
}

.ops-card-foot {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* Interactive Bundle Workbench */
.ops-bundle-workbench {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid #CBD5E1;
  border-top: 2px solid var(--lux-champagne);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(9, 13, 22, 0.08);
}

.ops-bundle-left {
  background: var(--lux-obsidian);
  color: #FFFFFF;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}

.ops-bundle-kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lux-champagne-light);
  letter-spacing: 0.04em;
}

.ops-selected-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ops-picked-chip {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  font-size: 12px;
  color: #E2E8F0;
}

.ops-calc-totals {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ops-calc-totals span {
  display: block;
  font-size: 11.5px;
  color: #94A3B8;
  margin-bottom: 4px;
}

.ops-calc-totals strong {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFFFFF;
}

.ops-bundle-right {
  background: #FFFFFF;
  padding: 26px 28px;
}

/* Our Team Member Cards */
.team-member-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  gap: 12px;
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.team-avatar-monogram,
.team-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  flex-shrink: 0;
}

.team-avatar-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lux-champagne-light);
  border: 1px solid rgba(200, 155, 84, 0.42);
  font-size: 20px;
  font-weight: 800;
}

.team-avatar-img {
  object-fit: cover;
  border: 1px solid #CBD5E1;
}

.team-member-name {
  font-size: 17px;
  font-weight: 800;
  color: #0B1220;
}

.team-lead-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #855D22;
  background: #FDF6E7;
  border: 1px solid #EED6A4;
  padding: 1px 7px;
  border-radius: 2px;
}

.team-member-role {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.team-member-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748B;
  margin-top: 2px;
}

.team-member-meta strong {
  color: #0B1220;
  font-family: var(--font-mono);
}

.team-member-bio {
  margin: 0;
  font-size: 12.8px;
  color: #475569;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-specialties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 11.5px;
  color: #334155;
}

.team-specialties span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-specialties svg {
  color: #047857;
  flex-shrink: 0;
}

.team-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-tech-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  background: #FAFBFD;
  border: 1px solid #DCE3EE;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #1E293B;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.team-tech-mini:hover {
  border-color: #0B1220;
  background: #FFFFFF;
}

.team-card-proof {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #E8EDF4;
}

.team-work-line {
  font-size: 12px;
  color: #1E293B;
  line-height: 1.5;
  margin-bottom: 8px;
}

.team-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .ops-bundle-workbench { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ops-calc-totals { grid-template-columns: 1fr; }
  .ops-bundle-left, .ops-bundle-right { padding: 20px 16px; }
  .team-specialties { grid-template-columns: 1fr; }
}

/* ============================================================
   9. EXECUTIVE MOBILE POLISH LAYER (<= 640px — iPhone 375–430px)
   Symmetric Full-Width & 2-Col CTAs, Compact 2x2 KPIs, Zero-Clip Tabs
   ============================================================ */
@media (max-width: 640px) {
  /* 9.1 Flagship Homepage Hero: Tight Balanced Rhythm + 1 Full-Width + 2 Equal CTAs */
  .flagship-hero {
    padding: 28px 0 34px;
  }

  .flagship-eyebrow {
    font-size: 11px;
    padding: 5px 10px;
    line-height: 1.4;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .flagship-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .flagship-desc {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  .flagship-value-pills {
    gap: 8px 12px;
    font-size: 12px;
    margin-bottom: 18px;
  }

  .flagship-ctas {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100%;
  }

  .flagship-ctas > :first-child {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .flagship-ctas > :not(:first-child) {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .flagship-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 12px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .flagship-kpi-item strong {
    font-size: 24px;
  }

  .studio-profile-card {
    padding: 18px 16px;
  }

  .studio-profile-title {
    font-size: 15px;
    line-height: 1.35;
  }

  /* 9.2 Case Detail & Subpage Dark Banners: Clean Badges, 1+2 CTA Grid & 2x2 KPI Board */
  .page-banner {
    padding: 24px 0 26px;
  }

  .page-banner .breadcrumbs {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 10px;
  }

  .case-banner-badges {
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .page-banner .badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  .page-banner .page-title {
    font-size: 23px;
    line-height: 1.32;
    margin-bottom: 8px;
  }

  .page-banner .page-lead {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .page-banner .tag-row {
    gap: 6px;
    margin-top: 12px !important;
  }

  .page-banner .tag,
  .page-banner .gallery-stack-pill {
    font-size: 11.5px;
    padding: 4px 8px;
  }

  .case-banner-ctas {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100%;
    margin-top: 16px !important;
  }

  .case-banner-ctas > .btn-ai {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .case-banner-ctas > .btn-primary,
  .case-banner-ctas > .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Compact 2x2 KPI Dashboard instead of 4 Giant Single-Column Blocks */
  .case-kpi-board {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .case-kpi-tile {
    padding: 12px;
  }

  .case-kpi-num {
    font-size: 20px;
  }

  .case-kpi-name {
    font-size: 12.5px;
    margin-top: 3px;
  }

  .case-kpi-sub {
    font-size: 11px;
    line-height: 1.4;
  }

  .mall-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .mall-summary-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 11px 12px;
    gap: 6px;
  }

  .mall-summary-item strong {
    font-size: 13px;
  }

  .mall-summary-item span {
    font-size: 11px;
    line-height: 1.4;
  }

  /* 9.3 Interactive Simulator Header Tabs & Footer Actions: Zero Clipping, Full-Width Touch Targets */
  .sim-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .sim-header-controls {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100%;
  }

  .sim-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    overflow: visible;
  }

  .sim-tab {
    width: 100%;
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sim-tab.active {
    background: #0B1220;
    border-color: #0B1220;
    color: #FFFFFF;
  }

  .sim-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .sim-header-controls [data-sim-fullscreen] {
    width: 100%;
    justify-content: center;
  }

  .sim-footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }

  .sim-footer-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    width: 100%;
  }

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

  /* 9.4 Case Comparison Card & Portal Section Action Buttons: Full-Width Clean Rhythm */
  .case-compare-card {
    padding: 16px;
  }

  .case-compare-head {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .case-compare-head > .btn {
    width: 100%;
    justify-content: center;
  }

  .portal-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .portal-bar > .btn,
  .portal-bar > div {
    width: 100%;
  }

  .portal-bar > div > .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .filter-bar form .input,
  .filter-bar form .select {
    max-width: 100% !important;
    width: 100%;
  }

  .site-footer {
    padding-bottom: 76px;
  }
}

/* ============================================================
   10. ARCHITECTURAL HERO MOTION SYSTEM
       Flagship Homepage Hero + Unified Page Banners
       Obsidian & Champagne Gold · 60fps GPU-Composited
   ============================================================ */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroCardReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroOrbDriftA {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(-44px, 26px, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes heroOrbDriftB {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(42px, -24px, 0) scale(1.1);
    opacity: 0.95;
  }
}

@keyframes heroSignalFlow {
  0% {
    stroke-dashoffset: 1800;
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  82% {
    opacity: 0.85;
  }
  100% {
    stroke-dashoffset: -1800;
    opacity: 0;
  }
}

@keyframes heroNodeBreath {
  0%, 100% {
    opacity: 0.28;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.35);
  }
}

@keyframes heroHorizonSweep {
  0% {
    transform: translate3d(-35%, 0, 0);
    opacity: 0;
  }
  20% {
    opacity: 0.95;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(135%, 0, 0);
    opacity: 0;
  }
}

@keyframes heroSheenSweep {
  0%, 62% {
    transform: translate3d(-140%, 0, 0) skewX(-24deg);
    opacity: 0;
  }
  72% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(260%, 0, 0) skewX(-24deg);
    opacity: 0;
  }
}

@keyframes heroBorderGlint {
  0% {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
  }
  25% {
    opacity: 0.95;
  }
  75% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(220%, 0, 0);
    opacity: 0;
  }
}

@keyframes heroPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* 10.1 Flagship Homepage Hero — Architectural Ambient Layer */
.flagship-hero {
  position: relative;
  overflow: hidden;
  --hero-mx: 72%;
  --hero-my: 24%;
}

.flagship-hero > .container {
  position: relative;
  z-index: 2;
}

.hero-ambient-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(68px);
  will-change: transform, opacity;
}

.hero-orb-gold {
  width: 520px;
  height: 420px;
  top: -140px;
  right: 4%;
  background: radial-gradient(circle, rgba(214, 176, 108, 0.22) 0%, rgba(200, 155, 84, 0.06) 52%, transparent 74%);
  animation: heroOrbDriftA 18s ease-in-out infinite;
}

.hero-orb-blue {
  width: 480px;
  height: 380px;
  bottom: -150px;
  left: -4%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(30, 64, 175, 0.06) 55%, transparent 76%);
  animation: heroOrbDriftB 22s ease-in-out infinite;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--hero-mx) var(--hero-my),
    rgba(214, 176, 108, 0.13),
    rgba(214, 176, 108, 0.03) 42%,
    transparent 70%
  );
  opacity: 0.35;
  transition: opacity 420ms ease;
}

.flagship-hero.is-pointer-active .hero-spotlight {
  opacity: 1;
}

.hero-blueprint-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.hero-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.flagship-hero .btn.is-magnetic,
.page-banner .btn.is-magnetic {
  transition: transform 90ms linear, background-color 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

.hero-signal-path {
  stroke-dasharray: 220 1580;
  stroke-dashoffset: 1800;
  animation: heroSignalFlow 11s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-signal-b {
  stroke-dasharray: 180 1620;
  animation-duration: 14s;
  animation-delay: -4.5s;
}

.hero-signal-c {
  stroke-dasharray: 150 1650;
  animation-duration: 13s;
  animation-delay: -8s;
}

.hero-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroNodeBreath 4.2s ease-in-out infinite;
}

.hero-node-2 { animation-delay: 0.9s; }
.hero-node-3 { animation-delay: 1.8s; }
.hero-node-4 { animation-delay: 2.5s; }
.hero-node-5 { animation-delay: 3.1s; }

.hero-horizon-beam {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(231, 201, 138, 0.85), transparent);
  animation: heroHorizonSweep 9.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 10.2 Flagship Hero — Staggered Entrance Choreography */
.flagship-hero .flagship-eyebrow {
  animation: heroFadeUp 560ms cubic-bezier(0.22, 1, 0.36, 1) 40ms both;
}

.flagship-hero .flagship-title {
  animation: heroFadeUp 640ms cubic-bezier(0.22, 1, 0.36, 1) 110ms both;
}

.flagship-hero .flagship-desc {
  animation: heroFadeUp 620ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.flagship-hero .flagship-value-pills {
  animation: heroFadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) 240ms both;
}

.flagship-hero .flagship-ctas {
  animation: heroFadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
}

.flagship-hero .flagship-kpi-strip {
  animation: heroFadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) 360ms both;
}

.flagship-hero .flagship-kpi-item {
  transition: transform 220ms ease;
}

.flagship-hero .flagship-kpi-item:hover {
  transform: translateY(-2px);
}

.flagship-hero .flagship-kpi-item:hover strong {
  color: var(--lux-champagne-light);
}

/* Radar Pulse Ring for Live Status Dots */
.flagship-hero .pulse-dot,
.page-banner .pulse-dot {
  position: relative;
}

.flagship-hero .pulse-dot::after,
.page-banner .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: heroPulseRing 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* 10.3 Flagship Studio Profile Card — 3D Tilt + Specular Glint */
.flagship-hero .studio-profile-card {
  position: relative;
  overflow: hidden;
  --card-mx: 50%;
  --card-my: 0%;
  animation: heroCardReveal 720ms cubic-bezier(0.22, 1, 0.36, 1) 190ms both;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, box-shadow 260ms ease;
  transform-style: preserve-3d;
}

.flagship-hero .studio-profile-card.is-tilting {
  transition: transform 70ms linear, border-color 240ms ease, box-shadow 260ms ease;
  border-color: rgba(214, 176, 108, 0.38);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.flagship-hero .studio-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--card-mx) var(--card-my),
    rgba(231, 201, 138, 0.14),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 280ms ease;
}

.flagship-hero .studio-profile-card.is-tilting::before {
  opacity: 1;
}

.flagship-hero .studio-profile-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #F5DFA9, transparent);
  animation: heroBorderGlint 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.flagship-hero .studio-trust-list li {
  animation: heroFadeUp 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flagship-hero .studio-trust-list li:nth-child(1) { animation-delay: 280ms; }
.flagship-hero .studio-trust-list li:nth-child(2) { animation-delay: 350ms; }
.flagship-hero .studio-trust-list li:nth-child(3) { animation-delay: 420ms; }

.flagship-hero .studio-stack-pills span {
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.flagship-hero .studio-stack-pills span:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 176, 108, 0.48);
  background: rgba(214, 176, 108, 0.12);
}

/* 10.4 Signature Gold CTA Specular Sheen Sweep (Homepage + All Page Banners) */
.flagship-hero .btn-ai,
.page-banner .btn-ai {
  position: relative;
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, box-shadow 220ms ease;
}

.flagship-hero .btn-ai::after,
.page-banner .btn-ai::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 0;
  width: 38%;
  height: 120%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: heroSheenSweep 5.8s ease-in-out infinite;
}

.flagship-hero .btn-ai:hover,
.page-banner .btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(214, 176, 108, 0.24);
}

/* 10.5 Unified Inner-Page Hero Motion (.page-banner across all pages) */
.page-banner {
  position: relative;
  overflow: hidden;
  --hero-mx: 78%;
  --hero-my: 18%;
}

.page-banner > .container {
  position: relative;
  z-index: 2;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      460px circle at var(--hero-mx) var(--hero-my),
      rgba(214, 176, 108, 0.13),
      rgba(214, 176, 108, 0.025) 45%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 44% 65% at 10% 100%,
      rgba(37, 99, 235, 0.13),
      transparent 66%
    );
  opacity: 0.78;
  transition: opacity 360ms ease;
}

.page-banner.is-pointer-active::before {
  opacity: 1;
}

.page-banner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 30%;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(214, 176, 108, 0.72), transparent);
  animation: heroHorizonSweep 10.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.page-banner .breadcrumbs {
  animation: heroFadeUp 460ms cubic-bezier(0.22, 1, 0.36, 1) 20ms both;
}

.page-banner .page-title {
  animation: heroFadeUp 580ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.page-banner .page-lead {
  animation: heroFadeUp 560ms cubic-bezier(0.22, 1, 0.36, 1) 145ms both;
}

.page-banner .badge {
  animation: heroFadeUp 480ms cubic-bezier(0.22, 1, 0.36, 1) 50ms both;
}

.page-banner .mall-summary-item,
.page-banner .case-kpi-tile {
  position: relative;
  overflow: hidden;
  --tile-mx: 50%;
  --tile-my: 0%;
  animation: heroFadeUp 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background-color 200ms ease, border-color 200ms ease;
}

.page-banner .mall-summary-item::before,
.page-banner .case-kpi-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    220px circle at var(--tile-mx) var(--tile-my),
    rgba(231, 201, 138, 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 240ms ease;
}

.page-banner .mall-summary-item:hover::before,
.page-banner .case-kpi-tile:hover::before {
  opacity: 1;
}

.page-banner .mall-summary-item:nth-child(1),
.page-banner .case-kpi-tile:nth-child(1) { animation-delay: 190ms; }
.page-banner .mall-summary-item:nth-child(2),
.page-banner .case-kpi-tile:nth-child(2) { animation-delay: 250ms; }
.page-banner .mall-summary-item:nth-child(3),
.page-banner .case-kpi-tile:nth-child(3) { animation-delay: 310ms; }
.page-banner .mall-summary-item:nth-child(4),
.page-banner .case-kpi-tile:nth-child(4) { animation-delay: 370ms; }

.page-banner .mall-summary-item:hover,
.page-banner .case-kpi-tile:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-orb {
    filter: blur(48px);
    opacity: 0.65;
  }
  .hero-blueprint-svg {
    opacity: 0.55;
  }
}

/* 10.6 Zero-Overhead Progressive Card Reveal (All Pages) */
@keyframes cardRevealIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.card-reveal-pending {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

.card-reveal-in {
  animation: cardRevealIn 460ms cubic-bezier(0.22, 1, 0.36, 1) var(--card-reveal-delay, 0ms) both;
}

@media (prefers-reduced-motion: reduce) {
  .card-reveal-pending {
    opacity: 1;
    transform: none;
  }
  .card-reveal-in {
    animation: none !important;
  }
  .flagship-hero *,
  .flagship-hero::before,
  .flagship-hero::after,
  .page-banner *,
  .page-banner::before,
  .page-banner::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .hero-spotlight {
    display: none;
  }
}

/* ============================================================
   11. TEMPLATE LIVE SIMULATOR SHOWROOM & CLIENT CASE DOSSIER
   ============================================================ */
.tpl-showroom-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-color);
}

.tpl-showroom-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tpl-sim-switcher {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.tpl-switch-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-top: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.tpl-switch-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 155, 84, 0.55);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.tpl-switch-btn.active {
  background: var(--lux-obsidian);
  border-color: rgba(214, 176, 108, 0.55);
  border-top-color: var(--lux-gold-cta);
  box-shadow: 0 12px 26px rgba(9, 13, 22, 0.22);
}

.tpl-switch-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tpl-switch-kicker {
  font-size: 11px;
  font-weight: 700;
  color: #855D22;
  letter-spacing: 0.02em;
}

.tpl-switch-btn.active .tpl-switch-kicker {
  color: var(--lux-champagne-light);
}

.tpl-switch-price {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.tpl-switch-btn.active .tpl-switch-price {
  color: #6EE7B7;
}

.tpl-switch-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpl-switch-btn.active .tpl-switch-title {
  color: #FFFFFF;
}

.tpl-sim-studio {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-top: 2px solid var(--lux-champagne);
  box-shadow: 0 16px 40px rgba(9, 13, 22, 0.08);
}

.tpl-sim-header {
  background: linear-gradient(180deg, #0D1322 0%, #111827 100%);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.tpl-sim-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.tpl-sim-meta-pill {
  font-size: 12px;
  color: #CBD5E1;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tpl-sim-price-pill {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--lux-champagne-light);
  padding: 2px 9px;
  border-radius: 2px;
  background: rgba(200, 155, 84, 0.16);
  border: 1px solid rgba(200, 155, 84, 0.36);
}

.tpl-sim-header .sim-tabs {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.tpl-sim-header .sim-tab {
  color: #CBD5E1;
}

.tpl-sim-header .sim-tab:hover {
  color: #FFFFFF;
}

.tpl-sim-header .sim-tab.active {
  background: var(--lux-gold-cta);
  color: #090D16;
  border-color: var(--lux-gold-cta);
}

.tpl-sim-header .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.22);
}

.tpl-sim-header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.tpl-sim-modal-dialog {
  max-width: 1120px !important;
  width: min(96vw, 1120px);
}

/* Client Case Delivery Dossier Showcase (Replaces Simulator on Case Detail) */
.case-dossier-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.case-dossier-visual {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #090D16 0%, #111827 100%);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-top: 2px solid var(--lux-champagne);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(9, 13, 22, 0.12);
}

.case-dossier-visual-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.case-dossier-preview-frame {
  flex: 1;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
}

.case-dossier-preview-frame > * {
  width: 100%;
  max-width: 680px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  border-radius: 6px;
  overflow: hidden;
}

.case-dossier-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: #CBD5E1;
}

.case-dossier-milestones span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.case-dossier-milestones svg {
  color: var(--lux-champagne-light);
}

.case-dossier-facts {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--lux-obsidian);
  border-radius: 4px;
  padding: 22px 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.case-dossier-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #855D22;
  margin-bottom: 4px;
}

.case-dossier-heading {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.case-dossier-dl {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-dossier-dl > div {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

.case-dossier-dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.case-dossier-dl dt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.case-dossier-dl dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.case-dossier-artifacts-mini {
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 18px;
}

.case-dossier-cta-row {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .tpl-sim-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .case-dossier-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tpl-sim-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Full-Bleed Showcase Cover Images & Medium-Viewport Navbar Overlap Fix */
.gallery-canvas.gallery-canvas-photo {
  padding: 0 !important;
  background: #090D16;
  overflow: hidden;
}

.gallery-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-cover-img {
  transform: scale(1.04);
}

.case-dossier-preview-frame.has-cover {
  padding: 0;
  background: #090D16;
  min-height: 320px;
}

.case-dossier-cover-img {
  width: 100%;
  height: 100%;
  max-width: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  display: block;
}

.nav-links a {
  white-space: nowrap;
}

@media (max-width: 1220px) {
  .nav-inner {
    gap: 10px;
  }
  .nav-brand-divider {
    display: none;
  }
  .nav-links {
    gap: 0;
  }
  .nav-links a {
    padding: 6px 8px;
    font-size: 13px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn {
    padding: 6px 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
}

@media (max-width: 1020px) {
  .nav-mobile-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--lux-obsidian);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    display: none;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
    z-index: 95;
  }
  .nav-links.open {
    display: flex;
  }
}

@media print {
  .site-header, .site-footer, .floating-dock, .ai-chat-panel, .no-print { display: none !important; }
  body { background: #FFFFFF !important; color: #000000 !important; }
}
