@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

/* ===========================
   CSS 变量 & 基础重置
   =========================== */
:root {
  --c-neon: #69ff69;
  --c-cyan: #00ffff;
  --c-dark: #172617;
  --c-dark2: #0e1a0e;
  --c-dark3: #1f3a1f;
  --c-chrome: #c8f0c8;
  --c-chrome2: #a0e0a0;
  --c-text: #d4f5d4;
  --c-text-dim: #7ab87a;
  --c-border: #2a4a2a;
  --c-accent: #ff69b4;
  --sidebar-w: 240px;
  --font-head: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --radius: 0;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  background: var(--c-dark2);
  color: var(--c-text);
}

body.y2k-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  background: var(--c-dark2);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===========================
   排版基础
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-neon);
}

a {
  color: var(--c-cyan);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover, a:focus-visible {
  color: var(--c-neon);
  text-shadow: 0 0 8px var(--c-neon);
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 2px;
}

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

ul, ol { list-style: none; }

/* ===========================
   页面骨架
   =========================== */
.page-shell {
  display: flex;
  min-height: 100vh;
}

/* ===========================
   左侧固定竖排导航
   =========================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #0a1a0a 0%, var(--c-dark) 60%, #0a180a 100%);
  border-right: 1px solid var(--c-border);
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--c-neon) 30%, var(--c-cyan) 70%, transparent);
  opacity: 0.5;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1rem 2rem;
  height: 100%;
  gap: 1.5rem;
}

.sidebar-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--c-neon);
  text-transform: uppercase;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tagline-dot {
  color: var(--c-cyan);
  font-size: 0.55rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.sidebar-logo-link {
  display: block;
  line-height: 1;
}

.sidebar-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--c-neon));
}

.sidebar-logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-neon);
  text-shadow: 0 0 12px var(--c-neon), 0 0 24px rgba(105, 255, 105, 0.4);
}

.sidebar-brand-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-chrome);
  letter-spacing: 0.04em;
}

/* 导航 dl/dt/dd */
.sidebar-nav { flex: 1; }

.nav-dl {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-dl dt,
.nav-dl dd {
  display: block;
}

.nav-dl dt a,
.nav-dl dd a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text-dim);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-dl dt a:hover,
.nav-dl dd a:hover,
.nav-dl dt a:focus-visible,
.nav-dl dd a:focus-visible {
  color: var(--c-neon);
  border-left-color: var(--c-neon);
  background: rgba(105, 255, 105, 0.06);
  text-shadow: 0 0 6px rgba(105, 255, 105, 0.6);
  padding-left: 1.1rem;
  outline: none;
}

.sidebar-deco {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}

.spark {
  color: var(--c-neon);
  font-size: 0.75rem;
  animation: sparkle 2.5s ease-in-out infinite;
  opacity: 0.7;
}

.spark:nth-child(2) { animation-delay: 0.8s; color: var(--c-cyan); }
.spark:nth-child(3) { animation-delay: 1.6s; color: var(--c-accent); }

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ===========================
   内容区
   =========================== */
.content-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===========================
   Hero
   =========================== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1a0a 0%, #172617 50%, #0d2020 100%);
  scroll-margin-top: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(105,255,105,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105,255,105,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(0,255,255,0.08) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.neon-label {
  display: inline-block;
  padding: 0.25em 0.8em;
  border: 1px solid var(--c-neon);
  color: var(--c-neon);
  font-family: var(--font-head);
  font-weight: 600;
  text-shadow: 0 0 8px var(--c-neon);
  box-shadow: 0 0 8px rgba(105,255,105,0.2), inset 0 0 8px rgba(105,255,105,0.05);
  letter-spacing: 0.15em;
}

.hero-h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--c-neon);
  text-shadow: 0 0 20px rgba(105,255,105,0.5), 0 0 40px rgba(105,255,105,0.2);
  font-weight: 700;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-text-dim);
  line-height: 1.7;
  max-width: 500px;
}

.hero-cta {
  display: inline-block;
  margin-top: 0.5rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.cta-chrome {
  display: inline-block;
  padding: 0.7em 2em;
  background: linear-gradient(135deg, #1a4a1a 0%, #2a6a2a 40%, #1a4a1a 100%);
  color: var(--c-neon);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--c-neon);
  box-shadow: 0 0 12px rgba(105,255,105,0.35), 0 2px 8px rgba(0,0,0,0.5);
  text-shadow: 0 0 8px var(--c-neon);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.cta-chrome::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(105,255,105,0.2), transparent);
  transition: left 0.5s ease;
}

