@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

/* ── 重置 & 根变量 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #000;
  --c-fg: #fff;
  --c-border: #fff;
  --c-dim: #999;
  --c-accent: #e0e0e0;
  --c-card-bg: #0a0a0a;
  --c-hover: #fff;
  --f-display: 'Orbitron', 'Exo 2', monospace;
  --f-body: 'Exo 2', system-ui, sans-serif;
  --size-base: 1rem;
  --lh: 1.7;
  --max-prose: 72ch;
  --max-wide: 1280px;
  --gap: 1.5rem;
}

html {
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: var(--lh);
  scroll-behavior: smooth;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-fg); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── 无障碍 ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── 公告条 ── */
.announce-bar {
  background: var(--c-fg);
  color: var(--c-bg);
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0.4rem 1rem;
  text-transform: uppercase;
}

/* ── 页头 ── */
.site-header {
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
}

.brand-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 2rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.brand-name {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-fg);
  text-decoration: none;
  line-height: 1;
}
.brand-name:hover { text-decoration: none; opacity: 0.8; }

.brand-tagline {
  font-size: 0.75rem;
  color: var(--c-dim);
  letter-spacing: 0.06em;
}

.main-nav { padding: 0 2rem; overflow-x: auto; }

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  white-space: nowrap;
}

.nav-list li a {
  display: block;
  padding: 0.75rem 1rem;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-dim);
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: color 0.18s, background 0.18s;
  min-height: 44px;
  line-height: calc(44px - 1.5rem);
}
.nav-list li:first-child a { border-left: 1px solid rgba(255,255,255,0.1); }
.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  color: var(--c-fg);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.subnav-bar {
  padding: 0.4rem 2rem;
  font-size: 0.78rem;
  color: var(--c-dim);
  border-top: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.04em;
}
.subnav-current { color: var(--c-fg); font-weight: 600; }
.breadcrumb-link { color: var(--c-dim); transition: color 0.18s; }
.breadcrumb-link:hover { color: var(--c-fg); text-decoration: none; }

/* ── 分隔线 ── */
.divider-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2rem 1rem;
}
.divider-rule::before,
.divider-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.25);
}
.divider-rule span {
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--c-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── 主内容区 ── */
.page-main { flex: 1; }

/* ── 通用 prose ── */
.prose {
  max-width: var(--max-prose);
  font-size: 1rem;
  line-height: var(--lh);
}

.prose h2 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 2.2em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.prose h3 {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
  letter-spacing: 0.03em;
}
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.5em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--c-fg); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: 0.75; }
.prose strong { font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--c-fg);
  padding: 0.8em 1.2em;
  margin: 1.5em 0;
  color: var(--c-accent);
  font-style: italic;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}
.prose th, .prose td {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5em 0.8em;
  text-align: left;
}
.prose th { background: rgba(255,255,255,0.06); font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.08em; }

/* Drop cap */
.drop-cap > p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 3.8em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin: 0.06em 0.12em 0 0;
  color: var(--c-fg);
  border: 1px solid var(--c-fg);
  padding: 0.06em 0.14em;
}

/* ── 首页 Hero ── */
.hero-section {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  min-height: 45vh;
}
.hero-media {
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-section:hover .hero-img { transform: scale(1.03); }
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  text-align: center;
}
.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 0.92rem;
  color: var(--c-dim);
  margin-bottom: 1.8rem;
  max-width: 36ch;
}
.hero-cta {
  display: inline-block;
  border: 1px solid var(--c-fg);
  padding: 0.65rem 2rem;
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-fg);
  transition: background 0.18s, color 0.18s;
  min-height: 44px;
  line-height: calc(44px - 1.3rem);
}
.hero-cta:hover { background: var(--c-fg); color: var(--c-bg); text-decoration: none; }

