/* ===== 字体 ===== */
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

/* ===== 变量 ===== */
:root {
  --c-primary: #ff0080;
  --c-secondary: #ff00ff;
  --c-dark: #26171f;
  --c-dark2: #1a0f16;
  --c-dark3: #0f0a0d;
  --c-text: #f0e6ee;
  --c-text-muted: #c4a8bf;
  --c-accent-line: #ff0080;
  --c-glass: rgba(38,23,31,0.72);
  --c-glass2: rgba(255,0,128,0.08);
  --font-heading: 'Amatic SC', cursive;
  --font-body: 'Cabin', system-ui, sans-serif;
  --nav-h: 64px;
  --max-w: 1140px;
  --radius: 0;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-dark3);
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-secondary); }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.15; }

/* ===== Aurora Background ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: auroraFlow 12s ease-in-out infinite alternate;
}
.a1 {
  width: 80vw; height: 60vh;
  background: radial-gradient(ellipse, #ff0080 0%, transparent 70%);
  top: -20vh; left: -20vw;
  animation-delay: 0s;
}
.a2 {
  width: 70vw; height: 55vh;
  background: radial-gradient(ellipse, #ff00ff 0%, transparent 70%);
  top: 10vh; right: -15vw;
  animation-delay: -4s;
}
.a3 {
  width: 60vw; height: 50vh;
  background: radial-gradient(ellipse, #ff0080 0%, #ff00ff 50%, transparent 80%);
  bottom: 0; left: 20vw;
  animation-delay: -8s;
}
@keyframes auroraFlow {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(4vw,-3vh) scale(1.08); }
  66%  { transform: translate(-3vw,5vh) scale(0.95); }
  100% { transform: translate(2vw,-2vh) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none; }
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  background: var(--c-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,0,128,0.25);
}
.brand-corner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--c-primary);
  text-decoration: none;
}
.brand-text-icon {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  letter-spacing: 0.05em;
}
.brand-icon { width: 36px; height: 36px; object-fit: contain; }

.top-nav { flex: 1; overflow-x: auto; }
.nav-dl {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.nav-dt-hidden { display: none; }
.nav-dl dd { flex-shrink: 0; }
.nav-dl dd a {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-muted);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  min-height: 44px;
}
.nav-dl dd a:hover,
.nav-dl dd a[aria-current="page"] {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

/* ===== Sticky Anchor Bar ===== */
.anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(38,23,31,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,0,255,0.15);
  overflow-x: auto;
  font-size: 0.82rem;
}
.anchor-label { color: var(--c-text-muted); flex-shrink: 0; }
.anchor-link {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255,0,128,0.3);
  color: var(--c-text-muted);
  font-size: 0.8rem;
  transition: all 0.2s;
}
.anchor-link:hover {
  background: rgba(255,0,128,0.15);
  color: var(--c-primary);
  border-color: var(--c-primary);
}

/* ===== Hero (Home) ===== */
.hero-wrap {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(38,23,31,0.82) 0%,
    rgba(255,0,128,0.18) 40%,
    rgba(255,0,255,0.14) 70%,
    rgba(38,23,31,0.88) 100%
  );
  z-index: 1;
}
/* iridescent shimmer overlay */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,0,255,0.07) 30%,
    rgba(255,0,128,0.1) 50%,
    rgba(255,0,255,0.07) 70%,
    transparent 100%
  );
  animation: iridShimmer 6s ease-in-out infinite alternate;
}
@keyframes iridShimmer {
  0%   { opacity: 0.5; transform: translateX(-5%); }
  100% { opacity: 1;   transform: translateX(5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-overlay::after { animation: none; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  max-width: 800px;
}
.hero-h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 30px rgba(255,0,128,0.7), 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(240,230,238,0.88);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Home Main ===== */
.home-main,
.channel-main,
.about-main,
.privacy-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  align-items: start;
}
.home-article,
.channel-article,
.about-article,
.privacy-article {
  min-width: 0;
}

/* ===== Article Main ===== */
.article-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.25rem;
  align-items: start;
}
.article-body { min-width: 0; }

/* ===== Sections ===== */
.page-content-section,
.article-content-section,
.article-header-section,
.article-hero-section,
.children-section,
.channel-section,
.about-nav-section,
.privacy-links-section {
  margin-bottom: 2.5rem;
}

/* ===== Section Headings ===== */
.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--c-text); margin-bottom: 0.4rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); color: var(--c-text-muted); margin-bottom: 0.4rem; }

