:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --blue: #00a3ff;
  --mint: #00e5a3;
  --ink: #0f172a;
  --line: rgba(30, 41, 59, 0.12);
  --blue-soft: rgba(0, 163, 255, 0.1);
  --mint-soft: rgba(0, 229, 163, 0.12);
  --shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 163, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 163, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #f4f7fb 0%, #ffffff 48%, #eaf8ff 100%);
  background-size: 48px 48px, 48px 48px, auto;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.72;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, summary { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: 0; }
h1 { font-size: clamp(42px, 7vw, 82px); }
h2 { font-size: clamp(28px, 4.2vw, 48px); }
h3 { font-size: 21px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(16px);
}
.nav-shell {
  width: min(1260px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 163, 255, 0.25);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-soft), var(--mint-soft));
}
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a,
.nav-menu button,
.footer-links a,
.footer-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.nav-menu a {
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 15px;
}
.nav-menu a:hover,
.nav-menu a:focus-visible,
.footer-links a:hover,
.footer-links button:hover {
  color: var(--blue);
}
.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 0 15px;
  border-radius: 10px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue), #38bdf8) !important;
  font-weight: 900;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.cover {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.cover-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cover-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.98) 0%, rgba(244, 247, 251, 0.8) 44%, rgba(244, 247, 251, 0.25) 100%),
    linear-gradient(180deg, rgba(244, 247, 251, 0.04) 0%, rgba(244, 247, 251, 0.98) 100%);
}
.cover-bg img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 72px);
  object-fit: cover;
}
.cover-grid {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 34px;
  align-items: end;
  padding: 84px 0 54px;
}
.cover-copy {
  max-width: 820px;
}
.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}
.cover-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #38bdf8);
  box-shadow: 0 14px 34px rgba(0, 163, 255, 0.24);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.cover-index {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.index-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}
.cover-index a {
  min-height: 48px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}
.cover-index strong { color: var(--blue); }
.cover-index span { color: var(--text); font-weight: 800; }

.stats-ribbon {
  padding: 24px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stats-grid article {
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
.stats-grid strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}
.stats-grid span { color: var(--muted); }

.intro-spread,
.server-map,
.walkthrough,
.feature-editorial,
.release-ledger,
.visual-band,
.faq-section,
.links-section {
  padding: 86px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 58px;
}
.intro-title {
  position: sticky;
  top: 104px;
  height: fit-content;
}
.intro-text {
  columns: 2 320px;
  column-gap: 42px;
  color: var(--muted);
  font-size: 17px;
}
.intro-text p:first-child { margin-top: 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}
.section-head.centered {
  margin-inline: auto;
  text-align: center;
}
.section-head p,
.map-node p,
.flow-lanes p,
.feature-copy li,
.ledger-list p,
.visual-grid p,
.faq-list p,
.site-footer p,
.cta-inner p {
  color: var(--muted);
}

.server-map,
.release-ledger,
.faq-section {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}
.map-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.map-node {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}
.map-node img {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
}
.map-node div {
  flex: 1;
  padding: 22px;
}
.map-node span {
  color: var(--mint);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.map-node h3 { margin-top: 8px; }
.node-a,
.node-b,
.node-c,
.node-d {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
}
.flow-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.flow-lanes article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(244,247,251,0.82)),
    linear-gradient(90deg, var(--blue-soft), transparent);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}
.flow-lanes span {
  color: var(--blue);
  font-weight: 900;
}
.flow-lanes h3 { margin-top: 10px; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 30px;
  align-items: stretch;
}
.feature-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.feature-grid img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}
.feature-copy {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}
.feature-copy ul {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.feature-copy li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}
.feature-copy i {
  margin-top: 6px;
  color: var(--blue);
}

.ledger-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.ledger-list article {
  min-height: 176px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}
.ledger-list time {
  color: var(--blue);
  font-weight: 900;
}
.ledger-list h3 { margin-top: 10px; }

.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  align-items: center;
}
.visual-grid > div {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}
.visual-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.visual-grid img {
  width: 100%;
  min-height: 390px;
  object-fit: cover;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}
.faq-list summary::after {
  content: "+";
  color: var(--blue);
  font-size: 24px;
}
.faq-list details[open] summary::after { content: "-"; }
.faq-list p {
  margin: 0;
  padding: 0 0 18px;
}

.links-grid,
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.friend-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
}
.friend-links a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.cta-section {
  padding: 54px 0;
  border-block: 1px solid rgba(0, 163, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.14), rgba(0, 229, 163, 0.12));
}
.cta-inner > div { max-width: 760px; }

