@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');

/* ── 基础变量 ── */
:root {
  --c-bg: #fafaf8;
  --c-ink: #1a1a1a;
  --c-mid: #4a4a4a;
  --c-accent: #1a1a1a;
  --c-line: #d0cfc8;
  --c-card-bg: #f2f1ec;
  --c-hover: #e8e7e0;
  --f-head: 'Orbitron', 'Exo 2', monospace;
  --f-body: 'Exo 2', system-ui, sans-serif;
  --radius: 10px;
  --nav-h: 64px;
  --max-w: 1160px;
  --content-max: 740px;
}

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: .7; }
ul, ol { list-style: none; }

/* ── 纸感肌理叠加 ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(26,26,26,.018) 3px,
      rgba(26,26,26,.018) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 7px,
      rgba(26,26,26,.010) 7px,
      rgba(26,26,26,.010) 8px
    );
  pointer-events: none;
  z-index: 1000;
}

/* ── 导航 ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-bg);
  border-bottom: 2px solid var(--c-ink);
  min-height: var(--nav-h);
}

.nav-details {
  display: flex;
  align-items: stretch;
  min-height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}

.nav-details[open] .nav-menu { display: flex; }

.nav-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: default;
  list-style: none;
  position: relative;
  min-height: var(--nav-h);
}
.nav-summary::-webkit-details-marker { display: none; }

.nav-brand-center {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-decoration: none;
  color: var(--c-ink);
}
.nav-logo-mark { width: 32px; height: 32px; object-fit: contain; }
.nav-brand-text { font-family: var(--f-head); }

.nav-hamburger {
  display: none;
  font-size: 1.6rem;
  margin-left: auto;
  cursor: pointer;
  padding: .5rem;
  min-height: 44px;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 0;
  flex-wrap: wrap;
}
.nav-menu-left { margin-right: auto; padding-right: 6rem; }
.nav-menu-right { margin-left: auto; padding-left: 6rem; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: .35rem .85rem;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--c-ink);
  background: transparent;
  white-space: nowrap;
  transition: none;
  min-height: 40px;
}
.nav-pill:hover,
.nav-pill[aria-current="page"] {
  background: var(--c-ink);
  color: var(--c-bg);
  opacity: 1;
}
.nav-pill-contact {
  border-style: dashed;
  font-weight: 600;
}

/* ── 页面包裹 ── */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Hero（首页） ── */
.hero-section {
  display: flex;
  align-items: stretch;
  min-height: 70vh;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  gap: 3rem;
  width: 100%;
}