.cta-chrome:hover::before {
  left: 150%;
}

.cta-chrome:hover {
  box-shadow: 0 0 24px rgba(105,255,105,0.6), 0 4px 16px rgba(0,0,0,0.6);
  background: linear-gradient(135deg, #2a6a2a 0%, #3a8a3a 40%, #2a6a2a 100%);
}

/* Hero 右侧装饰 */
.hero-media {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media-frame {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chrome-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.chrome-ring-1 {
  width: 220px; height: 220px;
  border-color: rgba(105,255,105,0.3);
  animation: ring-spin 12s linear infinite;
  box-shadow: 0 0 16px rgba(105,255,105,0.15), inset 0 0 16px rgba(105,255,105,0.05);
}

.chrome-ring-2 {
  width: 170px; height: 170px;
  border-color: rgba(0,255,255,0.4);
  animation: ring-spin 8s linear infinite reverse;
  box-shadow: 0 0 12px rgba(0,255,255,0.2), inset 0 0 12px rgba(0,255,255,0.05);
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-glow-orb {
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105,255,105,0.3) 0%, rgba(0,255,255,0.1) 50%, transparent 70%);
  filter: blur(8px);
  animation: orb-pulse 3s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-icon-center {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-neon);
  text-shadow: 0 0 20px var(--c-neon);
  letter-spacing: 0.05em;
}

/* ===========================
   主内容 main > div.wrap > section > article
   =========================== */
.main-content {
  flex: 1;
  padding: 2.5rem 2rem;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.content-section {
  flex: 1 1 0;
  min-width: 0;
}

.content-article {
  min-width: 0;
}

/* section 滚动偏移（固定导航补偿） */
section[id] {
  scroll-margin-top: 80px;
}

/* ===========================
   正文内容样式
   =========================== */
.content-article h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--c-neon);
  text-shadow: 0 0 10px rgba(105,255,105,0.4);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.content-article h2::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 1px;
  background: var(--c-neon);
  box-shadow: 0 0 6px var(--c-neon);
}

.content-article h2 > span {
  display: inline;
}

.content-article h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--c-cyan);
  margin: 1.8rem 0 0.7rem;
  text-shadow: 0 0 8px rgba(0,255,255,0.3);
}

.content-article h3 > span {
  display: inline;
}

.content-article p {
  margin-bottom: 1.1rem;
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.85;
}

.content-article ul,
.content-article ol {
  margin: 0.8rem 0 1.2rem 1.4rem;
  list-style: disc;
  color: var(--c-text);
}

.content-article ol {
  list-style: decimal;
}

.content-article li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
}

.content-article a {
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(0,255,255,0.3);
  transition: all var(--transition);
}

.content-article a:hover {
  color: var(--c-neon);
  border-bottom-color: var(--c-neon);
}

.content-article strong {
  color: var(--c-neon);
  font-weight: 700;
}

.content-article em {
  color: var(--c-cyan);
  font-style: italic;
}

.content-article blockquote {
  border-left: 3px solid var(--c-neon);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: rgba(105,255,105,0.04);
  color: var(--c-text-dim);
  font-style: italic;
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.content-article th {
  background: rgba(105,255,105,0.1);
  color: var(--c-neon);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--c-border);
  text-align: left;
  font-family: var(--font-head);
}

.content-article td {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

.content-article tr:nth-child(even) td {
  background: rgba(105,255,105,0.03);
}

/* section 分区块 */
.content-article section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-border);
}

.content-article section:last-child {
  border-bottom: none;
}

/* details FAQ 展开保持可见 */
.content-article details {
  border: 1px solid var(--c-border);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  background: rgba(0,0,0,0.2);
}

.content-article summary {
  cursor: pointer;
  color: var(--c-neon);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.3rem 0;
  list-style: none;
}

.content-article summary::marker,
.content-article summary::-webkit-details-marker { display: none; }

.content-article summary::before {
  content: '◆ ';
  color: var(--c-cyan);
  font-size: 0.7em;
}

/* ===========================
   aside 右侧
   =========================== */