.site-footer {
  background: #eaf2fb;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 34px;
  padding: 46px 0 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 10px;
}
.footer-links a,
.footer-links button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 247, 251, 0.98);
  }
  .nav-open .nav-menu { display: grid; gap: 8px; }
  .nav-menu a,
  .nav-menu button {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
  }
  .nav-cta { margin-left: 0; justify-content: flex-start; }
  .cover-grid,
  .intro-grid,
  .walkthrough-grid,
  .feature-grid,
  .visual-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .intro-title { position: static; }
  .stats-grid,
  .flow-lanes,
  .ledger-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-layout::before { display: none; }
  .node-a,
  .node-b,
  .node-c,
  .node-d {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }
  .links-grid,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .friend-links,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, 1200px);
  }
  h1 { font-size: clamp(36px, 12vw, 56px); }
  .cover {
    min-height: auto;
  }
  .cover-grid {
    min-height: auto;
    padding: 58px 0 38px;
    gap: 22px;
  }
  .cover-bg img {
    min-height: 720px;
  }
  .cover-index {
    border-radius: 16px;
  }
  .cover-actions,
  .stats-grid,
  .map-layout,
  .flow-lanes,
  .ledger-list {
    grid-template-columns: 1fr;
  }
  .cover-actions .btn,
  .cta-inner .btn {
    width: 100%;
  }
  .intro-spread,
  .server-map,
  .walkthrough,
  .feature-editorial,
  .release-ledger,
  .visual-band,
  .faq-section,
  .links-section {
    padding: 58px 0;
  }
  .intro-text {
    columns: 1;
  }
  .feature-grid img,
  .visual-grid img {
    min-height: 260px;
  }
  .feature-copy,
  .visual-grid > div {
    padding: 24px;
    border-radius: 18px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* Whitehat protocol surfaces: isolated from the original visual system. */
[data-seo-managed="download-link"] { text-decoration: none; }
.seo-home-news, body.seo-news-page { --seo-accent: var(--blue); }
.seo-home-news { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem); border-top: 1px solid var(--line); }
.seo-home-news-shell { width: min(100%, 1180px); margin: 0 auto; }
.seo-home-news-header { max-width: 720px; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.seo-home-news-kicker { margin: 0 0 .65rem; color: var(--seo-accent); font-size: .85rem; font-weight: 800; }
.seo-home-news-header h2 { margin: 0; }
.seo-home-news-header > p:last-child { margin: .8rem 0 0; color: var(--muted); }
.seo-home-news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.seo-home-news-list > * { min-width: 0; }
.seo-home-news-card, .seo-home-news-empty { margin: 0; padding: 1.35rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.seo-home-news-card h3 { margin: 0; }
.seo-home-news-card time { display: block; margin-top: .65rem; color: var(--seo-accent); font-size: .9rem; }
.seo-home-news-card p { margin: .75rem 0 1rem; color: var(--muted); }
.seo-home-news-card a { color: var(--seo-accent); font-weight: 800; text-underline-offset: .2em; }
.seo-home-news-list:has(.seo-home-news-card) + .seo-home-news-empty { display: none; }
.seo-home-news-empty { margin-top: 1.5rem; color: var(--muted); text-align: center; }

body.seo-news-page { min-height: 100vh; display: flex; flex-direction: column; }
.seo-news-sitebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 4rem); border-bottom: 1px solid var(--line); background: var(--panel); }
.seo-news-sitebar a { color: inherit; font-weight: 800; text-decoration: none; }
.seo-news-sitebar-nav { display: flex; align-items: center; gap: 1rem; }
.seo-news-sitebar-nav a:last-child { padding: .55rem .9rem; border: 1px solid var(--seo-accent); border-radius: 8px; color: var(--seo-accent); }
.seo-news-main { width: min(100%, 1100px); flex: 1; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1rem; }
.seo-news-header { max-width: 720px; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.seo-news-kicker { margin: 0 0 .65rem; color: var(--seo-accent); font-size: .85rem; font-weight: 800; }
.seo-news-header h1, .seo-news-detail h1 { margin: 0; }
.seo-news-header p { margin: .8rem 0 0; color: var(--muted); }
.seo-news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.seo-news-card, .seo-news-empty-state, .seo-news-detail { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.seo-news-card { padding: 1.35rem; }
.seo-news-card h2 { margin: 0; font-size: 1.25rem; }
.seo-news-card time { display: block; margin-top: .65rem; color: var(--seo-accent); font-size: .9rem; }
.seo-news-card p { margin: .75rem 0 1rem; color: var(--muted); }
.seo-news-card a, .seo-news-back a { color: var(--seo-accent); font-weight: 800; text-underline-offset: .2em; }
.seo-news-empty-state { margin: 1.5rem 0 0; padding: 2rem 1.25rem; color: var(--muted); text-align: center; }
.seo-news-list:has(.seo-news-card) + .seo-news-empty-state { display: none; }
.seo-news-detail { width: min(100%, 860px); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem); }
.seo-news-date { margin: .75rem 0 1.5rem; color: var(--muted); }
.seo-news-plain-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.seo-news-back { margin: 2rem 0 0; }
.seo-download-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .58); }
.seo-download-dialog { width: min(430px, 100%); padding: 1.35rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.seo-download-dialog h3 { margin: 0 0 .7rem; }.seo-download-dialog p { margin: 0; }.seo-download-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.1rem; }.seo-download-actions button { padding: .6rem .95rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); cursor: pointer; }.seo-download-actions button:last-child { border-color: var(--seo-accent); color: var(--seo-accent); }
@media (max-width: 640px) { .seo-news-sitebar { align-items: flex-start; flex-direction: column; }.seo-news-sitebar-nav { width: 100%; justify-content: space-between; }.seo-home-news, .seo-news-main { padding-left: .75rem; padding-right: .75rem; }.seo-home-news-list, .seo-news-list { grid-template-columns: 1fr; } }