.hero-aside {
  flex: 0 0 42%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg-text {
  position: absolute;
  font-family: var(--f-head);
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 700;
  color: var(--c-ink);
  opacity: .05;
  letter-spacing: .1em;
  pointer-events: none;
  user-select: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  white-space: nowrap;
}
.hero-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  transform: rotate(-1.5deg);
  background: var(--c-card-bg);
  position: relative;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--c-card-bg),
    var(--c-card-bg) 8px,
    var(--c-line) 8px,
    var(--c-line) 9px
  );
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 0;
}
.hero-h1 {
  font-family: var(--f-head);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
  position: relative;
}
.hero-h1::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--c-ink);
  margin-top: .6rem;
  transform: rotate(-.5deg);
}
.hero-desc {
  font-size: 1rem;
  color: var(--c-mid);
  max-width: 38ch;
  line-height: 1.7;
}
.hero-cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.4rem;
  background: var(--c-ink);
  color: var(--c-bg);
  font-family: var(--f-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--c-ink);
  min-height: 44px;
}
.btn-primary:hover { background: transparent; color: var(--c-ink); opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.4rem;
  background: transparent;
  color: var(--c-ink);
  font-family: var(--f-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px dashed var(--c-ink);
  min-height: 44px;
}
.btn-secondary:hover { background: var(--c-ink); color: var(--c-bg); opacity: 1; }

/* ── 首页内容区 ── */
.home-main { flex: 1; }

.home-content-section {
  display: flex;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  align-items: flex-start;
}
.home-content-body { flex: 1; min-width: 0; }

/* ── 侧边栏（aside 在内容左侧） ── */
.content-aside,
.home-aside {
  flex: 0 0 220px;
  order: -1;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.aside-block {
  margin-bottom: 2rem;
}

.aside-title {
  font-family: var(--f-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.aside-links li { border-bottom: 1px solid var(--c-line); }
.aside-links li:last-child { border-bottom: none; }
.aside-links a {
  display: block;
  padding: .45rem .1rem;
  font-size: .85rem;
  text-decoration: none;
  color: var(--c-mid);
  transition: none;
}
.aside-links a:hover { color: var(--c-ink); text-decoration: underline; opacity: 1; }

.aside-note-text {
  font-size: .85rem;
  color: var(--c-mid);
  line-height: 1.6;
  padding: .5rem;
  border: 1px dashed var(--c-line);
  border-radius: 6px;
}

/* ── FAQ 网格 ── */
.faq-grid-section,
.articles-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.section-heading {
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.faq-card {
  background: var(--c-card-bg);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1rem;
  position: relative;
  border-bottom-width: 4px;
  transform: rotate(calc(var(--card-index, 0) * .3deg - .3deg));
  transition: none;
}
.faq-card:hover { transform: rotate(0deg) translateY(-2px); }

.card-num {
  font-family: var(--f-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-ink);
  opacity: .1;
  position: absolute;
  top: .5rem;
  right: .75rem;
  line-height: 1;
  letter-spacing: -.05em;
}

.card-title {
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .5rem;
  line-height: 1.4;
}
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; opacity: 1; }

.card-desc {
  font-size: .85rem;
  color: var(--c-mid);
  line-height: 1.6;
  margin-bottom: .5rem;
}
.card-date {
  display: block;
  font-size: .75rem;
  color: var(--c-mid);
  opacity: .7;
  margin-top: .5rem;
}

/* ── 文章列表 ── */
.article-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }

.article-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  border-bottom-width: 3px;
  border-bottom-color: var(--c-ink);
  background: var(--c-card-bg);
  transform: rotate(calc(var(--card-index, 0) * -.2deg));
}
.article-row:hover { transform: none; }

.article-num {
  font-family: var(--f-head);
  font-size: 1.4rem;
  font-weight: 700;
  opacity: .15;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .2rem;
}
.article-info { flex: 1; min-width: 0; }
.article-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .3rem;
  line-height: 1.4;
}
.article-title a { text-decoration: none; }
.article-title a:hover { text-decoration: underline; opacity: 1; }
.article-desc { font-size: .85rem; color: var(--c-mid); }

/* ── 内页通用 ── */
.inner-main { flex: 1; }
.inner-section {
  display: flex;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 2.5rem auto 3rem;
  padding: 0 1.25rem;
  align-items: flex-start;
}

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

/* ── 页面头部 ── */
.page-header { margin-bottom: 1.5rem; }
.page-eyebrow {
  display: inline-block;
  font-family: var(--f-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  margin-bottom: .75rem;
}
.page-h1 {
  font-family: var(--f-head);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.page-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.page-date {
  font-size: .8rem;
  color: var(--c-mid);
  opacity: .8;
}

/* ── 正文内容 ── */
.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-ink);
}
.page-content h2 {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 .4rem;
  letter-spacing: .04em;
}
.page-content h3 {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 .35rem;
}
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .35rem; }
.page-content a { color: var(--c-ink); font-weight: 500; }
.page-content hr {
  border: none;
  border-top: 2px solid var(--c-ink);
  margin: 1.5rem 0;
  opacity: .2;
  transform: rotate(-.2deg);
}
.page-content blockquote {
  border-left: 3px solid var(--c-ink);
  padding-left: 1rem;
  color: var(--c-mid);
  font-style: italic;
  margin: 1.25rem 0;
}
.page-content strong { font-weight: 700; }

/* ── FAQ 内容 ── */
.faq-content {}

/* ── 文章英雄图 ── */
.article-hero-wrap {
  margin: 1.25rem 0;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(-.4deg);
}
.article-hero-img { width: 100%; height: auto; }

/* ── 相关链接网格 ── */
.page-nav-links,
.article-footer-links,
.about-links-block,
.privacy-footer-links {
  margin-top: 2.5rem;
}
.related-title {
  font-family: var(--f-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .9rem 1rem;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--radius);
  border-bottom-width: 3px;
  text-decoration: none;
  color: var(--c-ink);
  background: var(--c-card-bg);
  transition: none;
}
.related-card:hover { background: var(--c-ink); color: var(--c-bg); opacity: 1; }
.related-card:hover .related-card-label { color: inherit; }
.related-card-label {
  font-family: var(--f-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-mid);
}
.related-card-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── HR（标题后紧跟） ── */
hr {
  border: none;
  border-top: 1.5px solid var(--c-ink);
  margin: .6rem 0 1rem;
  opacity: .25;
}