hr {
  border: none;
  border-top: 1px solid rgba(255,0,128,0.35);
  margin: 0.6rem 0 1.4rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.card {
  background: var(--c-glass);
  border: 1px solid rgba(255,0,128,0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,0,128,0.2);
}
.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card-body {
  flex: 1;
  padding: 1rem;
}
.card-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.4rem;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.card-accent {
  height: 3px;
  background: var(--c-primary);
  flex-shrink: 0;
}

.more-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,0,128,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.more-link:hover { color: var(--c-secondary); border-color: var(--c-secondary); }

/* ===== Channel Hero ===== */
.channel-hero {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem 2rem;
  background: linear-gradient(180deg, rgba(38,23,31,0.0) 0%, rgba(38,23,31,0.95) 100%);
}
.channel-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.channel-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,0,128,0.5);
  margin-bottom: 0.6rem;
}
.channel-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 640px;
}

/* ===== Children List ===== */
.children-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.child-item {
  background: var(--c-glass);
  border: 1px solid rgba(255,0,128,0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.child-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(255,0,128,0.15);
}
.child-item > a {
  display: flex;
  align-items: stretch;
  gap: 0;
  color: inherit;
  text-decoration: none;
}
.child-thumb-wrap {
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;
}
.child-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.child-info {
  flex: 1;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.child-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--c-text);
}
.child-desc, .child-date {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  display: block;
}
.child-date time { color: var(--c-text-muted); }

/* ===== Aside ===== */
.home-aside,
.channel-aside,
.article-aside,
.about-aside,
.privacy-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  background: var(--c-glass);
  border: 1px solid rgba(255,0,128,0.18);
  padding: 1.25rem;
}
.aside-sticky { display: flex; flex-direction: column; gap: 1.5rem; }
.aside-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--c-primary);
  margin-bottom: 0.3rem;
}
.aside-tip, .aside-contact {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.aside-tip p, .aside-contact p { margin-bottom: 0.6rem; }

.aside nav dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  margin-bottom: 0.4rem;
}
.aside nav dl dd { margin-bottom: 0.3rem; }
.aside nav dl dd a {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  transition: color 0.18s;
}
.aside nav dl dd a:hover { color: var(--c-primary); }

.contact-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
  width: fit-content;
  transition: background 0.2s;
}
.contact-btn:hover { background: var(--c-secondary); color: #fff; }

/* ===== Article ===== */
.article-top-bar {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}
.article-h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,0,128,0.4);
  margin-bottom: 0.6rem;
}
.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.article-date {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}
.article-hero-img { overflow: hidden; margin-bottom: 1.5rem; }
.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: saturate(1.2);
}

/* ===== Page Content Prose ===== */
.page-content-section h2,
.article-content-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--c-primary);
  margin: 1.6rem 0 0.4rem;
}
.page-content-section h3,
.article-content-section h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--c-text-muted);
  margin: 1.2rem 0 0.3rem;
}
.page-content-section p,
.article-content-section p {
  margin-bottom: 1rem;
  color: var(--c-text);
}
.page-content-section ul,
.article-content-section ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.page-content-section ol,
.article-content-section ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.page-content-section a,
.article-content-section a { color: var(--c-primary); border-bottom: 1px solid rgba(255,0,128,0.3); }
.page-content-section a:hover,
.article-content-section a:hover { color: var(--c-secondary); }

