@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

/* ===== 重置 & 基础 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body.dark-body {
  background-color: #26171a;
  color: #f0e0e5;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== CSS 变量 ===== */
:root {
  --pk: #eb879c;
  --pk-light: #ffb6c1;
  --dark: #26171a;
  --dark2: #341f24;
  --dark3: #4a2d34;
  --text: #f0e0e5;
  --text-muted: #b08090;
  --border: rgba(235, 135, 156, 0.3);
  --border-strong: rgba(235, 135, 156, 0.6);
  --radius: 18px;
  --radius-pill: 999px;
  --nav-h: 68px;
  --shadow-soft: 0 2px 8px rgba(235, 135, 156, 0.12), 0 1px 3px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(235, 135, 156, 0.25), 0 2px 8px rgba(0,0,0,0.5);
  --trans: 220ms ease;
}

/* ===== 滚动边距（固定底部导航补偿） ===== */
article[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ===== 全局链接 ===== */
a {
  color: var(--pk);
  text-decoration: none;
  transition: color var(--trans), opacity var(--trans);
}
a:hover {
  color: var(--pk-light);
}
a:focus-visible {
  outline: 2px solid var(--pk);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== 排版 ===== */
h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

p {
  margin-bottom: 1em;
  line-height: 1.8;
}

ul, ol {
  padding-left: 1.4em;
}

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

/* ===== 站点包装 ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 底部固定导航条 ===== */
.bottom-nav-aside {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(38, 23, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 20px rgba(235, 135, 156, 0.15);
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 6px;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--pk);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(235, 135, 156, 0.5);
  white-space: nowrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans), box-shadow var(--trans);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.nav-pill:hover, .nav-pill:focus-visible {
  background: rgba(235, 135, 156, 0.12);
  color: var(--pk-light);
  border-color: var(--border-strong);
  box-shadow: 0 0 12px rgba(235, 135, 156, 0.2);
}

.nav-pill.nav-cta {
  background: linear-gradient(135deg, var(--pk), #d4607a);
  color: #fff;
  border-color: transparent;
  font-weight: 500;
  box-shadow: var(--shadow-glow);
}

.nav-pill.nav-cta:hover {
  background: linear-gradient(135deg, var(--pk-light), var(--pk));
  box-shadow: 0 0 24px rgba(235, 135, 156, 0.45);
}

/* ===== Hero 区块 ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: var(--nav-h);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 18vw, 240px);
  color: rgba(235, 135, 156, 0.04);
  letter-spacing: 0.15em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow), 0 0 60px rgba(235, 135, 156, 0.1);
  object-fit: cover;
}

.hero-img-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.placeholder-glyph {
  font-size: 80px;
  color: rgba(235, 135, 156, 0.2);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--pk);
  text-shadow: 0 0 20px rgba(235, 135, 156, 0.6);
  line-height: 1;
}

.eyebrow-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(235, 135, 156, 0.3);
  line-height: 1.2;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin: 0;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 48px;
  background: linear-gradient(135deg, var(--pk), #d4607a);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  box-shadow: var(--shadow-glow);
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(235, 135, 156, 0.5), 0 4px 16px rgba(0,0,0,0.4);
  background: linear-gradient(135deg, var(--pk-light), var(--pk));
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 48px;
  background: transparent;
  color: var(--pk);
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  border: 1px solid var(--border-strong);
  transition: background var(--trans), color var(--trans), box-shadow var(--trans);
}

.btn-ghost:hover {
  background: rgba(235, 135, 156, 0.1);
  color: var(--pk-light);
  box-shadow: 0 0 16px rgba(235, 135, 156, 0.2);
}

.hero-scroll-hint {
  position: absolute;
  bottom: calc(var(--nav-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--pk));
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  writing-mode: horizontal-tb;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===== 正文主体 ===== */
.site-main {
  flex: 1;
  padding-bottom: calc(var(--nav-h) + 40px);
}

.content-section {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* 结构契约：figure 是 article 直接子元素 */
.content-figure {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 8px;
}

.fig-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.fig-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pk);
  box-shadow: 0 0 8px rgba(235, 135, 156, 0.6);
}

.fig-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--pk), transparent);
}

/* 结构契约：aside 是 article 直接子元素，在内容左侧 */
.content-aside {
  grid-column: 1;
  grid-row: 1 / 3;
  position: sticky;
  top: 20px;
  align-self: start;
  margin-top: 40px;
}

.aside-inner {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

.aside-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  color: var(--pk);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.aside-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: background var(--trans), color var(--trans);
  border: 1px solid transparent;
}

.aside-link:hover {
  background: rgba(235, 135, 156, 0.08);
  color: var(--pk-light);
  border-color: var(--border);
}

.aside-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--pk);
  opacity: 0.7;
  flex-shrink: 0;
}

.aside-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-body {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
}

/* ===== 正文内容样式（page.content 内部） ===== */
.content-body article {
  margin-bottom: 80px;
  padding-top: 20px;
}

.content-body h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 24px;
  color: #fff;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.content-body h2 span {
  color: inherit;
}

