/* 出海有路 shared visual language for the existing 1.0 product. */
:root {
  --gkn-navy-950: #0757b1;
  --gkn-navy-900: #0868d2;
  --gkn-navy-800: #157be9;
  --gkn-gold: #157be9;
  --gkn-gold-soft: #e0efff;
  --gkn-paper: #eff7ff;
  --gkn-surface-muted: #f5faff;
  --gkn-ink: #20384f;
  --gkn-muted: #60788f;
  --gkn-line: #dce9f6;
  --gkn-line-strong: #c1d9f2;
  --gkn-shadow: 0 8px 28px rgba(58, 106, 165, .065);
  --gkn-shadow-raised: 0 14px 32px rgba(58, 106, 165, .12);
  --color-bg: var(--gkn-paper);
  --color-bg-soft: #f7fbff;
  --color-surface: #fff;
  --color-ink: var(--gkn-ink);
  --color-muted: var(--gkn-muted);
  --color-border: var(--gkn-line);
  --color-brand: #157be9;
  --color-brand-deep: #0868d2;
  --color-accent: #157be9;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-panel: var(--gkn-shadow);
  --shadow-card: 0 5px 20px rgba(58, 106, 165, .05);
  --shadow-hover: var(--gkn-shadow-raised);
}

body {
  background: radial-gradient(ellipse at 94% 4%, #98c7ff55, transparent 38%),
    radial-gradient(ellipse at 3% 96%, #a9d5ff66, transparent 42%),
    linear-gradient(165deg, #eff7ff, #f9fbff 38%, #e2efff 78%, #eef8ff);
  color: var(--gkn-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.68;
}

.topbar { gap: 18px; background: #f9fcfff5; border-color: #dce9f6; padding: 15px 32px; }
.brand-copy h1 { color: #24557f; font-size: 16px; }
.brand-copy .eyebrow { color: #6b8eae; }
.site-nav { flex-wrap: wrap; gap: 5px; }
.site-nav a { padding: 9px 12px; border-radius: 12px; font-size: 13px; font-weight: 550; color: #526f89; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #e5f1ff; color: #0868d2; }
.topbar-actions { flex-wrap: wrap; }
.topbar-actions #dataUpdated { max-width: 220px; line-height: 1.5; color: #607b93; }

.primary-action, .ghost-action, .report-link, .topbar button { min-height: 42px; border-radius: 12px; font-size: 13px; font-weight: 550; }
.primary-action, .report-link { color: #fff; background: #157be9; border-color: #157be9; box-shadow: 0 6px 16px #157be91c; }
.primary-action:hover, .report-link:hover { background: #0868d2; border-color: #0868d2; }
.ghost-action { background: #fff; color: #0868d2; border-color: #cde1f7; }
.ghost-action:hover { background: #eff7ff; border-color: #98c8f6; }

.page-hero, .report-hero, .ui-panel, .ui-card, .report-section, .report-side,
.today-card, .event-item, .event-topic-card, .method-card, .research-asset,
.homepage-governance__item, .governance-item, .profile-row, .country-card {
  border-radius: 18px; border-color: #dce9f6; box-shadow: var(--gkn-shadow);
}
.page-hero, .report-hero { background: linear-gradient(110deg, #ffffffed, #e8f3ffc9); padding: 30px; }
.page-hero h2 { color: #24557f; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.5; letter-spacing: -.4px; }
.page-hero p, .report-hero p { color: #60788f; }
.panel-kicker, .brief-label, .eyebrow { color: #477dab; font-weight: 600; }
.control-row { background: #ffffffd9; border: 1px solid #dce9f6; border-radius: 18px; padding: 18px; box-shadow: var(--gkn-shadow); }
.control-row select, .control-row input, .modal-content input, .modal-content select { min-height: 42px; border-radius: 10px; border-color: #cddff1; background: #fff; color: #294c6b; }
.detail-modal { border-radius: 22px; border-color: #dce9f6; background: #fff; }
.modal-close { border-radius: 50%; }

/* Keep risk colors and the map's analytical encoding intact. */
.situation-masthead { border: 1px solid #dce9f6; border-radius: 24px; overflow: hidden; box-shadow: var(--gkn-shadow); background: #fff; }
.situation-masthead__intro { background: linear-gradient(155deg, #f8fcff, #e0efff); color: #24557f; }
.situation-masthead__intro h2 { color: #24557f; }
.situation-masthead__intro .panel-kicker { color: #477dab; }
.situation-masthead__intro > p:not(.panel-kicker) { color: #60788f; }
.situation-masthead__rail { background: #f8fcff; border-color: #dce9f6; }
.situation-masthead__actions .ghost-action { background: #fff; color: #0868d2; border-color: #cde1f7; }
.method-section, .about-section, .contact-section { border-radius: 20px; background: #ffffffd9; border: 1px solid #e1edf8; padding: 28px; }
.method-card { background: #fff; }
.research-asset { background: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #74b3f3; outline-offset: 3px; }
@media (max-width: 1100px) { .topbar { flex-wrap: wrap; } .site-nav { order: 3; width: 100%; } .topbar-actions { margin-left: auto; } }
@media (max-width: 760px) {
  .topbar { position: relative; padding: 16px; gap: 12px; }
  .topbar-actions #dataUpdated { display: block; width: 100%; max-width: none; order: 3; font-size: 11px; }
  .site-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .site-nav a { white-space: nowrap; flex-shrink: 0; }
  main { padding: 18px 16px 36px; }
  .page-hero, .report-hero { padding: 23px 20px; border-radius: 20px; }
  .control-row { padding: 14px; gap: 12px; }
  .control-row label { min-width: 0; }
  .control-row input, .control-row select { width: 100%; min-width: 0; }
  .method-section, .about-section, .contact-section { padding: 22px 18px; }
  .detail-modal { border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
