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

/* ===========================
   CSS 变量 & 基础重置
=========================== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --yellow: #fff176;
  --bg: #f7f5f0;
  --border: 3px solid var(--black);
  --shadow: 5px 5px 0 var(--black);
  --shadow-sm: 3px 3px 0 var(--black);
  --radius: 0px;
  --font-serif: 'Libre Baskerville', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Cormorant Garamond', Georgia, serif;
  --nav-h: 64px;
  --anchor-h: 44px;
  --header-total: calc(var(--nav-h) + var(--anchor-h));
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

body {
  font-family: var(--font-serif);
  color: var(--black);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===========================
   滚动偏移（吸顶导航补偿）
=========================== */
div[id] {
  scroll-margin-top: calc(var(--header-total) + 16px);
}

/* ===========================
   顶部主导航
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--blue);
  border-bottom: var(--border);
  height: var(--nav-h);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black);
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  min-height: 40px;
  line-height: 1.3;
  align-items: center;
  display: inline-flex;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--black);
  color: var(--blue);
  border-color: var(--black);
  box-shadow: 3px 3px 0 var(--white);
  outline: none;
}

.nav-brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: var(--black);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.brand-link:hover {
  box-shadow: 7px 7px 0 var(--white);
  transform: translate(-2px, -2px);
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--black);
  transition: transform 0.2s;
}

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

/* 移动端抽屉 */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--blue);
  border-bottom: var(--border);
  padding: 8px 0;
}

.nav-drawer.open {
  display: flex;
}

.drawer-link {
  display: block;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  border-bottom: 2px solid rgba(0,0,0,0.15);
  min-height: 48px;
  transition: background 0.15s;
}

.drawer-link:hover {
  background: var(--black);
  color: var(--blue);
}

/* ===========================
   粘性锚点条
=========================== */
.sticky-anchors {
  position: sticky;
  top: var(--nav-h);
  z-index: 190;
  background: var(--black);
  border-bottom: var(--border);
  height: var(--anchor-h);
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-anchors::-webkit-scrollbar { display: none; }

.anchors-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  white-space: nowrap;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 100%;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  border-right: 2px solid rgba(255,255,255,0.15);
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
}

.anchor-link:first-child { border-left: 2px solid rgba(255,255,255,0.15); }

.anchor-link:hover,
.anchor-link:focus {
  background: var(--blue);
  color: var(--black);
  outline: none;
}

/* ===========================
   Hero 区块
=========================== */
.hero-block {
  background: var(--white);
  border-bottom: var(--border);
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--black);
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--blue);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
  min-height: 48px;
}

.hero-cta:hover {
  box-shadow: 8px 8px 0 var(--black);
  transform: translate(-3px, -3px);
}

.hero-media {
  flex: 0 0 420px;
  max-width: 420px;
  position: relative;
}

.hero-img {
  width: 100%;
  border: var(--border);
  box-shadow: 8px 8px 0 var(--black);
  display: block;
}

.hero-media-placeholder {
  width: 100%;
  min-height: 340px;
  background: var(--blue);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.placeholder-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.placeholder-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.1em;
}

.hero-float-tag {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--black);
  transform: rotate(3deg);
}

/* ===========================
   主内容区
=========================== */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.main-article {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ===========================
   侧边栏
=========================== */
.content-aside {
  flex: 0 0 240px;
  position: sticky;
  top: calc(var(--header-total) + 24px);
  background: var(--black);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  order: 2;
}

.aside-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.aside-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-link {
  display: block;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: var(--white);
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 40px;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

.aside-link:hover,
.aside-link:focus {
  background: var(--blue);
  color: var(--black);
  border-color: var(--blue);
  outline: none;
}

/* ===========================
   正文内容区
=========================== */
.content-section {
  flex: 1;
  min-width: 0;
  order: 1;
}

/* 正文内 div 区块通用样式 */
.content-section > div,
main > section > div > div {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 3px solid var(--black);
}

.content-section > div:last-child {
  border-bottom: none;
}

/* 正文中 h2 样式 */
.content-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--black);
  background: var(--blue);
  display: inline-block;
  padding: 4px 16px 4px 0;
  border-left: 8px solid var(--black);
  padding-left: 14px;
  box-shadow: 4px 4px 0 var(--black);
}

