/* AI风月网 · 墨青夜色 + 月晕光晕 · #061018 #0d1f2a #c9a86a #e8eef4 */
:root {
  --void: #061018;
  --deep: #0d1f2a;
  --panel: #122633;
  --line: rgba(201, 168, 106, 0.22);
  --moon: #e8eef4;
  --mist: #9bb0c0;
  --gold: #c9a86a;
  --gold-soft: #e4d2a8;
  --teal: #3d8f9c;
  --teal-deep: #1f5c68;
  --glow: rgba(201, 168, 106, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius: 4px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--moon);
  background: var(--void);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(6, 16, 24, 0.82);
  border-bottom: 1px solid rgba(201, 168, 106, 0.12);
  backdrop-filter: blur(16px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 16, 24, 0.94);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

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

.site-nav {
  display: flex;
  gap: 22px;
  color: var(--mist);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-footer a:hover,
.section-head a:hover {
  color: var(--gold-soft);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta,
.btn-primary {
  color: var(--void);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(201, 168, 106, 0.28);
}

.header-cta:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(201, 168, 106, 0.4);
}

.btn-ghost {
  color: var(--moon);
  border: 1px solid rgba(232, 238, 244, 0.28);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 28%, rgba(201, 168, 106, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 18% 70%, rgba(61, 143, 156, 0.18), transparent 60%),
    linear-gradient(160deg, #08151f 0%, #0d1f2a 45%, #061018 100%);
  z-index: -2;
  animation: moonPulse 10s ease-in-out infinite;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/tu.webp");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.18;
  mix-blend-mode: luminosity;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 16, 24, 0.2) 0%, rgba(6, 16, 24, 0.55) 45%, rgba(6, 16, 24, 0.96) 100%);
}

@keyframes moonPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 72px;
}

.brand-signal {
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  text-shadow: 0 0 40px rgba(201, 168, 106, 0.35);
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 18em;
}

.hero-copy {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--mist);
  font-size: 1.05rem;
}

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

.section-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 650;
  line-height: 1.35;
}

.band {
  padding: 72px 0;
}

.band-alt {
  background: linear-gradient(180deg, rgba(13, 31, 42, 0.65), rgba(6, 16, 24, 0.2));
  border-block: 1px solid rgba(201, 168, 106, 0.1);
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.reading p {
  margin: 0 0 14px;
  color: var(--mist);
}

.reading p:last-child { margin-bottom: 0; }

.path-list {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.path-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.path-list span {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
}

.path-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.path-list p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

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

.steps li {
  position: relative;
  padding: 20px 20px 20px 72px;
  background: rgba(18, 38, 51, 0.55);
  border: 1px solid rgba(201, 168, 106, 0.14);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 20px;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
}

.steps strong {
  display: block;
  margin-bottom: 6px;
}

.steps span {
  color: var(--mist);
  font-size: 0.95rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head a {
  color: var(--gold);
  white-space: nowrap;
  font-size: 0.92rem;
}

.article-grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.article-grid a,
.hub-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: rgba(18, 38, 51, 0.5);
  border: 1px solid rgba(201, 168, 106, 0.12);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-grid a:hover,
.hub-grid a:hover {
  border-color: rgba(201, 168, 106, 0.45);
  transform: translateY(-2px);
}

.article-grid span,
.hub-grid span {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.article-grid strong,
.hub-grid strong {
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 650;
}

.article-grid em,
.hub-grid em {
  color: var(--mist);
  font-style: normal;
  font-size: 0.82rem;
  margin-top: auto;
}

.qa-list details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.qa-list summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.qa-list summary::-webkit-details-marker { display: none; }

.qa-list p {
  margin: 10px 0 4px;
  color: var(--mist);
}

.final-cta {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 168, 106, 0.16), transparent 70%),
    var(--deep);
  border-top: 1px solid rgba(201, 168, 106, 0.12);
}

.final-cta p {
  margin: 0 auto 24px;
  max-width: 32em;
  color: var(--mist);
}

.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid rgba(201, 168, 106, 0.12);
  background: #040c12;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.site-footer p {
  color: var(--mist);
  font-size: 0.92rem;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 650;
  letter-spacing: 0.06em;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li { margin-bottom: 8px; }

.site-footer li a { color: var(--mist); font-size: 0.9rem; }

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(201, 168, 106, 0.1);
  color: var(--mist);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
}

.footer-bottom a { color: var(--gold); }

/* Page hero (inner) */
.page-hero {
  padding: 88px 0 48px;
  background:
    radial-gradient(ellipse 50% 60% at 85% 10%, rgba(201, 168, 106, 0.14), transparent 55%),
    linear-gradient(180deg, var(--deep), var(--void));
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
}

.page-hero .kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  max-width: 16em;
  line-height: 1.3;
}

