:root {
  color-scheme: dark;
  --bg: #0d0814;
  --bg-2: #1a1126;
  --panel: rgba(28, 18, 42, 0.86);
  --panel-strong: #21152f;
  --line: rgba(157, 78, 221, 0.26);
  --text: #fff7ea;
  --muted: #c9b7d8;
  --gold: #e0aa3e;
  --pink: #ff007f;
  --purple: #9d4edd;
  --cyan: #42f5d7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  --side: 292px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 0, 127, 0.18), transparent 26rem),
    linear-gradient(rgba(224, 170, 62, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 78, 221, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, #09060f 100%);
  background-size: auto, 44px 44px, 44px 44px, 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;
  border-radius: 6px;
  background: var(--gold);
  color: #160d20;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.mobile-header {
  display: none;
}

.side-console {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 8, 20, 0.96), rgba(26, 17, 38, 0.94)),
    url("img/1.webp") center / cover no-repeat;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.34);
}

.side-console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(224, 170, 62, 0.05) 1px, transparent 1px);
  background-size: 100% 5px;
  opacity: 0.38;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(224, 170, 62, 0.58);
  background: radial-gradient(circle, rgba(224, 170, 62, 0.28), rgba(157, 78, 221, 0.16));
  box-shadow: 0 0 26px rgba(255, 0, 127, 0.26);
}

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

.console-status {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.console-status span,
.panel-index,
.server-board span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.console-status strong {
  color: var(--text);
}

.nav-menu {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--gold);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.nav-cta {
  position: relative;
  z-index: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), #ffd86b);
  color: #160d20;
  cursor: pointer;
  font-weight: 900;
}

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

.page-shell {
  margin-left: var(--side);
  width: calc(100% - var(--side));
  padding: 28px;
}

.terminal-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  min-height: calc(100vh - 56px);
  align-items: stretch;
}

.hero-media-panel,
.hero-terminal,
.content-panel,
.notice-card,
.cta-section,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(33, 21, 47, 0.94), rgba(20, 12, 31, 0.9));
  box-shadow: var(--shadow);
}

.hero-media-panel {
  overflow: hidden;
}

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

.hero-terminal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
}
.terminal-bar span:nth-child(2) { background: var(--gold); }
.terminal-bar span:nth-child(3) { background: var(--purple); }
.terminal-bar strong { margin-left: 8px; font-size: 13px; }

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

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.16; letter-spacing: 0; }
h1 { max-width: 760px; font-size: clamp(40px, 7vw, 76px); text-shadow: 0 0 28px rgba(255, 0, 127, 0.28); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; }

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #eadcf4;
  font-size: 18px;
}

.hero-actions,
.notice-card,
.cta-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.btn-primary {
  color: #160d20;
  background: linear-gradient(135deg, var(--gold), #ffd86b);
  box-shadow: 0 14px 38px rgba(224, 170, 62, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.hero-stats {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-stats dt { color: var(--gold); font-size: 24px; font-weight: 900; }
.hero-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.notice-card {
  margin-top: 22px;
  padding: 18px;
}
.notice-card p { flex: 1 1 520px; margin: 0; color: #eadcf4; }
.notice-card i { color: var(--gold); }

.content-panel {
  position: relative;
  margin-top: 22px;
  padding: 34px;
}

.panel-index {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 13px;
}

.section-heading { max-width: 820px; margin-bottom: 28px; }
.section-heading p, .prose, .server-board p, .strategy-list p, .update-list p, .faq-list p, .site-footer p, .cta-section p { color: var(--muted); }

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 46px;
}
.intro-panel .section-heading { margin-bottom: 0; }
.prose { font-size: 17px; }
.prose p:first-child { margin-top: 0; }

.server-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.server-board article {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.server-board img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.server-board div { padding: 20px; }

.strategy-list,
.faq-list {
  display: grid;
  gap: 12px;
}
.strategy-list details,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0 18px;
}
.strategy-list summary,
.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}
.strategy-list summary::after,
.faq-list summary::after {
  content: "+";
  color: var(--gold);
  font-size: 24px;
}
.strategy-list details[open] summary::after,
.faq-list details[open] summary::after { content: "-"; }
.strategy-list p, .faq-list p { margin: 0; padding: 0 0 18px; }

.feature-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}
.feature-panel figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feature-panel 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;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}
.feature-list i { color: var(--gold); margin-top: 5px; }

.update-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.update-list article {
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}
.update-list time { color: var(--pink); font-weight: 900; }

.faq-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 38px;
}

.links-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.friend-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #eadcf4;
  background: rgba(255, 255, 255, 0.05);
}
.friend-links a:hover { border-color: var(--gold); color: var(--gold); }

.cta-section {
  justify-content: space-between;
  margin-top: 22px;
  padding: 28px 34px;
}
.cta-section > div { max-width: 740px; }

.site-footer {
  margin-top: 22px;
  padding: 34px;
  background: #08050d;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
}
.footer-grid h2 { margin: 0 0 14px; font-size: 16px; }
.footer-grid a, .footer-grid button {
  display: block;
  width: fit-content;
  margin: 8px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
}
.footer-grid a:hover, .footer-grid button:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 18px;
  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: 6px;
}

@media (max-width: 1120px) {
  :root { --side: 0px; }
  .side-console { display: none; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 20px;
    background: rgba(13, 8, 20, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .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;
    background: rgba(13, 8, 20, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-open .nav-menu { display: grid; gap: 8px; }
  .page-shell { margin-left: 0; width: 100%; padding: 20px; }
  .terminal-hero,
  .intro-panel,
  .feature-panel,
  .faq-panel,
  .links-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-media-panel img { min-height: 360px; }
  .server-board, .update-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page-shell { padding: 14px; }
  .hero-terminal,
  .content-panel,
  .site-footer {
    padding: 22px;
  }
  .hero-media-panel img { min-height: 260px; }
  .hero-actions,
  .notice-card,
  .cta-section,
  .footer-bottom {
    align-items: stretch;
  }
  .btn { width: 100%; }
  .hero-stats,
  .server-board,
  .update-list {
    grid-template-columns: 1fr;
  }
  .server-board article { grid-template-columns: 1fr; }
  .footer-bottom { 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(--gold); }
.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; } }