.content-aside {
  flex: 0 0 200px;
  position: sticky;
  top: 2rem;
  background: linear-gradient(160deg, #0f2010 0%, #0a1a0a 100%);
  border: 1px solid var(--c-border);
  border-top: 2px solid var(--c-neon);
  padding: 1.2rem 1rem;
  align-self: flex-start;
  overflow: hidden;
}

.aside-title {
  font-size: 0.85rem;
  color: var(--c-neon);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
}

.aside-title > span {
  display: inline-block;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.aside-links li a {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  color: var(--c-text-dim);
  border-left: 1px solid transparent;
  transition: all var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.aside-links li a:hover {
  color: var(--c-neon);
  border-left-color: var(--c-cyan);
  padding-left: 0.9rem;
  text-shadow: none;
}

.aside-deco {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.3rem;
}

.bubble {
  display: block;
  border-radius: 50%;
  border: 1px solid;
}

.bubble-1 {
  width: 18px; height: 18px;
  border-color: rgba(105,255,105,0.3);
  animation: bubble-float 4s ease-in-out infinite;
}

.bubble-2 {
  width: 10px; height: 10px;
  border-color: rgba(0,255,255,0.4);
  animation: bubble-float 4s ease-in-out 1.5s infinite;
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* ===========================
   页脚
   =========================== */
.site-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 2rem;
  background: #0a120a;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-neon);
  text-shadow: 0 0 6px rgba(105,255,105,0.5);
}

.footer-desc {
  font-size: 0.72rem;
  color: var(--c-text-dim);
  max-width: 180px;
  line-height: 1.4;
}

.footer-nav {
  flex: 1;
  min-width: 0;
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.2rem;
  align-items: center;
}

.footer-dl dt,
.footer-dl dd {
  display: inline;
}

.footer-dl dt a,
.footer-dl dd a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  color: var(--c-text-dim);
  min-height: 40px;
  transition: color var(--transition);
  white-space: nowrap;
}

.footer-dl dt a:hover,
.footer-dl dd a:hover {
  color: var(--c-neon);
  text-shadow: 0 0 6px rgba(105,255,105,0.5);
}

.footer-copy {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--c-text-dim);
  white-space: nowrap;
}

/* ===========================
   视差 & Hover 微交互
   =========================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    transform: translateZ(0);
  }

  .content-article section {
    transition: border-color 0.3s ease;
  }

  .content-article section:hover {
    border-color: rgba(105,255,105,0.2);
  }

  .nav-dl dt a,
  .nav-dl dd a {
    position: relative;
  }

  .nav-dl dt a::after,
  .nav-dl dd a::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--c-neon);
    opacity: 0;
    transition: opacity var(--transition);
    box-shadow: 0 0 4px var(--c-neon);
  }

  .nav-dl dt a:hover::after,
  .nav-dl dd a:hover::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===========================
   响应式
   =========================== */

/* 中等屏 */
@media (max-width: 900px) {
  .wrap {
    flex-direction: column;
  }

  .content-aside {
    flex: 0 0 auto;
    width: 100%;
    position: static;
  }

  .hero-media {
    display: none;
  }

  .hero-inner {
    padding: 2.5rem 1.5rem;
  }
}

/* 移动端 */
@media (max-width: 720px) {
  :root {
    --sidebar-w: 0px;
  }

  html {
    font-size: 16px;
  }

  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-top: 1px solid var(--c-border);
    z-index: 200;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar::after {
    display: none;
  }

  .sidebar-inner {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    height: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-tagline,
  .sidebar-brand-name,
  .sidebar-deco {
    display: none;
  }

  .sidebar-brand {
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
  }

  .sidebar-logo-text {
    font-size: 1rem;
  }

  .sidebar-nav {
    flex: 1;
  }

  .nav-dl {
    flex-direction: row;
    gap: 0;
    white-space: nowrap;
  }

  .nav-dl dt a,
  .nav-dl dd a {
    font-size: 0.82rem;
    padding: 0.55rem 0.6rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    min-height: 44px;
    white-space: nowrap;
  }

  .nav-dl dt a:hover,
  .nav-dl dd a:hover {
    padding-left: 0.6rem;
    border-bottom-color: var(--c-neon);
    background: rgba(105,255,105,0.06);
  }

  .content-area {
    margin-left: 0;
    padding-bottom: 70px;
  }

  .hero-section {
    min-height: 60vh;
  }

  .hero-inner {
    padding: 2rem 1rem;
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .hero-h1 {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .wrap {
    gap: 1.5rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
  }

  .footer-dl {
    gap: 0;
  }

  .footer-dl dt a,
  .footer-dl dd a {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }

  .content-article h2 {
    font-size: 1.25rem;
  }

  .content-article h3 {
    font-size: 1.05rem;
  }

  section[id] {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 400px) {
  .hero-h1 {
    font-size: 1.35rem;
  }

  .nav-dl dt a,
  .nav-dl dd a {
    font-size: 0.76rem;
    padding: 0.5rem 0.45rem;
  }
}
