/* ============================================================
   机械表 · 首页 / 全站基础样式
   设计基准宽度 1440，内容栏 1200；断点 1100 / 900 / 620
   ============================================================ */

:root {
  --bg: #0d1420;
  --panel: #141d2b;
  --panel-2: #1a2434;
  --panel-3: #202c3e;
  --accent: #c8a96b;
  --accent-soft: #e3cf9e;
  --ink: #efeae1;
  --muted: #9aa3b1;
  --muted-2: #7c8595;
  --line: rgba(200, 169, 107, 0.22);
  --line-soft: rgba(239, 234, 225, 0.1);
  --wrap: 1200px;
  --gutter: 32px;
  --r-1: 2px;
  --r-2: 999px;
  --shadow-1: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-serif: 'Songti SC',SimSun,'Noto Serif SC',Georgia,serif;
  --font-sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --fs-1: 13px;
  --fs-2: 15px;
  --fs-3: 17px;
  --fs-4: 20px;
  --fs-5: 26px;
  --fs-6: 34px;
  --fs-7: 46px;
  --fs-8: 64px;
  --fs-9: 88px;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 86px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-2);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 82% -8%, rgba(200, 169, 107, 0.1), transparent 65%),
    radial-gradient(700px 420px at 6% 22%, rgba(64, 96, 140, 0.14), transparent 70%);
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(200, 169, 107, 0.35); color: #fff; }

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

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #12161d;
  border-radius: var(--r-1);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 20, 32, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: var(--fs-4);
  letter-spacing: 0.16em;
  color: var(--ink);
  white-space: nowrap;
}
.logo::after {
  content: "";
  width: 1px;
  height: 16px;
  background: var(--line);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: var(--fs-1);
}
.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--accent-soft); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  font-size: var(--fs-1);
  letter-spacing: 0.12em;
}
.nav-toggle[aria-expanded="true"] { color: var(--accent-soft); border-color: var(--accent); }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: 78px 0 66px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-1);
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  margin-top: 18px;
  font-size: var(--fs-9);
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fbf7ee 0%, var(--accent-soft) 62%, #a98a4e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: var(--fs-5);
  color: var(--ink);
}
.hero-lead {
  margin-top: 18px;
  max-width: 30em;
  color: var(--muted);
  font-size: var(--fs-3);
  line-height: 1.9;
}
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}
.hero-stats span {
  padding: 14px 26px;
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  color: var(--muted);
  border-left: 1px solid var(--line-soft);
}
.hero-stats span:first-child { padding-left: 0; border-left: 0; color: var(--accent-soft); }

.hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 20, 32, 0.72) 0%, rgba(13, 20, 32, 0) 38%),
    linear-gradient(0deg, rgba(13, 20, 32, 0.35), rgba(13, 20, 32, 0) 45%);
  pointer-events: none;
}

/* ------------------------------------------------------------ sections */
.section { padding: 76px 0; border-bottom: 1px solid var(--line-soft); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { font-size: var(--fs-6); }
.section-head p { color: var(--muted); font-size: var(--fs-1); letter-spacing: 0.06em; }
.section-eyebrow {
  font-size: var(--fs-1);
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-foot { margin-top: 26px; }
.section-head .more, .section-foot .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-1);
  color: var(--accent-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.section-head .more:hover { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------ category index */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: cat;
}
.cat-card {
  position: relative;
  display: block;
  padding: 28px 26px 26px;
  background: linear-gradient(160deg, var(--panel) 0%, #101827 100%);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--line);
  border-radius: var(--r-1);
  counter-increment: cat;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cat-card::before {
  content: counter(cat, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: var(--fs-5);
  color: var(--accent);
  opacity: 0.55;
  letter-spacing: 0.06em;
}
.cat-card h3 {
  font-size: var(--fs-4);
  color: var(--ink);
  margin-bottom: 10px;
}
.cat-card p { color: var(--muted); font-size: var(--fs-2); line-height: 1.8; }
.cat-card:hover,
.cat-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--panel-2) 0%, #121b2a 100%);
}
.cat-card:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ------------------------------------------------------------ featured */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.featured-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.featured-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
}
.featured-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.featured-body h3 { font-size: var(--fs-4); line-height: 1.5; }
.featured-body p { color: var(--muted); font-size: var(--fs-2); }
.featured-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: var(--fs-1);
  letter-spacing: 0.12em;
  color: var(--accent-soft);
}
.featured-link::after { content: " →"; }

/* ------------------------------------------------------------ anatomy */
.anatomy {
  display: grid;
  grid-template-columns: 0.75fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.anatomy-intro h2 { font-size: var(--fs-6); margin-top: 10px; }
.anatomy-intro p { margin-top: 16px; color: var(--muted); }
.anatomy-foot {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: var(--fs-1);
}
.anatomy-foot .more { margin-left: 12px; color: var(--accent-soft); }
.anatomy-foot .more::after { content: " →"; }
.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  padding: 22px 18px 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 36, 52, 0.6), rgba(13, 20, 32, 0));
}
.step .num {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.step h3 { font-size: var(--fs-3); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: var(--fs-1); line-height: 1.85; }
.step::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -12px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.7;
}
.step:last-child::after { display: none; }

