/* ===== Inter Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Variables ===== */
:root {
  --c-primary: #99ffcc;
  --c-accent: #00ff41;
  --c-bg: #001e3c;
  --c-bg2: #002a52;
  --c-bg3: #003060;
  --c-text: #d0f0e0;
  --c-text-muted: #7ab89a;
  --c-border: #0a4a30;
  --c-card-bg: rgba(0,40,60,0.85);
  --nav-width: 240px;
  --radius: 18px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.dark-body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, menu { list-style: none; }

/* ===== Bio Root & Background ===== */
.bio-root {
  position: relative;
  min-height: 100vh;
  display: flex;
}
.bio-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cell-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cell-orb {
  fill: #00ff41;
  animation: breathe 6s ease-in-out infinite;
}
.cell-orb:nth-child(2) { animation-delay: -2s; animation-duration: 8s; }
.cell-orb:nth-child(3) { animation-delay: -4s; animation-duration: 7s; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 1; }
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: floatBubble 10s ease-in-out infinite;
}
.b1 { width: 300px; height: 300px; background: rgba(0,255,65,0.08); top: 10%; left: 20%; animation-delay: 0s; }
.b2 { width: 200px; height: 200px; background: rgba(153,255,204,0.06); top: 60%; right: 15%; animation-delay: -3s; animation-duration: 13s; }
.b3 { width: 150px; height: 150px; background: rgba(0,255,65,0.05); bottom: 20%; left: 50%; animation-delay: -6s; animation-duration: 9s; }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  33% { transform: translateY(-30px) scale(1.05); }
  66% { transform: translateY(15px) scale(0.97); }
}

/* ===== Side Nav ===== */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--nav-width);
  background: rgba(0,20,40,0.96);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
}
.nav-brand {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--c-border);
}
.nav-logo { width: 36px; height: 36px; }
.nav-logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.03em;
  line-height: 1.4;
  display: block;
}

/* details > summary + menu > li > a */
.nav-details {
  flex: 1;
  padding: 0;
}
.nav-details[open] > .nav-summary::after { transform: rotate(180deg); }
.nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
  border-bottom: 1px solid var(--c-border);
}
.nav-summary::-webkit-details-marker { display: none; }
.nav-summary::after {
  content: '▾';
  font-size: 12px;
  transition: transform var(--transition);
  color: var(--c-accent);
}
.nav-menu {
  padding: 8px 0;
}
.nav-menu li { display: block; }
.nav-link {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-link:hover {
  color: var(--c-primary);
  border-left-color: var(--c-accent);
  background: rgba(0,255,65,0.05);
}
.nav-link--active {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
  background: rgba(0,255,65,0.08);
  font-weight: 600;
}
.nav-cta {
  display: block;
  margin: 16px 16px 24px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  color: var(--c-bg) !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-align: center;
  min-height: 44px;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); color: var(--c-bg) !important; }

/* ===== Page Wrap ===== */
.page-wrap {
  margin-left: var(--nav-width);
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  color: var(--c-bg);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: var(--c-bg); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover { background: rgba(153,255,204,0.08); color: var(--c-accent); border-color: var(--c-accent); }

/* ===== Hero Section ===== */
.hero-section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 80px 60px 60px;
  position: relative;
  text-align: right;
  border-bottom: 1px solid var(--c-border);
}
.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0,255,65,0.12);
  border: 1px solid var(--c-accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  animation: pulse-badge 3s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,65,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(0,255,65,0); }
}
.hero-h1 {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== Content Section Layout ===== */
.content-section {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* aside 在内容左侧 */
.left-aside {
  width: 220px;
  flex-shrink: 0;
  padding: 40px 20px 40px 40px;
  border-right: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
}
.aside-block {
  margin-bottom: 32px;
}
.aside-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.aside-links li { margin-bottom: 2px; }
.aside-links a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--c-text);
  border-radius: 6px;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: all var(--transition);
  line-height: 1.4;
}
.aside-links a:hover {
  background: rgba(0,255,65,0.07);
  color: var(--c-primary);
}

.main-content {
  flex: 1;
  padding: 40px 60px 60px 40px;
  min-width: 0;
}