/* ===== Breadcrumb ===== */
.breadcrumb ol {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.82rem;
  color: var(--c-text-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before { content: '›'; opacity: 0.5; }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb [aria-current="page"] { color: var(--c-primary); }

/* ===== Rel List ===== */
.rel-list { display: flex; flex-direction: column; gap: 0.5rem; }
.rel-item a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-left: 2px solid rgba(255,0,128,0.3);
  color: inherit;
  transition: border-color 0.18s, background 0.18s;
}
.rel-item a:hover {
  border-color: var(--c-primary);
  background: rgba(255,0,128,0.06);
}
.rel-title { display: block; font-size: 0.9rem; color: var(--c-text); }
.rel-item small { font-size: 0.78rem; color: var(--c-text-muted); }

/* ===== About ===== */
.about-hero {
  position: relative;
  z-index: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-hero-media {
  position: absolute;
  inset: 0;
}
.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  max-width: 700px;
}
.about-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 0 24px rgba(255,0,128,0.6);
  margin-bottom: 0.6rem;
}
.about-sub { font-size: 1rem; color: rgba(240,230,238,0.85); }

.about-channel-list { display: flex; flex-direction: column; gap: 0.8rem; }
.about-channel-list li { border-left: 2px solid rgba(255,0,128,0.3); }
.about-channel-list li a {
  display: block;
  padding: 0.6rem 0.8rem;
  color: inherit;
  transition: background 0.18s;
}
.about-channel-list li a:hover { background: rgba(255,0,128,0.07); }
.about-channel-list strong { display: block; color: var(--c-text); font-size: 0.95rem; }
.about-channel-list small { font-size: 0.8rem; color: var(--c-text-muted); }

/* ===== Privacy ===== */
.privacy-banner {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,0,128,0.08) 0%, transparent 100%);
}
.privacy-banner-inner { max-width: var(--max-w); margin: 0 auto; }
.privacy-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.5rem;
}
.policy-date { font-size: 0.85rem; color: var(--c-text-muted); }
.privacy-links { display: flex; gap: 1rem; margin-top: 0.5rem; }
.privacy-links a { color: var(--c-primary); font-size: 0.9rem; }

/* ===== Channel (block inside home) ===== */
.channel-block { margin-bottom: 2.5rem; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--c-dark2);
  border-top: 1px solid rgba(255,0,128,0.2);
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  min-height: 44px;
}
.footer-logo-link { display: flex; align-items: center; }
.footer-site-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--c-primary);
  white-space: nowrap;
}

.footer-nav { flex: 1; }
.footer-nav dl { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.footer-nav dl dt {
  width: 100%;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  margin-bottom: 0.4rem;
}
.footer-nav dl dd { margin-right: 1rem; margin-bottom: 0.25rem; }
.footer-nav dl dd a {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  transition: color 0.18s;
}
.footer-nav dl dd a:hover { color: var(--c-primary); }

.footer-copy {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}
.footer-copy small { font-size: 0.78rem; color: var(--c-text-muted); display: block; }

/* ===== Stagger Animation ===== */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger-item {
  opacity: 0;
  animation: fadeSlideIn 0.45s ease forwards;
}
.stagger-item:nth-child(1)  { animation-delay: 0.05s; }
.stagger-item:nth-child(2)  { animation-delay: 0.12s; }
.stagger-item:nth-child(3)  { animation-delay: 0.19s; }
.stagger-item:nth-child(4)  { animation-delay: 0.26s; }
.stagger-item:nth-child(5)  { animation-delay: 0.33s; }
.stagger-item:nth-child(6)  { animation-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .stagger-item { opacity: 1; animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .home-main,
  .channel-main,
  .article-main,
  .about-main,
  .privacy-main {
    grid-template-columns: 1fr;
  }
  .home-aside,
  .channel-aside,
  .article-aside,
  .about-aside,
  .privacy-aside {
    position: static;
    order: -1;
  }
  .aside-sticky { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 0.75rem; gap: 0.5rem; }
  .nav-dl dd a { padding: 0 0.55rem; font-size: 0.78rem; }
  .hero-wrap { height: 60vh; min-height: 320px; }
  .hero-h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-copy { text-align: left; }
  .child-thumb-wrap { width: 90px; }
  .home-main,
  .channel-main,
  .article-main,
  .about-main,
  .privacy-main {
    padding: 0 0.75rem;
    margin: 1.5rem auto;
  }
  .article-top-bar { padding: 0 0.75rem; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-dark3); }
::-webkit-scrollbar-thumb { background: rgba(255,0,128,0.4); }
::-webkit-scrollbar-thumb:hover { background: var(--c-primary); }