/* ------------------------------------------------------------ styles */
.style-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.shape-item {
  padding: 24px 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  background: var(--panel);
  transition: border-color 0.25s ease;
}
.shape-item:hover { border-color: var(--accent); }
.shape {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 169, 107, 0.16), transparent 62%),
    var(--panel-3);
  box-shadow: inset 0 0 0 6px rgba(200, 169, 107, 0.08);
  opacity: 0.95;
}
.shape::before,
.shape::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--accent-soft);
  transform-origin: left center;
  border-radius: 1px;
}
.shape::before {
  width: 28%;
  height: 1px;
  transform: rotate(-32deg);
}
.shape::after {
  width: 1px;
  height: 34%;
  left: calc(50% - 0.5px);
  top: 16%;
  transform-origin: bottom center;
  background: var(--accent);
}
.shape--round { border-radius: 50%; }
.shape--cushion { border-radius: 30% / 34%; width: 76px; height: 88px; }
.shape--square { border-radius: 2px; }
.shape--odd { border-radius: 52% 18% 46% 30% / 38% 44% 22% 52%; }
.shape-item h3 { font-size: var(--fs-4); margin-bottom: 8px; }
.shape-item p { color: var(--muted); font-size: var(--fs-1); line-height: 1.85; }

/* ------------------------------------------------------------ materials */
.material-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
.material-table th,
.material-table td {
  padding: 20px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.material-table th {
  width: 180px;
  font-family: var(--font-serif);
  font-size: var(--fs-4);
  color: var(--accent-soft);
  white-space: nowrap;
}
.material-table td { color: var(--muted); }
.material-table tr:hover td,
.material-table tr:hover th { background: rgba(200, 169, 107, 0.04); }

/* ------------------------------------------------------------ guide */
.guide {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.guide h2 { font-size: var(--fs-6); }
.guide-list { counter-reset: guide; }
.guide-list p {
  position: relative;
  padding: 20px 0 20px 56px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  counter-increment: guide;
}
.guide-list p:first-child { border-top: 1px solid var(--line); }
.guide-list p::before {
  content: counter(guide, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: var(--fs-3);
}
.guide-list strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ collection note */
.collection-note {
  display: grid;
  grid-template-columns: 0.72fr 1.6fr;
  gap: 48px;
  padding: 44px;
  background:
    radial-gradient(420px 240px at 0% 50%, rgba(200, 169, 107, 0.12), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
}
.collection-note h2 { font-size: var(--fs-5); }
.collection-note .note-body p { color: var(--muted); }
.collection-note .note-body p + p { margin-top: 14px; }
.collection-note .note-mark {
  font-family: var(--font-serif);
  font-size: var(--fs-1);
  letter-spacing: 0.3em;
  color: var(--accent);
}

/* ------------------------------------------------------------ footer */
.site-footer {
  padding: 52px 0 30px;
  background: #0a1019;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: var(--fs-4);
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  margin-bottom: 10px;
}
.footer-brand + p { color: var(--muted); font-size: var(--fs-1); max-width: 26em; }
.footer-label { margin-bottom: 12px; font-size: var(--fs-1); letter-spacing: 0.2em; color: var(--accent); }
.footer-cats { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-cats a { color: var(--muted); font-size: var(--fs-1); }
.footer-cats a:hover { color: var(--accent-soft); }
.footer-note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: var(--fs-1);
}

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  :root { --fs-9: 72px; --fs-7: 40px; --fs-6: 30px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: var(--fs-8); }
  .anatomy { grid-template-columns: 1fr; gap: 28px; }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; --fs-9: 54px; --fs-8: 46px; --fs-6: 26px; --fs-5: 22px; }

  .header-inner { min-height: 60px; gap: 14px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 18px;
    background: #0c131e;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--fs-2);
  }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a[aria-current="page"]::after { display: none; }

  .hero { padding: 48px 0 44px; }
  .hero-lead { font-size: var(--fs-2); }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats span { padding: 10px 16px; font-size: var(--fs-1); }

  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cat-grid,
  .style-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { flex-direction: row; }
  .featured-card img { width: 42%; height: 100%; aspect-ratio: auto; }
  .featured-body { width: 58%; justify-content: center; }
  .guide { grid-template-columns: 1fr; gap: 20px; }
  .collection-note { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  :root { --fs-9: 46px; --fs-8: 36px; --fs-5: 20px; --fs-4: 18px; }

  .cat-grid,
  .featured-grid,
  .style-strip,
  .step-list { grid-template-columns: 1fr; }
  .featured-card { flex-direction: column; }
  .featured-card img,
  .featured-body { width: 100%; }
  .featured-card img { aspect-ratio: 3 / 2; height: auto; }
  .hero-stats span { padding: 8px 12px; }
  .hero-stats span:first-child { padding-left: 0; }
  .material-table th { width: 110px; font-size: var(--fs-3); }
  .material-table th,
  .material-table td { padding: 16px 10px; }
  .collection-note { padding: 22px; }
  .shape { width: 64px; height: 64px; }
  .shape::after { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