/* ===== Prose ===== */
.prose-wrap {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.8;
}
.prose-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
  margin: 36px 0 8px;
  letter-spacing: -0.01em;
}
.prose-wrap h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 28px 0 8px;
}
.prose-wrap p { margin-bottom: 16px; color: var(--c-text); }
.prose-wrap ul, .prose-wrap ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.prose-wrap li { margin-bottom: 6px; }
.prose-wrap a { color: var(--c-accent); border-bottom: 1px solid rgba(0,255,65,0.3); }
.prose-wrap a:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.prose-wrap strong { color: var(--c-primary); font-weight: 600; }
.prose-wrap blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(0,255,65,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.subtitle {
  font-size: 15px;
  color: var(--c-text-muted);
  margin-top: -4px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ===== Cards ===== */
.card-section { margin-top: 48px; }
.card-section > h2 { font-size: 20px; font-weight: 700; color: var(--c-primary); margin-bottom: 6px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.ep-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-card-bg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.ep-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-3px);
}
.ep-card-link {
  display: block;
  padding: 22px 20px;
  color: inherit;
  height: 100%;
}
.ep-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  background: rgba(0,255,65,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.ep-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ep-card-desc {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.ep-card-date {
  display: block;
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.ep-card-arrow {
  font-size: 18px;
  color: var(--c-accent);
  display: block;
  text-align: right;
}

/* ===== Channel Hero ===== */
.ch-hero {
  padding: 60px 60px 40px;
  border-bottom: 1px solid var(--c-border);
}
.ch-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  margin-bottom: 16px;
}
.ch-h1 {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.ch-desc {
  font-size: 16px;
  color: var(--c-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== Episode Table ===== */
.ch-list-wrap { margin-top: 40px; }
.ch-list-wrap > h2 { font-size: 20px; font-weight: 700; color: var(--c-primary); margin-bottom: 6px; }
.ep-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}
.ep-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}
.ep-table tbody tr:hover { background: rgba(0,255,65,0.04); }
.ep-table td { padding: 14px 12px; vertical-align: middle; }
.ep-num {
  color: var(--c-accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  width: 80px;
  white-space: nowrap;
}
.ep-title-cell a {
  color: var(--c-text);
  font-weight: 500;
  transition: color var(--transition);
}
.ep-title-cell a:hover { color: var(--c-primary); }
.ep-date {
  color: var(--c-text-muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

/* ===== Article ===== */
.art-header-section {
  padding: 56px 60px 36px;
  border-bottom: 1px solid var(--c-border);
}
.art-breadcrumb {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.art-breadcrumb a { color: var(--c-text-muted); }
.art-breadcrumb a:hover { color: var(--c-primary); }
.art-h1 {
  font-size: clamp(22px, 3.5vw, 44px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.art-date {
  display: inline-block;
  font-size: 13px;
  color: var(--c-text-muted);
  margin-right: 16px;
}
.art-date--mod { color: var(--c-text-muted); opacity: 0.7; }
.art-hero-img-wrap { margin-top: 24px; border-radius: var(--radius); overflow: hidden; }
.article-hero-img { width: 100%; max-height: 400px; object-fit: cover; }
.article-prose { max-width: 760px; }
.art-nav-row {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}

/* ===== About / Privacy ===== */
.about-header, .privacy-header, .default-header {
  padding: 60px 60px 36px;
  border-bottom: 1px solid var(--c-border);
}
.about-eyebrow, .privacy-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  margin-bottom: 16px;
}
.about-h1, .privacy-h1, .default-header h1 {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.about-lead {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 540px;
  line-height: 1.7;
}
.privacy-prose h2, .privacy-prose h3 { margin-top: 32px; }

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--c-border);
  background: rgba(0,10,25,0.8);
}
.footer-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 60px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(90deg, rgba(0,255,65,0.05), rgba(153,255,204,0.03));
  flex-wrap: wrap;
}
.footer-cta-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 60px;
  border-bottom: 1px solid var(--c-border);
}
.footer-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.footer-address {
  font-style: normal;
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.7;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-links-col li a {
  font-size: 13px;
  color: var(--c-text-muted);
  padding: 6px 0;
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-links-col li a:hover { color: var(--c-primary); }
.footer-bottom {
  padding: 20px 60px;
  font-size: 12px;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-bottom a { color: var(--c-text-muted); }
.footer-bottom a:hover { color: var(--c-primary); }

/* ===== Scroll Reveal ===== */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-item.revealed {
  opacity: 1;
  transform: none;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  :root { --nav-width: 200px; }
  .main-content { padding: 32px 32px 48px 28px; }
  .left-aside { padding: 32px 16px 32px 24px; }
  .hero-section { padding: 60px 40px 48px; }
  .art-header-section, .ch-hero, .about-header, .privacy-header { padding: 48px 40px 32px; }
  .footer-cta-block, .footer-cols, .footer-bottom { padding-left: 40px; padding-right: 40px; }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  :root { --nav-width: 0px; }
  .bio-root { flex-direction: column; }
  .side-nav {
    position: relative;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    height: auto;
  }
  .nav-brand { padding: 16px 20px; border-bottom: none; flex: 1; }
  .nav-logo-text { font-size: 12px; }
  .nav-details { width: 100%; order: 3; }
  .nav-summary { padding: 12px 20px; font-size: 12px; }
  .nav-cta {
    margin: 12px 16px;
    padding: 10px 14px;
    font-size: 12px;
    order: 2;
    min-height: 44px;
  }
  .nav-menu { display: flex; flex-wrap: wrap; padding: 8px; }
  .nav-menu li { flex: 0 0 auto; }
  .nav-link { padding: 8px 14px; font-size: 13px; border-left: none; border-bottom: 2px solid transparent; min-height: 44px; }
  .nav-link--active { border-bottom-color: var(--c-accent); border-left-color: transparent; }
  .page-wrap { margin-left: 0; }
  .content-section { flex-direction: column; }
  .left-aside {
    width: 100%;
    position: static;
    max-height: none;
    padding: 24px 20px;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }
  .aside-block { flex: 1; min-width: 140px; margin-bottom: 0; }
  .main-content { padding: 24px 20px 40px; }
  .hero-section { padding: 40px 20px 36px; align-items: flex-start; text-align: left; min-height: 60vh; }
  .hero-actions { justify-content: flex-start; }
  .hero-h1 { font-size: clamp(22px, 7vw, 36px); }
  .ch-hero, .art-header-section, .about-header, .privacy-header, .default-header { padding: 36px 20px 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .ep-table { font-size: 13px; }
  .ep-table td { padding: 12px 8px; }
  .footer-cta-block { flex-direction: column; align-items: flex-start; padding: 28px 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
  .footer-bottom { padding: 16px 20px; flex-wrap: wrap; }
  .footer-cta-text { font-size: 16px; }
  .art-nav-row { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 22px; }
  .left-aside { flex-direction: column; }
  .ep-date { display: none; }
}