/* ── 首页分类卡片 ── */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin: 0;
}
.section-card {
  background: var(--c-bg);
  padding: 1.4rem 1.6rem;
  transition: background 0.18s;
}
.section-card:hover { background: #0d0d0d; }
.section-card h3 {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.6em;
}
.section-card h3 a { color: var(--c-fg); }
.section-card h3 a:hover { text-decoration: underline; }
.section-card p { font-size: 0.82rem; color: var(--c-dim); line-height: 1.55; }

/* ── 首页正文 ── */
.home-content { padding: 2rem; }
.home-content .prose { max-width: 80ch; }

/* ── 首页故事网格 ── */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 2rem;
}
.story-card {
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  border: none;
  transition: background 0.18s;
}
.story-card:nth-child(1) { grid-column: span 6; }
.story-card:nth-child(2) { grid-column: span 6; }
.story-card:nth-child(3) { grid-column: span 4; }
.story-card:nth-child(4) { grid-column: span 4; }
.story-card:nth-child(5) { grid-column: span 4; }
.story-card:nth-child(n+6) { grid-column: span 3; }
.story-card:hover { background: #0c0c0c; }

.card-media { overflow: hidden; aspect-ratio: 16/9; }
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.story-card:hover .card-thumb { transform: scale(1.05); }

.card-body { padding: 1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.card-eyebrow {
  font-family: var(--f-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-dim);
  text-transform: uppercase;
  border-left: 2px solid var(--c-fg);
  padding-left: 0.5em;
}
.card-title {
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}
.card-title a { color: var(--c-fg); }
.card-title a:hover { text-decoration: underline; }
.card-desc { font-size: 0.8rem; color: var(--c-dim); line-height: 1.5; }
.card-date { font-size: 0.72rem; color: var(--c-dim); margin-top: auto; }

/* ── 栏目页 ── */
.section-article { padding: 2rem; }
.section-header {
  max-width: 72ch;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.section-header h1 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.section-desc { color: var(--c-dim); font-size: 0.92rem; max-width: 60ch; }
.section-intro { margin-bottom: 1rem; }
.section-intro .prose { max-width: 80ch; }

.children-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 1rem;
}
.child-card {
  background: var(--c-bg);
  padding: 1.4rem 1.6rem;
  position: relative;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.child-card:hover { background: #0d0d0d; }
.child-num {
  font-family: var(--f-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-dim);
}
.child-card .card-title { font-size: 0.95rem; }
.child-card .card-desc { font-size: 0.82rem; }
.card-readmore {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--f-display);
  letter-spacing: 0.08em;
  color: var(--c-dim);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.1em;
  transition: color 0.18s, border-color 0.18s;
  width: fit-content;
}
.card-readmore:hover { color: var(--c-fg); border-color: var(--c-fg); text-decoration: none; }
.empty-tip { color: var(--c-dim); padding: 2rem; font-size: 0.9rem; }

/* ── 文章页 ── */
.story-article {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem;
}
.story-header {
  max-width: 70ch;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.story-meta-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}
.story-category {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-dim);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.2em 0.6em;
  transition: border-color 0.18s, color 0.18s;
}
.story-category:hover { color: var(--c-fg); border-color: var(--c-fg); text-decoration: none; }
.article-date { font-size: 0.78rem; color: var(--c-dim); }
.story-h1 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.story-deck { font-size: 1rem; color: var(--c-accent); line-height: 1.6; max-width: 55ch; }
.story-updated { font-size: 0.75rem; color: var(--c-dim); margin-top: 0.6rem; }

.story-hero { margin: 0 0 2rem; }
.story-hero-img { width: 100%; max-height: 56vh; object-fit: cover; }

.story-body { max-width: 70ch; }
.story-body .prose { column-count: 1; }

/* 关联文章 */
.story-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.related-title {
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-dim);
  margin-bottom: 1.2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
.sibling-card {
  background: var(--c-bg);
  padding: 1rem 1.2rem;
  transition: background 0.18s;
}
.sibling-card:hover { background: #0d0d0d; }
.sibling-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4em;
  line-height: 1.35;
}
.sibling-card h4 a { color: var(--c-fg); }
.sibling-card h4 a:hover { text-decoration: underline; }
.sibling-card p { font-size: 0.78rem; color: var(--c-dim); line-height: 1.5; }

/* ── 关于页 ── */
.about-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.about-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.about-eyebrow {
  font-family: var(--f-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-dim);
  margin-bottom: 0.6rem;
}
.about-header h1 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
}
.about-body { margin-bottom: 2.5rem; }
.about-links {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}
.about-links h2 {
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-dim);
  margin-bottom: 1rem;
}
.about-nav-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.about-nav-list a {
  font-size: 0.88rem;
  color: var(--c-fg);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.1em;
  transition: border-color 0.18s;
}
.about-nav-list a:hover { border-color: var(--c-fg); text-decoration: none; }

