:root {
  --ink: #1F1B18;
  --coral: #FF6B4A;
  --paper: #F7F3EE;
  --card: #FFFCF8;
  --line: rgba(31, 27, 24, 0.16);
  --muted: #574F49;
  --soft: rgba(247, 243, 238, 0.72);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Roboto, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 顶部细条 ---------- */
.ticker {
  height: 38px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 16px;
  letter-spacing: 0.22em;
  font-weight: 500;
}

.tick {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  animation: tickMove 26s linear infinite;
}

.tick span {
  display: inline-block;
  margin-right: 34px;
}

@keyframes tickMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 品牌行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.brandRow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  object-fit: cover;
  display: block;
}

.markTxt {
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  background: var(--coral);
  color: var(--ink);
  border-color: var(--ink);
}

.brandTxt { line-height: 1.1; }

.burger {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.burger:hover { background: var(--coral); }

.bars {
  width: 16px;
  height: 10px;
  display: block;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

html.menuOpen .burger {
  color: var(--paper);
  border-color: var(--paper);
  background: transparent;
}

/* ---------- 全屏遮罩菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-content: center;
  padding: 96px 22px 32px;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

html.menuOpen .menu { opacity: 1; visibility: visible; }

.menu ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  width: min(620px, 88vw);
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 2px;
  color: var(--paper);
  text-decoration: none;
  font-size: clamp(1.25rem, 4.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(247, 243, 238, 0.2);
  transition: color 0.18s, padding-left 0.18s;
}

.menu a:hover {
  color: var(--coral);
  padding-left: 10px;
}

/* ---------- 首屏 ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 22px 34px;
  min-height: 45vh;
  display: grid;
  gap: 22px;
  align-items: center;
}

.hero.withFig { grid-template-columns: 1.15fr 0.85fr; }

.heroTxt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  white-space: pre-wrap;
  font-size: clamp(2.15rem, 7.4vw, 4.3rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(96deg, var(--ink) 26%, var(--coral) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .ch {
  display: inline-block;
  animation: rise 0.6s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.42em) rotate(3deg); }
  to { opacity: 1; transform: none; }
}

.lede {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.heroFig {
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4 / 3;
}

.heroFig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ---------- 正文 + 右栏 ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 22px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 38px;
  align-items: start;
}

.content { min-width: 0; }

.content div {
  display: grid;
  gap: 22px;
}

.content div > section {
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 26px 24px 30px;
  background: var(--card);
  scroll-margin-top: 122px;
}

.content div.reveal > section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.content div.reveal > section.in {
  opacity: 1;
  transform: none;
}

.content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.42rem, 3.4vw, 1.95rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.content h3 {
  margin: 22px 0 8px;
  font-size: 1.16rem;
  line-height: 1.4;
  font-weight: 500;
}

.content p { margin: 0 0 14px; }
.content p:last-child { margin-bottom: 0; }

.content ul,
.content ol { margin: 0 0 14px; padding-left: 1.25em; }

.content li { margin: 7px 0; }

.content a {
  color: var(--ink);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.content a:hover { color: var(--coral); }

.content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 107, 74, 0.08);
  color: var(--ink);
}

.content blockquote p:last-child { margin-bottom: 0; }

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 14px 0;
}

.content th,
.content td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

.content th {
  background: rgba(31, 27, 24, 0.05);
  font-weight: 500;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.content code,
.content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.94em;
}

.content pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: 12px;
  background: rgba(31, 27, 24, 0.06);
}

.content hr {
  border: 0;
  border-top: 1.5px solid var(--line);
  margin: 20px 0;
}

/* ---------- 右栏 ---------- */
.rail {
  position: sticky;
  top: 104px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: transparent;
}

.eyebrow {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--coral);
}

.railTitle {
  margin: 2px 0 8px;
  font-size: 1.06rem;
  line-height: 1.4;
  font-weight: 700;
}

.railNav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.railNav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--muted);
  border-top: 1px solid var(--line);
  transition: color 0.18s;
}

.railNav a:hover { color: var(--coral); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 12px;
  padding: 0 22px 30px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px 18px 0 0;
}

.cta {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(247, 243, 238, 0.2);
}

.ctaWord {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.7rem, 5.6vw, 3rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--paper) 40%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ctaBack {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 16px;
  text-decoration: none;
  color: var(--paper);
  border: 1.5px solid rgba(247, 243, 238, 0.55);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ctaBack:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

.footRow {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
}

.fLogo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
}

.fNav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.fNav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 16px;
  text-decoration: none;
  color: var(--soft);
}

.fNav a:hover { color: var(--coral); }

.copy {
  margin: 0;
  font-size: 16px;
  color: rgba(247, 243, 238, 0.6);
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; gap: 24px; }
  .rail { position: static; order: 2; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero.withFig { grid-template-columns: 1fr; }
  .hero { padding: 20px 18px 26px; min-height: 0; }
  .heroFig { aspect-ratio: 16 / 10; }
  .content div > section { padding: 20px 17px 24px; scroll-margin-top: 108px; }
  .wrap { padding: 10px 18px 44px; }
  .foot { padding: 0 18px 26px; }
  .cta { padding: 34px 0 22px; }
  .content table { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick { animation: none; }
  .hero h1 .ch { animation: none !important; }
  .heroFig img { transform: none !important; }
  .content div.reveal > section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .menu a { transition: none; }
}

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