:root {
  --bg: #f6efe2;
  --surface: #fff8ed;
  --surface-2: #f0e4d0;
  --text: #2a1f14;
  --text-muted: #5c4638;
  --accent: #9a3412;
  --accent-ink: #fff8ed;
  --border: #d4c0a6;
  --ring: #8b3a1a;
  --ok: #3f6b3a;
  --warn: #9a6b1f;
  --danger: #8b2e1a;
  --info: #3d5a6b;
  --cta-face: #7c2d12;
  --cta-ink: #fff4e6;
  --cta-wash: rgba(244, 196, 120, 0.28);
  --cta-wick: rgba(255, 214, 150, 0.35);
  --fs-h1: 36px;
  --fs-h2: 26px;
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-small: 13px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-1: 0 1px 0 rgba(42, 31, 20, 0.06);
  --container: 760px;
  --container-wide: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 160ms;
  --cta-loop: 2.9s;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-wrap: anywhere;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ring);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

h1,
.h1 {
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: 36px;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
  margin: 0 0 var(--space-5);
}

h2 {
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: 26px;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 var(--space-4);
}

h3 {
  font-size: 20px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 var(--space-3);
}

p {
  margin: 0 0 var(--space-4);
}

.wrap {
  width: min(100% - 32px, var(--container-wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-head {
  border-bottom: 2px solid #8b3a1a;
  background: var(--surface);
}

.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-name {
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.mast {
  padding-block: var(--space-7);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: var(--space-6);
  align-items: center;
}

.mast-kicker {
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.mast img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
}

.tag-rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: 0 var(--space-6);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.tag:hover,
.tag.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.section {
  padding-block: var(--space-7);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-5);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}

tr:hover td {
  background: #faf3e6;
}

.notes {
  display: grid;
  gap: var(--space-4);
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
}

.note h3 {
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
}

.lane-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lane;
}

.lane-list li {
  counter-increment: lane;
  padding: var(--space-4) 0 var(--space-4) 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.lane-list li::before {
  content: counter(lane, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: "KaiTi", "STKaiti", serif;
  color: var(--accent);
  font-size: 18px;
}

.quote {
  margin: 0 0 var(--space-5);
  padding: var(--space-5);
  background: var(--surface-2);
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: 20px;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
}

.chip {
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-foot {
  border-top: 1px solid var(--border);
  padding-block: var(--space-6);
  background: var(--surface);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-5);
}

.foot-brand a {
  color: var(--text);
  font-family: "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: 20px;
  text-decoration: none;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-links a {
  color: var(--text);
  text-decoration: none;
  min-height: 32px;
}

.site-cta {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(520px, 38vw);
  min-width: 400px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--cta-face);
  color: var(--cta-ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.site-cta:hover,
.site-cta:focus-visible {
  color: var(--cta-ink);
  background: #5c210d;
}

.site-cta:active {
  filter: brightness(0.96);
}

.site-cta::before,
.site-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-cta::before {
  inset: 0;
  background: radial-gradient(120% 140% at 28% 40%, var(--cta-wash) 0%, transparent 68%);
  opacity: 0;
  animation: cta-oil var(--cta-loop) var(--ease) infinite;
}

.site-cta::after {
  left: 18%;
  right: 18%;
  bottom: 8px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--cta-wick) 0%, transparent 72%);
  opacity: 0;
  transform: scale(0.96);
  animation: cta-wick var(--cta-loop) var(--ease) infinite;
}

.site-cta > span {
  position: relative;
  z-index: 1;
}

@keyframes cta-oil {
  0%,
  55% {
    opacity: 0;
    transform: scale(0.96);
  }
  68% {
    opacity: 0.28;
    transform: scale(1);
  }
  86%,
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes cta-wick {
  0%,
  62% {
    opacity: 0;
    transform: scale(0.96);
  }
  74% {
    opacity: 0.35;
    transform: scale(1);
  }
  90%,
  100% {
    opacity: 0;
    transform: scale(0.97);
  }
}

.hidden {
  display: none;
}

.notice {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: var(--space-4);
}

@media (max-width: 900px) {
  .mast,
  .split,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  h1,
  .h1 {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-3) var(--space-4) var(--space-4);
    z-index: 20;
  }

  .site-head {
    position: relative;
  }

  .site-nav.is-open {
    display: flex;
  }

  h1,
  .h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .site-cta {
    left: 14px;
    right: 14px;
    width: auto;
    min-width: 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after {
    animation: none;
  }

  .site-cta::before {
    opacity: 0.18;
    transform: scale(1);
  }

  .site-cta::after {
    opacity: 0.22;
    transform: scale(1);
  }
}
