:root {
  --paper: #f9f9fb;
  --ink: #2a1a4e;
  --ink-soft: #5d527a;
  --sun: #ffd200;
  --orange: #ff6b00;
  --violet: #8a2be2;
  --white: #ffffff;
  --line: rgba(42, 26, 78, 0.16);
  --shadow: 0 18px 50px rgba(42, 26, 78, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius);
}

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

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

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

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: var(--orange);
}

.nav-cta,
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.nav-cta {
  padding: 9px 16px;
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(138, 43, 226, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 26, 78, 0.94), rgba(42, 26, 78, 0.68) 45%, rgba(42, 26, 78, 0.25)),
    linear-gradient(0deg, rgba(42, 26, 78, 0.78), rgba(42, 26, 78, 0.08) 42%);
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 74px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede {
  width: min(710px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

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

.btn {
  padding: 12px 22px;
  min-width: 132px;
}

.btn-primary {
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(138, 43, 226, 0.35);
}

.btn-primary:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

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

.hero-stats div {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--sun);
  font-size: 1.25rem;
  font-weight: 900;
}

.section {
  padding: 84px 0;
}

.intro-band,
.guide-band,
.gallery-band {
  background: var(--white);
}

.updates-band {
  background: #fff5d2;
}

.faq-band {
  background: #f1edf8;
}

.seo-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
}

.section h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.section p {
  color: var(--ink-soft);
}

.section-head {
  width: min(790px, 100%);
  margin-bottom: 32px;
}

.media-frame {
  margin: 0;
}

.media-frame img,
.image-strip img,
.gallery img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.feature-card,
.feature-matrix article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(42, 26, 78, 0.07);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--orange);
  font-weight: 900;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.image-strip figure {
  margin: 0;
}

.guide-list {
  display: grid;
  gap: 16px;
}

.guide-list article {
  padding-left: 18px;
  border-left: 4px solid var(--orange);
}

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

.feature-matrix article:nth-child(2n) {
  border-top: 5px solid var(--sun);
}

.feature-matrix article:nth-child(2n+1) {
  border-top: 5px solid var(--orange);
}

.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: timeline;
}

.timeline li {
  counter-increment: timeline;
  display: grid;
  grid-template-columns: 58px minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(255, 107, 0, 0.18);
}

.timeline li::before {
  content: counter(timeline, decimal-leading-zero);
  color: var(--orange);
  font-weight: 900;
}

.timeline span {
  color: var(--ink-soft);
}

.gallery-controls {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.gallery {
  position: relative;
  min-height: 320px;
}

.gallery-slide {
  display: none;
  margin: 0;
}

.gallery-slide.is-active {
  display: block;
}

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

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.keyword-cloud span {
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff2b7;
  color: var(--ink);
  font-weight: 800;
}

.link-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.link-panel h2 {
  font-size: 1.4rem;
}

.link-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.link-panel a {
  color: var(--violet);
  font-weight: 800;
}

.final-cta {
  padding: 72px 0;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.final-cta p {
  width: min(660px, 100%);
  margin: 16px auto 26px;
  color: rgba(255, 255, 255, 0.78);
}

.friend-links-band {
  padding: 30px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.friend-links-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.friend-links-wrap h2 {
  margin: 0;
  font-size: 1.08rem;
  white-space: nowrap;
}

.friend-links-wrap ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.friend-links-wrap a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--violet);
  font-weight: 800;
  background: var(--paper);
}

.friend-links-wrap a:hover {
  border-color: rgba(138, 43, 226, 0.42);
  background: #f5edff;
}

.site-footer {
  padding: 28px 0;
  background: #20123d;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid nav {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-links a,
  .nav-cta {
    padding: 12px;
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .two-col,
  .two-col.reverse,
  .content-grid,
  .feature-matrix {
    grid-template-columns: 1fr;
  }

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

  .timeline li {
    grid-template-columns: 48px 1fr;
  }

  .timeline span {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .container,
  .hero-content {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 112px;
  }

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

  .btn,
  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

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

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-links-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-links-wrap ul {
    justify-content: flex-start;
  }

  .footer-grid nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* 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(--violet); }
.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, var(--ink-soft)); }
.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, rgba(255,255,255,.82)); 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, var(--ink-soft)); }.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, var(--ink-soft)); 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, rgba(255,255,255,.82)); }.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, var(--ink-soft)); }.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, rgba(255,255,255,.82)); 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, var(--ink-soft)); }.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, var(--ink-soft)); 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, var(--ink-soft)); }.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,rgba(255,255,255,.95)); color: var(--text,var(--ink)); 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,var(--ink)); background: var(--panel,rgba(255,255,255,.95)); 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; } }
