:root {
  --bg: #0d0e12;
  --panel: #151821;
  --panel-2: #1b1f2b;
  --text: #e2e8f0;
  --muted: #aeb8c8;
  --pink: #ff0055;
  --mint: #00f5d4;
  --line: rgba(226, 232, 240, 0.16);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 245, 212, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 0, 85, 0.032) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  z-index: -1;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 14, 18, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 245, 212, 0.55);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--mint);
  background: rgba(0, 245, 212, 0.08);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--mint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff5d93);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 0, 85, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.secondary {
  color: var(--mint);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.42);
  box-shadow: none;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.97), rgba(13, 14, 18, 0.74) 45%, rgba(13, 14, 18, 0.18)),
    linear-gradient(0deg, var(--bg), rgba(13, 14, 18, 0.15) 42%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 92px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-weight: 800;
}

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

h1 {
  max-width: 820px;
  font-size: clamp(38px, 7vw, 76px);
}

.hero-text {
  max-width: 720px;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  max-width: 820px;
  margin-top: 34px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(13, 14, 18, 0.68);
  border-radius: 8px;
  padding: 14px;
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 19px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 82px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 245, 212, 0.018));
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.kicker {
  color: var(--mint);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 9px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.copy p {
  color: var(--muted);
  margin: 0 0 16px;
}

.media-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.caption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.feature-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(21, 24, 33, 0.82);
}

.feature i,
.guide i {
  color: var(--mint);
  font-size: 22px;
  margin-bottom: 14px;
}

.feature h3,
.guide h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature p,
.guide p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.gallery figure:first-child {
  grid-row: span 2;
}

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

.gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.log-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(21, 24, 33, 0.7);
}

.log-version {
  color: var(--pink);
  font-weight: 900;
}

.log-item p {
  margin: 0;
  color: var(--muted);
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 33, 0.82);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  color: #fff;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.links a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.035);
}

.links a:hover {
  color: var(--mint);
  border-color: rgba(0, 245, 212, 0.45);
}

.site-footer {
  padding: 32px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #090a0e;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.back-top {
  color: var(--mint);
  text-decoration: none;
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px 22px;
    background: rgba(13, 14, 18, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .content-grid,
  .feature-grid,
  .guide-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery figure:first-child {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .nav-wrap {
    min-height: 66px;
  }

  .nav-links {
    top: 66px;
  }

  .brand span {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-bg {
    object-position: 62% center;
  }

  .hero-inner {
    padding: 72px 0 40px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .log-item {
    grid-template-columns: 1fr;
  }
}


/* Whitehat protocol surfaces; inherit each original site's theme. */
[data-seo-managed="download-link"] { text-decoration: none; }
.seo-home-news { padding-top: 2rem; padding-bottom: 2rem; }
.seo-news-main { width: min(1120px, calc(100% - 2rem)); margin: 5rem auto 4rem; min-height: 38vh; }
.seo-news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; }
.seo-news-list > * { min-width: 0; }
.seo-news-detail { width: min(900px, 100%); margin: 0 auto; }
.seo-news-plain-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.seo-news-date { opacity: .75; margin: .6rem 0 1.2rem; }
.seo-news-back a { color: inherit; text-underline-offset: .2em; }
.seo-news-empty { opacity: .75; text-align: center; }
.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.4rem; border-radius: .8rem; background: #182033; color: #fff; box-shadow: 0 1.2rem 3rem rgba(0,0,0,.35); }
.seo-download-dialog h3 { margin: 0 0 .7rem; }.seo-download-dialog p { margin: 0; line-height: 1.65; }.seo-download-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.15rem; }.seo-download-actions button { padding: .65rem 1rem; cursor: pointer; }
@media (max-width: 640px) { .seo-news-main { width: min(100% - 1.25rem,1120px); margin-top: 3.5rem; }.seo-news-list { grid-template-columns: 1fr; } }
