﻿:root {
  --paper: #f6f2e9;
  --card: #fffcf5;
  --ink: #23201b;
  --coral: #d9503c;
  --green: #2f5a4b;
  --muted: #7d756a;
  --line: rgba(35, 32, 27, 0.14);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  background:
    linear-gradient(90deg, rgba(35, 32, 27, 0.035) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol,
dl {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.wrap {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

.kicker,
.sec-no {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--coral);
}

/* Top */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 242, 233, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.top-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.top-nav a {
  font-size: 0.83rem;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.top-nav a:hover,
.top-nav a.is-current {
  color: var(--ink);
  border-color: var(--coral);
}

.top-btn:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--card);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.top-btn:not([hidden]):hover {
  background: var(--coral);
}

/* Cover */
.cover {
  padding: 76px 0 66px;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 54px;
  align-items: center;
}

.cover-copy h1 {
  margin: 18px 0 24px;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.22;
}

.h1-brand {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.36em;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.mark {
  background-image: linear-gradient(transparent 68%, rgba(217, 80, 60, 0.28) 68%);
}

.cover-lede {
  max-width: 34em;
  font-size: 0.96rem;
  line-height: 1.95;
  color: var(--muted);
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.solid-btn:not([hidden]),
.line-btn:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.solid-btn {
  background: var(--coral);
  color: #fff7f0;
}

.solid-btn:hover {
  background: #bf4432;
}

.line-btn {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.line-btn:hover {
  background: var(--ink);
  color: var(--card);
}

.quiet-link {
  font-size: 0.84rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.quiet-link:hover {
  color: var(--coral);
}

/* Fact sheet */
.fact-sheet {
  padding: 30px 30px 26px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(47, 90, 75, 0.14);
}

.sheet-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--green);
}

.fact-sheet dl {
  display: grid;
  gap: 0;
}

.fact-sheet dl > div {
  display: grid;
  grid-template-columns: 6.4em 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.fact-sheet dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-sheet dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.fact-sheet dd {
  font-size: 0.86rem;
  font-family: var(--mono);
  line-height: 1.6;
}

/* Sections */
.interface,
.fields,
.steps,
.faq,
.download {
  padding: 66px 0;
  border-top: 1px solid var(--line);
}

.actions {
  padding: 66px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 34px;
}

.sec-no {
  padding-top: 8px;
  color: var(--coral);
}

.sec-head h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.sec-head p {
  max-width: 44em;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Plate */
.plate {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(35, 32, 27, 0.07);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 200px));
  justify-content: center;
  align-items: start;
  gap: 18px;
}

.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.shot img {
  width: 100%;
  height: auto;
}

/* Actions */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 54px;
  border-top: 1px solid var(--line);
}

.action-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.action-key {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}

.action-row p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--ink);
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead th {
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  color: var(--card);
  background: var(--green);
}

tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

tbody td:first-child {
  width: 140px;
  font-weight: 700;
  color: var(--ink);
}

tbody td:nth-child(2) {
  font-family: var(--mono);
  font-size: 0.8rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Zones */
.zone-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.zone-band article {
  padding: 22px 22px 26px;
  border-right: 1px solid var(--line);
}

.zone-band article:last-child {
  border-right: 0;
}

.zone-no {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--coral);
}

.zone-band h3 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 1.16rem;
}

.zone-band p {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Steps */
.step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}

.step-row li {
  padding: 24px 28px 10px 0;
  border-right: 1px solid var(--line);
}

.step-row li:last-child {
  border-right: 0;
}

.step-row span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--coral);
}

.step-row h3 {
  margin: 10px 0 8px;
  font-size: 1.16rem;
}

.step-row p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.52fr 1.48fr;
  gap: 54px;
  align-items: start;
}

.faq-side h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.faq-side > p:last-child {
  font-size: 0.86rem;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "＋";
  font-size: 0.9rem;
  color: var(--coral);
}

.faq-list details[open] summary::after {
  content: "－";
}

.faq-list details p {
  padding: 0 0 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Download */
.dl-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  margin-bottom: 32px;
}

.dl-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.dl-head p {
  grid-column: 2;
  max-width: 34em;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.dl-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.dl-item:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 24px 26px;
  background: var(--card);
  border: 1px solid var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dl-item:not([hidden]):hover {
  box-shadow: 8px 8px 0 rgba(217, 80, 60, 0.2);
  transform: translate(-2px, -2px);
}

.dl-item span {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dl-item strong {
  font-family: var(--serif);
  font-size: 1.22rem;
}

.dl-item p {
  font-size: 0.82rem;
  color: var(--muted);
}

.dl-item.is-main {
  background: var(--green);
  color: var(--card);
}

.dl-item.is-main span,
.dl-item.is-main p {
  color: rgba(255, 252, 245, 0.72);
}

/* Footer */
.foot {
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  padding: 32px 0;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.foot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.foot-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.foot-brand strong {
  font-family: var(--serif);
  font-size: 0.94rem;
}

.foot-brand em {
  font-style: normal;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.foot-note {
  flex: 1 1 260px;
  font-size: 0.74rem;
  color: var(--muted);
}

.foot-nav {
  display: flex;
  gap: 16px;
}

.foot-nav a {
  font-size: 0.78rem;
  color: var(--muted);
}

.foot-nav a:hover {
  color: var(--coral);
}

/* 404 */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
}

.error-page img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.error-code {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--coral);
}

.error-page h1 {
  margin: 12px 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.error-page p {
  max-width: 30em;
  color: var(--muted);
}

.error-btn:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 24px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--card);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .top-btn:not([hidden]) {
    margin-left: auto;
  }

  .cover-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .fact-sheet {
    max-width: 480px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .zone-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .zone-band article:nth-child(2) {
    border-right: 0;
  }

  .zone-band article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .cover {
    padding: 48px 0 44px;
  }

  .interface,
  .actions,
  .fields,
  .steps,
  .faq,
  .download {
    padding: 46px 0;
  }

  .plate {
    padding: 14px;
  }

  .shot-row {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .shot {
    flex: 0 0 min(62vw, 200px);
    scroll-snap-align: start;
  }

  .step-row {
    grid-template-columns: 1fr;
  }

  .step-row li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .step-row li:last-child {
    border-bottom: 0;
  }

  .dl-row {
    grid-template-columns: 1fr;
  }

  .sec-head {
    gap: 14px;
  }

  .dl-head {
    grid-template-columns: 1fr;
  }

  .dl-head p {
    grid-column: 1;
  }
}

@media (max-width: 420px) {
  .brand em {
    font-size: 0.6rem;
  }

  .cover h1 {
    font-size: 2.05rem;
  }

  .cover-actions .solid-btn:not([hidden]),
  .cover-actions .line-btn:not([hidden]) {
    flex: 1 1 100%;
  }

  .action-row {
    grid-template-columns: 84px 1fr;
    gap: 12px;
  }
}