/* ── 关于页 ── */
.about-hero-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  overflow: hidden;
}
.about-hero-figure {
  position: relative;
  padding: 2rem;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-card-bg);
  overflow: hidden;
}
.about-bg-text {
  position: absolute;
  font-family: var(--f-head);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 700;
  color: var(--c-ink);
  opacity: .04;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%) rotate(8deg);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.about-h1 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  margin-bottom: .75rem;
}
.about-tagline { color: var(--c-mid); font-size: 1rem; max-width: 52ch; }

/* ── 关于页表格 ── */
.about-stats-block { margin-top: 2.5rem; }
.stats-title {
  font-family: var(--f-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.about-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: .9rem;
}
.about-table tbody tr {
  border-bottom: 1px solid var(--c-line);
}
.about-table tbody tr:last-child { border-bottom: none; }
.about-table td {
  padding: .65rem .5rem;
  vertical-align: middle;
}
.table-label { font-weight: 600; width: 30%; }
.table-value { color: var(--c-mid); width: 35%; }
.table-link { text-align: right; width: 35%; }
.table-link a { font-size: .85rem; }

/* ── 页脚 ── */
.site-footer {
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto 2rem;
}
.footer-col h4.footer-col-title {
  font-family: var(--f-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  color: var(--c-bg);
  opacity: .6;
}
.footer-col ul { display: flex; flex-direction: column; gap: .35rem; }
.footer-col a {
  color: var(--c-bg);
  font-size: .85rem;
  opacity: .75;
  text-decoration: none;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; }

.footer-address { font-style: normal; }
.footer-address .footer-col-title { color: var(--c-bg); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250,250,248,.15);
  text-align: center;
}
.footer-copy {
  font-size: .78rem;
  opacity: .5;
  letter-spacing: .04em;
}

/* ── Scroll Reveal 动效 ── */
.faq-card,
.article-row,
.related-card,
.aside-block {
  opacity: 0;
  transform: translateY(16px) rotate(var(--rot, 0deg));
  will-change: opacity, transform;
}
.faq-card { --rot: calc(var(--card-index, 0) * .3deg - .3deg); }
.article-row { --rot: calc(var(--card-index, 0) * -.2deg); }

.faq-card.is-visible,
.article-row.is-visible,
.related-card.is-visible,
.aside-block.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--rot, 0deg));
  transition: opacity .45s ease, transform .45s ease;
  transition-delay: calc(var(--card-index, 0) * 80ms);
}

.faq-card.is-visible:hover { transform: rotate(0deg) translateY(-2px); }
.article-row.is-visible:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .faq-card, .article-row, .related-card, .aside-block {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu-left { padding-right: 2rem; }
  .nav-menu-right { padding-left: 2rem; }
}

@media (max-width: 680px) {
  :root { --nav-h: 56px; }

  .nav-details {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0 1rem;
  }
  .nav-summary {
    justify-content: space-between;
    min-height: var(--nav-h);
  }
  .nav-brand-center {
    position: static;
    transform: none;
    font-size: .78rem;
  }
  .nav-hamburger { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: .5rem 0 1rem;
    gap: .35rem;
  }
  .nav-menu-left,
  .nav-menu-right {
    padding: 0;
    margin: 0;
  }
  .nav-pill { min-height: 40px; }
  .nav-details[open] .nav-menu { display: flex; }

  .hero-section {
    flex-direction: column;
    min-height: auto;
    gap: 1.5rem;
    padding: 1.5rem 1rem 1.5rem;
  }
  .hero-aside { flex: none; width: 100%; }
  .hero-img-wrap { aspect-ratio: 16/9; transform: none; }
  .hero-content { padding: 0; }

  .home-content-section,
  .inner-section {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  .content-aside,
  .home-aside {
    position: static;
    max-height: none;
    flex: none;
    width: 100%;
    order: 0;
  }

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

  .about-hero-section { padding: 1.5rem 1rem 1rem; }
  .about-hero-figure { padding: 1.25rem 1rem; }
}

@media (max-width: 420px) {
  html { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
