:root {
  --ink: #162033;
  --muted: #667085;
  --line: #e1e7f0;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --blue: #2357d6;
  --blue-soft: #eaf1ff;
  --green-soft: #eaf7f1;
  --amber-soft: #fff4e1;
  --amber: #70420b;
  --teal: #0f766e;
  --teal-soft: #e8f7f5;
  --red: #b42318;
  --red-soft: #fff1f0;
  --violet: #6d28d9;
  --violet-soft: #f3e8ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='260' height='180' viewBox='0 0 260 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate(130 90) rotate(-28)'%3E%3Ctext x='0' y='0' text-anchor='middle' dominant-baseline='middle' font-family='PingFang SC, Microsoft YaHei, Arial, sans-serif' font-size='32' font-weight='600' fill='%23162033' fill-opacity='0.014' letter-spacing='6'%3E%E5%AF%93%E4%BF%A1%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 180px;
}

.site-watermark {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='260' height='180' viewBox='0 0 260 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate(130 90) rotate(-28)'%3E%3Ctext x='0' y='0' text-anchor='middle' dominant-baseline='middle' font-family='PingFang SC, Microsoft YaHei, Arial, sans-serif' font-size='32' font-weight='600' fill='%23162033' fill-opacity='0.014' letter-spacing='6'%3E%E5%AF%93%E4%BF%A1%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 180px;
}

.share-entry {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c8d7f4;
  background: rgba(255, 255, 255, 0.94);
  color: #1f4fb7;
  box-shadow: 0 14px 34px rgba(28, 43, 78, 0.16);
  padding: 0 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.share-entry svg {
  width: 17px;
  height: 17px;
}
.share-entry:hover {
  background: #f3f7ff;
  border-color: #9db8ec;
}
.share-panel {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.share-panel.active {
  display: flex;
}
.share-card {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
  padding: 22px;
  border-radius: 8px;
}
.share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.share-title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  padding-right: 34px;
  margin-bottom: 8px;
}
.share-desc,
.share-local-tip,
.share-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.share-local-tip {
  display: none;
  margin-top: 10px;
  padding: 9px 10px;
  background: var(--amber-soft);
  border: 1px solid #f2d8a7;
  color: var(--amber);
}
.share-panel.is-local-link .share-local-tip {
  display: block;
}
.share-qr-wrap {
  width: fit-content;
  margin: 16px auto 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.share-qr {
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(28, 43, 78, 0.08);
}
.share-qr img,
.share-qr canvas {
  width: 148px !important;
  height: 148px !important;
  display: block;
}
.share-qr-hint {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}
.share-url {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}
.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.share-actions button {
  min-height: 38px;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.share-primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}
.share-primary[hidden] {
  display: none;
}
.share-secondary {
  border: 1px solid #c8d7f4;
  background: #f3f7ff;
  color: #1f4fb7;
}
.share-primary[hidden] + .share-secondary {
  grid-column: 1 / -1;
}
.share-feedback {
  min-height: 20px;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 700;
}

a { color: inherit; }
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.mobile-brand img {
  width: 92px;
  height: auto;
  display: block;
}
.mobile-brand strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 20px;
}
.layout {
  --sidebar-width: 240px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
main {
  display: flex;
  flex-direction: column;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff; /* Ultra-Clean Pure White */
  border-right: 1px solid var(--line); /* Clear solid divider */
  box-shadow: 6px 0 30px rgba(28, 43, 78, 0.02); /* Clean subtle depth shadow */
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 0 20px;
}
/* Custom Scrollbar for Sidebar Menu (Light Theme) */
.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}
.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
  background: #f1f5f9;
  border-radius: 99px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: #e2e8f0;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 24px 20px;
}
.brand {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 6px;
  text-decoration: none;
  position: relative;
}

.brand-logo {
  width: 128px;
  height: auto;
  display: block;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo {
  transform: translateY(-1px);
}
.brand-collapsed-logo {
  display: none;
}
.brand strong { 
  font-size: 15px; 
  font-weight: 700; 
  color: #1e293b; 
  line-height: 1.3; 
}
.brand span { 
  font-size: 11px; 
  color: #64748b; 
  line-height: 1.45; 
  opacity: 0.85;
}

.nav {
  display: grid;
  gap: 2px;
  margin: 0 -12px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #334155;
  padding: 9px 16px 9px 20px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  transition: background 0.18s ease, color 0.18s ease;
  position: relative;
}

/* Homepage nav — compact icons, no background blocks */
.nav:not(.nav-detail) a {
  gap: 10px;
  padding: 8px 16px 8px 20px;
  font-size: 13.5px;
}

.nav a:hover:not(.active):not(.active-page) {
  background: #f0f4ff;
  color: #1d4ed8;
}

.nav a.active,
.nav a.active-page {
  background: #f0f4ff;
  color: #1d4ed8 !important;
  font-weight: 600;
}

.nav a.active::before,
.nav a.active-page::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1d4ed8;
  border-radius: 0;
}

.nav a.active .nav-icon,
.nav a.active-page .nav-icon,
.nav a:hover:not(.active):not(.active-page) .nav-icon {
  color: #1d4ed8 !important;
}

.nav-icon {
  flex-shrink: 0;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.nav:not(.nav-detail) .nav-icon {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  stroke-width: 1.6;
  opacity: 0.88;
}

.nav:not(.nav-detail) a:hover:not(.active):not(.active-page) .nav-icon {
  color: #64748b !important;
  opacity: 1;
}

.nav:not(.nav-detail) a.active .nav-icon,
.nav:not(.nav-detail) a.active-page .nav-icon {
  color: #1d4ed8 !important;
  opacity: 1;
}
.nav-text {
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.nav-number {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  padding: 1px 4px;
  border-radius: 4px;
  margin-right: 2px;
  transition: all 0.25s ease;
  display: inline-block;
}
.nav a.active .nav-number {
  color: var(--blue) !important;
  background: rgba(35, 87, 214, 0.08) !important;
  border-color: rgba(35, 87, 214, 0.15) !important;
}
.nav a:hover:not(.active) .nav-number {
  color: var(--blue) !important;
  background: rgba(35, 87, 214, 0.04) !important;
  border-color: rgba(35, 87, 214, 0.1) !important;
}

/* Detail page sidebar — ordered section list (no icons) */
.nav-section-label {
  margin: 6px 0 14px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.nav.nav-detail {
  position: relative;
  gap: 2px;
  margin: 0 -12px;
}
.nav.nav-detail::before {
  display: none;
}
.nav.nav-detail a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px 9px 20px !important;
  font-size: 14px;
  line-height: 1.4;
  color: #334155 !important;
  font-weight: 400 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.nav.nav-detail .nav-order {
  flex: 0 0 22px;
  width: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  line-height: 1.3;
  background: transparent;
  position: relative;
  z-index: 2;
  padding: 0;
}
.nav.nav-detail .nav-text {
  flex: 1;
  min-width: 0;
}
.nav.nav-detail a:hover:not(.active) {
  background: #f0f4ff !important;
  color: #1d4ed8 !important;
}
.nav.nav-detail a:hover:not(.active) .nav-order {
  color: #1d4ed8;
}
.nav.nav-detail a.active {
  background: #f0f4ff !important;
  color: #1d4ed8 !important;
  font-weight: 600 !important;
}
.nav.nav-detail a.active::before {
  display: block !important;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1d4ed8;
}
.nav.nav-detail a.active .nav-order {
  color: #1d4ed8;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-weight: 600;
}
.nav.nav-detail a.active .nav-text {
  font-weight: 600;
}

/* Secondary Sub-navigation for local anchors on subpages */
.sub-nav {
  margin: 4px -12px 6px;
  padding-left: 0;
  border-left: none;
  display: grid;
  gap: 2px;
}
.sub-nav a {
  display: flex !important;
  align-items: center;
  text-decoration: none;
  font-size: 13px !important;
  color: #64748b !important;
  padding: 8px 16px 8px 36px !important;
  border-radius: 0 !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  font-weight: 400 !important;
  background: transparent !important;
  border-left: none !important;
  box-shadow: none !important;
  transform: none !important;
  position: relative;
}
.sub-nav a::before {
  display: none !important;
}
.sub-nav a:hover:not(.active) {
  background: #f0f4ff !important;
  color: #1d4ed8 !important;
}
.sub-nav a.active {
  color: #1d4ed8 !important;
  background: #f0f4ff !important;
  font-weight: 600 !important;
}
.sub-nav a.active::before {
  display: block !important;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1d4ed8;
}
/* Hide sub-icon if any gets injected inside sub-nav */
.sub-nav .nav-icon {
  display: none !important;
}

/* Premium Sidebar Footer (SLA Status widget - Light Theme) */
.side-foot {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.6;
  position: relative;
}

/* SLA Pulse Indicator (Light Theme) */
.side-foot:not(.side-actions)::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-dot-light 2s infinite;
}

@keyframes pulse-dot-light {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Custom Page Switcher Dropdown (Light Theme) */
.page-switcher {
  position: relative;
  margin-bottom: 20px;
  padding: 0;
  width: 100%;
}
.switcher-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.switcher-leading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.switcher-kicker {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(35, 87, 214, 0.08);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.switcher-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.switcher-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(35, 87, 214, 0.06);
}
.switcher-btn .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue) !important;
  stroke-width: 2.2;
}
.switcher-btn .chevron-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.25s ease;
}
.page-switcher.active .switcher-btn {
  background: #ffffff;
  border-color: rgba(35, 87, 214, 0.35);
  box-shadow: 0 0 0 3px rgba(35, 87, 214, 0.1);
}
.page-switcher.active .chevron-icon {
  transform: rotate(180deg);
}
.switcher-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(28, 43, 78, 0.08);
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 99;
  animation: switcherSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes switcherSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-switcher.active .switcher-dropdown {
  display: flex;
}
.switcher-dropdown a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #475569 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.switcher-dropdown a:hover {
  background: rgba(35, 87, 214, 0.045) !important;
  color: var(--blue) !important;
}
.switcher-dropdown a.active-page {
  background: #f1f5f9 !important;
  color: var(--blue) !important;
  font-weight: 600;
}

