/* 萃术 · 全站共享样式
 * 导航、页脚、按钮、章节头、法律页等通用模块。
 * 单页特有样式在该页 <style> 里。
 */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400&display=swap");

/* Leave room for the fixed or wrapped sticky navigation at in-page anchors. */
html { scroll-padding-top: 96px; }

/* ========== Header ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 24px 64px; display: flex; justify-content: space-between; align-items: center;
  background: rgba(245, 239, 227, 0.88); backdrop-filter: blur(8px);
  z-index: 100; font-size: 12px; letter-spacing: 0.18em;
}
.site-header .brand,
header.nav .brand {
  font-family: var(--serif-cn); font-size: 18px; letter-spacing: 0.08em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.site-header .brand::before,
header.nav .brand::before {
  content: "";
  display: inline-block;
  width: 32px; height: 32px;
  background: url('/assets/brand/cuishu-logo.png') center/contain no-repeat;
  flex-shrink: 0;
}
.site-header nav a {
  margin-left: 32px; opacity: 0.7; transition: opacity 0.2s;
}
.site-header nav a:hover { opacity: 1; }
.site-header nav a.active { opacity: 1; color: var(--vermilion); }

/* Spacer for fixed header */
.header-spacer { height: 64px; }

/* ========== Footer ========== */
.site-footer {
  padding: 40px 64px; border-top: 1px solid rgba(31, 27, 23, 0.08);
  font-family: var(--sans-en); font-size: 11px; color: var(--ink); opacity: 0.55;
  letter-spacing: 0.08em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.site-footer a { transition: opacity 0.2s; }
.site-footer a:hover { opacity: 1; color: var(--vermilion); }
.site-footer span + span,
.site-footer a + a,
.site-footer span + a,
.site-footer a + span { margin-left: 22px; }

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 18px 36px;
  font-family: var(--serif-cn); font-size: 14px; letter-spacing: 0.22em;
  border: 1px solid var(--ink); color: var(--ink);
  background: transparent; cursor: pointer; transition: all 0.3s;
  text-align: center;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--vermilion); border-color: var(--vermilion); }

/* ========== Section base ========== */
.section {
  padding: 12vh 8vw; max-width: 1200px; margin: 0 auto;
}
.section + .section { border-top: 1px solid rgba(31, 27, 23, 0.08); }

.section-head { margin-bottom: 64px; }
.section-head .en {
  font-family: var(--serif-en); font-style: italic; font-size: 13px;
  color: var(--teal); letter-spacing: 0.22em; text-transform: uppercase;
}
.section-head .zh {
  font-family: var(--serif-cn); font-size: 32px; color: var(--ink);
  margin-top: 14px; letter-spacing: 0.18em; font-weight: 400;
}

/* ========== Legal / long-form pages ========== */
.legal-page {
  max-width: 760px; margin: 120px auto 64px; padding: 0 8vw;
  font-family: var(--serif-cn);
}
.legal-page h1 {
  font-size: 36px; letter-spacing: 0.16em; font-weight: 400;
  margin-bottom: 8px; color: var(--ink);
}
.legal-page .meta {
  font-family: var(--serif-en); font-style: italic; font-size: 13px;
  color: var(--teal); letter-spacing: 0.16em; margin-bottom: 48px;
}
.legal-page h2 {
  font-size: 21px; letter-spacing: 0.12em; font-weight: 400;
  margin: 48px 0 18px; color: var(--ink);
}
.legal-page h3 {
  font-size: 16px; letter-spacing: 0.1em; font-weight: 400;
  margin: 32px 0 12px; color: var(--ink-green);
}
.legal-page p {
  font-size: 15px; line-height: 2.0; color: var(--ink);
  letter-spacing: 0.04em; margin-bottom: 16px;
}
.legal-page ul, .legal-page ol {
  margin: 12px 0 20px; padding-left: 24px;
  font-size: 15px; line-height: 2.0; color: var(--ink);
  letter-spacing: 0.04em;
}
.legal-page li { margin-bottom: 8px; }
.legal-page strong { font-weight: 500; color: var(--ink); }
.legal-page hr {
  border: 0; border-top: 1px solid rgba(31, 27, 23, 0.1);
  margin: 48px 0;
}
.legal-page a {
  color: var(--vermilion); border-bottom: 1px solid currentColor;
}
.legal-page table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px;
}
.legal-page th, .legal-page td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid rgba(31, 27, 23, 0.1);
}
.legal-page th {
  font-weight: 500; color: var(--ink-green); letter-spacing: 0.08em;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .site-header { padding: 18px 24px; }
  .site-header nav a { margin-left: 18px; font-size: 11px; }
  .site-footer { padding: 32px 24px; flex-direction: column; }
  .site-footer span + span, .site-footer a + a,
  .site-footer span + a, .site-footer a + span { margin-left: 0; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 144px; }
  .site-header {
    position: sticky;
    padding: 14px 24px;
    flex-direction: column;
    gap: 12px;
  }
  .site-header .brand { flex-shrink: 0; white-space: nowrap; }
  .site-header nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .site-header nav a { margin-left: 0; white-space: nowrap; }
  .header-spacer { display: none; }
}
