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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #26171f;
  color: #f0e6ee;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #26171f;
  color: #f0e6ee;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== Aurora 背景 ===== */
.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.45;
  animation: aurora-drift 12s ease-in-out infinite alternate;
}

.aurora-layer.a1 {
  width: 70vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, #ff0080 0%, transparent 70%);
  top: -20vh;
  left: -10vw;
  animation-duration: 14s;
}

.aurora-layer.a2 {
  width: 60vw;
  height: 55vh;
  background: radial-gradient(ellipse at center, #ff00ff 0%, transparent 70%);
  top: 10vh;
  right: -15vw;
  animation-duration: 18s;
  animation-delay: -5s;
}

.aurora-layer.a3 {
  width: 50vw;
  height: 50vh;
  background: radial-gradient(ellipse at center, #ff0080 0%, #ff00ff 40%, transparent 70%);
  bottom: -10vh;
  left: 20vw;
  animation-duration: 22s;
  animation-delay: -9s;
}

@keyframes aurora-drift {
  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.05); }
}

.grid-mask {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 128, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 128, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none; }
}

/* ===== 站点框架层 ===== */
body > * { position: relative; z-index: 1; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(38, 23, 31, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 0, 128, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  text-decoration: none;
  color: #ff0080;
  font-size: 1.5rem;
  font-weight: 800;
}

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

.brand-icon {
  display: block;
  font-style: normal;
  line-height: 1;
  background: linear-gradient(135deg, #ff0080, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.site-header nav ol {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  margin: 0;
}

.site-header nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  color: rgba(240, 230, 238, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.site-header nav ol li a:hover,
.site-header nav ol li a:focus {
  color: #ff0080;
  background: rgba(255, 0, 128, 0.1);
}

.header-contact {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 1rem;
  background: linear-gradient(135deg, #ff0080, #ff00ff);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.header-contact:hover { opacity: 0.85; transform: translateY(-1px); }

/* ===== Hero（首页） ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero-inner {
  max-width: 720px;
  margin: 0;
  padding-left: calc((100vw - 1280px) / 2);
  padding-left: max(1.5rem, calc((100vw - 1280px) / 2));
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff00ff;
  border: 1px solid rgba(255, 0, 255, 0.35);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, #ff00ff 50%, #ff0080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(240, 230, 238, 0.75);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 1.75rem;
  background: linear-gradient(135deg, #ff0080, #ff00ff);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 1.75rem;
  border: 1.5px solid rgba(255, 0, 128, 0.55);
  color: #ff0080;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover { background: rgba(255, 0, 128, 0.1); border-color: #ff0080; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

/* ===== Channel / Tag / Inner Hero ===== */
.channel-hero,
.tag-hero,
.inner-hero {
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid rgba(255, 0, 128, 0.15);
}

.channel-hero-inner,
.tag-hero-inner,
.inner-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.channel-hero h1,
.tag-hero h1,
.inner-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #ff00ff 60%, #ff0080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.tag-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff00ff;
  border: 1px solid rgba(255, 0, 255, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.channel-lead {
  color: rgba(240, 230, 238, 0.7);
  font-size: 1rem;
  max-width: 680px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(240, 230, 238, 0.5);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 0, 128, 0.75);
  text-decoration: none;
}

.breadcrumb a:hover { color: #ff0080; }

/* ===== main 布局（正文 + aside） ===== */
main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  align-items: start;
}

/* 正文容器（契约：main > section > div） */
main > section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

main > section > div {
  width: 100%;
}

/* ===== 内容 div ===== */
.content-section {}

.section-inner {
  width: 100%;
}

/* ===== 页面正文 HTML ===== */
.page-content-block .section-inner,
.article-content,
.about-content,
.privacy-content {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240, 230, 238, 0.88);
}

.page-content-block .section-inner h2,
.article-content h2,
.about-content h2,
.privacy-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 0, 128, 0.2);
}

.page-content-block .section-inner h3,
.article-content h3,
.about-content h3,
.privacy-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff00ff;
  margin: 1.5rem 0 0.5rem;
}

.page-content-block .section-inner p,
.article-content p,
.about-content p,
.privacy-content p { margin-bottom: 1rem; }

.page-content-block .section-inner a,
.article-content a,
.about-content a,
.privacy-content a { color: #ff0080; }

.page-content-block .section-inner ul,
.article-content ul,
.about-content ul,
.privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== Section 标题（h2 + p.subtitle 契约） ===== */
.content-section > .section-inner > h2,
.aside-block > h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 0.9rem;
  color: rgba(240, 230, 238, 0.55);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ===== 棱镜卡片 ===== */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.channel-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.article-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tag-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.prism-card {
  position: relative;
  border-radius: 4px;
  background: rgba(38, 23, 31, 0.7);
  border: 1px solid rgba(255, 0, 128, 0.18);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  animation: reveal-up 0.5s ease both;
}

.prism-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 255, 0.45);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.08), rgba(255, 0, 255, 0.06), transparent);
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}

.prism-card:hover .card-glow { opacity: 1; }