.page-hero .lead {
  margin: 0 0 24px;
  max-width: 38em;
  color: var(--mist);
}

.checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.howto-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.howto-steps li {
  padding: 18px 20px;
  background: rgba(18, 38, 51, 0.5);
  border-left: 3px solid var(--gold);
}

.howto-steps strong {
  display: block;
  margin-bottom: 6px;
}

.howto-steps p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border: 1px solid rgba(201, 168, 106, 0.18);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(18, 38, 51, 0.8);
  color: var(--gold-soft);
  font-weight: 650;
}

.data-table td { color: var(--mist); }

/* Article */
.article-page .article-hero {
  padding: 72px 0 36px;
  background: linear-gradient(180deg, var(--deep), var(--void));
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--mist);
  font-size: 0.85rem;
}

.breadcrumb a { color: var(--gold); }

.article-meta {
  margin: 10px 0 0;
  color: var(--mist);
  font-size: 0.88rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  padding: 40px 0 72px;
  align-items: start;
}

.article-content .lead {
  font-size: 1.08rem;
  color: var(--moon);
  margin: 0 0 28px;
}

.article-content h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
}

.article-content p {
  margin: 0 0 14px;
  color: var(--mist);
}

.article-faq,
.related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  gap: 10px;
}

.related-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(18, 38, 51, 0.45);
  border: 1px solid rgba(201, 168, 106, 0.12);
}

.related-grid span {
  color: var(--gold);
  font-size: 0.78rem;
}

.article-side {
  position: sticky;
  top: 88px;
  padding: 22px;
  background: rgba(18, 38, 51, 0.7);
  border: 1px solid rgba(201, 168, 106, 0.18);
  border-radius: var(--radius);
}

.article-side h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.article-side p {
  margin: 0 0 16px;
  color: var(--mist);
  font-size: 0.9rem;
}

.side-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .two-col,
  .article-layout,
  .footer-grid,
  .article-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
  .hero-inner { padding: 100px 0 56px; }
  .path-list li { grid-template-columns: 48px 1fr; }
  .article-side { position: static; }
}

/* Encyclopedia / TOC layout — for head-term pages */
.ency-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  padding: 18px 16px;
  background: rgba(18, 38, 51, 0.55);
  border: 1px solid rgba(201, 168, 106, 0.14);
  border-radius: var(--radius);
}

.toc p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li { margin-bottom: 8px; }

.toc a {
  display: block;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.toc a.is-active,
.toc a:hover {
  color: var(--gold-soft);
  border-left-color: var(--gold);
}

.ency-body section {
  padding: 36px 0;
  border-bottom: 1px solid rgba(201, 168, 106, 0.12);
}

.ency-body section:first-child { padding-top: 0; }

.ency-body h2 {
  scroll-margin-top: 96px;
}

.ency-body p,
.ency-body li {
  color: var(--mist);
}

.ency-body ul,
.ency-body ol {
  padding-left: 1.2em;
}

.ency-body li { margin-bottom: 8px; }

.cluster-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.cluster-map article {
  padding: 20px;
  background: rgba(18, 38, 51, 0.45);
  border: 1px solid rgba(201, 168, 106, 0.12);
}

.cluster-map h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.cluster-map p {
  margin: 0 0 12px;
  color: var(--mist);
  font-size: 0.92rem;
}

.cluster-map a {
  color: var(--gold);
  font-size: 0.88rem;
}

.glossary-list dt {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-soft);
}

.glossary-list dd {
  margin: 8px 0 0;
  color: var(--mist);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
}

.pillar-hero {
  padding: 80px 0 40px;
  background:
    radial-gradient(ellipse 45% 55% at 90% 0%, rgba(61, 143, 156, 0.16), transparent 55%),
    linear-gradient(180deg, var(--deep), var(--void));
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
}

.pillar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pillar-links a {
  padding: 8px 14px;
  border: 1px solid rgba(201, 168, 106, 0.25);
  color: var(--mist);
  font-size: 0.88rem;
  border-radius: var(--radius);
}

.pillar-links a:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .ency-layout,
  .cluster-map {
    grid-template-columns: 1fr;
  }
  .toc { position: static; }
}

@media (max-width: 600px) {
  .article-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .brand-signal {
    letter-spacing: 0.04em;
  }
}
