@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #080f1c;
  --text: #f0f6fc;
  --muted: #a8b9cf;
  --line: #253750;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: Inter, system-ui, "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  --accent: #77f2dc;
  --accent-pale: #a5ffee;
  --route-light: #9ae0ff;
  --route-deep: #36afff;
  --ambient: #143044;
  --surface: #0c192b;
  --stage-glow: #163752;
  --brand-bg: #112c35;
  --brand-line: #2b5660;
  --soft-accent: #a7feee;
  min-height: 100svh; margin: 0; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 73% 34%, var(--ambient), transparent 65%), var(--bg);
  color: var(--text);
}
body.api {
  --accent: #c3aaff;
  --accent-pale: #eddfff;
  --route-light: #88eaf7;
  --route-deep: #714cfc;
  --ambient: #211c3b;
  --surface: #16182d;
  --stage-glow: #242047;
  --brand-bg: #251d3d;
  --brand-line: #584478;
  --soft-accent: #dacbff;
}
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; top: 12px; left: 12px; padding: 12px 16px; color: var(--bg); background: var(--accent); border-radius: 8px; }
.wrap { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.mono { font-family: var(--mono); }
.site-header { border-bottom: 1px solid #202d41; background: #090f1b; }
.header-inner { min-height: 77px; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand strong { font-size: 1.21rem; font-weight: 780; letter-spacing: -.034em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--accent); background: var(--brand-bg); border: 1px solid var(--brand-line); border-radius: 10px; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-division { color: var(--soft-accent); font-size: .8rem; letter-spacing: .08em; border-left: 1px solid var(--line); padding-left: 12px; }
.language select { color: var(--text); background: var(--surface); border: 1px solid #374b66; border-radius: 8px; min-height: 44px; padding: 0 10px; font-size: .86rem; cursor: pointer; }

.main { flex: 1; align-content: center; padding-block: clamp(30px, 6vw, 92px) clamp(36px, 5.5vw, 78px); }
.hero { display: grid; grid-template-columns: minmax(0, .59fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 45px); align-items: center; }
.eyebrow { color: var(--accent); font-size: .77rem; letter-spacing: .13em; line-height: 1.45; font-weight: 650; display: flex; gap: 10px; align-items: center; }
.eyebrow > span[aria-hidden="true"] { flex: none; width: 16px; height: 1px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { font-size: clamp(3rem, 5.5vw, 5.5rem); line-height: 1.1; letter-spacing: -.05em; margin-block: 18px 23px; font-weight: 820; }
.hero h1 span { display: block; }
.headline-accent { color: var(--accent); background: linear-gradient(100deg, var(--accent-pale), var(--accent) 60%, var(--route-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; width: fit-content; }
html[lang="en"] .hero h1 { font-size: clamp(2.85rem, 5.15vw, 5.2rem); letter-spacing: -.065em; }
.intro { color: var(--muted); line-height: 1.75; font-size: clamp(1rem, 1.35vw, 1.125rem); max-width: 32ch; }
.hero-domain { display: flex; align-items: center; gap: 9px; width: fit-content; margin-top: 26px; color: var(--muted); font-size: .83rem; }
.hero-domain span { width: 9px; height: 9px; border: 1px solid var(--soft-accent); transform: rotate(45deg) scale(.7); }

.map { min-width: 0; overflow: hidden; border-radius: 15px; background: var(--surface); border: 1px solid #344964; box-shadow: 0 24px 80px #0007; }
.map-stage {
  display: grid; position: relative; isolation: isolate;
  background:
    linear-gradient(#7da2d012 1px, transparent 1px) center / 30px 30px,
    linear-gradient(90deg, #7da2d012 1px, transparent 1px) center / 30px 30px,
    radial-gradient(ellipse at center, var(--stage-glow), var(--surface) 72%);
}
.map-stage img, .routes { grid-area: 1 / 1; width: 100%; height: auto; }
.map-corner { position: absolute; width: 14px; height: 14px; opacity: .75; }
.top-left { top: 14px; left: 14px; border-top: 1px solid #739bbb; border-left: 1px solid #739bbb; }
.top-right { top: 14px; right: 14px; border-top: 1px solid #739bbb; border-right: 1px solid #739bbb; }
.bottom-left { bottom: 14px; left: 14px; border-bottom: 1px solid #739bbb; border-left: 1px solid #739bbb; }
.bottom-right { bottom: 14px; right: 14px; border-bottom: 1px solid #739bbb; border-right: 1px solid #739bbb; }
.route-base { stroke: url(#route-gradient); stroke-width: 1.35; opacity: .9; }
.route-move { stroke: var(--accent-pale); stroke-width: 2.75; stroke-dasharray: 2 98; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--accent)); opacity: 0; }
[data-playing] .route-move { opacity: .96; }
[data-playing] .route-move path { animation: travel 5.05s linear infinite; animation-delay: var(--delay, 0s); }
.node-ring { fill: var(--surface); stroke: var(--accent); stroke-width: 1; opacity: .83; }
.node-core { fill: var(--accent-pale); filter: drop-shadow(0 0 4px var(--accent)); }
.pulse { opacity: 0; transform-box: fill-box; transform-origin: center; stroke: var(--accent); stroke-width: 1; }
[data-playing] .pulse { animation: pulse 4.6s ease-out infinite; animation-delay: var(--delay, 0s); }
.delay-1 { --delay: -.7s; }
.delay-2 { --delay: -1.6s; }
.delay-3 { --delay: -2.1s; }
.delay-4 { --delay: -2.9s; }
.delay-5 { --delay: -3.6s; }
.delay-6 { --delay: -4.4s; }
.delay-7 { --delay: -1s; }
.delay-8 { --delay: -2.6s; }
@keyframes travel { to { stroke-dashoffset: -100; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 58%,100% { transform: scale(2.7); opacity: 0; } }
.map-caption { min-height: 61px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; gap: 4px 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.map-note { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; line-height: 1.55; }
.map-tag { background: var(--brand-bg); border: 1px solid var(--brand-line); border-radius: 4px; color: var(--soft-accent); padding: 2px 6px; white-space: nowrap; }
.motion { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 44px; padding: 0 7px; background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: .78rem; }
.motion:hover { color: var(--accent); }
.motion-play, [data-paused] .motion-pause { display: none; }
[data-paused] .motion-play { display: block; }
.legend { margin-top: clamp(20px, 4vw, 50px); border-block: 1px solid var(--line); display: flex; align-items: center; gap: clamp(16px, 6vw, 86px); padding: 17px 0; color: var(--muted); font-size: .86rem; }
.legend h2 { font-size: inherit; color: var(--text); }
.legend ul { list-style: none; display: flex; flex: 1; flex-wrap: wrap; column-gap: clamp(16px, 5vw, 75px); row-gap: 10px; padding: 0; margin: 0; }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend-mark { flex: none; display: inline-block; width: 15px; }
.legend-point { width: 9px; height: 9px; border-radius: 100%; border: 1px solid var(--accent); background: var(--brand-bg); }
.legend-line { height: 7px; border-top: 1px solid var(--accent); border-radius: 50%; transform: translateY(2px); }
.legend-signal { width: 12px; height: 3px; border-radius: 3px; background: var(--accent-pale); box-shadow: 0 0 7px var(--accent); }

.site-footer { border-top: 1px solid #202d41; }
.footer-inner { min-height: 65px; padding-block: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 18px; color: var(--muted); font-size: .8rem; }
.slash { color: var(--accent); margin-inline: 4px; }

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 62px); }
  .hero { grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 67px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .hero h1 { margin-block: 13px 14px; }
  .hero-domain { margin-top: 15px; }
  .intro { max-width: 48ch; }
  .legend { padding-block: 13px; }
}
@media (max-width: 470px) {
  .hero h1, html[lang="en"] .hero h1 { font-size: clamp(2.4rem, 10vw, 3.3rem); }
  .header-inner { gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 1.03rem; }
  .brand-division { padding-left: 7px; font-size: .7rem; }
  .language select { font-size: .78rem; padding-inline: 6px; }
  .map-caption { padding-inline: 9px; flex-wrap: wrap; }
  .motion { padding-inline: 0; margin-left: auto; }
  .map-note { font-size: .76rem; }
  .legend { align-items: start; font-size: .78rem; }
  .legend li { gap: 6px; }
  .footer-inner { font-size: .74rem; }
}
@media (forced-colors: active) {
  .headline-accent { background: none; -webkit-text-fill-color: currentColor; }
  .legend-point, .legend-line, .legend-signal { border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route-move, .pulse { visibility: hidden; }
}
