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

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

:root {
  --c-bg: #000000;
  --c-surface: #121212;
  --c-surface2: #1a1a1a;
  --c-border: #2a2a2a;
  --c-text: #f0f0f0;
  --c-text-muted: #888888;
  --c-accent: #e8d5b0;
  --c-accent2: #c8a87a;
  --c-pill-bg: #1a1a1a;
  --c-pill-active: #f0f0f0;
  --c-pill-active-text: #000000;
  --nav-h: 64px;
  --topbar-h: 48px;
  --radius-sm: 4px;
  --radius-pill: 9999px;
  --font-main: 'Archivo', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.oled-dark {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
ol, ul { list-style: none; }

/* ── 顶栏 ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--topbar-h);
}
.top-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-name {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--c-text);
  text-shadow: 0 0 10px rgba(232,213,176,0.3);
}
.brand-logo-link img { height: 32px; width: auto; }

/* ── 底部固定导航 ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-border);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.bottom-nav__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-pill-bg);
  color: var(--c-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid var(--c-border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-pill:hover {
  background: var(--c-surface2);
  color: var(--c-text);
  border-color: var(--c-accent2);
}
.nav-pill.active {
  background: var(--c-pill-active);
  color: var(--c-pill-active-text);
  border-color: var(--c-pill-active);
  font-weight: 700;
}

/* ── 页面包裹 ── */
.site-wrap {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 20px);
}

/* ── Hero（首页专用） ── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 40px 24px 60px;
}
.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(64px, 18vw, 200px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero__collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-img {
  position: absolute;
  object-fit: cover;
}
.hero-img--a {
  top: 0;
  right: 0;
  width: 55%;
  height: 80%;
  object-position: center top;
  opacity: 0.85;
}
.hero-img--b {
  bottom: 0;
  right: 20%;
  width: 40%;
  height: 60%;
  object-position: center;
  opacity: 0.6;
  filter: brightness(0.7);
}
.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.hero__h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.8);
  margin-bottom: 16px;
}
.hero__sub {
  font-size: 1rem;
  color: rgba(240,240,240,0.75);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 400px;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-pill:hover {
  background: var(--c-accent2);
  transform: translateY(-1px);
}
.btn-pill--hero {
  font-size: 1rem;
  padding: 12px 36px;
  text-shadow: none;
}

/* ── 主内容区 ── */
.page-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}
.prose-wrap { width: 100%; }
.prose-section {
  margin-bottom: 56px;
}
.prose-section:last-child { margin-bottom: 0; }

/* ── 面包屑 ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--c-text-muted); text-decoration: underline; text-decoration-color: transparent; }
.breadcrumb a:hover { color: var(--c-accent); text-decoration-color: var(--c-accent); }
.breadcrumb span[aria-hidden] { color: var(--c-border); }

/* ── 眉题 + 标题 ── */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-accent2);
  text-transform: uppercase;
  margin-bottom: 10px;
}
h1.hero__h1,
h1.article-h1,
h1.page-h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 20px;
}
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; color: var(--c-text); }

/* ── 正文 prose ── */
.article-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-top: 8px;
}
.article-meta {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-date, .mod-date { color: var(--c-text-muted); }

/* prose content styles */
.article-body-section p,
.about-body-section p,
.privacy-body-section p,
.content-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 16px;
}
.article-body-section h2,
.about-body-section h2,
.privacy-body-section h2,
.content-section h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}
.article-body-section h3,
.about-body-section h3,
.privacy-body-section h3,
.content-section h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}
.article-body-section ul,
.about-body-section ul,
.privacy-body-section ul,
.content-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-body-section ol,
.about-body-section ol,
.privacy-body-section ol,
.content-section ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-body-section li,
.about-body-section li,
.privacy-body-section li,
.content-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-body-section a,
.about-body-section a,
.privacy-body-section a,
.content-section a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: rgba(232,213,176,0.4);
}
.article-body-section a:hover,
.about-body-section a:hover,
.privacy-body-section a:hover,
.content-section a:hover {
  text-decoration-color: var(--c-accent);
}
.article-body-section blockquote,
.privacy-body-section blockquote {
  border-left: 3px solid var(--c-accent2);
  padding-left: 20px;
  color: var(--c-text-muted);
  font-style: italic;
  margin: 24px 0;
}

/* ── 文章 Hero 图 ── */
.article-hero {
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* ── 子页列表（ol > li > a + small） ── */
.sub-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sub-list li {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid var(--c-border);
  transition: border-color 0.2s, background 0.2s;
  counter-increment: list-counter;
}
.sub-list li:hover {
  background: var(--c-surface2);
  border-bottom-color: var(--c-accent2);
}
.sub-list li a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  display: block;
  padding: 4px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.sub-list li a:hover { color: var(--c-accent); }
.sub-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.sub-date {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--c-text-muted);
  margin-left: 8px;
}

/* ── 首页卡片列表 ── */
.cards-section { margin-top: 0; }
.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.card {
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid var(--c-border);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.card:hover {
  background: var(--c-surface2);
  border-bottom-color: var(--c-accent);
  transform: translateX(4px);
}
.card > a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  min-height: 72px;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.card-date {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}
.card-date time { color: inherit; }

/* ── 页脚 ── */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  margin-top: 80px;
  padding-bottom: calc(var(--nav-h) + 16px);
}
.footer-cta {
  text-align: center;
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--c-border);
}
.footer-cta__text {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.footer-cols {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-dl dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent2);
  margin-bottom: 14px;
}
.footer-dl dd {
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.footer-dl dd a {
  color: var(--c-text-muted);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.footer-dl dd a:hover { color: var(--c-accent); }
.footer-copy {
  border-top: 1px solid var(--c-border);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* ── 动效：卡片滚动淡入 ── */
@media (prefers-reduced-motion: no-preference) {
  .card {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.4s ease forwards;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── 响应式断点 ── */
@media (min-width: 600px) {
  .card-list {
    grid-template-columns: 1fr 1fr;
  }
  .bottom-nav__inner {
    gap: 10px;
  }
  .nav-pill {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
}

@media (min-width: 900px) {
  .card-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hero {
    padding: 60px 48px 80px;
  }
  .page-main {
    padding: 64px 40px 56px;
  }
}

@media (max-width: 599px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero {
    min-height: 70vh;
    padding: 32px 20px 52px;
  }
  .hero-img--a {
    width: 70%;
    height: 65%;
  }
  .hero-img--b {
    width: 50%;
    height: 45%;
    right: 10%;
  }
  .bottom-nav {
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .nav-pill {
    font-size: 0.72rem;
    padding: 8px 12px;
    min-height: 40px;
  }
}

/* ── 焦点可见性 ── */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* ── 滚动条（深色适配） ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-muted); }
