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

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

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #fafaf8;
  color: #1a1a1a;
  min-height: 100vh;
  overflow-x: hidden;
  /* 纸张肌理效果：噪点叠加 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ===== 公告条 ===== */
.top-bar {
  background: #1a1a1a;
  color: #fafaf8;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 100;
}

.top-bar-slogan {
  opacity: 0.85;
}

/* ===== 站点头部 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: #fafaf8;
  border-bottom: 2px solid #1a1a1a;
  /* 手绘感倾斜边 */
  box-shadow: 0 2px 0 0 #4a4a4a, 0 4px 0 0 rgba(26,26,26,0.08);
}

.brand-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1a1a1a;
  min-height: 40px;
  min-width: 40px;
  justify-content: center;
}

.brand-icon {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  border: 2.5px solid #1a1a1a;
  padding: 4px 7px;
  transform: rotate(-2deg);
  background: #1a1a1a;
  color: #fafaf8;
}

/* ===== 汉堡按钮 ===== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.ham-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #1a1a1a;
  border-radius: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .ham-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .ham-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .ham-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== 全屏遮罩导航 ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.55);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.fullscreen-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 48px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.77,0,0.175,1);
  /* 肌理 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #1a1a1a 80%, #2e2e2e 100%);
}

.fullscreen-nav.open {
  transform: translateX(0);
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fafaf8;
  font-size: 1.8rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.nav-close:hover { opacity: 1; }

.fullscreen-nav nav ol {
  list-style: none;
  padding: 0;
  counter-reset: nav-counter;
}

.fullscreen-nav nav ol li {
  counter-increment: nav-counter;
  margin-bottom: 8px;
  position: relative;
}

.fullscreen-nav nav ol li::before {
  content: counter(nav-counter, decimal-leading-zero);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  color: #4a4a4a;
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: 0.08em;
}

.fullscreen-nav nav ol li a {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: #fafaf8;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  min-height: 44px;
  border-bottom: 1px solid rgba(250,250,248,0.1);
  letter-spacing: 0.02em;
  transition: color 0.15s, padding-left 0.15s;
}

.fullscreen-nav nav ol li a:hover,
.fullscreen-nav nav ol li a[aria-current="page"] {
  color: #d4c9a8;
  padding-left: 8px;
}

/* ===== Hero ===== */
.hero-wrap {
  position: relative;
  width: 100%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-wrap.hero-compact {
  min-height: 32vh;
}

.hero-bg-text {
  position: absolute;
  bottom: -0.15em;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(6rem, 20vw, 18rem);
  color: rgba(250,250,248,0.04);
  letter-spacing: -0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(30%) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,26,26,0.6) 0%, rgba(26,26,26,0.4) 60%, rgba(26,26,26,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4c9a8;
  border: 1.5px solid #d4c9a8;
  padding: 3px 10px;
  margin-bottom: 16px;
  transform: rotate(-1deg);
  display: inline-block;
}

.hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  color: #fafaf8;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 2px 3px 0 rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 1rem;
  color: rgba(250,250,248,0.8);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== About Hero ===== */
.about-hero {
  position: relative;
  padding: 80px 24px 60px;
  background: #1a1a1a;
  overflow: hidden;
  text-align: center;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 9rem);
  color: rgba(250,250,248,0.04);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

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

.about-hero-inner .page-h1 {
  color: #fafaf8;
  margin-bottom: 12px;
}

.about-hero-inner .hero-desc {
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 主内容区 ===== */
.page-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ===== content-section: aside 在左，figure 在右 ===== */
.content-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: start;
}

.content-aside {
  position: sticky;
  top: 80px;
  order: -1;
}

.content-aside h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  border-bottom: 2.5px solid #1a1a1a;
  padding-bottom: 6px;
  margin-bottom: 4px;
  margin-top: 24px;
}

.content-aside h2:first-child { margin-top: 0; }

.content-aside p.subtitle {
  font-size: 0.8rem;
  color: #4a4a4a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.aside-links {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.aside-links li {
  border-bottom: 1px solid rgba(74,74,74,0.2);
}

