/* 公共组件：三页共享的 header / footer / 按钮 / 标签 / 表格 / 卡片 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, table { margin-top: 0; }
.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--red-deep);
  color: var(--cream);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 240, 225, .96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}
.site-header.is-scrolled { box-shadow: 0 10px 24px -22px rgba(60, 30, 15, .7); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark { width: 44px; height: 44px; color: var(--red); flex-shrink: 0; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.15;
}
.brand-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  padding: 8px 11px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--red); background: rgba(179, 24, 15, .06); }
.site-nav a[aria-current="page"] { color: var(--red); font-weight: 700; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 10px;
  padding: 9px 18px !important;
  border: 1px solid var(--red) !important;
  border-radius: 999px !important;
  color: var(--red) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--red) !important; color: var(--cream) !important; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream-2);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff7ea; }
.btn-primary:hover { background: var(--red-bright); }
.btn-ghost {
  border: 1px solid rgba(247, 234, 208, .55);
  color: var(--hero-ink);
}
.btn-ghost:hover { background: rgba(247, 234, 208, .12); }
.btn-outline {
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
}
.btn-outline:hover { background: var(--red); color: var(--cream); }
.btn .arrow { width: 13px; height: 13px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

.text-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(179, 24, 15, .3);
}
.text-link:hover { border-bottom-color: var(--red); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--red-deep);
  color: #f7e6cf;
  padding: 22px 0 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 1.5fr;
  gap: 44px;
  align-items: start;
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-mark { color: #f7e6cf; width: 44px; height: 44px; }
.footer-brand strong { display: block; font-size: 18px; letter-spacing: .02em; line-height: 1.3; }
.footer-brand span { display: block; font-size: 10px; letter-spacing: .26em; color: rgba(247, 230, 207, .6); margin-top: 3px; }
.footer-brand p { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: rgba(247, 230, 207, .8); max-width: 320px; }
.footer-index h3 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .18em; color: rgba(247, 230, 207, .62); font-weight: 600; }
.footer-index h3 + ul + h3 { margin-top: 12px; }
.footer-index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-index a { color: #f7e6cf; text-decoration: none; font-size: 12.5px; }
.footer-index a:hover { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.footer-meta {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 12px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(247, 230, 207, .24);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-meta p { margin: 0; font-size: 11.5px; line-height: 1.6; color: rgba(247, 230, 207, .72); max-width: 620px; }
.footer-meta .copyright { font-size: 12px; color: rgba(247, 230, 207, .9); margin-right: 16px; }
.footer-meta > div { display: flex; align-items: center; gap: 10px; }
.to-top { color: #f7e6cf; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.to-top::before { content: "▲"; font-size: 9px; }

/* ---------- shared bits ---------- */
.eyebrow {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: .2em;
  font-weight: 600;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--red-ink);
}
.section-head p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.rule-short { width: 34px; height: 2px; background: var(--red); margin-top: 18px; }

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .brand-text { font-size: 17px; }
  .site-nav a { padding: 8px 8px; font-size: 13px; }
  .nav-cta { padding: 8px 14px !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -26px rgba(60, 30, 15, .6);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; font-size: 15px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 15px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 16px; }
}
