:root {
  --hex-blue: #0052ff;
  --hex-blue-dark: #003cc2;
  --hex-cyan: #3cfff3;
  --fx-sky: #0284c7;
  --fx-sky-soft: #e0f2fe;
  --otc-amber: #d97706;
  --otc-amber-soft: #fef3c7;
  --navy-deep: #0b192c;
  --navy-mid: #0f2742;
  --text-main: #0f172a;
  --text-body: #475569;
  --surface-muted: #f8fafc;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Navbar & Active Page Indicator (WCAG 1.4.1: not color alone) */
.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 100;
}

.nav-link,
.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  padding-block: 0.5rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-link:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--hex-blue);
}

.nav-link[aria-current="page"],
.nav-dropdown-trigger[aria-current="page"] {
  color: var(--hex-blue);
}

.nav-link[aria-current="page"]::after,
.nav-dropdown-trigger[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  border-block-end: 2.5px solid var(--hex-blue);
}

/* Grouped Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-popover {
  display: none;
  position: absolute;
  left: -0.75rem;
  top: calc(100% + 0.35rem);
  min-width: 14.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.45rem;
  box-shadow: 0 20px 44px -12px rgba(15, 23, 42, 0.16);
  z-index: 120;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.6rem;
}

.nav-dropdown:hover .nav-popover,
.nav-dropdown:focus-within .nav-popover,
.nav-dropdown.open .nav-popover {
  display: block;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron,
.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-chevron {
  transition: transform 0.2s ease;
}

.nav-popover-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-popover-item [data-i18n$="_desc"] {
  display: none;
}

.nav-popover-item:hover {
  background: #f1f5f9;
}

.nav-popover-item[aria-current="page"] {
  background: #eff6ff;
}

.nav-popover-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--hex-blue), var(--hex-blue-dark));
  color: #ffffff;
  font-weight: 800;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.18);
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(0, 82, 255, 0.28);
  transform: translateY(-2px);
}

.btn-contact {
  background: #ffffff;
  border: 1.5px solid rgba(0, 82, 255, 0.2);
  color: var(--hex-blue);
  font-weight: 800;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.btn-contact:hover {
  background: #f0f5ff;
  border-color: var(--hex-blue);
  transform: translateY(-1px);
}

/* Backgrounds & Bento Surfaces */
.hero-mesh {
  background-color: #f8fafc;
  background-image:
    radial-gradient(rgba(0, 82, 255, 0.05) 1.25px, transparent 1.25px),
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px, 56px 56px;
  position: relative;
  overflow: hidden;
}

.hero-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.14) 0%, transparent 48%),
    radial-gradient(circle at 12% 75%, rgba(0, 82, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.treasury-dark {
  color-scheme: dark;
  background: linear-gradient(145deg, #091526 0%, #0f2540 55%, #133154 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 32px 64px -18px rgba(11, 25, 44, 0.42);
}

.bento-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.bento-card:hover {
  border-color: rgba(0, 82, 255, 0.32);
  box-shadow: 0 22px 44px -14px rgba(0, 82, 255, 0.12);
  transform: translateY(-4px);
}

/* Typography Scale */
.heading-xl {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.heading-lg {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.body-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-body);
  font-weight: 500;
}

.label-caps {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
  padding: 8px 0;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  min-width: 128px;
  z-index: 110;
  overflow: hidden;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-option:hover {
  background: #f0f7ff;
  color: var(--hex-blue);
}

/* Mobile Drawer */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}

#mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

/* Accessible Tabs (modern-web-guidance: tabs) */
.v2-tablist {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  border-bottom: 1px solid #e2e8f0;
}

.v2-tablist::-webkit-scrollbar {
  display: none;
}

.v2-tab {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  padding: 0.75rem 1.125rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: color 0.2s ease;
}

.v2-tab:hover {
  color: var(--hex-blue);
}

.v2-tab[aria-selected="true"] {
  color: var(--hex-blue);
}

.v2-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.5rem;
  inset-block-end: 0;
  border-block-end: 3px solid var(--hex-blue);
}

/* Pill Tabs inside Dark / Filter Containers */
.v2-pill-tablist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.v2-pill-tablist::-webkit-scrollbar {
  display: none;
}

.v2-pill-tab {
  position: relative;
  flex: none;
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.v2-pill-tab:hover {
  border-color: var(--hex-blue);
  color: var(--hex-blue);
}

.v2-pill-tab[aria-selected="true"] {
  background: #eff6ff;
  border-color: var(--hex-blue);
  color: var(--hex-blue);
}

.v2-pill-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 22%;
  inset-block-end: 2px;
  border-block-end: 2px solid var(--hex-blue);
}

/* Dark Variant Pill Tab (for Treasury Workbench) */
.dark-pill-tab {
  position: relative;
  flex: none;
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dark-pill-tab[aria-selected="true"] {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
}

.dark-pill-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 20%;
  inset-block-end: 2px;
  border-block-end: 2px solid #38bdf8;
}

/* Responsive Data Table (modern-web-guidance: responsive-table) */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(580px, 76vh);
  container-type: inline-size;
  border-radius: 1.25rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.08);
}

