/* ============================================================
   RYUICHI SIGNS — Global Design System
   Industrial precision: charcoal / steel / amber glow
   ============================================================ */

:root {
  --ink: #0e1116;
  --ink-2: #151a21;
  --ink-3: #1d242e;
  --paper: #f7f6f3;
  --paper-2: #efede8;
  --line: #e3e0d8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --steel: #5c6672;
  --steel-light: #9aa4af;
  --amber: #eda63a;
  --amber-deep: #d18a1f;
  --white: #ffffff;
  --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --w-max: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 20px 60px rgba(10, 14, 20, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

::selection { background: var(--amber); color: var(--ink); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .muted { color: var(--steel-light); }
.section--tint { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--amber-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber); }
.section--dark .eyebrow { color: var(--amber); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
.muted { color: var(--steel); }
.lead { font-size: 18px; color: var(--steel); margin-top: 16px; }
.section--dark .lead { color: var(--steel-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; border-radius: 2px;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-deep); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.on { background: rgba(12, 15, 20, 0.92); backdrop-filter: blur(10px); border-bottom-color: var(--line-dark); }
.header-in {
  max-width: var(--w-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 74px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; z-index: 95; flex-shrink: 0; }
.brand img { height: 36px; width: auto; max-width: 140px; display: block; object-fit: contain; }
.brand span { font-size: 9px; letter-spacing: 0.08em; color: var(--amber); margin-top: 4px; font-weight: 600; white-space: nowrap; }
.footer-top .brand img { height: 30px; }
.footer-top .brand span { font-size: 9.5px; letter-spacing: 0.12em; }
@media (max-width: 1024px) {
  .brand img { height: 32px; }
  .brand span { font-size: 8px; letter-spacing: 0.05em; }
}
@media (max-width: 768px) {
  .brand img { height: 30px; }
  .brand span { display: none; }
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: rgba(255, 255, 255, 0.82); font-size: 14.5px; font-weight: 500;
  padding: 6px 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--amber); transition: width 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
/* 用 .nav a.btn-quote 提升权重，避免被 .nav a 的 padding: 6px 0 覆盖为 0 */
.nav a.btn-quote { padding: 11px 26px; font-size: 13.5px; }
.lang {
  display: flex; align-items: center; gap: 2px; border: 1px solid var(--line-dark);
  border-radius: 2px; padding: 3px;
}
.lang a {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6);
  padding: 5px 9px; letter-spacing: 0.04em; border-radius: 1px;
}
.lang a.active { background: var(--amber); color: var(--ink); }
.lang a:hover:not(.active) { color: var(--white); }
.burger {
  display: none; z-index: 95; width: 44px; height: 44px; border: 0;
  background: transparent; position: relative;
}
.burger i {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px auto; transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero--sub { min-height: 56svh; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(12deg, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.55) 44%, rgba(8, 10, 14, 0.22) 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-bottom: 110px; padding-top: 160px; }
.hero__tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(237, 166, 58, 0.45); padding: 8px 16px;
  margin-bottom: 26px; backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.02em;
  max-width: 15ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { max-width: 52ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.85); margin: 22px 0 36px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__crumbs { font-size: 13px; letter-spacing: 0.08em; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.hero__crumbs a:hover { color: var(--amber); }
/* staggered entrance */
.up { opacity: 0; transform: translateY(30px); animation: up 0.9s var(--ease) forwards; }
.up.d1 { animation-delay: 0.12s; } .up.d2 { animation-delay: 0.26s; }
.up.d3 { animation-delay: 0.4s; }  .up.d4 { animation-delay: 0.54s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* hero bottom strip */
.hero-strip { border-top: 1px solid var(--line-dark); margin-top: 72px; padding-top: 28px; display: flex; gap: clamp(28px, 6vw, 96px); flex-wrap: wrap; }
.hero-strip div b { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--white); }
.hero-strip div b i { font-style: normal; color: var(--amber); }
.hero-strip div span { font-size: 13px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.06em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .up { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero__bg img { animation: none; }
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.stats > div { border-right: 1px solid var(--line); padding: 34px 28px; }
.stats b { font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1; }
.stats b i { font-style: normal; color: var(--amber-deep); }
.stats span { font-size: 13.5px; color: var(--steel); letter-spacing: 0.05em; display: block; margin-top: 10px; }

/* ---------- Product / case grids (cardless tiles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tile { position: relative; overflow: hidden; background: var(--ink-2); }
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__body { position: absolute; inset: auto 0 0 0; padding: 84px 24px 22px; background: linear-gradient(transparent, rgba(8, 10, 14, 0.9)); color: var(--white); }
.tile__body h3 { font-size: 19px; margin-bottom: 6px; }
.tile__body p { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); line-height: 1.5; }
.tile__no {
  position: absolute; top: 18px; left: 20px; font-size: 12px; letter-spacing: 0.18em;
  color: var(--amber); font-weight: 700; z-index: 2;
}
.tile--wide { grid-column: span 2; }
.tile--wide .tile__img { aspect-ratio: 16 / 9; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }

/* list rows (capabilities / trade) */
.rows { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: 84px 1.1fr 2fr; gap: 28px; align-items: baseline;
  padding: 30px 4px; border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.row-item:hover { background: rgba(237, 166, 58, 0.06); }
.row-item .no { font-size: 13px; font-weight: 700; color: var(--amber-deep); letter-spacing: 0.14em; }
.row-item h3 { font-size: 20px; }
.row-item p { color: var(--steel); font-size: 15px; }
.section--dark .rows, .section--dark .row-item { border-color: var(--line-dark); }
.section--dark .row-item:hover { background: rgba(237, 166, 58, 0.08); }
.section--dark .row-item p { color: var(--steel-light); }

/* spec table (trade) */
.spec { border-top: 1px solid var(--line-dark); }
.spec > div {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  padding: 24px 4px; border-bottom: 1px solid var(--line-dark);
}
.spec dt { font-weight: 700; font-size: 15px; color: var(--amber); letter-spacing: 0.04em; }
.spec dd { color: rgba(247, 246, 243, 0.85); font-size: 15px; }

/* steps timeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-left: 1px solid var(--line); }
.steps li { border-right: 1px solid var(--line); padding: 30px 26px 34px; position: relative; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 13px; font-weight: 800; color: var(--amber-deep); letter-spacing: 0.1em;
}
.steps h3 { font-size: 17px; margin: 14px 0 10px; }
.steps p { font-size: 14px; color: var(--steel); }

/* split media blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split__img { position: relative; }
.split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__img::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--amber); z-index: -1; opacity: 0.55;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* checklist */
.checks li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; color: rgba(247,246,243,0.88); }
.checks li::before { content: "→"; color: var(--amber); font-weight: 700; }
.section:not(.section--dark):not(.quote-band) .checks li, .section--tint .checks li { color: var(--ink); border-bottom-color: var(--line); }

/* case list (projects page) */
.case-list { margin-top: 28px; }
.case-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.case-item:first-child { padding-top: 0; }
.case-item:last-child { border-bottom: none; padding-bottom: 0; }
.case-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.case-item h3 .tag { font-size: 11px; font-weight: 600; color: var(--amber); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.case-item p { font-size: 14px; color: var(--steel); line-height: 1.6; margin-bottom: 6px; }
.case-item .feats { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.case-item .feats span { font-size: 13px; color: var(--steel); }
.case-item .feats span::before { content: "→ "; color: var(--amber); font-weight: 700; }
.section--dark .case-item { border-bottom-color: var(--line-dark); }
.section--dark .case-item p, .section--dark .case-item .feats span { color: var(--steel-light); }

/* certificates */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert {
  background: var(--ink-2); border: 1px solid var(--line-dark); aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px; transition: border-color 0.3s, transform 0.3s var(--ease);
}
.cert:hover { border-color: var(--amber); transform: translateY(-4px); }
.cert b { font-size: 26px; letter-spacing: 0.08em; color: var(--paper); }
.cert span { font-size: 12.5px; color: var(--steel-light); letter-spacing: 0.06em; }
.cert i { width: 40px; height: 3px; background: var(--amber); font-style: normal; }

/* ---------- Case filter ---------- */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter button {
  padding: 10px 20px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em;
  background: transparent; border: 1px solid var(--line); color: var(--steel);
  border-radius: 999px; transition: all 0.25s;
}
.filter button:hover { border-color: var(--ink); color: var(--ink); }
.filter button.on { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Inquiry form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: rgba(247,246,243,0.75); text-transform: uppercase; }
.field label i { color: var(--amber); font-style: normal; }
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark);
  color: var(--white); padding: 14px 16px; border-radius: 2px; outline: none;
  transition: border-color 0.25s, background 0.25s; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel-light) 50%), linear-gradient(135deg, var(--steel-light) 50%, transparent 50%); background-position: calc(100% - 21px) 55%, calc(100% - 15px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); background: rgba(255, 255, 255, 0.08); }
.field textarea { min-height: 130px; resize: vertical; }
.field textarea.large { min-height: 256px; line-height: 1.6; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--steel-light); }
.form-ok {
  display: none; grid-column: 1 / -1; border: 1px solid var(--amber);
  background: rgba(237, 166, 58, 0.1); color: var(--paper); padding: 18px 22px; font-size: 15px;
}
.form-ok.show { display: block; }

/* ---------- File upload ---------- */
.file-upload { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.file-upload label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: rgba(247,246,243,0.75); text-transform: uppercase; }
.file-upload .file-hint { font-size: 12px; color: var(--steel-light); }
.file-drop {
  border: 2px dashed rgba(247,246,243,0.2); border-radius: 6px; padding: 28px 20px;
  text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--amber); background: rgba(237,166,58,0.06); }
.file-drop .file-icon { font-size: 32px; color: var(--amber); }
.file-drop .file-text { font-size: 14px; color: var(--steel-light); }
.file-drop .file-name { font-size: 14px; color: var(--paper); font-weight: 600; word-break: break-all; }
.file-drop .file-clear { font-size: 12px; color: var(--amber); text-decoration: underline; cursor: pointer; margin-top: 4px; }
.file-drop input[type=file] { display: none; }

/* ---------- Modal overlay ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #1a1a1a; border: 1px solid rgba(237,166,58,0.3); border-radius: 10px;
  max-width: 460px; width: 100%; padding: 36px 32px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-box .modal-step { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: 16px; }
.modal-box .modal-title { font-size: 20px; font-weight: 700; color: var(--paper); margin-bottom: 20px; line-height: 1.4; }
.modal-box .modal-body { font-size: 15px; color: var(--steel-light); line-height: 1.6; margin-bottom: 24px; }
.modal-box .modal-error { font-size: 14px; color: #ff6b6b; margin-top: 12px; }

/* Progress bar */
.progress-wrap { margin: 20px 0; }
.progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--amber); border-radius: 3px; transition: width 0.3s ease; }
.progress-pct { font-size: 13px; color: var(--steel-light); margin-top: 8px; }

/* Spinner */
.modal-spinner {
  width: 40px; height: 40px; border: 3px solid rgba(237,166,58,0.2);
  border-top-color: var(--amber); border-radius: 50%; margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success check */
.modal-check {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(80,200,120,0.15);
  border: 2px solid #50c878; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #50c878; font-weight: 700;
}

/* Modal close button */
.modal-close { margin-top: 8px; }
.modal-close .btn { width: 100%; justify-content: center; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list b { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.contact-list a, .contact-list p { font-size: 17px; color: var(--paper); }
.contact-list a:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.footer-top { padding: 72px 0 56px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }

.footer-top p { font-size: 14px; color: var(--steel-light); margin-top: 18px; max-width: 34ch; }
.site-footer h4 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.site-footer li { margin-bottom: 12px; }
.site-footer li a { font-size: 14.5px; color: rgba(247, 246, 243, 0.75); transition: color 0.25s; }
.site-footer li a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--steel-light); }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(10, 14, 20, 0.35); transition: transform 0.25s var(--ease);
  position: relative;
}
.float-btn:hover { transform: translateY(-3px) scale(1.04); }
.float-btn svg { width: 26px; height: 26px; fill: var(--white); }
.float-wa { background: #25d366; }
.float-em { background: var(--ink-3); border: 1px solid var(--line-dark); }
.float-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.float-tip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--white); font-size: 12.5px; padding: 7px 12px;
  border-radius: 2px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.float-btn:hover .float-tip { opacity: 1; }

/* ---------- Sub-page hero helpers ---------- */
.page-hero-band { background: var(--ink); }
.quote-band { background: var(--ink-2); color: var(--paper); }
.quote-band blockquote { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; line-height: 1.5; max-width: 26ch; text-wrap: balance; }
.quote-band blockquote i { color: var(--amber); font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .nav a.btn-quote { padding: 9px 20px; font-size: 12.5px; }
  .header-in { padding: 0 18px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .stats > div { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li { border-bottom: 1px solid var(--line); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* 移动端菜单打开时取消 header 的 backdrop-filter。
   原因：backdrop-filter 会为 position:fixed 的后代创建包含块，
   导致 .nav 的 inset:0 相对 header（高度仅 74px）而非视口定位，菜单错乱。 */
@media (max-width: 768px) {
  .site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed; inset: 0; z-index: 92;
    background: rgba(10, 13, 17, 0.98);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    flex-direction: column; justify-content: flex-start; gap: 6px;
    padding: 96px 24px 40px;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { font-size: 20px; padding: 11px 0; }
  .nav a.btn-quote { font-size: 15px; margin-top: 16px; padding: 13px 34px; align-self: center; }
  .burger { display: block; }
  .lang { position: fixed; top: 20px; right: 76px; border-color: transparent; z-index: 95; }
  .hero__in { padding-bottom: 72px; }
  .hero-strip { margin-top: 48px; gap: 24px 36px; }
  .hero-strip div { min-width: 120px; }
  .tiles { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .split__img::after { inset: 12px -12px -12px 12px; }
  .row-item { grid-template-columns: 1fr; gap: 6px; padding: 24px 2px; }
  .row-item .no { margin-bottom: 2px; }
  .spec > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 2px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
  .float-contact { right: 14px; bottom: 14px; }
  .float-btn { width: 48px; height: 48px; }
  .wrap { padding: 0 18px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
}
/* 屏幕足够高时菜单垂直居中；矮屏（如横屏/小手机）保持顶部对齐并可滚动 */
@media (max-width: 768px) and (min-height: 700px) {
  .nav { justify-content: center; padding-top: 74px; }
}

/* ---------- Legal / Privacy Policy ---------- */
.legal { max-width: 920px; margin: 0 auto; }
.legal .reveal + .reveal { margin-top: 28px; }
.legal h2 { font-size: 26px; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal h3 { font-size: 18px; margin: 22px 0 10px; color: var(--ink-1, #1a2330); }
.legal h2:first-of-type { margin-top: 0; }
.legal p { line-height: 1.75; margin: 0 0 14px; color: var(--ink-2, #3a4654); }
.legal .lead { font-size: 18px; color: var(--ink-1, #1a2330); }
.legal a { color: var(--accent, #c9a86a); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-2, #b8945a); }
.legal .legal-list { list-style: none; padding: 0; margin: 0 0 18px; }
.legal .legal-list li { position: relative; padding: 6px 0 6px 22px; line-height: 1.6; color: var(--ink-2, #3a4654); border-bottom: 1px dashed var(--line); }
.legal .legal-list li:last-child { border-bottom: none; }
.legal .legal-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #c9a86a); }
.legal-cookie-btn {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--amber-deep); text-decoration: underline; text-underline-offset: 2px;
}
.legal-cookie-btn:hover { color: var(--amber); }
@media (max-width: 768px) {
  .legal h2 { font-size: 22px; }
  .legal .lead { font-size: 16px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 920px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 20px 52px 20px 0; font-size: 17px; font-weight: 600; line-height: 1.5;
  color: var(--ink); transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; line-height: 1; color: var(--amber);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary { color: var(--amber-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--amber-deep); }
.faq-item p {
  margin: 0; padding: 0 52px 22px 0; line-height: 1.75; color: #4a5561;
}
.faq-item a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 768px) {
  .faq-item summary { font-size: 16px; padding: 17px 40px 17px 0; }
  .faq-item p { padding: 0 24px 18px 0; font-size: 15px; }
  .faq-item summary::after { right: 2px; }
}

/* ---------- Cookie consent bar ---------- */
.cookie-bar {
  position: fixed; left: 24px; bottom: 24px; z-index: 120;
  width: min(460px, calc(100vw - 48px));
  background: var(--ink); color: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-dark); border-radius: 3px;
  box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cookie-bar.on { opacity: 1; transform: none; }
.cookie-bar__in { padding: 20px 22px; }
.cookie-bar__txt { font-size: 13.5px; line-height: 1.65; margin: 0 0 16px; }
.cookie-bar__txt a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar__acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie-bar__acts .btn {
  padding: 10px 20px; font-size: 13.5px; border-radius: 2px;
}
.cookie-bar__alt {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.82); font-size: 13.5px; font-weight: 600;
  padding: 10px 20px; border-radius: 2px;
  transition: border-color 0.25s, color 0.25s;
}
.cookie-bar__alt:hover { border-color: var(--amber); color: var(--amber); }
@media (max-width: 768px) {
  .cookie-bar {
    left: 12px; right: 12px; bottom: 12px; width: auto;
  }
  .cookie-bar__in { padding: 16px 16px 14px; }
  .cookie-bar__txt { font-size: 13px; margin-bottom: 13px; }
  .cookie-bar__acts .btn, .cookie-bar__alt { flex: 1 1 auto; padding: 11px 12px; }
}

