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

/* ===== 变量 ===== */
:root {
  --red: #ff0000;
  --purple: #8b00ff;
  --dark: #261717;
  --dark2: #1a0f0f;
  --dark3: #0e0808;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --glass-blur: blur(15px);
  --text-main: #f0e8e8;
  --text-muted: #b8a8a8;
  --text-dim: #7a6060;
  --font-main: 'Outfit', 'Work Sans', system-ui, sans-serif;
  --radius: 0px;
  --max-w: 1200px;
  --transition: 0.3s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--dark3);
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple); }
img { max-width: 100%; height: auto; display: block; }
ol, ul { list-style: none; }

/* ===== 点阵底纹背景 ===== */
.site-wrapper {
  min-height: 100vh;
  background-color: var(--dark3);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(139,0,255,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,0,0,0.12) 0%, transparent 50%),
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
  position: relative;
}

/* ===== 容器 ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航：两行 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,8,8,0.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.header-brand-row {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 12px 0;
}
.header-brand-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}
.brand-text:hover { color: var(--red); }
.brand-logo { height: 36px; width: auto; }
.brand-logo-link { display: flex; align-items: center; }
.header-slogan {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
  letter-spacing: 0.03em;
}
.header-contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 2px;
  transition: all var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.header-contact:hover { color: var(--red); border-color: var(--red); }

.header-nav-row { padding: 4px 0; }
.main-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.main-nav ol li a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  min-height: 40px;
  border-bottom: 2px solid transparent;
}
.main-nav ol li a:hover,
.main-nav ol li a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  margin-bottom: 16px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb ol li {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.breadcrumb ol li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-dim);
}
.breadcrumb ol li a { color: var(--text-muted); font-size: 0.78rem; }
.breadcrumb ol li a:hover { color: var(--red); }

/* ===== eyebrow 眉题 ===== */
.eyebrow, .eyebrow-hero, .eyebrow-sec {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.eyebrow-hero { color: var(--purple); font-size: 0.72rem; }
.eyebrow-sec { color: var(--purple); }

/* ===== Glass 卡片 ===== */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.glass-card:hover {
  border-color: rgba(255,0,0,0.35);
  background: rgba(255,255,255,0.12);
}
.card-body {
  padding: 20px 22px;
}
.card-thumb { width: 100%; height: 160px; object-fit: cover; }
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 8px 0 12px;
}
.card-body h3 { font-size: 1rem; font-weight: 600; margin: 6px 0 4px; }
.card-body h3 a { color: var(--text-main); }
.card-body h3 a:hover { color: var(--red); }
.card-body h4 { font-size: 0.9rem; font-weight: 600; margin: 4px 0; }
.card-body h4 a { color: var(--text-main); }
.card-body h4 a:hover { color: var(--red); }
.card-body time {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 10px;
}
.card-body .eyebrow { margin-bottom: 4px; }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  min-height: 44px;
}
.btn-primary:hover { background: #cc0000; color: #fff; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  min-height: 44px;
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: rgba(139,0,255,0.2);
  border: 1px solid rgba(139,0,255,0.4);
  color: #c080ff;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 2px;
  transition: all var(--transition);
  min-height: 36px;
}
.btn-pill:hover { background: rgba(139,0,255,0.35); color: #d8a0ff; }

/* ===== Hero 首页 ===== */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(255,255,255,0.03) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(255,255,255,0.03) 28px);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-media {
  flex: 0 0 420px;
  max-width: 42vw;
  position: relative;
}
.hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.hero-dots {
  width: 100%;
  height: 380px;
  background:
    radial-gradient(circle at 40% 40%, rgba(139,0,255,0.3) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255,0,0,0.2) 0%, transparent 50%),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, auto, 20px 20px;
  border: 1px solid var(--glass-border);
}

/* ===== 首页 div 内容 ===== */
.content-section {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.content-body {
  max-width: 860px;
}
.featured-section, .stories-section {
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.featured-wrap, .stories-wrap { width: 100%; }
.featured-wrap h2, .stories-wrap h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-main);
}