/* Sidebar Toggle Premium Button (Light Theme) */
.sidebar-toggle {
  position: absolute;
  right: -14px; /* Float on the border line */
  top: 100px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(28, 43, 78, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sidebar-toggle:hover {
  background: #f1f5f9;
  color: var(--blue);
  border-color: #cbd5e1;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(28, 43, 78, 0.08);
}
.sidebar-toggle .toggle-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  color: inherit;
  transition: transform 0.2s ease;
}
.sidebar-toggle:hover .toggle-icon {
  color: var(--blue);
}

/* Collapsed state styling overrides */
.layout.sidebar-collapsed {
  --sidebar-width: 0px;
}
.layout.sidebar-collapsed .sidebar {
  border-right-width: 0;
  box-shadow: none;
}
.layout.sidebar-collapsed .sidebar-menu,
.layout.sidebar-collapsed .sidebar-footer {
  display: none !important;
}
.layout.sidebar-collapsed .sidebar-toggle {
  right: -24px; /* Float on the left screen edge when collapsed */
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.side-foot.side-actions {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: none;
}

.side-actions {
  display: grid;
  gap: 8px;
}
.side-actions .btn {
  width: 100%;
}

.hero {
  min-height: 86vh;
  padding: 64px clamp(20px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255,255,255,.98), rgba(255,255,255,.94) 50%, rgba(237,245,255,.95)),
    radial-gradient(circle at 88% 16%, rgba(35,87,214,.08), transparent 28%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  background: var(--blue-soft);
  color: #183b8f;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: 0;
  text-wrap: balance;
}
h3, h4, h5, h6 {
  text-wrap: balance;
}
.hero p, .section-head p {
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
}
.hero p { font-size: 18px; margin: 0; max-width: 720px; }
.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mobile-home-hero-metrics {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #c8d7f4;
  background: #f3f7ff;
  color: #1f4fb7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(28, 43, 78, .06);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:hover {
  background: #eaf1ff;
  border-color: #9db8ec;
  box-shadow: 0 6px 14px rgba(28, 43, 78, .08);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(28, 43, 78, .07);
}
.btn.secondary {
  background: #fff;
  color: #344054;
  border-color: #d7e0ec;
  box-shadow: none;
}
.btn.secondary:hover {
  background: #f8fafc;
  border-color: #bfccda;
  box-shadow: 0 4px 10px rgba(28,43,78,.06);
}
.btn.text { background: transparent; border-color: transparent; color: var(--blue); padding-inline: 0; box-shadow: none; }

.hero-card, .figure-card {
  background: #fff;
  border: 1px solid #d8e1ef;
  box-shadow: 0 24px 70px rgba(28,43,78,.16);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.hero-card.dashboard {
  padding: 12px;
  gap: 8px;
  max-width: 520px;
  width: 100%;
  justify-self: end;
}
.mock-header {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.mock-window { display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; background: #cfd8e6; }
.mock-title-text { font-size: 12px; color: #344054; font-weight: 700; }
.mock-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}
.mock-filter {
  min-height: 26px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: #f8fafc;
  border: 1px solid #dfe6ef;
  color: #526071;
  font-size: 11px;
}
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-kpi { background: #f8fafd; border: 1px solid #dfe6ef; padding: 8px; min-height: 58px; }
.mock-kpi strong { display: block; font-size: 16px; color: #183b8f; margin-bottom: 2px; }
.mock-kpi span { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }
.mock-main { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8px; }
.mock-panel { background: #f8fafc; border: 1px solid #dfe6ef; padding: 10px; min-height: 140px; }
.mock-panel.blue { background: #eef4ff; border-color: #cfddff; }
.mock-panel h4 { margin: 0 0 8px; font-size: 13px; color: #172033; }
.mock-bars { display: grid; gap: 6px; }
.mock-bar { display: grid; grid-template-columns: 60px 1fr 36px; gap: 6px; align-items: center; font-size: 11px; color: #526071; }
.mock-track { height: 6px; background: #dbe5f4; }
.mock-fill { height: 6px; background: var(--blue); }
.mock-list { display: grid; gap: 6px; }
.mock-item { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; background: #fff; border: 1px solid #dfe6ef; font-size: 11px; color: #445064; }
.mock-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mock-step { background: #fff; border: 1px solid #dfe6ef; padding: 6px; text-align: center; font-size: 11px; color: #344054; min-height: 40px; display: grid; place-items: center; }
.mock-chart {
  height: 80px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 4px;
}
.mock-chart span {
  flex: 1;
  min-height: 14px;
  background: linear-gradient(180deg, #4f7ae8, #2357d6);
}
.mock-chart span:nth-child(2n) { background: linear-gradient(180deg, #2dd4bf, #0f766e); }
.mock-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock-mini {
  border: 1px solid #dfe6ef;
  background: #fff;
  padding: 6px 8px;
  min-height: 48px;
}
.mock-mini strong { display: block; color: #172033; font-size: 12px; margin-bottom: 2px; }
.mock-mini span { color: var(--muted); font-size: 10px; }

.content-section {
  padding: 76px clamp(20px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.content-section.alt { background: #f8fafd; }
.section-head { max-width: 920px; margin-bottom: 28px; }
.section-head p { margin: 0; font-size: 15px; }

.cards, .module-grid, .service-matrix, .advantage-grid, .security-stack, .case-solution-grid {
  display: grid;
  gap: 18px;
}
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-cards {
  align-items: stretch;
  gap: 24px;
}
.card.product-card {
  position: relative;
  min-height: 260px;
  padding: 24px 22px 22px;
  border-top: 0;
  border-left: 5px solid var(--blue);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.card.product-card:nth-child(2) {
  border-left-color: var(--teal);
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfb 100%);
}
.card.product-card:nth-child(3) {
  border-left-color: var(--amber);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}
.card.product-card:nth-child(4) {
  border-left-color: var(--red);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
}
.card.product-card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 12px;
  border-width: 0;
  box-shadow: inset 0 0 0 1px rgba(35, 87, 214, .18);
}
.card.product-card .icon svg {
  width: 23px;
  height: 23px;
}
.card.product-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}
.card.product-card p {
  font-size: 13px;
}
.module-grid, .service-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.advantage-grid, .security-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .module, .service-card, .advantage-card, .security-card, .scenario-card, .deploy-card, .faq-item, .solution-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}
.card { min-height: 210px; }
.card h3, .service-card h3, .advantage-card h3, .security-card h3, .deploy-card h3 { margin: 0 0 10px; font-size: 18px; }
.card p, .service-card p, .advantage-card p, .security-card p, .deploy-card p, .faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.module { min-height: 92px; }
.module strong, .scenario-card strong, .faq-item strong, .solution-card strong { display: block; font-size: 15px; margin-bottom: 7px; }
.module span, .scenario-card span, .solution-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }
.capability-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.capability-domain {
  position: relative;
  min-height: 218px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 38px rgba(28,43,78,.07);
}
.capability-domain:before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.capability-domain:nth-child(1):before { background: linear-gradient(90deg, #2357d6, #0f766e); }
.capability-domain:nth-child(2):before { background: linear-gradient(90deg, #3b4fd8, #2476a8); }
.capability-domain:nth-child(3):before { background: linear-gradient(90deg, #8a4b05, #d69836); }
.capability-domain:nth-child(4):before { background: linear-gradient(90deg, #b42318, #d66055); }
.capability-domain:nth-child(5):before { background: linear-gradient(90deg, #0f766e, #2f9b63); }
.capability-domain:nth-child(6):before { background: linear-gradient(90deg, #6d28d9, #2357d6); }
.capability-domain span {
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.capability-domain h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}
.capability-domain p {
  margin: 0;
  color: #445064;
  font-size: 13px;
  line-height: 1.75;
}
.capability-boost-band {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #cbd8ec;
  background: #f8fbff;
}
.capability-boost-band strong {
  color: var(--ink);
  font-size: 17px;
}
.capability-boost-band div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.capability-boost-band span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #c8d7f4;
  background: #fff;
  color: #1f4fb7;
  font-size: 12px;
  font-weight: 800;
}
.card, .module, .scenario-card, .security-card, .solution-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover, .module:hover, .scenario-card:hover, .security-card:hover, .solution-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(28,43,78,.10);
  border-color: #c8d6ea;
}
.icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid #c9d9ff;
  background: var(--blue-soft);
  color: #183b8f;
  font-weight: 800;
  font-size: 15px;
  border-radius: 6px;
}
.icon.teal { border-color: #a8e0d7; background: var(--teal-soft); color: var(--teal); }
.icon.amber { border-color: #f2d8a7; background: var(--amber-soft); color: var(--amber); }
.icon.red { border-color: #ffd0cc; background: var(--red-soft); color: var(--red); }
.icon.violet { border-color: #d8b4fe; background: var(--violet-soft); color: var(--violet); }
.icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.scenario-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.scenario-card {
  min-height: 156px;
  padding: 18px 16px;
  background: transparent;
  border-color: #d8e0eb;
  box-shadow: none;
}
.scenario-card .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 0;
  background: transparent;
  border-color: currentColor;
}
.scenario-card .icon svg {
  width: 16px;
  height: 16px;
}
.scenario-card strong {
  font-size: 16px;
}
.scenario-card span {
  font-size: 12px;
}
.case-solution-grid { grid-template-columns: repeat(3, 1fr); }
.solution-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.solution-tag {
  width: fit-content;
  padding: 5px 8px;
  background: var(--blue-soft);
  color: #183b8f;
  font-size: 12px;
  font-weight: 700;
}
.solution-card h3 { margin: 0; font-size: 19px; }
.solution-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.solution-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.solution-list li {
  position: relative;
  padding-left: 12px;
  color: #445064;
  font-size: 12px;
  line-height: 1.45;
}
.solution-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--blue);
}
.collab-map, .biz-map, .architecture-hero {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(28,43,78,.10);
  padding: 24px;
  display: grid;
  gap: 14px;
}
.product-collab {
  margin-top: 26px;
  box-shadow: none;
  background: #fbfcfe;
}
.product-collab .section-head {
  margin-bottom: 8px;
}
.collab-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.collab-card { background: #fff; border: 1px solid var(--line); padding: 15px; min-height: 112px; }
.collab-card h3 { margin: 0 0 8px; font-size: 16px; }
.collab-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product-card:hover {
  border-color: #b9c9ef;
  box-shadow: 0 18px 44px rgba(28, 43, 78, .12);
  transform: translateY(-2px);
}

.crumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.crumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.crumb a { color: var(--blue); text-decoration: none; }
.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.page-action .btn-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  flex-shrink: 0;
  display: block;
}
.page-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.page-action.primary {
  border: 1px solid #c8d7f4;
  background: #f3f7ff;
  color: #1f4fb7;
  font-weight: 650;
  box-shadow: 0 4px 10px rgba(28, 43, 78, .06);
}
.page-action.primary:hover {
  background: #eaf1ff;
  border-color: #9db8ec;
  color: #1f4fb7;
  box-shadow: 0 6px 14px rgba(28, 43, 78, .08);
  transform: translateY(-1px);
}
.page-action.primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(28, 43, 78, .07);
}
.audience-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 0; }
.audience-card { background: #fff; border: 1px solid var(--line); padding: 16px; min-height: 118px; }
.audience-card strong { display: block; font-size: 15px; margin: 0; }
.audience-card span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }

.biz-map-title { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.biz-map-title h3 { margin: 0; font-size: 24px; }
.biz-map-title p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 800px; text-wrap: pretty; }
.biz-layer { border: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; background: #fff; }
.biz-layer-label { background: #f8fafd; border-right: 1px solid var(--line); padding: 15px; font-weight: 800; font-size: 14px; display: grid; align-content: center; }
.biz-layer-body { padding: 12px; display: grid; gap: 10px; }
.biz-channels, .biz-domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.biz-domain-grid { grid-template-columns: repeat(3, 1fr); }
.biz-channel { background: #eef4ff; border: 1px solid #c9d9ff; color: #183b8f; padding: 13px; text-align: center; font-weight: 700; font-size: 13px; line-height: 1.5; }
.biz-lifecycle, .process-chain { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.life-step, .process-step { background: #fff; border: 1px solid #dfe6ef; padding: 12px; text-align: center; min-height: 76px; display: grid; align-content: center; gap: 4px; position: relative; }
.life-step:not(:last-child):after { content: ""; position: absolute; right: -7px; top: 50%; width: 6px; border-top: 1px solid #9fb2d3; }
.life-step strong, .process-step strong { font-size: 13px; }
.life-step span, .process-step span { font-size: 11px; color: var(--muted); line-height: 1.4; }
.biz-domain { border: 1px solid #dfe6ef; background: #fbfcfe; padding: 14px; display: grid; gap: 9px; }
.biz-domain h3 { margin: 0; font-size: 16px; color: #172033; }
.biz-node { background: #fff; border: 1px solid #dfe6ef; padding: 10px; font-size: 12px; color: #344054; line-height: 1.45; }
.biz-support { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.biz-support div { background: var(--amber-soft); border: 1px solid #f2d8a7; color: var(--amber); padding: 11px; text-align: center; font-size: 12px; font-weight: 700; }

.feature-group { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); background: #fff; margin-bottom: 14px; }
.feature-title { background: #f8fafd; border-right: 1px solid var(--line); padding: 18px; }
.feature-title h3 { margin: 0 0 6px; font-size: 18px; }
.feature-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.feature-list { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feature-item { border: 1px solid #dfe6ef; background: #fbfcfe; padding: 12px; min-height: 96px; }
.feature-item strong { display: block; font-size: 14px; margin-bottom: 6px; }
.feature-item span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }
.product-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.product-overview-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}
.product-overview-card strong {
  font-size: 16px;
  color: var(--ink);
}
.product-overview-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.product-overview-card:hover {
  border-color: #b9c9ef;
  background: #f8fbff;
}
.product-detail-section {
  display: grid;
  gap: 16px;
}
.product-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.product-detail-head h2 {
  margin: 4px 0 10px;
  font-size: 30px;
}
.product-detail-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.product-detail-head .btn {
  flex: 0 0 auto;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.download-card {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}
.download-card strong {
  color: var(--ink);
  font-size: 16px;
}
.download-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.download-card.primary {
  border-color: #b9c9ef;
  background: var(--blue-soft);
}
.download-card:hover {
  border-color: #9db8ec;
}
.product-system-hero {
  min-height: 640px;
}
.system-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(560px, 1.1fr);
  gap: 36px;
  align-items: center;
}
.system-hero-copy h1 {
  margin: 8px 0 18px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: 0;
}
.system-hero-copy p {
  margin: 0;
  color: #445064;
  font-size: 16px;
  line-height: 1.9;
}
.system-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.system-map {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid #dbe5f3;
  background:
    linear-gradient(135deg, rgba(35, 87, 214, .06), rgba(15, 118, 110, .04) 46%, rgba(255, 255, 255, .96)),
    #fff;
  box-shadow: 0 24px 70px rgba(28, 43, 78, .12);
}
.system-map:before,
.system-map:after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 64px;
  background: #b8c7de;
  transform: translateX(-50%);
}
.system-map:before { top: 138px; }
.system-map:after { bottom: 126px; }
.system-node,
.system-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #dbe5f3;
  background: rgba(255, 255, 255, .94);
  text-decoration: none;
}
.system-node {
  color: var(--ink);
}
.system-node span,
.terminal-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.system-node strong {
  font-size: 20px;
}
.system-node em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.55;
}
.system-node.admin { border-left: 5px solid var(--blue); }
.system-node.steward { border-left: 5px solid var(--teal); }
.system-node.service { border-left: 5px solid #8a4b05; }
.system-node.renter { border-left: 5px solid var(--red); }
.system-node:hover {
  border-color: #adc1e7;
  box-shadow: 0 16px 38px rgba(28, 43, 78, .10);
}
.system-core {
  justify-items: center;
  text-align: center;
  border-color: #b9c9ef;
  background: #f8fbff;
}
.system-core strong {
  font-size: 18px;
}
.system-core span {
  color: var(--muted);
  font-size: 13px;
}
.system-mid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.journey-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 52px rgba(28,43,78,.08);
}
.journey-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 214px;
  padding: 16px;
  border: 1px solid #dfe6ef;
  background: #fbfcfe;
}
.journey-step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 34px;
  right: -8px;
  width: 8px;
  border-top: 1px solid #8fa2c2;
}
.journey-step span {
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.journey-step strong {
  font-size: 16px;
}
.journey-step p {
  margin: 0;
  color: #445064;
  font-size: 12px;
  line-height: 1.65;
}
.journey-step em {
  align-self: end;
  color: var(--teal);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.capability-matrix {
  display: grid;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 52px rgba(28,43,78,.08);
  overflow-x: auto;
}
.matrix-row {
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(180px, 1fr));
  min-width: 920px;
}
.matrix-row > div {
  min-height: 68px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #445064;
  font-size: 12px;
  line-height: 1.55;
}
.matrix-row > div:first-child {
  color: var(--ink);
  font-weight: 800;
  background: #f8fafd;
}
.matrix-row > div:last-child {
  border-right: 0;
}
.matrix-row:last-child > div {
  border-bottom: 0;
}
.matrix-head > div {
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  background: #eef4ff;
}
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.terminal-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 390px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 38px rgba(28,43,78,.07);
}
.terminal-card.admin { border-top: 5px solid var(--blue); }
.terminal-card.steward { border-top: 5px solid var(--teal); }
.terminal-card.service { border-top: 5px solid #8a4b05; }
.terminal-card.renter { border-top: 5px solid var(--red); }
.terminal-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
}
.terminal-card p {
  margin: 0;
  color: #445064;
  font-size: 13px;
  line-height: 1.75;
}
.terminal-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.terminal-card li {
  position: relative;
  padding-left: 14px;
  color: #445064;
  font-size: 12px;
  line-height: 1.55;
}
.terminal-card li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--blue);
}
.terminal-card a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8d7f4;
  background: #f3f7ff;
  color: #1f4fb7;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.terminal-board {
  display: grid;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 52px rgba(28,43,78,.08);
  overflow-x: auto;
}
.terminal-board-row {
  display: grid;
  grid-template-columns: 152px 154px 1.3fr 1.12fr 1.12fr;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.terminal-board-row > div {
  min-width: 0;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #445064;
  font-size: 12px;
  line-height: 1.58;
}
.terminal-board-row > div:last-child {
  border-right: 0;
}
.terminal-board-row:last-child > div {
  border-bottom: 0;
}
.terminal-board-row strong {
  color: var(--ink);
  font-size: 16px;
}
.terminal-board-row:not(.terminal-board-head):hover > div {
  background: #f8fbff;
}
.terminal-board-head > div {
  min-height: 46px;
  background: #eef4ff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.terminal-index {
  width: 34px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.terminal-index.blue { background: var(--blue); }
.terminal-index.teal { background: var(--teal); }
.terminal-index.amber { background: #8a4b05; }
.terminal-index.red { background: var(--red); }
.admin-row > div {
  background: #fbfcff;
}
.download-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 10px;
}
.download-pill {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.download-pill.primary {
  border-color: #b9c9ef;
  background: #f3f7ff;
}
.download-pill strong {
  color: var(--ink);
  font-size: 15px;
}
.download-pill span {
  color: var(--muted);
  font-size: 12px;
}
.download-pill:hover {
  border-color: #9db8ec;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(28, 43, 78, 0.05);
}
.material-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.material-download-card {
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(28,43,78,.07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  position: relative;
  cursor: pointer;
}
.material-download-card span {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.material-download-card strong {
  color: var(--ink);
  font-size: 20px;
}
.material-download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.material-download-card:hover {
  border-color: #9db8ec;
  box-shadow: 0 18px 44px rgba(28, 43, 78, .12);
  transform: translateY(-2px);
}
.material-download-card:focus-visible {
  outline: 3px solid rgba(35, 87, 214, .22);
  outline-offset: 3px;
}
.material-share-btn {
  justify-self: start;
  margin-top: 2px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.material-share-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-1px);
}
.material-share-btn.copied {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: rgba(20, 184, 166, .32);
}
.material-share-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(35, 87, 214, .08), rgba(20, 184, 166, .06)),
    #f7fbff;
}
.material-share-main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 56px;
}
.material-share-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.material-share-brand img {
  width: 172px;
  height: auto;
}
.material-share-hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr);
  align-items: center;
  gap: 42px;
}
.material-share-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.12;
  color: var(--ink);
}
.material-share-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.material-share-card {
  min-height: 260px;
  align-content: center;
}
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-card { background: #fff; border: 1px solid var(--line); padding: 20px; }
.case-card h3 { margin: 0 0 12px; font-size: 18px; }
.case-card ol { margin: 0; padding-left: 20px; color: #445064; line-height: 1.8; font-size: 14px; }

.figure-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 4px; text-align: center; }
.figure-head h2 { font-size: 28px; margin: 0 0 8px; }
.figure-head p { margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 800px; }
.architecture-title {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 20px;
  border: 1px solid #dbe5f3;
  border-bottom: 1px solid #cbd8ec;
  background:
    linear-gradient(135deg, rgba(35, 87, 214, 0.08), rgba(15, 118, 110, 0.05) 48%, rgba(255, 255, 255, 0.92)),
    #fbfdff;
  text-align: left;
}
.architecture-title:before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 86px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.architecture-title-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.architecture-title h2 {
  margin: 0;
  color: #121a2c;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 900;
}
.architecture-title h2 span {
  display: block;
  font-size: 18px;
  line-height: 1.45;
  color: #344054;
  font-weight: 800;
}
.architecture-title p {
  margin: 10px 0 0;
  max-width: 760px;
  color: #5d6b82;
  font-size: 14px;
  line-height: 1.7;
  text-wrap: pretty;
}
.architecture-title-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 310px;
}
.architecture-title-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7d6ee;
  background: rgba(255, 255, 255, 0.84);
  color: #254168;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.arch-canvas { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; align-items: stretch; }
.arch-main { display: grid; gap: 12px; }
.arch-row { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--line); }
.arch-label { background: #f8fafd; border-right: 1px solid var(--line); padding: 13px; font-weight: 700; font-size: 13px; display: flex; align-items: center; }
.arch-nodes { padding: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.arch-nodes.cols-5 { grid-template-columns: repeat(5, 1fr); }
.arch-nodes.cols-6 { grid-template-columns: repeat(6, 1fr); }
.arch-nodes.cols-7 { grid-template-columns: repeat(7, 1fr); }
.arch-nodes.cols-6 .arch-node {
  padding-left: 6px;
  padding-right: 6px;
  letter-spacing: -0.1px;
}
.arch-nodes.cols-7 .arch-node {
  padding-left: 4px;
  padding-right: 4px;
  font-size: 11.5px;
  letter-spacing: -0.2px;
}
.arch-node { padding: 10px 8px; text-align: center; font-size: 12px; background: #f8fafc; border: 1px solid #dfe6ef; }
.arch-node.blue { background: var(--blue-soft); border-color: #c9d9ff; color: #183b8f; }
.arch-node.green { background: var(--green-soft); border-color: #c9eadb; color: #0f5d42; }
.arch-node.amber { background: var(--amber-soft); border-color: #f2d8a7; color: var(--amber); }
.arch-overview {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(28,43,78,.10);
  padding: 24px;
  display: grid;
  gap: 14px;
}
.arch-overview-canvas {
  display: grid;
  gap: 14px;
}
.arch-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.arch-overview-head h3 { margin: 0; font-size: 24px; text-wrap: balance; }
.arch-overview-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 800px; text-wrap: pretty; }
.arch-stage {
  display: grid;
  grid-template-columns: 150px 1fr;
  border: 1px solid var(--line);
  background: #fff;
}
.arch-stage-label {
  background: #f8fafd;
  border-right: 1px solid var(--line);
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 4px;
}
.arch-stage-label strong { font-size: 15px; }
.arch-stage-label span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.arch-stage-body {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.arch-pill {
  min-height: 54px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  background: #f8fafc;
  border: 1px solid #dfe6ef;
}
.arch-pill.blue { background: var(--blue-soft); border-color: #c9d9ff; color: #183b8f; }
.arch-pill.green { background: var(--green-soft); border-color: #c9eadb; color: #0f5d42; }
.arch-pill.amber { background: var(--amber-soft); border-color: #f2d8a7; color: var(--amber); }
.arch-support {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.arch-support-card {
  border: 1px solid var(--line);
  background: #f8fafd;
  padding: 16px;
}
.arch-support-card strong { display: block; margin-bottom: 8px; font-size: 15px; }
.arch-support-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }
.arch-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.arch-flow span { border-top: 1px dashed #b7c2d2; padding-top: 6px; }
.arch-rail { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.rail-card { border: 1px solid var(--line); background: #f8fafd; padding: 16px; display: grid; align-content: start; gap: 12px; }
.rail-card h3 { font-size: 16px; margin: 0; }
.rail-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.rail-card li { font-size: 12px; line-height: 1.45; color: #445064; padding-left: 11px; position: relative; }
.rail-card li:before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; background: var(--blue); }
.arch-caption { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.arch-caption div { border-left: 3px solid var(--blue); background: #f8fafd; padding: 13px; min-height: 76px; }
.arch-caption strong { display: block; font-size: 14px; margin-bottom: 5px; }
.arch-caption span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }

.principles, .glossary, .deploy-grid { display: grid; gap: 14px; }
.principles { grid-template-columns: repeat(3, 1fr); }
.glossary { grid-template-columns: repeat(2, 1fr); }
.deploy-grid { grid-template-columns: repeat(5, 1fr); }
.principle, .term { background: #fff; border: 1px solid var(--line); padding: 18px; }
.principle b, .term strong { display: block; font-size: 16px; margin-bottom: 8px; }
.principle p, .term span { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.scenario-table { border: 1px solid var(--line); background: #fff; }
.scenario-row { display: grid; grid-template-columns: 170px 1fr 1fr; border-bottom: 1px solid var(--line); }
.scenario-row:last-child { border-bottom: 0; }
.scenario-row > div { padding: 15px; border-right: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: #445064; }
.scenario-row > div:last-child { border-right: 0; }
.scenario-row.head > div { background: #f8fafd; color: var(--ink); font-weight: 700; }
/* Vertical flow chain — e.g. 典型业务链路 */
.flow-container {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 14px;
  position: relative;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 4px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0 0 22px;
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
}
.timeline-mobile-label {
  display: none;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(35, 87, 214, 0.35) 0%, rgba(225, 231, 240, 0.9) 72%, #e8edf5 100%);
  pointer-events: none;
  transition: background 0.3s ease;
}
.timeline-item.active:not(:last-child)::after {
  background: linear-gradient(180deg, var(--blue) 0%, rgba(35, 87, 214, 0.35) 100%);
}
.timeline-num {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, var(--blue-soft) 100%);
  border: 2px solid rgba(35, 87, 214, 0.22);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(35, 87, 214, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.timeline-item:hover .timeline-num {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(35, 87, 214, 0.16);
  border-color: rgba(35, 87, 214, 0.38);
}
.timeline-item.active .timeline-num {
  background: linear-gradient(145deg, var(--blue) 0%, #153ea3 100%);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(35, 87, 214, 0.24);
  transform: scale(1.05);
}
.timeline-content {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(22, 32, 51, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.timeline-item:hover .timeline-content {
  border-color: #c8d7f4;
  box-shadow: 0 8px 24px rgba(35, 87, 214, 0.08);
  transform: translateY(-1px);
}
.timeline-item.active .timeline-content {
  border-color: var(--blue);
  background: #fbfdff;
  box-shadow: 0 8px 24px rgba(35, 87, 214, 0.1);
}
.timeline-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}
.timeline-item span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* Flow Viewer Component */
.flow-viewer {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(28, 43, 78, 0.06);
  padding: 28px;
  min-height: 648px;
  display: grid;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.flow-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.flow-panel.active {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
  min-height: 590px;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
}
.flow-panel.customer-panel.active {
  grid-template-columns: 1fr;
}
.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.panel-step-label {
  display: none;
}
.panel-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.panel-left-col {
  min-width: 0;
}
.customer-panel .panel-left-col {
  min-height: 590px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Panel 1: Terminals Grid */
.terminals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.terminal-mini-card,
.capability-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  min-height: 176px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.terminal-mini-card:hover,
.capability-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.card-badge.green { background: var(--green-soft); color: #0f5d42; }
.card-badge.blue { background: var(--blue-soft); color: #183b8f; }
.card-badge.teal { background: var(--teal-soft); color: var(--teal); }
.card-badge.purple { background: var(--violet-soft); color: var(--violet); }
.card-badge.neutral {
  background: #eef4ff;
  color: #2357d6;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef4ff;
  border: 1px solid #cbdafe;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.card-meta strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 5px;
}
.card-meta span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.card-sub {
  font-size: 12px;
  color: #5f6f86;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.flow-interactive-tip {
  margin-top: 24px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(35, 87, 214, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(35, 87, 214, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(35, 87, 214, 0); }
}

.business-flow-card {
  margin-top: auto;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.business-flow-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}
.business-flow-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.business-flow-head span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: right;
}
.business-flow-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.business-step {
  min-height: 46px;
  border: 1px solid #dbe5f2;
  background: #ffffff;
  border-radius: 8px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 6px;
  position: relative;
}
.business-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #9fb3cf;
  border-right: 2px solid #9fb3cf;
  transform: translateY(-50%) rotate(45deg);
  background: transparent;
  z-index: 1;
}
.business-step:first-child {
  color: var(--blue);
  border-color: rgba(35, 87, 214, 0.28);
  background: #f5f8ff;
}

.flow-journey {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(28, 43, 78, 0.06);
  padding: 28px;
  display: grid;
  gap: 18px;
}
.journey-stage {
  background: #f8fafc;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  padding: 18px;
}
.journey-stage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.journey-stage-head span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.journey-stage-head strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.journey-entry-grid,
.journey-gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.journey-entry,
.journey-gateway-grid > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 118px;
  padding: 14px;
  position: relative;
}
.journey-entry b,
.journey-gateway-grid b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 8px;
  padding-right: 54px;
}
.journey-entry > span {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #eef4ff;
  color: var(--blue);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
}
.journey-entry p,
.journey-gateway-grid span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.journey-stage.gateway {
  background: #f5f8ff;
  border-color: rgba(35, 87, 214, 0.18);
}
.journey-stage.outcome {
  background: #fbfdff;
}
.journey-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, rgba(35, 87, 214, 0.18), rgba(35, 87, 214, 0.7));
  justify-self: center;
  position: relative;
}
.journey-connector::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(35, 87, 214, 0.7);
  border-bottom: 2px solid rgba(35, 87, 214, 0.7);
  transform: translateX(-50%) rotate(45deg);
}
.journey-flowline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.journey-flowline > div {
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  min-height: 46px;
  padding: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  position: relative;
}
.journey-flowline > div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #9fb3cf;
  border-right: 2px solid #9fb3cf;
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}
.journey-flowline > div:first-child {
  color: var(--blue);
  border-color: rgba(35, 87, 214, 0.28);
  background: #f5f8ff;
}

/* Panel 2: Gateway Flow */
.gateway-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.gw-node {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gw-node:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.gw-node-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.gw-node-icon.waf { background: #fee2e2; color: var(--red); }
.gw-node-icon.auth { background: #e0f2fe; color: #0284c7; }
.gw-node-icon.route { background: #ccfbf1; color: var(--teal); }

.gw-node-text {
  flex-grow: 1;
}
.gw-node-text strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.gw-node-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.gw-badge-pass {
  background: var(--green-soft);
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gw-arrow {
  margin: 6px 0;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  animation: bounce-y 2.5s infinite;
}
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Panel 3: Microservices Topology */
.microservices-topology {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}
.topology-canvas {
  position: relative;
  width: 340px;
  height: 220px;
}
.topo-links-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.topo-link {
  stroke: #cbd5e1;
  stroke-width: 2;
  stroke-dasharray: 6 4;
  animation: dash-flow 15s linear infinite;
}
@keyframes dash-flow {
  to { stroke-dashoffset: -100; }
}
.topo-node {
  position: absolute;
  z-index: 1;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.topo-node:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.topo-node strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
}
.topo-node span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}
.topo-node.central {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: var(--blue);
  background: var(--blue-soft);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(35, 87, 214, 0.12);
}
.topo-node.central strong {
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 700;
}
.topo-node.central:hover {
  transform: translate(-50%, -52%);
}
.topo-node.node-up-left { left: 0; top: 12px; }
.topo-node.node-up-right { right: 0; top: 12px; }
.topo-node.node-down-left { left: 0; bottom: 12px; }
.topo-node.node-down-right { right: 0; bottom: 12px; }

/* Panel 4: DB Pipeline */
.db-pipeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pipeline-block {
  display: flex;
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  gap: 12px;
}
.pipeline-item-db {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}
.pipeline-item-db.primary { border-left: 4px solid var(--blue); }
.pipeline-item-db.secondary { border-left: 4px solid var(--teal); }

.db-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.db-icon.blue { background: var(--blue-soft); color: var(--blue); }
.db-icon.green { background: var(--green-soft); color: #16a34a; }

.db-details strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.db-details span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}
.cdc-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 80px;
  position: relative;
}
.line-animated-path {
  width: 100%;
  height: 2px;
  background: #cbd5e1;
  position: relative;
  overflow: hidden;
}
.line-animated-path::after {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: line-flow-x 2s linear infinite;
}
@keyframes line-flow-x {
  to { left: 100%; }
}
.cdc-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--blue);
  margin-top: 4px;
  white-space: nowrap;
}
.pipeline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pipeline-small-db {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.01);
  font-size: 13px;
  font-weight: 700;
}

/* Panel 5: Observability Board */
.observability-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.obs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.obs-widget-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.obs-widget-card strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 12px;
}
.obs-progress {
  margin-bottom: 10px;
}
.obs-progress:last-child { margin-bottom: 0; }
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 4px;
}
.progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
}
.progress-fill.bar-blue { background: var(--blue); }
.progress-fill.bar-green { background: #16a34a; }

.obs-widget-card.status {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.status-glowing-led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-glowing-led.green {
  background: #16a34a;
  box-shadow: 0 0 8px #16a34a;
  animation: led-flash 1.5s infinite alternate;
}
@keyframes led-flash {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
.text-green { color: #16a34a; font-weight: 700; font-size: 14px; }
.sub-detail { font-size: 11px; color: var(--muted); }

/* Console shell emulator */
.terminal-shell {
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-family: monospace;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.shell-header {
  background: #1e293b;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shell-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.shell-dot.dot-red { background: #ef4444; }
.shell-dot.dot-yellow { background: #f59e0b; }
.shell-dot.dot-green { background: #10b981; }
.shell-title {
  color: #94a3b8;
  font-size: 10px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shell-content {
  padding: 12px;
  color: #38bdf8;
  font-size: 11px;
  line-height: 1.5;
  overflow-y: auto;
  flex-grow: 1;
}
.log-line {
  margin-bottom: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.log-line code { font-family: monospace; color: inherit; }

/* Premium Code Inspector (IDE Theme) */
.inspector-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.inspector-header {
  background: #1e293b;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.inspector-title {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.5px;
}
.inspector-lang {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.inspector-body {
  padding: 16px;
  margin: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 260px;
}
/* Premium Custom Scrollbar */
.inspector-body::-webkit-scrollbar,
.shell-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.inspector-body::-webkit-scrollbar-track,
.shell-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}
.inspector-body::-webkit-scrollbar-thumb,
.shell-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  transition: background 0.2s;
}
.inspector-body::-webkit-scrollbar-thumb:hover,
.shell-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.code-block {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #e2e8f0;
  white-space: pre;
  font-size: 12.5px;
  line-height: 1.6;
}

/* Syntax Highlighting Colors */
.code-comment {
  color: #64748b;
  font-style: italic;
}
.code-key {
  color: #38bdf8;
  font-weight: 600;
}
.code-val {
  color: #f59e0b;
}
.code-string {
  color: #34d399;
}
.code-method {
  color: #f43f5e;
  font-weight: bold;
}
.code-url {
  color: #e2e8f0;
}
.code-http {
  color: #64748b;
}
.code-header {
  color: #a855f7;
}

/* Trace Waterfall Styles */
.trace-waterfall {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.trace-item {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  align-items: center;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
}
.trace-label {
  display: flex;
  flex-direction: column;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trace-label strong {
  color: #f1f5f9;
  font-weight: 600;
}
.trace-label span {
  color: #64748b;
  font-size: 11px;
}
.trace-bar-track {
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}
.trace-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--blue, #2357d6);
  border-radius: 99px;
}
.trace-bar-fill.child-blue {
  background: #38bdf8;
}
.trace-bar-fill.child-amber {
  background: #fbbf24;
}
.trace-time {
  text-align: right;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 600px) {
  .trace-item {
    grid-template-columns: 120px 1fr 45px;
    gap: 8px;
  }
  .trace-label strong {
    font-size: 11px;
  }
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .flow-container {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .flow-viewer {
    height: auto !important;
    min-height: auto !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .flow-panel.active {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    height: auto !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .customer-panel .panel-left-col {
    height: auto !important;
    min-height: auto !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .business-flow-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .business-step:not(:last-child)::after {
    display: none;
  }
  .journey-entry-grid,
  .journey-gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journey-flowline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .journey-flowline > div:not(:last-child)::after {
    display: none;
  }
  .inspector-card,
  .terminal-shell {
    height: auto;
  }
}
@media (max-width: 760px) {
  body::before,
  .site-watermark {
    opacity: 0.45;
  }
  .flow-container {
    gap: 14px;
    min-width: 0;
  }
  .flow-timeline {
    position: sticky;
    top: 56px; /* align with sticky mobile topbar height of 56px */
    z-index: 4;
    margin: 0 -16px;
    padding: 0 16px 8px;
    background: linear-gradient(180deg, #f7faff 0%, rgba(247, 250, 255, 0.96) 72%, rgba(247, 250, 255, 0) 100%);
    min-width: 0; /* prevent grid item from expanding beyond screen width */
  }
  .flow-timeline::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 8px;
    width: 42px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(247, 250, 255, 0), #f7faff 78%);
  }
  .timeline {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
    padding: 2px 0 8px;
  }
  .timeline::-webkit-scrollbar {
    display: none;
  }
  .timeline-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(22, 32, 51, 0.05);
    scroll-snap-align: start;
    text-align: center;
    height: 32px;
    min-width: max-content;
    line-height: 1;
  }
  .timeline-item:last-child {
    padding: 6px 12px 6px 8px;
  }
  .timeline-item:not(:last-child)::after {
    display: none;
  }
  .timeline-content,
  .timeline-item:hover .timeline-content,
  .timeline-item.active .timeline-content {
    order: 2;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    text-align: left !important;
  }
  .timeline-item.active {
    border-color: var(--blue);
    background: #f5f8ff;
  }
  .timeline-num {
    display: grid !important;
    order: 1;
    align-self: center;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-width: 1px;
    box-shadow: none;
    font-size: 9px;
    line-height: 1;
    transform: none !important;
  }
  .timeline-mobile-label {
    display: block !important;
    order: 2;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
  }
  .timeline-item.active .timeline-mobile-label {
    color: var(--blue);
  }
  .timeline-item strong {
    display: none !important;
  }
  .timeline-item span {
    display: none;
  }
  .flow-viewer {
    padding: 18px;
    border-radius: 14px;
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .flow-viewer::before {
    display: none;
  }
  .panel-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
  }
  .panel-step-label span {
    flex: 0 0 auto;
    border: 1px solid #cbdafe;
    background: #eef4ff;
    color: var(--blue);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
  }
  .panel-step-label strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
  }
  .customer-panel .panel-title {
    display: none;
  }
  .panel-desc {
    margin-bottom: 18px;
  }
  .terminals-grid {
    grid-template-columns: 1fr;
  }
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .flow-journey {
    padding: 16px;
    gap: 14px;
    border-radius: 14px;
  }
  .journey-stage {
    padding: 14px;
  }
  .journey-entry-grid,
  .journey-gateway-grid,
  .journey-flowline {
    grid-template-columns: 1fr;
  }
  .journey-entry,
  .journey-gateway-grid > div {
    min-height: auto;
  }
  .journey-flowline > div {
    min-height: 42px;
  }
  .journey-stage-head strong {
    font-size: 15px;
  }
  .business-flow-head {
    display: block;
  }
  .business-flow-head span {
    display: block;
    margin-top: 6px;
    text-align: left;
  }
  .business-flow-steps {
    counter-reset: flow-step;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 2px 4px 10px 2px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .business-flow-steps::-webkit-scrollbar {
    display: none;
  }
  .business-step {
    counter-increment: flow-step;
    flex: 0 0 132px;
    min-height: 58px;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(28, 43, 78, 0.04);
    scroll-snap-align: start;
  }
  .business-step::before {
    content: counter(flow-step);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f5f8ff;
    border: 1px solid #cbdafe;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    box-shadow: none;
    position: relative;
    z-index: 1;
  }
  .business-step:not(:last-child)::after {
    display: block;
    content: "";
    position: absolute;
    right: -16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 0;
    border-top: 2px solid #9fb3cf;
    border-right: 2px solid #9fb3cf;
    background: transparent;
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }
  .business-step:nth-child(2n)::after {
    right: -16px;
    left: auto;
    top: 50%;
    bottom: auto;
    width: 8px;
    height: 8px;
    background: transparent;
    transform: translateY(-50%) rotate(45deg);
  }
  .business-step:nth-child(2n + 3)::after {
    right: -16px;
    left: auto;
    transform: translateY(-50%) rotate(45deg);
  }
  .business-step:first-child {
    color: var(--blue);
    background: #f5f8ff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(35, 87, 214, 0.16);
  }
  .business-step:first-child::before {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
  }
  .terminal-mini-card,
  .capability-card {
    min-height: auto;
    padding: 14px;
    gap: 9px;
  }
  .card-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }
  .business-flow-card {
    margin-top: 16px;
    background: #f8fbff;
    border-color: #d7e3f7;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .topology-canvas {
    transform: scale(0.85);
  }
  .obs-grid {
    grid-template-columns: 1fr;
  }
}
.delivery-board {
  background:
    linear-gradient(135deg, rgba(35, 87, 214, 0.05), rgba(20, 184, 166, 0.04) 48%, rgba(255, 255, 255, 0) 72%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
  padding: 24px;
  display: grid;
  gap: 18px;
}
.delivery-board-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.delivery-board-head strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 6px;
}
.delivery-board-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.delivery-status {
  min-width: 156px;
  border: 1px solid #cbd8ee;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  text-align: right;
}
.delivery-status span {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}
.delivery-status b {
  display: block;
  color: #183b8f;
  font-size: 16px;
}
.delivery-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.delivery-kpis div {
  border: 1px solid #dfe6ef;
  background: rgba(248, 250, 252, 0.86);
  padding: 14px 16px;
}
.delivery-kpis strong {
  display: block;
  color: #183b8f;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 7px;
}
.delivery-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.delivery-lanes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.delivery-lane {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.delivery-lane:before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--blue);
}
.delivery-lane:nth-child(2):before,
.delivery-lane:nth-child(5):before { background: var(--teal); }
.delivery-lane:nth-child(3):before,
.delivery-lane:nth-child(6):before { background: #d9912c; }
.delivery-lane > span {
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #183b8f;
  background: var(--blue-soft);
  border: 1px solid #c8d8ff;
  font-size: 12px;
  font-weight: 800;
}
.delivery-lane strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  min-height: 44px;
}
.delivery-lane p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
  flex: 1 1 auto;
}
.delivery-lane em {
  width: 100%;
  margin-top: auto;
  font-style: normal;
  color: #344054;
  background: #f8fafc;
  border: 1px dashed #c8d6ea;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  min-height: 54px;
  display: flex;
  align-items: center;
}
.delivery-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.delivery-controls div {
  border-left: 3px solid var(--blue);
  background: rgba(248, 250, 252, 0.9);
  padding: 14px 16px;
}
.delivery-controls div:nth-child(2) { border-left-color: var(--teal); }
.delivery-controls strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 6px;
}
.delivery-controls span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.two-col, .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-panel { background: #fff; border: 1px solid var(--line); padding: 22px; }
.detail-panel h3 { margin: 0 0 14px; font-size: 20px; }
.detail-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.detail-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1f7; color: #445064; font-size: 14px; line-height: 1.65; }
.detail-list li:last-child { border-bottom: 0; }

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

.site-footer {
  margin-top: auto;
  padding: 38px clamp(20px, 3.5vw, 44px);
  background: #f8fafc;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand img {
  width: 128px;
  height: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.footer-brand img:hover {
  opacity: 1;
}
.footer-logo-panel {
  width: fit-content;
  margin-bottom: 14px;
}
.footer-brand strong, .footer-col strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
}
.footer-brand p, .footer-col p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom a:hover {
  color: var(--blue);
}

/* Ecosystem / Integrated Brands */
.ecosystem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.eco-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: default;
}
.eco-tag:hover {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue-soft);
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .cards, .module-grid, .service-matrix, .advantage-grid, .security-stack, .audience-strip,
  .principles, .scenario-cards, .biz-channels, .biz-domain-grid, .deploy-grid, .biz-lifecycle,
  .biz-support, .process-chain, .collab-row, .arch-caption, .case-solution-grid, .arch-stage-body,
  .product-overview-grid, .download-grid, .material-download-grid, .capability-domain-grid { grid-template-columns: repeat(2, 1fr); }
  .system-hero-grid, .terminal-grid, .download-strip { grid-template-columns: 1fr; }
  .journey-board { grid-template-columns: repeat(3, 1fr); }
  .journey-step:not(:last-child):after { display: none; }
  .feature-list, .feature-group, .two-col, .detail-grid, .arch-canvas, .scenario-row, .arch-stage { grid-template-columns: 1fr; }
  .feature-title { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-detail-head { align-items: flex-start; flex-direction: column; }
  .arch-stage-label { border-right: 0; border-bottom: 1px solid var(--line); }
  .arch-rail { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .arch-flow { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .delivery-lanes { grid-template-columns: repeat(3, 1fr); }
  .delivery-kpis { grid-template-columns: repeat(2, 1fr); }
  .delivery-lane {
    min-height: 218px;
  }
  .architecture-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .architecture-title-tags {
    justify-content: flex-start;
    flex: none;
    width: 100%;
  }
  .hero-card.dashboard {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .mobile-topbar {
    display: flex !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(228, 231, 236, 0.7) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    padding: 0 20px !important;
    height: 64px !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 35;
  }
  .mobile-brand img {
    height: 28px !important;
    width: auto !important;
  }
  .mobile-brand strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .architecture-title {
    padding: 18px 16px 16px;
  }
  .architecture-title:before {
    left: 16px;
    width: 72px;
  }
  .architecture-title h2 {
    font-size: 24px;
  }
  .architecture-title h2 span {
    font-size: 15px;
  }
  .architecture-title p {
    font-size: 13px;
  }
  .architecture-title-tags {
    gap: 6px;
  }
  .architecture-title-tags span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }
  
  /* Animated Hamburger Menu Button */
  .menu-button {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 40 !important;
  }
  .menu-button .line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  }
  /* Animation states when menu is open */
  body.menu-open .menu-button .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.menu-open .menu-button .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  body.menu-open .menu-button .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .layout {
    display: block;
    margin-top: 64px;
  }

  /* Frosted Glass Navigation Drawer */
  .sidebar {
    display: flex !important;
    position: fixed !important;
    z-index: 30 !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(100vh - 64px) !important;
    padding: 24px 20px !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    
    /* Sliding animations */
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
    overflow-y: auto !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  }
  
  body.menu-open .sidebar {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Backdrop dim and blur */
  .mobile-nav-backdrop {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 24, 40, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
  }
  body.menu-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }
  
  /* Prevent scroll on body when open */
  body.menu-open {
    overflow: hidden !important;
  }

  /* Card-style list of links */
  .sidebar .nav {
    display: grid !important;
    gap: 10px !important;
    width: 100%;
    max-width: 440px;
    margin: 0 auto !important;
  }
  .sidebar .nav a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 15px 18px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(228, 231, 236, 0.7) !important;
    border-radius: 12px !important;
    color: #344054 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: none !important;
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.015);
    
    /* Staggered load animation */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: calc(var(--nav-item-index, 0) * 0.04s) !important;
  }
  
  body.menu-open .sidebar .nav a {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Hover and active card styles */
  .sidebar .nav a:hover:not(.active) {
    background: rgba(24, 59, 143, 0.04) !important;
    border-color: rgba(24, 59, 143, 0.2) !important;
    color: var(--blue) !important;
  }
  .sidebar .nav a.active, .sidebar .nav a.active-page {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 16px rgba(24, 59, 143, 0.2) !important;
  }
  .sidebar .nav a.active .nav-icon, .sidebar .nav a.active-page .nav-icon {
    color: #fff !important;
  }
  .sidebar .nav a:hover:not(.active) .nav-icon {
    color: var(--blue) !important;
  }
  .sidebar .nav.nav-detail {
    gap: 14px !important;
  }
  .sidebar .nav.nav-detail a {
    padding: 16px 18px !important;
    gap: 16px !important;
  }
  .sidebar .nav.nav-detail::before {
    display: none !important;
  }
  .sidebar .nav.nav-detail .nav-order {
    flex: 0 0 32px;
    width: 32px;
    font-size: 12px;
    background: transparent !important;
    color: #94a3b8 !important;
  }
  .sidebar .nav.nav-detail a:hover:not(.active) .nav-order {
    color: var(--blue) !important;
  }
  .sidebar .nav.nav-detail a.active .nav-order {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px;
    padding: 4px 0;
  }

  /* Staggered slide in for mobile sidebar footer */
  .sidebar-footer {
    display: block !important;
    border-top: 0 !important;
    margin-top: 24px !important;
    padding: 20px 0 0 0 !important;
    text-align: center !important;
    border-top: 1px dashed rgba(228, 231, 236, 0.8) !important;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: calc((var(--nav-item-count, 10) + 1) * 0.04s) !important;
  }
  body.menu-open .sidebar-footer {
    opacity: 1;
    transform: translateY(0);
  }
  .sidebar-footer .side-foot {
    display: block !important;
    font-size: 12px !important;
    color: var(--muted) !important;
    line-height: 1.6 !important;
    padding: 0 10px !important;
  }

  /* Mobile resets for sidebar collapsed states */
  .layout.sidebar-collapsed {
    --sidebar-width: 100%;
  }
  .layout.sidebar-collapsed .brand strong,
  .layout.sidebar-collapsed .brand span,
  .layout.sidebar-collapsed .brand-logo,
  .layout.sidebar-collapsed .side-foot,
  .layout.sidebar-collapsed .nav-text {
    display: block !important;
  }
  .layout.sidebar-collapsed .brand-collapsed-logo {
    display: none !important;
  }
  .layout.sidebar-collapsed .brand {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 22px;
  }
  .sidebar-toggle {
    display: none !important;
  }
  .sub-nav {
    display: none !important;
  }
  .sidebar .page-switcher {
    max-width: 440px;
    margin: 0 auto 16px auto !important;
  }
  .sidebar .nav-section-label {
    max-width: 440px;
    margin: 0 auto 8px auto;
    padding: 0 4px;
    text-align: left;
  }
  .sidebar-menu {
    padding: 0 !important;
    width: 100%;
  }
  .sidebar .brand,
  .layout.sidebar-collapsed .brand {
    display: none !important;
  }
  .sidebar-footer,
  .layout.sidebar-collapsed .side-foot {
    display: none !important;
  }

  .hero, .content-section { padding: 42px 18px; }
  .hero p { font-size: 16px; }
  .crumb-row { display: grid; gap: 12px; }
  .page-actions {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  .page-action {
    flex: 1;
    min-height: 42px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 550;
    padding: 0 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  }
  .page-action.primary {
    border-color: #c8d7f4;
    background: linear-gradient(180deg, #f3f7ff 0%, #e8f0fe 100%);
    box-shadow: 0 4px 12px rgba(35, 87, 214, 0.08);
  }
  .page-action:not(.primary) {
    background: #fff;
    border-color: #d7e0ec;
    color: #445064;
  }
  .page-action:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  .cards, .module-grid, .service-matrix, .advantage-grid, .security-stack, .audience-strip,
  .principles, .glossary, .scenario-cards, .biz-channels, .biz-lifecycle, .biz-domain-grid,
  .biz-support, .process-chain, .collab-row, .deploy-grid, .arch-caption, .mock-main,
  .case-solution-grid, .footer-inner, .arch-stage-body, .arch-support,
  .product-overview-grid, .download-grid, .material-download-grid, .capability-domain-grid { grid-template-columns: 1fr; }
  .capability-domain { min-height: 0; }
  .capability-boost-band { grid-template-columns: 1fr; }
  .system-hero-copy h1 { font-size: 32px; }
  .system-map {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    align-items: stretch;
  }
  .system-map:before,
  .system-map:after { display: none; }
  .system-node.admin,
  .system-core,
  .system-mid {
    position: relative;
  }
  .system-node.admin:after,
  .system-core:after,
  .system-mid:after {
    content: "↓";
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #94a3b8;
    font-weight: 900;
    z-index: 10;
  }
  .system-node strong,
  .system-core strong {
    font-size: 15px;
  }
  .system-node span,
  .system-node em,
  .system-core span {
    font-size: 11px;
  }
  .system-core {
    border-radius: 20px;
  }
  .system-mid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .journey-board, .terminal-grid, .download-strip { grid-template-columns: 1fr; }
  .journey-step { min-height: 0; }
  .journey-step:not(:last-child):after {
    display: block;
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid #8fa2c2;
    border-right: 2px solid #8fa2c2;
    z-index: 10;
  }
  .system-hero-actions {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: 20px;
  }
  .system-hero-actions .btn {
    flex: 1;
    min-height: 42px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 550;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  }
  .system-hero-actions .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  .matrix-scroll-tip {
    display: block;
    margin-bottom: 10px;
  }
  .terminal-card { min-height: 0; }
  .terminal-board {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow-x: visible;
  }
  .terminal-board-head {
    display: none;
  }
  .terminal-board-row {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(28, 43, 78, 0.04);
    padding: 16px;
    border-radius: 8px;
    gap: 12px;
  }
  .terminal-board-row:nth-child(2) { border-left: 4px solid var(--blue); }
  .terminal-board-row:nth-child(3) { border-left: 4px solid var(--teal); }
  .terminal-board-row:nth-child(4) { border-left: 4px solid #8a4b05; }
  .terminal-board-row:nth-child(5) { border-left: 4px solid var(--red); }

  .terminal-board-row > div {
    display: block;
    padding: 0;
    min-height: 0;
    border-right: 0;
    border-bottom: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #445064;
  }
  .terminal-board-row > div:first-child {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 4px;
    background: transparent;
  }
  .terminal-board-row > div:first-child strong {
    font-size: 16px;
    color: var(--ink);
  }
  .terminal-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
  }
  .terminal-board-row > div:nth-child(2):before { content: "服务角色"; display: inline-block; font-size: 11px; font-weight: 700; color: #4b5563; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; margin-right: 8px; }
  .terminal-board-row > div:nth-child(3):before { content: "工作台定位"; display: inline-block; font-size: 11px; font-weight: 700; color: #4b5563; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; margin-right: 8px; }
  .terminal-board-row > div:nth-child(4):before { content: "高频动作"; display: inline-block; font-size: 11px; font-weight: 700; color: #4b5563; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; margin-right: 8px; }
  .terminal-board-row > div:nth-child(5):before { content: "协同回流"; display: inline-block; font-size: 11px; font-weight: 700; color: #4b5563; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; margin-right: 8px; }

  .admin-row > div {
    background: transparent;
  }
  .product-detail-head h2 { font-size: 24px; }
  .product-detail-head .btn { width: 100%; }

  /* Hide the dashboard mockup on mobile for a clean and readable layout */
  .hero-card.dashboard {
    display: none !important;
  }
  .arch-overview-head { display: grid; }
  .biz-map-title { display: grid; }
  .biz-layer, .arch-row { grid-template-columns: 1fr; }
  .biz-layer-label, .arch-label { border-right: 0; border-bottom: 1px solid var(--line); }
  .life-step:after { display: none; }
  .arch-nodes, .arch-nodes.cols-5, .arch-nodes.cols-6, .arch-nodes.cols-7 { grid-template-columns: 1fr; }
  .detail-list li { grid-template-columns: 1fr; gap: 4px; }
  .scenario-row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .scenario-row > div:last-child { border-bottom: 0; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .arch-rail, .arch-flow { grid-template-columns: 1fr; }
  .delivery-board { padding: 18px; }
  .delivery-board-head,
  .delivery-controls { grid-template-columns: 1fr; display: grid; }
  .delivery-status { text-align: left; min-width: 0; }
  .delivery-kpis,
  .delivery-lanes { grid-template-columns: 1fr; }
  .delivery-lane {
    min-height: 0;
    gap: 7px;
  }
  .delivery-lane strong {
    min-height: 0;
  }
  .delivery-lane em {
    min-height: 0;
  }
  .delivery-board.global-active {
    min-width: 980px;
    padding: 24px;
  }
  .delivery-board.global-active .delivery-board-head {
    display: flex;
  }
  .delivery-board.global-active .delivery-status {
    text-align: right;
    min-width: 156px;
  }
  .delivery-board.global-active .delivery-kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  .delivery-board.global-active .delivery-lanes {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
  }
  .delivery-board.global-active .delivery-lane {
    min-height: 230px;
  }
  .delivery-board.global-active .delivery-controls {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Mobile Global View and Scroll Styles for Diagrams
   ========================================================================== */

/* Scroll containers for horizontal scrolling on mobile */
.scroll-container {
  width: 100%;
  min-width: 0; /* prevent layout stretching in flex/grid parents */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px; /* space for scrollbar */
  margin-top: 10px;
}

/* Custom scrollbar styling */
.scroll-container::-webkit-scrollbar {
  height: 6px;
}
.scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}
.scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
  transition: background 0.2s ease;
}
.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Toggle bar for mobile view switching */
.diagram-toggle-bar {
  display: none; /* hidden on desktop by default */
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.matrix-scroll-tip {
  display: none;
  margin-bottom: 12px;
}
.scroll-tip-text {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.diagram-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scroll-tip-icon {
  animation: shakeLR 2s infinite ease-in-out;
}

@keyframes shakeLR {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.view-toggle {
  display: inline-flex;
  background: #e2e8f0;
  padding: 2px;
  border-radius: 6px;
}

.toggle-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.toggle-btn.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Show toggle bar on screens where layout collapses */
@media (max-width: 1080px) {
  .diagram-toggle-bar {
    display: flex;
  }
}

/* Desktop layout overrides for global-active class on mobile */
@media (max-width: 1080px) {
  /* Index Page: Technical Architecture Overview */
  .arch-overview-canvas.global-active {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-width: 800px;
  }
  .arch-overview-canvas.global-active .arch-stage {
    display: grid !important;
    grid-template-columns: 150px 1fr !important;
  }
  .arch-overview-canvas.global-active .arch-stage-label {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  .arch-overview-canvas.global-active .arch-stage-body {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
  }

  /* Technical Architecture Detail Page */
  .arch-canvas.global-active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 190px !important;
    min-width: 900px;
    align-items: stretch !important;
  }
  .arch-canvas.global-active .arch-main {
    display: grid !important;
    gap: 12px !important;
  }
  .arch-canvas.global-active .arch-row {
    display: grid !important;
    grid-template-columns: 170px 1fr !important;
  }
  .arch-canvas.global-active .arch-label {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  .arch-canvas.global-active .arch-nodes {
    display: grid !important;
  }
  .arch-canvas.global-active .arch-nodes.cols-5 {
    grid-template-columns: repeat(5, 1fr) !important;
  }
  .arch-canvas.global-active .arch-nodes.cols-6 {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .arch-canvas.global-active .arch-nodes.cols-7 {
    grid-template-columns: repeat(7, 1fr) !important;
  }
  .arch-canvas.global-active .arch-rail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 12px !important;
  }
  .arch-canvas.global-active .arch-flow {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .arch-canvas.global-active .arch-flow span {
    border-top: 1px dashed #b7c2d2 !important;
    padding-top: 6px !important;
  }

  /* Business Map Page */
  .biz-map-canvas.global-active {
    display: grid !important;
    min-width: 950px;
    gap: 14px !important;
  }
  .biz-map-canvas.global-active .biz-layer {
    display: grid !important;
    grid-template-columns: 150px 1fr !important;
  }
  .biz-map-canvas.global-active .biz-layer-label {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  .biz-map-canvas.global-active .biz-channels {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .biz-map-canvas.global-active .biz-lifecycle {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
  }
  .biz-map-canvas.global-active .life-step:not(:last-child):after {
    display: block !important;
  }
  .biz-map-canvas.global-active .biz-domain-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .biz-map-canvas.global-active .biz-support {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
  }

  /* Delivery Board */
  .delivery-board.global-active {
    display: grid !important;
    min-width: 980px;
  }
  .delivery-board.global-active .delivery-board-head {
    display: flex !important;
  }
  .delivery-board.global-active .delivery-status {
    text-align: right !important;
    min-width: 156px !important;
  }
  .delivery-board.global-active .delivery-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .delivery-board.global-active .delivery-lanes {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(150px, 1fr)) !important;
  }
  .delivery-board.global-active .delivery-lane {
    min-height: 230px !important;
  }
  .delivery-board.global-active .delivery-controls {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 760px) {
  /* Index Page: Technical Architecture Overview */
  .arch-overview-canvas.global-active {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-width: 800px;
  }
  .arch-overview-canvas.global-active .arch-stage {
    display: grid !important;
    grid-template-columns: 150px 1fr !important;
  }
  .arch-overview-canvas.global-active .arch-stage-label {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  .arch-overview-canvas.global-active .arch-stage-body {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
  }

  /* Technical Architecture Detail Page */
  .arch-canvas.global-active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 190px !important;
    min-width: 900px;
    align-items: stretch !important;
  }
  .arch-canvas.global-active .arch-main {
    display: grid !important;
    gap: 12px !important;
  }
  .arch-canvas.global-active .arch-row {
    display: grid !important;
    grid-template-columns: 170px 1fr !important;
  }
  .arch-canvas.global-active .arch-label {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  .arch-canvas.global-active .arch-nodes {
    display: grid !important;
  }
  .arch-canvas.global-active .arch-nodes.cols-5 {
    grid-template-columns: repeat(5, 1fr) !important;
  }
  .arch-canvas.global-active .arch-nodes.cols-6 {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .arch-canvas.global-active .arch-nodes.cols-7 {
    grid-template-columns: repeat(7, 1fr) !important;
  }
  .arch-canvas.global-active .arch-rail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 12px !important;
  }
  .arch-canvas.global-active .arch-flow {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .arch-canvas.global-active .arch-flow span {
    border-top: 1px dashed #b7c2d2 !important;
    padding-top: 6px !important;
  }

  /* Business Map Page */
  .biz-map-canvas.global-active {
    display: grid !important;
    min-width: 950px;
    gap: 14px !important;
  }
  .biz-map-canvas.global-active .biz-layer {
    display: grid !important;
    grid-template-columns: 150px 1fr !important;
  }
  .biz-map-canvas.global-active .biz-layer-label {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  .biz-map-canvas.global-active .biz-channels {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .biz-map-canvas.global-active .biz-lifecycle {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
  }
  .biz-map-canvas.global-active .life-step:not(:last-child):after {
    display: block !important;
  }
  .biz-map-canvas.global-active .biz-domain-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .biz-map-canvas.global-active .biz-support {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .mobile-topbar {
    height: 56px !important;
    padding: 0 16px !important;
  }
  .mobile-brand img {
    height: 24px !important;
  }
  .mobile-brand strong {
    font-size: 14px !important;
  }
  .menu-button {
    width: 34px !important;
    height: 34px !important;
  }
  .share-entry {
    right: 14px;
    bottom: 14px;
    min-height: 36px;
    padding: 0 11px;
    gap: 6px;
    font-size: 12px;
    box-shadow: 0 10px 24px rgba(28, 43, 78, 0.16);
    opacity: 0.92;
  }
  .share-entry svg {
    width: 15px;
    height: 15px;
  }
  .share-card {
    padding: 18px;
    border-radius: 8px;
  }
  .share-qr {
    width: 152px;
    height: 152px;
  }
  .share-qr img,
  .share-qr canvas {
    width: 136px !important;
    height: 136px !important;
  }
  .share-title {
    font-size: 18px;
  }
  .share-actions {
    grid-template-columns: 1fr;
  }
  .layout {
    margin-top: 56px !important;
  }
  .sidebar {
    top: 56px !important;
    height: calc(100vh - 56px) !important;
    padding: 16px !important;
  }
  .mobile-nav-backdrop {
    top: 56px !important;
  }
  .sidebar .nav {
    gap: 6px !important;
    max-width: 420px;
  }
  .sidebar .nav a {
    min-height: 42px;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    box-shadow: none !important;
  }
  .sidebar .nav:not(.nav-detail) .nav-icon {
    width: 15px;
    height: 15px;
  }

  .hero {
    position: relative;
    min-height: auto;
    padding: 42px 18px 34px !important;
    align-items: start;
    overflow: hidden;
    background:
      linear-gradient(135deg, rgba(35, 87, 214, 0.10), rgba(20, 184, 166, 0.06) 45%, rgba(255, 255, 255, 0.94) 100%),
      #ffffff;
  }
  .hero::after {
    content: "";
    position: absolute;
    right: -82px;
    top: 28px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(35, 87, 214, 0.14);
    background:
      linear-gradient(90deg, rgba(35, 87, 214, 0.08) 1px, transparent 1px),
      linear-gradient(0deg, rgba(35, 87, 214, 0.08) 1px, transparent 1px),
      rgba(255, 255, 255, 0.24);
    background-size: 22px 22px;
    transform: rotate(12deg);
    pointer-events: none;
  }
  .hero > div:first-child {
    position: relative;
    z-index: 1;
  }
  .content-section {
    padding: 38px 18px !important;
  }
  .eyebrow {
    margin-bottom: 16px;
    padding: 7px 10px;
    border-left: 3px solid var(--blue);
    background: rgba(234, 241, 255, 0.92);
    font-size: 13px;
  }
  h1 {
    font-size: 38px;
    line-height: 1.08;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 30px;
    line-height: 1.22;
    margin-bottom: 10px;
  }
  .hero p,
  .section-head p {
    font-size: 16px;
    line-height: 1.68;
  }
  .section-head {
    margin-bottom: 22px;
  }
  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }
  .btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 7px;
  }
  .mobile-home-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }
  .mobile-home-hero-metrics div {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 14px 9px;
    border: 1px solid #d7e2f3;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(28, 43, 78, 0.07);
  }
  .mobile-home-hero-metrics strong {
    color: #183b8f;
    font-size: 15px;
    line-height: 1.18;
  }
  .mobile-home-hero-metrics span {
    color: #526179;
    font-size: 11px;
    line-height: 1.42;
  }

  .cards,
  .module-grid,
  .service-matrix,
  .advantage-grid,
  .security-stack,
  .audience-strip,
  .scenario-cards,
  .case-solution-grid,
  .collab-row,
  .deploy-grid,
  .principles,
  .glossary,
  .arch-caption,
  .arch-support {
    gap: 10px !important;
  }
  .card,
  .module,
  .service-card,
  .advantage-card,
  .security-card,
  .scenario-card,
  .deploy-card,
  .faq-item,
  .solution-card,
  .collab-card,
  .audience-card,
  .principle,
  .term,
  .arch-support-card {
    min-height: 0 !important;
    padding: 14px 16px !important;
    border-radius: 8px;
    box-shadow: none !important;
  }
  .card:hover,
  .module:hover,
  .scenario-card:hover,
  .security-card:hover,
  .solution-card:hover {
    transform: none;
    box-shadow: none;
  }
  .card.product-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    min-height: 0;
    padding: 12px 14px !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }
  .card.product-card .icon,
  .icon,
  .scenario-card .icon {
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    border-radius: 6px;
  }
  .service-card:has(.icon) {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
  }
  .service-card:has(.icon) .icon {
    grid-column: 1;
    grid-row: 1 / span 10;
    margin: 0 !important;
  }
  .service-card:has(.icon) > :not(.icon) {
    grid-column: 2;
  }
  .card.product-card .icon {
    grid-row: 1 / span 2;
    background: #eff6ff !important;
    color: var(--blue) !important;
    box-shadow: none !important;
    border: none !important;
  }
  .card.product-card .icon.teal {
    background: #f0fdfa !important;
    color: var(--teal) !important;
  }
  .card.product-card .icon.amber {
    background: #fffbeb !important;
    color: var(--amber) !important;
  }
  .card.product-card .icon.red {
    background: #fef2f2 !important;
    color: var(--red) !important;
  }
  .card.product-card .icon svg,
  .icon svg,
  .scenario-card .icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .card.product-card h3,
  .card h3,
  .service-card h3,
  .advantage-card h3,
  .security-card h3,
  .deploy-card h3,
  .solution-card h3 {
    margin: 0 0 5px !important;
    font-size: 16px !important;
    line-height: 1.35;
  }
  .card.product-card p,
  .card p,
  .service-card p,
  .advantage-card p,
  .security-card p,
  .deploy-card p,
  .faq-item p,
  .solution-card p,
  .module span,
  .scenario-card span,
  .solution-card span,
  .collab-card p,
  .audience-card span,
  .principle p,
  .term span,
  .arch-support-card span {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  .module,
  .scenario-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }
  .module .icon,
  .scenario-card .icon {
    grid-row: 1 / span 2;
  }
  #scenarios .section-head {
    padding-bottom: 4px;
  }
  .scenario-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--blue);
    opacity: 0.9;
  }
  .scenario-card {
    position: relative;
    overflow: hidden;
  }
  .module strong,
  .scenario-card strong,
  .faq-item strong,
  .solution-card strong,
  .collab-card h3,
  .audience-card strong,
  .principle b,
  .term strong,
  .arch-support-card strong {
    margin: 0 0 4px !important;
    font-size: 15px !important;
    line-height: 1.35;
  }
  .solution-list {
    margin-top: 8px;
    gap: 4px;
  }
  .solution-list li {
    font-size: 12px;
    line-height: 1.45;
  }

  .diagram-toggle-bar {
    margin-top: 8px;
    padding: 6px 8px;
    gap: 8px;
  }
  #diagram.content-section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  #diagram .architecture-hero {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  #diagram .diagram-toggle-bar {
    width: 100%;
    min-width: 0;
  }
  .scroll-tip-text {
    font-size: 11px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .diagram-actions,
  .view-toggle {
    flex: 0 0 auto;
    min-width: 0;
  }
  .toggle-btn {
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
    word-break: keep-all;
  }
  .fullscreen-trigger-btn {
    height: 22px;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
    word-break: keep-all;
  }
  .collab-map,
  .biz-map,
  .architecture-hero,
  .delivery-board {
    padding: 12px !important;
    gap: 12px;
  }
  .arch-overview-head,
  .biz-map-title,
  .architecture-title,
  .delivery-board-head {
    gap: 8px !important;
    padding-bottom: 10px;
  }
  .arch-stage-label,
  .biz-layer-label,
  .arch-label,
  .feature-title {
    padding: 10px 12px;
  }
  .arch-stage-body,
  .arch-nodes,
  .biz-layer-body,
  .feature-list {
    padding: 8px;
    gap: 6px;
  }
  .arch-pill,
  .arch-node,
  .biz-node,
  .biz-channel,
  .biz-support div,
  .life-step,
  .process-step,
  .feature-item {
    min-height: 0 !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.45;
  }
  .life-step strong,
  .process-step strong {
    font-size: 12px;
  }
  .life-step span,
  .process-step span {
    font-size: 11px;
  }

  .delivery-board:not(.global-active) {
    min-width: 0;
    box-shadow: none;
  }
  .delivery-board:not(.global-active) .delivery-board-head,
  .delivery-board:not(.global-active) .delivery-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .delivery-board:not(.global-active) .delivery-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .delivery-board:not(.global-active) .delivery-kpis div {
    padding: 10px 12px;
  }
  .delivery-board:not(.global-active) .delivery-kpis strong {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .delivery-board:not(.global-active) .delivery-lanes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .delivery-board:not(.global-active) .delivery-lane {
    min-height: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 4px;
    padding: 12px 14px !important;
  }
  .delivery-board:not(.global-active) .delivery-lane:before {
    width: 3px;
    height: auto;
    right: auto;
    bottom: -1px;
  }
  .delivery-board:not(.global-active) .delivery-lane > span {
    grid-row: 1 / span 3;
    width: 30px;
    height: 26px;
    font-size: 11px;
  }
  .delivery-board:not(.global-active) .delivery-lane strong {
    min-height: 0;
    font-size: 15px;
    line-height: 1.35;
  }
  .delivery-board:not(.global-active) .delivery-lane p {
    font-size: 12px;
    line-height: 1.5;
  }
  .delivery-board:not(.global-active) .delivery-lane em {
    min-height: 0;
    margin-top: 4px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.4;
  }
  .delivery-controls {
    gap: 8px;
  }
  .delivery-controls div {
    padding: 10px 12px;
  }
}

/* Fullscreen Trigger Button */
.fullscreen-trigger-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.fullscreen-trigger-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

/* Fullscreen Diagram Overlay */
.diagram-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.98); /* dark slate translucent background */
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: none;
  opacity: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 40px 20px;
  transition: opacity 0.25s ease;
}

.diagram-fullscreen-overlay.active {
  display: flex;
  opacity: 1;
}

.fullscreen-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3100;
  transition: all 0.2s ease;
}

.fullscreen-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.fullscreen-scroll-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fullscreen-content-wrapper {
  width: 100%;
  height: calc(100% - 70px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
  touch-action: none;
}

/* Rotation and scale wrapper for the diagram */
.fullscreen-rotation-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  flex-shrink: 0;
}

.fullscreen-diagram-shell {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4) !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), position 0.25s, left 0.25s, top 0.25s;
  cursor: zoom-in;
  box-sizing: border-box;
  width: max-content;
  max-width: none;
  flex-shrink: 0;
}

.fullscreen-diagram-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px 12px;
  background: linear-gradient(135deg, #183b8f 0%, #2456c8 52%, #3b82f6 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.fullscreen-diagram-caption::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.fullscreen-diagram-caption-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.fullscreen-diagram-caption-title {
  font-size: clamp(15px, 3.8vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: 0.02em;
}

.fullscreen-diagram-shell > :not(.fullscreen-diagram-caption) {
  padding: 20px 22px 22px !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.fullscreen-rotation-container.zoomed-in-active .fullscreen-diagram-shell {
  cursor: zoom-out;
}

@media (max-width: 760px) {
  .material-share-main {
    width: min(100% - 32px, 440px);
    padding: 24px 0 42px;
  }
  .material-share-brand img {
    width: 140px;
  }
  .material-share-brand span {
    font-size: 14px;
  }
  .material-share-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 32px;
  }
  .material-share-hero h1 {
    font-size: 34px;
  }
  .material-share-hero p {
    font-size: 15px;
  }

  .diagram-fullscreen-overlay {
    padding: 48px 8px 92px;
  }

  .fullscreen-content-wrapper {
    height: calc(100% - 56px);
  }

  .fullscreen-diagram-caption {
    padding: 11px 14px 10px;
  }

  .fullscreen-diagram-shell > :not(.fullscreen-diagram-caption) {
    padding: 14px 14px 16px !important;
  }
}

/* Glassmorphism control panel */
.fullscreen-controls {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px 8px;
  border-radius: 30px;
  z-index: 3100;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ctrl-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 59, 143, 0.3);
}

.ctrl-btn.active:hover {
  background: rgba(24, 59, 143, 0.9);
}

.ctrl-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

/* Micro-animations for control icons */
.ctrl-btn svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ctrl-btn:hover svg {
  transform: scale(1.1);
}
.ctrl-btn.btn-rotate:hover svg {
  transform: rotate(-90deg) scale(1.1);
}

/* ==========================================
   Online Preview Modal Styles (Redesigned for Premium Aesthetics)
   ========================================== */
.preview-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 12%, rgba(35, 87, 214, 0.12), transparent 34%),
    rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.preview-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.preview-modal-box {
  position: relative;
  width: min(1440px, 96vw);
  height: min(900px, 88vh);
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 
    0 10px 30px -10px rgba(22, 32, 51, 0.08), 
    0 30px 70px -10px rgba(22, 32, 51, 0.16);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-modal-overlay.active .preview-modal-box {
  transform: scale(1) translateY(0);
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.preview-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.preview-type-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.preview-type-tag.excel {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.preview-type-tag.pdf {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.preview-modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.preview-download-btn,
.preview-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  text-decoration: none;
  border: 1px solid #bfdbfe;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.preview-download-btn:hover,
.preview-share-btn:hover {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(35, 87, 214, 0.15);
  transform: translateY(-1px);
}

.preview-download-btn svg,
.preview-share-btn svg {
  transition: transform 0.2s ease;
}

.preview-download-btn:hover svg {
  transform: translateY(1px);
}

.preview-share-btn {
  font-family: inherit;
}

.preview-share-btn.copied {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: rgba(20, 184, 166, .32);
}

.preview-close-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
}

.preview-close-btn:hover {
  background: #f8fafc;
  color: var(--ink);
  border-color: #cbd5e1;
  transform: scale(1.05);
}

.preview-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

/* PDF Preview Frame */
.preview-pdf-container {
  width: 100%;
  height: 100%;
  flex: 1;
  background: #f1f5f9;
}

.preview-pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #f1f5f9;
}

.preview-pdf-image-viewer {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #eef3f8;
}

.preview-pdf-image-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid #dbe4ef;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
}

.preview-pdf-image-toolbar strong {
  color: var(--ink);
  font-size: 13px;
}

.preview-pdf-page-list {
  flex: 1;
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

.preview-pdf-page {
  margin: 0 auto;
  width: min(100%, 880px);
}

.preview-pdf-page img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.preview-pdf-page figcaption {
  margin-top: 8px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

/* Excel Preview Container & Toolbar */
.preview-excel-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  overflow: hidden;
  background: #f8fafc;
}

.preview-excel-summary {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 14px 26px 0;
  background: #f8fafc;
}

.preview-excel-summary-item {
  min-width: 118px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.preview-excel-summary-item.wide {
  min-width: 180px;
}

.preview-excel-summary-item span {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.preview-excel-summary-item strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.preview-excel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 16px;
  border-bottom: 1px solid #dbe4ef;
  background: #f8fafc;
  gap: 16px;
  flex-wrap: wrap;
}

.preview-excel-search {
  flex: 1;
  min-width: 260px;
  max-width: 430px;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 14px;
  transition: all 0.2s ease;
}

.preview-excel-search:focus-within {
  border-color: rgba(35, 87, 214, 0.4);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(35, 87, 214, 0.08);
}

.preview-excel-search svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  margin-right: 10px;
  flex-shrink: 0;
}

.preview-excel-search input {
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  padding: 0;
  background: transparent;
}

.preview-excel-search::after {
  content: "⌘K";
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 8px;
  pointer-events: none;
  font-family: monospace;
}

.preview-excel-search:focus-within::after {
  display: none;
}

.preview-excel-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none; /* Firefox */
  position: relative;
  background: #eaf0f7;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
}

.preview-excel-tabs::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.excel-tab-btn {
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
}

.excel-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
}

.excel-tab-btn::after {
  content: none;
}

.excel-tab-btn.active {
  color: var(--blue);
  font-weight: 700;
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* Excel Interactive Table */
.preview-excel-table-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
  margin: 0 10px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #ffffff;
}

/* Custom Scrollbar for Excel Table */
.preview-excel-table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.preview-excel-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.preview-excel-table-wrap::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 99px;
}
.preview-excel-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.preview-excel-table {
  min-width: 1040px;
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  table-layout: fixed;
}

.preview-excel-table th:nth-child(1),
.preview-excel-table td:nth-child(1) {
  width: 140px;
}

.preview-excel-table th:nth-child(2),
.preview-excel-table td:nth-child(2) {
  width: 170px;
}

.preview-excel-table th:nth-child(3),
.preview-excel-table td:nth-child(3) {
  width: auto;
}

.preview-excel-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  border-bottom: 1px solid #dbe4ef;
  padding: 12px 18px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
  white-space: nowrap;
}

.preview-excel-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #edf2f7;
  color: #334155;
  vertical-align: top;
  word-break: break-word;
  transition: background-color 0.15s ease;
}

.preview-excel-table tr:hover td {
  background: #f8fbff;
}

.preview-excel-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.preview-excel-table tbody tr:nth-child(even):hover td {
  background: #f8fbff;
}

/* Bold formatting for first or second column titles (like 一级模块 / 功能名称) */
.preview-excel-table tr td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.preview-excel-table tr td:nth-child(2) {
  color: #1e293b;
  font-weight: 600;
}

/* Badge styles for different product terminals */
.preview-excel-table .badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.preview-excel-table .badge-admin {
  background: var(--blue-soft);
  color: var(--blue);
}

.preview-excel-table .badge-steward {
  background: var(--teal-soft);
  color: var(--teal);
}

.preview-excel-table .badge-service {
  background: var(--amber-soft);
  color: var(--amber);
}

.preview-excel-table .badge-renter {
  background: var(--red-soft);
  color: var(--red);
}

/* Empty, Loading & Error states */
.preview-excel-empty,
.preview-excel-loading,
.preview-excel-error,
.preview-pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
  background: #ffffff;
  height: 100%;
}

.preview-excel-empty svg,
.preview-excel-loading svg,
.preview-excel-error svg,
.preview-pdf-loading svg {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.preview-excel-loading svg,
.preview-pdf-loading svg {
  color: var(--blue);
  animation: previewSpin 1s linear infinite;
  opacity: 1;
}

.preview-excel-loading strong,
.preview-pdf-loading strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.preview-excel-error svg {
  color: var(--red);
  opacity: 0.85;
}

@keyframes previewSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive details for Mobile */
@media (max-width: 768px) {
  .preview-modal-overlay {
    padding: 0;
  }
  .preview-modal-box {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
  .preview-modal-header {
    padding: 12px 14px;
    gap: 10px;
  }
  .preview-modal-title-wrap {
    min-width: 0;
    gap: 8px;
  }
  .preview-modal-title {
    font-size: 14px;
    max-width: calc(100vw - 190px);
    line-height: 1.3;
  }
  .preview-type-tag {
    padding: 3px 7px;
    font-size: 10px;
  }
  .preview-modal-actions {
    gap: 7px;
    flex-shrink: 0;
  }
  .preview-download-btn,
  .preview-share-btn {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
  }
  .preview-download-btn span,
  .preview-share-btn span {
    display: none;
  }
  .preview-download-btn svg,
  .preview-share-btn svg {
    width: 18px;
    height: 18px;
  }
  .preview-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .preview-excel-summary {
    padding: 10px 14px 0;
    gap: 8px;
    overflow-x: auto;
  }
  .preview-excel-summary-item {
    min-width: 96px;
    padding: 8px 10px;
  }
  .preview-excel-summary-item.wide {
    min-width: 140px;
  }
  .preview-excel-summary-item strong {
    font-size: 14px;
  }
  .preview-excel-toolbar {
    padding: 10px 14px 12px;
    gap: 12px;
  }
  .preview-excel-search {
    max-width: 100%;
    min-width: 100%;
    order: 1;
    padding: 6px 12px;
  }
  .preview-excel-search::after {
    display: none;
  }
  .preview-excel-tabs {
    width: 100%;
    order: 2;
    gap: 4px;
  }
  .excel-tab-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .preview-excel-table-wrap {
    margin: 0 8px 8px;
  }
  .preview-excel-table {
    min-width: 860px;
  }
  .preview-excel-table th,
  .preview-excel-table td {
    padding: 11px 14px;
    font-size: 12.5px;
  }
  .preview-pdf-image-toolbar {
    padding: 9px 12px;
    justify-content: space-between;
  }
  .preview-pdf-page-list {
    padding: 10px;
    gap: 12px;
  }
  .preview-pdf-page img {
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  }
}

/* WeChat Download Tip Overlay */
.wechat-download-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wechat-download-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.wechat-tip-arrow {
  width: 80px;
  height: 80px;
  margin-right: 20px;
  stroke: #fff;
  stroke-width: 1.5;
  fill: none;
  animation: wechat-bounce 1.5s infinite;
}
@keyframes wechat-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.wechat-tip-box {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 320px;
  margin-right: 20px;
  margin-top: 10px;
  backdrop-filter: blur(10px);
}
.wechat-tip-box h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #56d081;
}
.wechat-tip-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
}