/* ── 隐私页 ── */
.privacy-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.privacy-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.privacy-eyebrow {
  font-family: var(--f-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-dim);
  margin-bottom: 0.6rem;
}
.privacy-header h1 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.privacy-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.privacy-links a {
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.1em;
  transition: border-color 0.18s;
}
.privacy-links a:hover { border-color: var(--c-fg); text-decoration: none; }

/* ── 文章页头部通用 ── */
.article-header h1 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.article-body { margin-top: 1.5rem; }

/* ── 页脚 ── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: auto;
  padding: 2rem 2rem 1.2rem;
}
.footer-top { margin-bottom: 1.5rem; }
.footer-brand {
  font-family: var(--f-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0.12;
  user-select: none;
}
.footer-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.footer-nav dt { display: none; }
.footer-nav dd {
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 0 0.9rem;
}
.footer-nav dd:first-of-type { padding-left: 0; }
.footer-nav dd:last-of-type { border-right: none; }
.footer-nav dd a {
  font-size: 0.78rem;
  color: var(--c-dim);
  display: block;
  min-height: 40px;
  line-height: 40px;
  transition: color 0.18s;
  white-space: nowrap;
}
.footer-nav dd a:hover { color: var(--c-fg); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.copyright { font-size: 0.72rem; color: var(--c-dim); letter-spacing: 0.04em; }
.footer-privacy { font-size: 0.72rem; color: var(--c-dim); transition: color 0.18s; }
.footer-privacy:hover { color: var(--c-fg); text-decoration: none; }

/* ── Scroll reveal ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.is-visible { animation: fadeInUp 0.5s ease forwards; }

/* ── 移动端适配 ── */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .brand-row { padding: 0.75rem 1rem 0.5rem; }
  .brand-name { font-size: 1.2rem; }
  .brand-tagline { display: none; }

  .main-nav { padding: 0 0.5rem; }
  .nav-list li a { padding: 0.5rem 0.65rem; font-size: 0.75rem; }

  .subnav-bar { padding: 0.3rem 1rem; }

  .divider-rule { padding: 1.5rem 1rem 0.8rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .hero-text { padding: 2rem 1.2rem; min-height: 42vh; }
  .hero-h1 { font-size: 1.5rem; }

  .sections-grid { grid-template-columns: 1fr 1fr; }
  .section-card { padding: 1rem; }

  .home-content { padding: 1.2rem; }

  .stories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .story-card { grid-column: span 1 !important; }
  .card-body { padding: 0.8rem; }

  .section-article { padding: 1.2rem; }
  .children-list { grid-template-columns: 1fr; }

  .story-article { padding: 1.2rem; }
  .story-header { max-width: 100%; }

  .about-article,
  .privacy-article { padding: 1.5rem 1rem; }

  .footer-nav dl { gap: 0; }
  .footer-nav dd { padding: 0 0.6rem; }
  .footer-nav dd a { font-size: 0.72rem; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .footer-brand { font-size: 2rem; }

  .site-footer { padding: 1.5rem 1rem 1rem; }

  .related-grid { grid-template-columns: 1fr; }
  .about-nav-list { flex-direction: column; gap: 0.5rem; }
  .privacy-links { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 480px) {
  .sections-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .story-card { grid-column: span 1 !important; }
  .hero-h1 { font-size: 1.3rem; }
  .nav-list li a { padding: 0.5rem 0.5rem; font-size: 0.7rem; }
}

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