/* h2 前的 small 眉题 */
small + h2,
small + h3 {
  margin-top: 6px;
}

.content-section small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 6px;
  text-transform: none;
}

/* h3 样式 */
.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--black);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 4px;
}

/* 段落 */
.content-section p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 16px;
  color: #1a1a1a;
}

/* 列表 */
.content-section ul,
.content-section ol {
  margin-bottom: 16px;
  padding-left: 0;
}

.content-section ul li,
.content-section ol li {
  padding: 8px 12px 8px 20px;
  margin-bottom: 6px;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--blue);
  border: 2px solid var(--black);
}

.content-section ol {
  counter-reset: ol-counter;
}

.content-section ol li {
  counter-increment: ol-counter;
}

.content-section ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 6px;
  top: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--black);
  background: var(--blue);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black);
}

/* 强调 */
.content-section strong {
  font-weight: 700;
  background: var(--yellow);
  padding: 0 3px;
}

/* 设问句（blockquote 风格） */
.content-section blockquote {
  border-left: 6px solid var(--red);
  background: var(--white);
  border: 3px solid var(--black);
  border-left: 6px solid var(--red);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 1.05rem;
}

/* 表格 */
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  border: var(--border);
  box-shadow: var(--shadow);
}

.content-section th {
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  border: var(--border);
}

.content-section td {
  padding: 10px 14px;
  border: 2px solid var(--black);
  background: var(--white);
  font-size: 0.95rem;
}

.content-section tr:nth-child(even) td {
  background: var(--bg);
}

/* ===========================
   页脚（极简：仅 p + small）
=========================== */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  padding: 48px 24px 32px;
  text-align: center;
}

/* footer 内的 nav > dl 导航（footer 极简约束外的辅助 nav 块） */
.footer-nav-block {
  max-width: 900px;
  margin: 0 auto 40px;
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 0;
  justify-content: center;
  border: var(--border);
  border-color: rgba(255,255,255,0.3);
  padding: 20px 24px;
}

.footer-dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  margin-right: 16px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.footer-dd {
  display: inline-flex;
}

.footer-a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.2);
  margin: 3px;
  min-height: 40px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.footer-a:hover,
.footer-a:focus {
  background: var(--blue);
  color: var(--black);
  border-color: var(--blue);
  outline: none;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  display: block;
}

/* ===========================
   卡片（正文内可能用到）
=========================== */
.card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 4px;
  padding: 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  box-shadow: 8px 8px 0 var(--black);
  transform: translate(-3px, -3px);
}

/* ===========================
   滚动揭示动效
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .hero-cta,
  .brand-link,
  .card {
    transition: none;
  }
}

/* ===========================
   响应式
=========================== */
@media (max-width: 1024px) {
  .hero-media {
    flex: 0 0 320px;
    max-width: 320px;
  }
  .content-aside {
    flex: 0 0 200px;
  }
}

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

  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    flex-direction: column;
    gap: 32px;
    padding: 40px 20px;
    text-align: left;
  }

  .hero-media {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .hero-media-placeholder {
    min-height: 220px;
  }

  .hero-h1 {
    font-size: 1.8rem;
  }

  .main-article {
    flex-direction: column;
    gap: 32px;
  }

  .content-aside {
    flex: none;
    width: 100%;
    position: static;
    order: -1;
  }

  .aside-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-link {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

  .site-main {
    padding: 32px 16px 48px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .hero-block {
    min-height: auto;
  }

  .footer-dl {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .footer-dt {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .anchors-inner {
    padding: 0 12px;
  }

  .anchor-link {
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .hero-badge {
    font-size: 0.78rem;
  }

  .hero-float-tag {
    top: -10px;
    right: -10px;
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .content-section h2 {
    font-size: 1.3rem;
  }

  .site-footer {
    padding: 36px 16px 24px;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