.aside-links li a {
  display: block;
  padding: 8px 4px;
  font-size: 0.88rem;
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-links li a:hover {
  color: #1a1a1a;
  padding-left: 8px;
}

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

/* ===== 标题装饰 h2 + p.subtitle ===== */
h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

p.subtitle, p.subhead, p.desc, p.lead {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* ===== 页面 h1 ===== */
.page-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* ===== 日期 ===== */
.pub-date, .mod-date {
  font-size: 0.82rem;
  color: #4a4a4a;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 20px;
}

.sep {
  margin: 0 6px;
  color: #4a4a4a;
}

/* ===== 正文 ===== */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  max-width: 68ch;
}

.prose h2 { margin-top: 2em; margin-bottom: 0.4em; }
.prose h3 { font-weight: 700; font-size: 1.1rem; margin-top: 1.6em; margin-bottom: 0.4em; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: 0.7; }
.prose strong { font-weight: 700; }
.prose blockquote {
  border-left: 3px solid #1a1a1a;
  padding-left: 16px;
  margin: 1.4em 0;
  color: #4a4a4a;
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid #4a4a4a; padding: 8px 12px; text-align: left; }
.prose th { background: #1a1a1a; color: #fafaf8; font-weight: 700; }
.prose tr:nth-child(even) td { background: rgba(74,74,74,0.06); }

/* ===== 卡片列表 ===== */
.card-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card-list li {
  /* li 直接子元素是 article */
}

.glass-card {
  background: rgba(250,250,248,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(26,26,26,0.15);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 3px 4px 0 rgba(26,26,26,0.08);
  /* 轻微倾斜：手绘感 */
  transform: rotate(0deg);
}

.glass-card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 5px 8px 0 rgba(26,26,26,0.12);
}

.card-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: rgba(26,26,26,0.08);
  position: absolute;
  top: 12px;
  right: 16px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.glass-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.glass-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: opacity 0.15s;
}

.glass-card h3 a:hover { opacity: 0.7; }

.glass-card p {
  font-size: 0.88rem;
  color: #4a4a4a;
  line-height: 1.55;
  margin-bottom: 10px;
}

.glass-card time {
  font-size: 0.78rem;
  color: #4a4a4a;
  letter-spacing: 0.04em;
}

/* ===== 子页卡片区 ===== */
.child-cards {
  margin-top: 40px;
}

/* ===== 首页分区 ===== */
.home-section .section-head-fig {
  margin-bottom: 8px;
}

.section-aside-tag {
  margin-bottom: 8px;
}

.tag-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #fafaf8;
  padding: 3px 10px;
  transform: rotate(1deg);
  display: inline-block;
}

/* ===== 对比页标记 ===== */
.compare-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid #1a1a1a;
  padding: 4px 12px;
  margin-bottom: 20px;
  transform: rotate(-1deg);
  display: inline-block;
}

/* ===== FAQ 专属 ===== */
.faq-hero-section {
  grid-template-columns: 1fr 220px;
  background: #1a1a1a;
  color: #fafaf8;
  border-radius: 18px;
  padding: 40px;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}

.faq-hero-fig {
  color: #fafaf8;
  position: relative;
  z-index: 1;
}

.faq-hero-fig .page-h1 { color: #fafaf8; }
.faq-hero-fig .subtitle { color: rgba(250,250,248,0.75); }
.faq-hero-fig .pub-date,
.faq-hero-fig .mod-date { color: rgba(250,250,248,0.55); }

.faq-deco {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9rem);
  color: rgba(250,250,248,0.06);
  position: absolute;
  right: -20px;
  top: -20px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.faq-hero-section .content-aside {
  position: static;
  z-index: 1;
}

.faq-hero-section .content-aside h2 { color: #fafaf8; border-bottom-color: rgba(250,250,248,0.3); }
.faq-hero-section .content-aside p.subtitle { color: rgba(250,250,248,0.65); }
.faq-hero-section .aside-links li { border-bottom-color: rgba(250,250,248,0.1); }
.faq-hero-section .aside-links li a { color: rgba(250,250,248,0.75); }
.faq-hero-section .aside-links li a:hover { color: #fafaf8; }

.faq-content-section {
  grid-template-columns: 1fr 200px;
}

.faq-figure { order: -1; }

.faq-aside-bottom {
  position: sticky;
  top: 80px;
}

.faq-aside-bottom h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2.5px solid #1a1a1a;
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.faq-aside-bottom p.subtitle {
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.faq-prose { max-width: 100%; }

/* ===== 首页正文节 ===== */
.home-prose-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1.5px solid rgba(26,26,26,0.12);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #1a1a1a;
  color: #fafaf8;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 3px solid #4a4a4a;
  margin-top: 40px;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: #fafaf8;
  transform: rotate(-1deg);
  display: inline-block;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  color: rgba(250,250,248,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  transition: color 0.15s;
}

.footer-nav a:hover { color: #fafaf8; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(250,250,248,0.45);
  white-space: nowrap;
}

.footer-copy a {
  color: rgba(250,250,248,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 8px;
}

.footer-copy a:hover { color: #fafaf8; }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-section,
  .faq-content-section {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    order: 1;
    margin-top: 32px;
  }

  .faq-hero-section {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .faq-aside-bottom {
    position: static;
  }

  .faq-figure { order: 0; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 16px; }

  .fullscreen-nav { padding: 60px 28px 60px 44px; }

  .page-main { padding: 24px 16px 48px; }

  .hero-content { padding: 28px 16px; }

  .card-list { grid-template-columns: 1fr; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
    gap: 12px;
  }

  .footer-brand { font-size: 1.3rem; }

  .footer-copy { white-space: normal; }

  .top-bar { font-size: 0.75rem; padding: 6px 12px; }
}

@media (max-width: 375px) {
  html { font-size: 16px; }
  .hero-h1 { font-size: 1.4rem; }
  .page-h1 { font-size: 1.35rem; }
}
