:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --ink: #262b22;
  --body: #3c423a;
  --muted: #6a6a5c;
  --rule: #e0d8c9;
  --accent: #a8352a;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: system-ui, -apple-system, "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .32em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.frame {
  width: min(calc(100% - 44px), 1060px);
  margin-inline: auto;
}

/* ---------- 小标签：编号、眉标、图注统一一套 ---------- */
.eyebrow, .idx, figcaption {
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .22em;
  color: var(--muted);
}

.eyebrow { margin-bottom: 14px; }
.idx {
  margin-bottom: 8px;
  color: var(--accent);
  letter-spacing: .34em;
}

/* ---------- 页眉 ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 84px;
  border-bottom: 1px solid var(--rule);
}

.wordmark { display: block; width: 126px; }

nav { display: flex; gap: 13px; }
nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover { color: var(--accent); }
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
nav a:hover::after { transform: scaleX(1); }

/* ---------- 首屏 ---------- */
.hero { padding-top: 36px; }

h1 {
  font-size: clamp(40px, 12vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
}

.positioning {
  margin-top: 12px;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.6;
  color: var(--body);
  letter-spacing: .04em;
}

.verse {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .07em;
  color: #7c7466;
}
.verse::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 12px;
  background: var(--accent);
  vertical-align: middle;
}

.hero-photo { margin-top: 28px; }

figure img { width: 100%; }
figcaption {
  padding-top: 10px;
  text-align: center;
  letter-spacing: .16em;
}

/* ---------- 版块 ---------- */
.section {
  padding-block: 40px 36px;
  scroll-margin-top: 14px;
}

.hero + .section { margin-top: 28px; }

h2 {
  font-size: clamp(23px, 4.8vw, 27px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
}

/* 统一的版块抬头：编号 + 标题 + 细线 */
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.section-head .idx {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--muted);
}
.section-head h2 { flex: 0 0 auto; }
.section-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--rule), rgba(224, 216, 201, 0));
}

/* ---------- 原创汉服 ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}
.works img { aspect-ratio: 2 / 3; object-fit: cover; }

/* ---------- 环佩琅琅 ---------- */
.game-copy p { max-width: 32em; text-wrap: pretty; }
.game-lead {
  margin-bottom: 6px;
  font-size: 17.5px;
  letter-spacing: .04em;
  color: var(--accent);
}

.game-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
.game-note::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--accent);
  vertical-align: middle;
}

.game-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.game-screen {
  flex: 0 0 auto;
  width: 62%;
  max-width: 220px;
  border: 1px solid var(--rule);
}
.game-screen img { width: 100%; }

.portraits {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.portraits figcaption { font-size: 12px; letter-spacing: .1em; padding-top: 6px; }

/* ---------- 关于我们 ---------- */
.about h2 { margin-bottom: 0; }
.about p { max-width: 32em; text-wrap: pretty; }
.about p + p { margin-top: 12px; }

.about-mark {
  width: 88px;
  margin: 22px 0 0 auto;
  opacity: .92;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding-block: 38px 44px;
  border-top: 1px solid var(--rule);
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 13px 22px 13px 18px;
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.contact-card:hover {
  border-color: var(--accent);
  background: rgba(168, 53, 42, .04);
}
.contact-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--accent);
}
.contact-label {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent);
  line-height: 1.5;
}
.contact-id {
  display: block;
  font-family: var(--sans);
  font-size: 16.5px;
  letter-spacing: .02em;
  line-height: 1.5;
}

.footer-legal {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}
.filing { margin-top: 4px; font-family: var(--sans); }
.filing a { text-decoration: none; }
.filing a:hover { text-decoration: underline; }

/* ---------- 桌面 ---------- */
@media (min-width: 760px) {
  .frame { width: min(calc(100% - 96px), 1060px); }
  .site-header { min-height: 96px; gap: 20px; }
  .wordmark { width: 190px; }
  nav { gap: clamp(18px, 2.2vw, 32px); }
  nav a { font-size: 15px; letter-spacing: .1em; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    align-items: center;
    gap: 56px;
    padding-top: 50px;
  }

  h1 { font-size: clamp(58px, 6.4vw, 80px); letter-spacing: .03em; }
  .positioning { margin-top: 16px; font-size: clamp(20px, 2.1vw, 25px); }
  .verse { margin-top: 34px; font-size: 17.5px; }
  .hero-photo { margin-top: 0; width: min(100%, 424px); justify-self: end; }
  .hero + .section { margin-top: 54px; }

  .section { padding-block: 56px 60px; }
  .section-head { margin-bottom: 30px; }

  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }

  .game-body {
    display: grid;
    grid-template-columns: minmax(0, .74fr) minmax(0, 1.06fr);
    align-items: start;
    gap: 50px;
  }
  .game-visual {
    margin-top: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
  }
  .game-screen { width: 42%; max-width: 246px; }
  .portraits {
    align-self: stretch;
    flex: 1 1 auto;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
  }
  .portraits figure { display: flex; flex-direction: column; min-height: 0; }
  .portraits img {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    object-fit: cover;
  }
  .portraits figcaption { flex: 0 0 auto; }

  .about-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 54px;
  }
  .about-copy { flex: 1 1 auto; }
  .about-mark { flex: 0 0 auto; width: 160px; margin: 0; }

  .site-footer { padding-block: 48px 54px; }
  .footer-legal { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; }
  .filing { margin-top: 0; }
}
