:root {
  color-scheme: light;
  --paper: #f6fbff;
  --paper-2: #eaf4ff;
  --panel: #ffffff;
  --ink: #102033;
  --muted: #5f7187;
  --line: rgba(16, 32, 51, 0.14);
  --blue: #1f6fff;
  --cyan: #00b6d6;
  --lime: #d7ff3f;
  --violet: #704cff;
  --shadow: 0 18px 50px rgba(31, 111, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(31, 111, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 182, 214, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 12% 4%, rgba(215, 255, 63, 0.35), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(31, 111, 255, 0.18), transparent 28rem),
    var(--paper);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
summary {
  font: inherit;
}

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

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 251, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1220px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 6px 6px 0 rgba(31, 111, 255, 0.16);
}

.brand-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}

.nav-menu a,
.nav-menu button,
.footer-grid a,
.footer-grid button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-menu a {
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.footer-grid a:hover,
.footer-grid button:hover {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-left: 10px;
  padding: 0 15px;
  border-radius: 4px;
  background: var(--ink) !important;
  color: #fff !important;
  font-weight: 900;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
}

.section {
  padding: 78px 0;
}

.hero {
  padding: 54px 0 68px;
  border-bottom: 1px solid var(--line);
}

.hero-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(320px, 0.84fr);
  gap: 28px;
  align-items: stretch;
}

.hero-index {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
  border-left: 5px solid var(--lime);
  background: rgba(255, 255, 255, 0.72);
}

.index-kicker,
.note-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-index a {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.hero-index a:hover {
  color: var(--ink);
}

.hero-main {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 80px);
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
}

h3 {
  font-size: 20px;
}

.hero-lead {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.cta-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 30px rgba(31, 111, 255, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--lime);
}

.hero-cover {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 12px 12px 0 rgba(16, 32, 51, 0.08);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-cover figcaption {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.quick-strip {
  padding: 18px 0;
  background: var(--ink);
  color: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 14px;
  align-items: center;
}

.quick-grid div {
  display: grid;
  gap: 2px;
}

.quick-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 60px;
}

.sticky-heading {
  position: sticky;
  top: 92px;
  align-self: start;
}

.article-flow {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
}

.article-flow p {
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.visual-note {
  background: linear-gradient(90deg, rgba(31, 111, 255, 0.1), rgba(215, 255, 63, 0.16));
}

.note-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 34px;
  align-items: center;
}

.note-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.note-grid img {
  width: 100%;
  object-fit: cover;
}

.note-copy {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.note-copy p,
.section-heading p {
  color: var(--muted);
}

.narrow {
  max-width: 760px;
}

.ledger-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.ledger-list article {
  display: grid;
  grid-template-columns: 68px 54px minmax(180px, 0.6fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-list span {
  color: var(--blue);
  font-weight: 900;
}

.ledger-list i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 4px;
}

.ledger-list p {
  margin: 0;
  color: var(--muted);
}

.image-ledger {
  padding-top: 0;
}

.image-ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.image-ledger article {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  border: 1px solid var(--line);
  background: #fff;
}

.image-ledger img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.image-ledger div {
  padding: 24px;
}

.image-ledger strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.image-ledger p,
.feature-list,
.updates-rail p,
.faq-list p,
.footer-grid p,
.cta-inner p {
  color: var(--muted);
}

.playbook {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.playbook-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 56px 0.42fr 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--blue);
  font-weight: 900;
}

.step-list strong {
  color: var(--ink);
}

.step-list span {
  color: var(--muted);
}

.guide-alert {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(215, 255, 63, 0.9);
  background: rgba(215, 255, 63, 0.22);
}

.guide-alert p {
  margin: 0;
}

.feature-file-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.feature-file figure {
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-file img {
  width: 100%;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list i {
  color: var(--blue);
  margin-top: 5px;
}

.updates {
  background: #fff;
  border-block: 1px solid var(--line);
}

.updates-shell {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 36px;
}

.updates-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.updates-rail article {
  min-height: 170px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.updates-rail time {
  color: var(--blue);
  font-weight: 900;
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 40px;
}

.faq-lead {
  display: grid;
  gap: 18px;
  align-content: start;
}

.faq-lead p {
  color: var(--muted);
}

.faq-lead picture {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.faq-list details {
  border: 1px solid var(--line);
  background: #fff;
}

.faq-list summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-list summary::after {
  content: "+";
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
}

.links-shell {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 30px;
  align-items: start;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.friend-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cta-section {
  padding: 44px 0;
  background: linear-gradient(135deg, var(--ink), #173c78);
  color: #fff;
}

.cta-section .eyebrow,
.cta-section h2,
.cta-section p {
  color: #fff;
}

.cta-inner {
  justify-content: space-between;
}

.cta-inner > div {
  max-width: 720px;
}

.site-footer {
  background: #07111f;
  color: #fff;
}

.site-footer .brand,
.site-footer h2,
.site-footer a,
.site-footer button {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 46px 0 26px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  font-size: 16px;
}

.footer-grid a,
.footer-grid button {
  display: block;
  width: fit-content;
  margin: 8px 0;
  padding: 0;
  font-size: 15px;
}

.footer-grid p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .nav-menu {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    padding: 18px 20px 24px;
    background: rgba(246, 251, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-open .nav-menu {
    display: grid;
    gap: 8px;
  }

  .nav-menu a,
  .nav-cta {
    min-height: 46px;
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-shell,
  .intro-grid,
  .note-grid,
  .playbook-grid,
  .feature-file-grid,
  .updates-shell,
  .faq-shell,
  .links-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-index {
    display: none;
  }

  .hero-main {
    min-height: auto;
  }

  .quick-grid,
  .ledger-list article,
  .step-list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container,
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 34px 0 48px;
  }

  .hero-main {
    padding: 24px;
  }

  .hero-cover img {
    min-height: 260px;
  }

  .hero-actions,
  .cta-inner {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .image-ledger-grid,
  .updates-rail {
    grid-template-columns: 1fr;
  }

  .image-ledger article {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: stretch;
    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; } }