/* ===== 卡片网格 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cards-grid--story {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card-sm .card-body { padding: 16px 18px; }

/* ===== 页面 Hero（非首页）===== */
.page-hero-section {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.page-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139,0,255,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.page-hero-text h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
.page-hero-text .hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ===== 布局：侧边栏 + 主内容 ===== */
.layout-section {
  padding: 48px 0 64px;
}
.layout-content {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* 侧边栏在左 */
.sidebar {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}
.sidebar-card {
  padding: 0;
}
.sidebar-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}
.sidebar-card > .eyebrow,
.sidebar-card > h3,
.sidebar-card > p,
.sidebar-card > a,
.sidebar-card > nav {
  display: block;
  padding: 0 16px;
}
.sidebar-card > .eyebrow { padding-top: 16px; }
.sidebar-card > nav { padding-bottom: 6px; }
.sidebar-card > p { padding-bottom: 6px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.sidebar-card > a.btn-pill { margin: 6px 16px 16px; display: inline-flex; }

.sidebar-card nav ol { display: flex; flex-direction: column; padding-bottom: 10px; }
.sidebar-card nav ol li a {
  display: flex;
  align-items: center;
  padding: 7px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  min-height: 36px;
  transition: color var(--transition);
}
.sidebar-card nav ol li a:hover { color: var(--red); }
.sidebar-link-item { padding: 6px 16px; }
.sidebar-link-item a { font-size: 0.82rem; color: var(--text-muted); display: block; }
.sidebar-link-item a:hover { color: var(--red); }

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

/* ===== 正文排版 ===== */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
}
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 2em 0 0.7em; color: var(--text-main); }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 1.6em 0 0.5em; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--red); }
.prose a:hover { color: var(--purple); }
.prose strong { font-weight: 600; color: var(--text-main); }
.prose blockquote {
  border-left: 3px solid var(--purple);
  padding-left: 16px;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}
.prose code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.88em;
}
.prose hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2em 0; }

/* ===== Story 页面 ===== */
.layout-section--story { padding: 40px 0 64px; }
.story-hero-wrap {
  margin-bottom: 28px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.story-hero-img { width: 100%; max-height: 380px; object-fit: cover; }
.story-meta { margin-bottom: 28px; }
.story-meta h1 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.meta-dates {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.pub-date, .mod-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.story-prose { margin-bottom: 40px; }
.related-section {
  padding: 32px 0 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.related-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.story-bottom-nav {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== 子页列表（div 页） ===== */
.children-section {
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 40px;
}
.children-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.children-section > .glass-card,
.children-section > section.glass-card {
  margin-bottom: 16px;
}

/* div 下直接 section 子页（契约：div > section） */
.children-section > section {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}

/* ===== Tag 页列表 ===== */
.tag-list-section { padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 40px; }
.tag-list-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.card-list-item .card-body { padding: 18px 22px; }
.empty-tip { color: var(--text-dim); font-size: 0.9rem; padding: 24px 0; }

/* ===== About / Privacy Hero ===== */
.about-hero-section, .privacy-hero-section {
  padding: 56px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}
.about-hero-section::before, .privacy-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,0,0,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.about-hero-inner, .privacy-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.about-hero-inner h1, .privacy-hero-inner h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.privacy-hero-inner time { font-size: 0.78rem; color: var(--text-dim); margin-top: 10px; display: block; }

/* ===== Link Grid（about/privacy）===== */
.about-links, .privacy-bottom {
  margin-top: 48px;
  padding: 32px 28px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.about-links h2, .privacy-bottom h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
  background: rgba(255,255,255,0.03);
}
.link-item:hover { border-color: var(--red); background: rgba(255,0,0,0.07); }
.link-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
}
.link-label { font-size: 0.88rem; color: var(--text-main); }

/* ===== 侧边栏 brand 卡片 ===== */
.sidebar-brand-card p { padding-bottom: 16px !important; }
.sidebar-notice p { padding-bottom: 12px !important; }

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,8,8,0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 28px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand-big {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  flex: 0 0 auto;
}
.site-footer nav { flex: 1; }
.site-footer nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-footer nav ol li a {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: color var(--transition);
}
.site-footer nav ol li a:hover { color: var(--red); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
  flex: 0 0 auto;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Parallax 微效果 ===== */
.hero-dots {
  will-change: transform;
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ===== 移动端适配 ===== */
@media (max-width: 900px) {
  .layout-content {
    flex-direction: column;
  }
  .sidebar {
    flex: none;
    width: 100%;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  .hero-inner {
    flex-direction: column;
    gap: 36px;
  }
  .hero-media {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .hero-img, .hero-dots { height: 240px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .container { padding: 0 16px; }
  .header-brand-inner { gap: 10px; }
  .header-slogan { display: none; }
  .main-nav ol li a { padding: 10px 10px; font-size: 0.78rem; }
  .hero-section { min-height: auto; padding: 40px 0; }
  .hero-text h1 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-brand-big { font-size: 1.2rem; }
  .footer-copy { text-align: left; }
  .page-hero-section, .about-hero-section, .privacy-hero-section { padding: 36px 0 24px; }
  .sidebar { grid-template-columns: 1fr; }
  .story-meta h1 { font-size: 1.4rem; }
}