.table-wrapper:focus-visible {
  outline: 2px solid var(--hex-blue);
  outline-offset: 2px;
}

.table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.table-wrapper thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  background: #f1f5f9;
}

.table-wrapper th {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #cbd5e1;
  background: #f1f5f9;
  white-space: nowrap;
}

.table-wrapper td {
  padding: 0.9rem 1.15rem;
  font-size: 0.84rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table-wrapper tbody tr:hover td {
  background: #f8fafc;
}

/* Accessible Status Badges (icon + label, never color alone) */
.badge-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.badge-sky {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eff6ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.badge-no {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

/* Payment Tags */
.tag-local {
  background: #eff6ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-weight: 700;
}

.tag-card {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
  font-weight: 700;
}

.tag-wallet {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}

/* World Map SVG */
#world-map path {
  fill: rgba(0, 82, 255, 0.05);
  stroke: rgba(0, 82, 255, 0.12);
  stroke-width: 0.6;
  transition: fill 0.25s ease;
}

#world-map path.map-core-active,
#world-map g.map-core-active path {
  fill: #0052ff !important;
  stroke: rgba(0, 82, 255, 0.5) !important;
  stroke-width: 0.8 !important;
}

#world-map path.map-global-active,
#world-map g.map-global-active path {
  fill: rgba(0, 82, 255, 0.32) !important;
  stroke: rgba(0, 82, 255, 0.2) !important;
}

#world-map path.map-core-active:hover,
#world-map g.map-core-active:hover path {
  fill: #38bdf8 !important;
  cursor: pointer;
}

#world-map path.map-global-active:hover,
#world-map g.map-global-active:hover path {
  fill: rgba(0, 82, 255, 0.6) !important;
  cursor: pointer;
}

/* Motion (modern-web-guidance: motion) — opt-in only under prefers-reduced-motion: no-preference */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes floating {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-10px);
    }
  }

  .float-ui {
    animation: floating 6s ease-in-out infinite;
  }

  .reveal.reveal-pending {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .reveal.reveal-pending.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Forced Colors Mode Support */
@media (forced-colors: active) {

  .nav-link[aria-current="page"]::after,
  .nav-dropdown-trigger[aria-current="page"]::after,
  .v2-tab[aria-selected="true"]::after,
  .v2-pill-tab[aria-selected="true"]::after,
  .dark-pill-tab[aria-selected="true"]::after {
    border-color: Highlight;
  }

  .bento-card,
  .table-wrapper,
  .ax-window,
  .nav-popover,
  details.ax-accordion {
    border: 1px solid CanvasText;
  }
}

/* Visual Showcase & Minimal Copy Components */
.ax-number-line {
  position: relative;
  display: inline-block;
  padding-top: 0.9rem;
}

.ax-number-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 3.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--hex-blue), #0ea5e9);
}

.ax-visual-stage {
  position: relative;
}

.ax-dashed-frame {
  position: absolute;
  inset: -1rem 1.25rem 1.25rem -1rem;
  border: 2px dashed rgba(0, 82, 255, 0.22);
  border-radius: 1.75rem;
  pointer-events: none;
}

.ax-window {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px -18px rgba(0, 82, 255, 0.14), 0 8px 24px -8px rgba(15, 23, 42, 0.06);
}

.ax-window-dark {
  position: relative;
  z-index: 2;
  color-scheme: dark;
  background: linear-gradient(145deg, #091526 0%, #0f2540 55%, #133154 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 1.5rem;
  box-shadow: 0 28px 64px -18px rgba(6, 15, 30, 0.52);
}

.ax-float-card {
  position: relative;
  z-index: 3;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.125rem;
  box-shadow: 0 18px 42px -10px rgba(15, 23, 42, 0.14);
}

.ax-hero-board {
  position: relative;
  border-radius: 2rem;
  background: radial-gradient(circle at 75% 25%, #0284c7 0%, #0052ff 38%, #071b3d 92%);
  box-shadow: 0 32px 72px -18px rgba(0, 82, 255, 0.35);
  overflow: hidden;
}

.ax-glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.125rem;
  box-shadow: 0 16px 36px -12px rgba(7, 27, 61, 0.45);
}

.ax-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #0f172a;
}

.ax-photo-card img {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ax-photo-card:hover img {
  transform: scale(1.05);
}

/* Stowed Accordion Drawers ("采用收纳的方式") */
details.ax-accordion {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details.ax-accordion[open] {
  border-color: rgba(0, 82, 255, 0.3);
  box-shadow: 0 18px 40px -16px rgba(0, 82, 255, 0.12);
}

details.ax-accordion>summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

details.ax-accordion>summary::-webkit-details-marker {
  display: none;
}

details.ax-accordion>summary:hover {
  background: #f8fafc;
  color: var(--hex-blue);
}

details.ax-accordion>summary:focus-visible {
  outline: 2px solid var(--hex-blue);
  outline-offset: -2px;
}

.ax-acc-chevron {
  transition: transform 0.22s ease;
  color: #64748b;
  flex-shrink: 0;
}

details.ax-accordion[open]>summary .ax-acc-chevron {
  transform: rotate(180deg);
  color: var(--hex-blue);
}

.ax-accordion-body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
}