.content-body h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  margin-bottom: 16px;
  color: var(--pk-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-body h3 span {
  color: inherit;
}

.content-body h2::before {
  content: attr(data-num);
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(235, 135, 156, 0.15);
  line-height: 1;
  flex-shrink: 0;
}

.content-body p {
  color: #d4b8c0;
  line-height: 1.85;
  margin-bottom: 1.2em;
  font-size: 1rem;
}

.content-body ul,
.content-body ol {
  color: #d4b8c0;
  margin-bottom: 1.2em;
  padding-left: 1.6em;
}

.content-body li {
  margin-bottom: 0.5em;
  line-height: 1.75;
}

.content-body a {
  color: var(--pk);
  border-bottom: 1px solid rgba(235, 135, 156, 0.3);
  transition: border-color var(--trans), color var(--trans);
}

.content-body a:hover {
  color: var(--pk-light);
  border-color: var(--pk-light);
}

.content-body strong {
  color: var(--pk-light);
  font-weight: 500;
}

.content-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: rgba(235, 135, 156, 0.1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--pk-light);
}

/* 区块分隔 */
.content-body article + article {
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

/* FAQ 样式（若正文含问答） */
.content-body details {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.content-body details summary {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--pk-light);
  cursor: pointer;
  list-style: none;
  padding-right: 24px;
  position: relative;
}

.content-body details[open] summary {
  margin-bottom: 16px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 60px 40px 32px;
  margin-bottom: var(--nav-h);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto 48px;
}

.footer-col-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: var(--pk);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-title span {
  color: inherit;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 0;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--trans), padding-left var(--trans);
  display: block;
  padding: 2px 0;
}

.footer-link-list li a:hover {
  color: var(--pk-light);
  padding-left: 6px;
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-address p {
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-address a {
  color: var(--pk);
}

.footer-host {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer-extra-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-extra-links li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 0;
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-extra-links li a:hover {
  color: var(--pk);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-keywords {
  font-size: 0.72rem;
  color: rgba(176, 128, 144, 0.5);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* ===== 动效（stagger list + hover micro） ===== */
@media (prefers-reduced-motion: no-preference) {
  .nav-pill {
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 250ms ease, transform 200ms ease;
  }

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

  .nav-pill.nav-cta:hover {
    transform: translateY(-2px);
  }

  .aside-link {
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
  }

  .aside-link:hover {
    transform: translateX(3px);
  }

  .footer-link-list li a {
    transition: color 200ms ease, padding-left 220ms ease;
  }

  /* Stagger 入场动画 */
  .content-body article {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 400ms ease forwards;
  }

  .content-body article:nth-child(1) { animation-delay: 80ms; }
  .content-body article:nth-child(2) { animation-delay: 140ms; }
  .content-body article:nth-child(3) { animation-delay: 200ms; }
  .content-body article:nth-child(4) { animation-delay: 260ms; }
  .content-body article:nth-child(5) { animation-delay: 320ms; }
  .content-body article:nth-child(6) { animation-delay: 380ms; }
  .content-body article:nth-child(7) { animation-delay: 440ms; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-content > * {
    opacity: 0;
    animation: fadeUp 400ms ease forwards;
  }

  .hero-content > *:nth-child(1) { animation-delay: 100ms; }
  .hero-content > *:nth-child(2) { animation-delay: 180ms; }
  .hero-content > *:nth-child(3) { animation-delay: 260ms; }
  .hero-content > *:nth-child(4) { animation-delay: 340ms; }
}

/* ===== 响应式断点 ===== */
@media (max-width: 1100px) {
  .content-section {
    grid-template-columns: 200px 1fr;
    gap: 0 28px;
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 800px) {
  html { font-size: 17px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 60px 20px 20px;
    text-align: center;
  }

  .hero-media {
    order: -1;
  }

  .hero-img-placeholder {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-content {
    align-items: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    padding: 32px 20px;
    gap: 24px;
  }

  .content-figure {
    display: none;
  }

  .content-aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin-top: 0;
  }

  .aside-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .aside-name {
    font-size: 0.72rem;
  }

  .content-body {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    padding: 40px 20px 24px;
  }

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

@media (max-width: 600px) {
  html { font-size: 16px; }

  .bottom-nav {
    padding: 0 8px;
    gap: 4px;
  }

  .nav-pill {
    padding: 6px 9px;
    font-size: 0.65rem;
    min-height: 40px;
  }

  .nav-brand .brand-text {
    font-size: 0.82rem;
  }

  .hero-bg-text {
    font-size: 18vw;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .aside-nav-list {
    grid-template-columns: 1fr;
  }

  .nav-list {
    gap: 3px;
  }

  .nav-left li:nth-child(3),
  .nav-right li:nth-child(2) {
    display: none;
  }

  .footer-col:nth-child(3) {
    display: none;
  }
}

/* ===== 焦点可见性（无障碍） ===== */
:focus-visible {
  outline: 2px solid var(--pk);
  outline-offset: 3px;
}

/* ===== 选择高亮 ===== */
::selection {
  background: rgba(235, 135, 156, 0.3);
  color: #fff;
}

/* ===== 滚动条（Webkit） ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: var(--dark3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pk);
}
