@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

/* ============================================================
   骚虎网 · Editorial Grid · 黑白杂志档案风格
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-ink: #000000;
  --c-gray-100: #f5f5f5;
  --c-gray-200: #e8e8e8;
  --c-gray-400: #999999;
  --c-gray-600: #555555;
  --c-gray-800: #222222;
  --aside-w: 220px;
  --sidebar-w: 200px;
  --font-serif: 'EB Garamond', 'Crimson Text', Georgia, 'Times New Roman', serif;
  --font-sans: 'EB Garamond', Georgia, serif;
}

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

body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--c-black);
  background: var(--c-white);
  overflow-x: hidden;
  max-width: 100vw;
}

section[id] {
  scroll-margin-top: 32px;
}

/* ============================================================
   页面骨架：左 aside + 中主体 + 右 sidebar
   ============================================================ */

.page-wrapper {
  display: grid;
  grid-template-columns: var(--aside-w) 1fr var(--sidebar-w);
  grid-template-rows: auto;
  min-height: 100vh;
  grid-template-areas: "aside main sidebar";
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   左侧固定 aside
   ============================================================ */

.site-aside {
  grid-area: aside;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--aside-w);
  height: 100vh;
  background: var(--c-black);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 0 24px;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid var(--c-gray-800);
}

.aside-logo {
  padding: 0 24px 32px;
  border-bottom: 1px solid #333;
  width: 100%;
}

.aside-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logomark,
.site-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(1);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: 0.08em;
  line-height: 1;
}

.aside-nav {
  width: 100%;
  padding: 24px 0;
  flex: 1;
}

.aside-nav ul {
  list-style: none;
  width: 100%;
}

.aside-nav ul li {
  width: 100%;
  border-bottom: 1px solid #1a1a1a;
}

.aside-nav ul li a {
  display: block;
  padding: 12px 24px;
  color: var(--c-gray-200);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.4;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.aside-nav ul li a:hover,
.aside-nav ul li a:focus {
  color: var(--c-white);
  background: #111;
  padding-left: 32px;
}

.nav-contact {
  width: 100%;
  padding: 16px 24px;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-contact-link {
  color: var(--c-gray-400);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nav-contact-link:hover { color: var(--c-white); }

.aside-brand-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #333;
  padding: 16px 24px 0;
  user-select: none;
  pointer-events: none;
  text-transform: uppercase;
}

/* ============================================================
   主体区
   ============================================================ */

.main-wrapper {
  grid-area: main;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================================
   Hero
   ============================================================ */

.hero-block {
  background: var(--c-black);
  color: var(--c-white);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 56px 40px;
  position: relative;
  overflow: hidden;
}

.hero-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      rgba(255,255,255,0.03) 48px,
      rgba(255,255,255,0.03) 49px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-text-wrap {
  max-width: 600px;
  text-align: right;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--c-gray-400);
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #555, transparent);
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   正文主容器：main > article > section
   ============================================================ */

.site-main {
  flex: 1;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

.content-article {
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

.content-section {
  padding: 56px 56px 64px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================================
   page.content 正文样式（杂志编辑风格）
   ============================================================ */

.page-content-body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-content-body h1,
.page-content-body h2,
.page-content-body h3,
.page-content-body h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  color: var(--c-black);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-content-body h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  border-top: 3px solid var(--c-black);
  padding-top: 20px;
  margin-top: 3em;
}

.page-content-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.page-content-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-content-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.3em;
  color: var(--c-gray-800);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-content-body > section:first-of-type > p:first-of-type::first-letter,
.page-content-body p.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 4.2rem;
  font-weight: 800;
  float: left;
  line-height: 0.82;
  margin-right: 8px;
  margin-top: 6px;
  color: var(--c-black);
}

.page-content-body ul,
.page-content-body ol {
  margin-left: 1.5em;
  margin-bottom: 1.3em;
  max-width: 100%;
}

.page-content-body li {
  margin-bottom: 0.5em;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-content-body a {
  color: var(--c-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
  overflow-wrap: break-word;
  word-break: break-all;
}

.page-content-body a:hover { opacity: 0.6; }

.page-content-body blockquote {
  border-left: 4px solid var(--c-black);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--c-gray-100);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--c-gray-600);
  max-width: 100%;
  overflow-wrap: break-word;
}

.page-content-body blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  margin-top: 8px;
  color: var(--c-gray-400);
}

.page-content-body figure {
  margin: 2em 0;
  max-width: 100%;
}

.page-content-body figcaption {
  font-size: 0.85rem;
  color: var(--c-gray-600);
  margin-top: 8px;
  letter-spacing: 0.03em;
}

.page-content-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-content-body hr {
  border: none;
  border-top: 1px solid var(--c-gray-200);
  margin: 3em 0;
}

.page-content-body section {
  margin-bottom: 2em;
  max-width: 100%;
  overflow: hidden;
}

.page-content-body section:first-child {
  margin-top: 0;
}

@media (min-width: 860px) {
  .page-content-body .multicolumn,
  .page-content-body .col-2 {
    column-count: 2;
    column-gap: 2.5rem;
    column-rule: 1px solid var(--c-gray-200);
  }
}

.page-content-body .pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  border-top: 3px solid var(--c-black);
  border-bottom: 1px solid var(--c-gray-200);
  padding: 20px 0;
  margin: 2.5em 0;
  color: var(--c-black);
  overflow-wrap: break-word;
}

.page-content-body section + section {
  padding-top: 2em;
  border-top: 1px solid var(--c-gray-200);
}

/* ============================================================
   右侧 Sidebar
   ============================================================ */

.site-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--c-gray-200);
  padding: 40px 20px 24px;
  background: var(--c-white);
}

.sidebar-inner {
  position: sticky;
  top: 40px;
}