.card-body {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-body time {
  font-size: 0.78rem;
  color: #ff00ff;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.card-body h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.card-body h3 a:hover { color: #ff0080; }

.card-body .subtitle {
  font-size: 0.85rem;
  color: rgba(240, 230, 238, 0.55);
  margin-bottom: 0;
}

.card-count {
  font-size: 0.8rem;
  color: rgba(255, 0, 255, 0.7);
  font-weight: 600;
}

.card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff0080;
  text-decoration: none;
  margin-top: 0.25rem;
  transition: gap 0.2s;
}

.card-link:hover { text-decoration: underline; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .prism-card { animation: none; }
  .prism-card:hover { transform: none; }
}

/* ===== Channel 表格 ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 0, 128, 0.18);
}

.channel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.channel-table thead tr {
  background: rgba(255, 0, 128, 0.12);
}

.channel-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #ff00ff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.channel-table tbody tr {
  border-top: 1px solid rgba(255, 0, 128, 0.1);
  transition: background 0.15s;
}

.channel-table tbody tr:hover { background: rgba(255, 0, 128, 0.06); }

.channel-table td {
  padding: 0.85rem 1rem;
  color: rgba(240, 230, 238, 0.85);
  vertical-align: top;
}

.channel-table td:first-child a {
  color: #ff0080;
  font-weight: 600;
  text-decoration: none;
}

.channel-table td:first-child a:hover { text-decoration: underline; }

.channel-table td time { color: rgba(255, 0, 255, 0.7); font-size: 0.82rem; }

.empty-note {
  color: rgba(240, 230, 238, 0.45);
  font-style: italic;
  padding: 1.5rem 0;
}

/* ===== 文章页 ===== */
.article-meta-wrap { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 0, 128, 0.12); }
.article-dates { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.75rem; }
.article-date { font-size: 0.82rem; color: rgba(255, 0, 255, 0.7); font-weight: 600; }
.article-date.mod { color: rgba(240, 230, 238, 0.4); }
.article-hero-wrap { margin-top: 1.25rem; border-radius: 4px; overflow: hidden; }
.article-hero-img { width: 100%; height: auto; display: block; }

/* ===== Aside ===== */
.site-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 80px;
}

.aside-block {
  background: rgba(38, 23, 31, 0.65);
  border: 1px solid rgba(255, 0, 128, 0.15);
  border-radius: 4px;
  padding: 1.25rem;
}

.aside-block h2 {
  font-size: 0.95rem !important;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.aside-block .subtitle { margin-bottom: 0.85rem; font-size: 0.8rem; }

.aside-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aside-links li a {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.875rem;
  color: rgba(240, 230, 238, 0.75);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.aside-links li a:hover { color: #ff0080; }

/* ===== 标签云 ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.9rem;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.15), rgba(255, 0, 255, 0.1));
  border: 1px solid rgba(255, 0, 128, 0.3);
  border-radius: 2px;
  color: #ff0080;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.tag-pill:hover {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(255, 0, 255, 0.2));
  border-color: #ff0080;
}

/* ===== 联系盒子 ===== */
.contact-box {
  background: rgba(255, 0, 128, 0.06);
  border: 1px solid rgba(255, 0, 128, 0.18);
  border-radius: 4px;
  padding: 1.5rem;
}

.contact-box p { margin-bottom: 1rem; color: rgba(240, 230, 238, 0.8); }

/* ===== 页脚 ===== */
.site-footer {
  background: rgba(20, 10, 16, 0.92);
  border-top: 1px solid rgba(255, 0, 128, 0.18);
  position: relative;
  z-index: 2;
}

.footer-form-block {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), rgba(255, 0, 255, 0.08));
  border-bottom: 1px solid rgba(255, 0, 128, 0.12);
  padding: 2rem 1.5rem;
}

.footer-form-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(240, 230, 238, 0.8);
  white-space: nowrap;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.subscribe-form input[type=email] {
  flex: 1;
  height: 44px;
  padding: 0 1rem;
  background: rgba(38, 23, 31, 0.8);
  border: 1px solid rgba(255, 0, 128, 0.3);
  border-radius: 4px;
  color: #f0e6ee;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input[type=email]:focus { border-color: #ff0080; }
.subscribe-form input[type=email]::placeholder { color: rgba(240, 230, 238, 0.35); }

.subscribe-form button {
  height: 44px;
  padding: 0 1.25rem;
  background: linear-gradient(135deg, #ff0080, #ff00ff);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.subscribe-form button:hover { opacity: 0.85; }

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

/* 页脚 dl（契约：footer ≥ 3 个 dl） */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col dt {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0080;
  margin-bottom: 0.25rem;
}

.footer-col dd {
  font-size: 0.875rem;
  color: rgba(240, 230, 238, 0.6);
  line-height: 1.6;
}

.footer-col dd a {
  color: rgba(240, 230, 238, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col dd a:hover { color: #ff0080; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 0, 128, 0.1);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.82rem; color: rgba(240, 230, 238, 0.35); }

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(240, 230, 238, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: #ff0080; }

/* ===== 文章 article-header div ===== */
.article-header-section { padding-bottom: 0.5rem; }

/* ===== 移动端响应式 ===== */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }

  .site-aside {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header nav ol {
    gap: 0;
  }

  .site-header nav ol li a {
    font-size: 0.78rem;
    padding: 0.45rem 0.5rem;
  }

  .header-contact {
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }

  .hero {
    padding: 2.5rem 1.25rem;
    min-height: 60vh;
  }

  .hero-inner {
    padding-left: 0;
  }

  .channel-hero,
  .tag-hero,
  .inner-hero {
    padding: 2rem 1.25rem;
  }

  main {
    padding: 2rem 1.25rem 3rem;
  }

  .channel-grid,
  .article-grid,
  .tag-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-form-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .subscribe-form {
    width: 100%;
    min-width: 0;
  }

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

@media (max-width: 375px) {
  body { font-size: 1rem; }

  .site-header nav ol li a {
    font-size: 0.72rem;
    padding: 0.4rem 0.35rem;
  }

  .hero-title { font-size: 1.75rem; }
}
