/* 浅色是纸，深色是摄影棚的炭黑。琥珀只用来划线（mark），不做链接和按钮。 */
:root {
  --bg: #f7f4ee;
  --ink: #1f1b16;
  --ink2: #5e554a;
  --muted: #7b7266;
  --line: rgba(31, 27, 22, 0.1);
  --mark: #f4b232;
  --mark-ink: #141415;
  --stage: #141415;
  --serif:
    "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", Georgia,
    serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141415;
    --ink: #efe9de;
    --ink2: #aaa398;
    --muted: #8a847a;
    --line: rgba(239, 233, 222, 0.1);
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-text-size-adjust: 100%;
}
header,
main,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶栏 */
header {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  border-bottom: 1px solid var(--line);
}
.brand {
  margin-right: auto;
  color: var(--ink);
  font: 500 18px/1 var(--serif);
  text-decoration: none;
}
.brand span {
  margin-left: 8px;
  color: var(--muted);
  font: 400 14px/1 var(--sans);
}
nav {
  display: flex;
  gap: 24px;
}
nav a {
  color: var(--ink2);
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms var(--ease);
}
nav a:hover,
nav a[aria-current] {
  color: var(--ink);
}
nav a[aria-current] {
  font-weight: 500;
}

/* 正文 */
a {
  color: var(--ink);
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms var(--ease);
}
a:hover {
  text-decoration-color: var(--ink);
}
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}
main {
  padding-top: 48px;
}
h1 {
  margin: 0 0 8px;
  font: 500 32px/1.25 var(--serif);
}
h2 {
  margin: 40px 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
p,
ul {
  margin: 12px 0;
}
ul {
  padding-left: 20px;
}
li + li {
  margin-top: 4px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
mark {
  padding: 0 4px;
  border-radius: 2px;
  background: var(--mark);
  color: var(--mark-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
section + section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
footer {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer a {
  color: inherit;
}

/* 首页：上半屏是摄影棚里的手表和纸带，不随系统浅色变化 */
.home header,
.home main,
.home footer {
  max-width: 1120px;
  padding-left: 32px;
  padding-right: 32px;
}
.home main {
  max-width: none;
  padding: 0;
}
.stage {
  --ink: #efe9de;
  --ink2: #aaa398;
  --muted: #8a847a;
  --line: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--stage);
  color: var(--ink);
}
.scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}
/* 让标题一侧和底边融进炭黑，文字始终压在暗处 */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      var(--stage) 0%,
      rgba(20, 20, 21, 0.8) 32%,
      rgba(20, 20, 21, 0) 60%
    ),
    linear-gradient(0deg, var(--stage) 0%, rgba(20, 20, 21, 0) 24%);
}
.hero {
  display: flex;
  align-items: center;
  max-width: 1120px;
  min-height: clamp(520px, calc(100svh - 160px), 720px);
  margin: 0 auto;
  padding: 32px 32px 64px;
}
.hero-text {
  max-width: 544px;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.2;
}
.lede {
  max-width: 480px;
  margin: 0 0 32px;
  color: var(--ink2);
  font-size: 18px;
  line-height: 32px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  background: #efe9de;
  color: #141415;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 150ms var(--ease),
    transform 150ms var(--ease);
}
.button:hover {
  background: #fff;
}
.button:active {
  transform: scale(0.98);
}
.button:focus-visible {
  outline-color: #efe9de;
  border-radius: 10px;
}
.lede mark {
  white-space: nowrap;
}
.note {
  color: var(--ink2);
  font-size: 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 32px;
}
.facts div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.facts h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 24px;
}
.facts p {
  margin: 0;
  color: var(--ink2);
  font-size: 14px;
  line-height: 24px;
}
.english {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  border-top: 0;
}
.english > * {
  max-width: 576px;
}
.english h2 {
  margin: 0 0 12px;
  font:
    500 28px/1.25 Georgia,
    "Times New Roman",
    serif;
}
.english p {
  margin: 0 0 16px;
  color: var(--ink2);
}
.english ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.english li + li {
  margin-top: 0;
}

@media (max-width: 720px) {
  header,
  main,
  footer,
  .home header,
  .home footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  h1 {
    font-size: 28px;
  }
  .brand span {
    display: none;
  }
  nav {
    gap: 16px;
  }
  /* 手机上图排在文字和按钮后面，只留手表和纸带那一侧 */
  .stage::before {
    display: none;
  }
  .scene {
    position: static;
    display: block;
    height: auto;
    aspect-ratio: 1 / 1;
    object-position: 86% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%);
    mask-image: linear-gradient(180deg, transparent, #000 16%);
  }
  .hero h1 {
    font-size: clamp(28px, 8.5vw, 36px);
  }
  .hero {
    min-height: 0;
    padding: 48px 16px 16px;
  }
  .lede {
    font-size: 16px;
    line-height: 28px;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 16px;
  }
  .english {
    padding: 0 16px;
  }
}
