/* ============================================================
   Fanxing Printing — site stylesheet
   Plain CSS, no framework, no external fonts.
   ============================================================ */

:root {
  --ink: #121416;
  --ink-2: #33383d;
  --muted: #6b7176;
  --paper: #fbf9f5;
  --paper-2: #f2eee5;
  --line: #e2dbcf;
  --kraft: #a9723c;
  --kraft-d: #85562b;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
  white-space: nowrap;
}

.brand .cn {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a { color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--kraft); }
.nav a.active { color: var(--ink); border-bottom-color: var(--ink); }

.lang {
  font-size: 12px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.lang:hover { border-color: var(--ink); }

.burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  padding: 10px;
}
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 4px 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(40px, 6vw, 64px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kraft-d);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--kraft);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  max-width: 15ch;
  letter-spacing: -0.035em;
}

.hero .lede {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.spec-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.spec-card .cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 500; text-align: right; }

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section.tight { padding: clamp(40px, 6vw, 64px) 0; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; font-size: 15px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card .shot {
  aspect-ratio: 4 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card .shot img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.card .shot.art { background: var(--paper-2); }
.card .shot.art img { padding: 26px; }

.card .shot.plate { background: var(--paper-2); flex-direction: column; gap: 6px; }
.plate-num {
  font-family: var(--mono);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.plate-cap {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.card .shot.empty { background: repeating-linear-gradient(135deg, #f6f2ea, #f6f2ea 10px, #f1ebe0 10px, #f1ebe0 11px); }

.card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
.card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.card .meta {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 30px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; }
.stat .l { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.step { counter-increment: step; }
.step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--kraft);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--line);
}
table.spec th, table.spec td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.spec th {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: var(--paper-2);
}
table.spec tr:last-child td { border-bottom: 0; }
table.spec td.num { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }

/* ---------- product block ---------- */

.product { padding: 44px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px 56px; margin-bottom: 26px; }
.product-head h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.product-head .desc { color: var(--ink-2); font-size: 15px; }

.notes { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* ---------- cta band ---------- */

.band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 88px) 0;
}
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 22ch; }
.band p { color: #b9bec3; max-width: 50ch; margin-top: 18px; }
.band .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); margin-top: 30px; }
.band .btn:hover { background: #fff; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer li { margin-bottom: 8px; color: var(--ink-2); }
.site-footer a:hover { color: var(--kraft-d); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }

.contact-list dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { margin: 0 0 22px; font-size: 15.5px; }
.contact-list dd a:hover { color: var(--kraft-d); }

/* ---------- misc ---------- */

.notice {
  border-left: 2px solid var(--kraft);
  background: var(--paper-2);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 26px 0;
}

.page-head { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; }
.page-head p { margin-top: 20px; max-width: 60ch; color: var(--ink-2); }

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.prose p { color: var(--ink-2); }
.prose li { color: var(--ink-2); margin-bottom: 10px; padding-left: 18px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 1px; background: var(--kraft); }

.facts { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 30px 0; }
.facts th {
  text-align: left;
  width: 34%;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
  vertical-align: top;
}
.facts td { padding: 12px 0; border-bottom: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 30px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-head { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { height: 60px; gap: 16px; }
  .nav {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active, .nav a:hover { border-bottom-color: var(--line); color: var(--kraft-d); }
  .burger { display: block; margin-left: 10px; }
  .lang { margin-left: auto; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { max-width: none; }
}