.sidebar-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--c-black);
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.sidebar-desc {
  font-size: 0.82rem;
  color: var(--c-gray-400);
  margin-bottom: 20px;
  line-height: 1.5;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
}

.sidebar-nav-list li {
  border-bottom: 1px solid var(--c-gray-200);
}

.sidebar-nav-list li a {
  display: flex;
  align-items: center;
  padding: 10px 4px;
  font-size: 0.88rem;
  color: var(--c-gray-600);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s, padding-left 0.2s;
  min-height: 40px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sidebar-nav-list li a:hover,
.sidebar-nav-list li a:focus {
  color: var(--c-black);
  padding-left: 8px;
}

/* ============================================================
   Footer：三栏，超大品牌字，版权与底部链接分列
   ============================================================ */

.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: 48px 56px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.footer-brand-block {
  grid-column: 1 / -1;
  border-bottom: 1px solid #222;
  padding-bottom: 32px;
  margin-bottom: 32px;
  overflow: hidden;
}

.footer-brand-large {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-white);
  display: block;
  opacity: 0.92;
  overflow-wrap: break-word;
  word-break: break-all;
}

.footer-nav {
  grid-column: 1;
  align-self: start;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav ul li a {
  color: var(--c-gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

.footer-nav ul li a:hover { color: var(--c-white); }

.footer-bottom {
  grid-column: 2 / -1;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.footer-copy,
.footer-note {
  font-size: 0.82rem;
  color: var(--c-gray-400);
  letter-spacing: 0.03em;
}

/* ============================================================
   h2 + p.subtitle 契约
   ============================================================ */

h2 + p.subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  font-size: 1.05rem;
  color: var(--c-gray-600);
  margin-top: -0.3em;
  margin-bottom: 1.2em;
  font-style: italic;
  line-height: 1.6;
}

/* ============================================================
   Scroll Reveal 动效
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .aside-nav ul li a,
  .sidebar-nav-list li a,
  .footer-nav ul li a {
    transition: color 0.18s ease, padding-left 0.18s ease, background 0.18s ease;
  }

  .content-section {
    transition: background 0.3s ease;
  }
}

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

/* ============================================================
   响应式：平板
   ============================================================ */

@media (max-width: 1100px) {
  :root {
    --aside-w: 180px;
    --sidebar-w: 160px;
  }

  .hero-block { padding: 40px 40px 32px; }
  .content-section { padding: 48px 40px 56px; }
  .site-footer { padding: 40px 40px 28px; }
}

/* ============================================================
   响应式：平板竖 / 手机横
   ============================================================ */

@media (max-width: 860px) {
  :root {
    --aside-w: 0px;
    --sidebar-w: 0px;
  }

  .page-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .main-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .site-aside {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 2px solid #222;
    overflow: hidden;
    z-index: 200;
    align-items: center;
  }

  .aside-logo {
    padding: 0 16px 0 0;
    border-bottom: none;
    border-right: 1px solid #333;
    margin-right: 12px;
    width: auto;
    flex-shrink: 0;
  }

  .aside-nav {
    flex: 1;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }

  .aside-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
  }

  .aside-nav ul li {
    border-bottom: none;
    border-right: 1px solid #1a1a1a;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .aside-nav ul li a {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-height: 44px;
    white-space: nowrap;
  }

  .aside-nav ul li a:hover { padding-left: 14px; }

  .aside-brand-vertical { display: none; }

  .nav-contact {
    flex-direction: row;
    padding: 0 0 0 12px;
    border-top: none;
    border-left: 1px solid #333;
    margin-left: auto;
    gap: 8px;
    width: auto;
    flex-shrink: 0;
  }

  .nav-contact-link {
    font-size: 0.78rem;
    min-height: 44px;
  }

  .site-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-left: none;
    border-top: 2px solid var(--c-gray-200);
    padding: 32px 20px;
    display: block;
  }

  .sidebar-inner { position: static; }

  .sidebar-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .sidebar-nav-list li {
    border-bottom: none;
    width: 50%;
  }

  .hero-block {
    min-height: 35vh;
    padding: 28px 20px 24px;
  }

  .hero-text-wrap {
    max-width: 100%;
    text-align: left;
  }
  .hero-sub { margin-left: 0; }

  .content-section {
    padding: 36px 20px 44px;
  }

  .site-footer {
    padding: 36px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }

  .footer-brand-block { margin-bottom: 24px; }
  .footer-nav { margin-bottom: 20px; }
  .footer-nav ul { flex-direction: column; gap: 4px; }
  .footer-bottom { text-align: left; align-items: flex-start; }
}

/* ============================================================
   响应式：手机 375px
   ============================================================ */

@media (max-width: 480px) {
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .page-wrapper,
  .main-wrapper,
  .site-main,
  .content-article,
  .content-section,
  .page-content-body {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .page-content-body h2 {
    font-size: 1.3rem;
    word-break: break-all;
  }

  .page-content-body h3 {
    font-size: 1.1rem;
  }

  .page-content-body p,
  .page-content-body li {
    font-size: 1rem;
  }

  .hero-h1 { font-size: 1.7rem; }
  .footer-brand-large { font-size: 2.2rem; }

  .content-section { padding: 28px 16px 36px; }
  .site-footer { padding: 28px 16px 20px; }

  .aside-nav ul li a {
    padding: 10px 10px;
    min-height: 44px;
    font-size: 0.82rem;
  }

  .sidebar-nav-list li { width: 100%; }

  .footer-nav ul li a {
    min-height: 44px;
    padding: 4px 0;
  }

  section[id] {
    scroll-margin-top: 60px;
  }
}

/* ============================================================
   工具类
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

img { max-width: 100%; height: auto; }

table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}
