/* ============================================
   白兔去水印 · 设计系统
   轻量、无外部依赖、移动优先
   ============================================ */

:root {
  --brand: #0fb98a;
  --brand-d: #0a9c74;
  --brand-l: #e8fbf5;
  --brand-mid: #12c795;
  --ink: #0e1f1a;
  --ink2: #33443e;
  --muted: #6b7c76;
  --line: #e4ede9;
  --line-2: #eef4f1;
  --bg: #f7faf9;
  --card: #fff;
  --accent: #ff8a3d;
  --danger: #e5484d;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-sm: 0 1px 2px rgba(11, 60, 45, 0.06);
  --sh: 0 2px 6px rgba(11, 60, 45, 0.05), 0 14px 34px -18px rgba(11, 60, 45, 0.22);
  --sh-lg: 0 4px 10px rgba(11, 60, 45, 0.04), 0 30px 70px -30px rgba(11, 60, 45, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    system-ui, sans-serif;
  --max: 1120px;
  --max-narrow: 780px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink2);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { color: var(--brand); }
button { font-family: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.28; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--max-narrow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 38px; height: 38px; flex: none; border-radius: 12px; box-shadow: 0 4px 12px -4px rgba(15, 185, 138, 0.5); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 16px; color: var(--ink); letter-spacing: 0; }
.logo-text em { font-size: 11px; font-style: normal; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500;
  color: var(--ink2); transition: background 0.16s, color 0.16s;
}
.nav a:hover { background: var(--brand-l); color: var(--brand-d); }
.nav a.is-active { color: var(--brand-d); background: var(--brand-l); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--ink2); border-radius: 2px; transition: 0.2s; }
.mobile-nav { display: none; border-top: 1px solid var(--line-2); padding: 8px 20px 14px; background: #fff; }
.mobile-nav a { display: block; padding: 11px 8px; border-radius: 8px; font-size: 15px; color: var(--ink2); }
.mobile-nav a.is-active { color: var(--brand-d); background: var(--brand-l); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary {
  background: linear-gradient(180deg, #17c795 0%, #0ba57b 100%);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(15, 185, 138, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(15, 185, 138, 0.75); }
.btn-quiet { background: #fff; border-color: var(--line); color: var(--ink2); }
.btn-quiet:hover { border-color: #cfe3da; background: #fbfdfc; color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn.is-loading .btn-label::after {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--brand-d); }
.link-arrow { font-weight: 600; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 52px 0 58px;
  background:
    radial-gradient(760px 360px at 50% -10%, #d9f8ee 0%, rgba(217, 248, 238, 0) 65%),
    linear-gradient(180deg, #f5fcf9 0%, #ffffff 72%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 185, 138, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(560px 300px at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(560px 300px at 50% 0%, #000 0%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 420px; height: 420px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.16), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink2); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--sh-sm);
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 185, 138, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(15, 185, 138, 0.16); } 50% { box-shadow: 0 0 0 6px rgba(15, 185, 138, 0.04); } }

.hero h1 {
  font-size: clamp(27px, 5.2vw, 48px);
  letter-spacing: -0.025em; line-height: 1.18; margin-bottom: 16px;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--brand-d); }
.hero-sub {
  max-width: 640px; margin: 0 auto 30px; font-size: 16px; color: var(--muted);
}
.hero-points {
  display: flex; justify-content: center; gap: 8px 34px; flex-wrap: wrap; margin-top: 28px;
}
.hero-points li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-points strong { font-size: 19px; color: var(--ink); font-weight: 700; }
.hero-points span { font-size: 12px; color: var(--muted); }

/* ---------- Tool ---------- */
.tool {
  max-width: 720px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px; box-shadow: var(--sh-lg); position: relative; text-align: left;
}
.tool-form { display: block; }
.tool-field {
  position: relative; display: flex; align-items: flex-start; gap: 8px;
  background: #fbfdfc; border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 10px 10px 10px 12px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.tool-field:focus-within {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 185, 138, 0.12);
}
.tool-detect {
  position: absolute; top: -10px; left: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 999px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.tool-detect.is-on { color: var(--brand-d); border-color: #b7e8d6; background: var(--brand-l); font-weight: 600; }
.tool-field textarea {
  flex: 1; border: 0; outline: 0; resize: none; background: transparent;
  font-family: inherit; font-size: 15px; line-height: 1.6; color: var(--ink);
  padding: 8px 2px; min-height: 56px; max-height: 140px;
}
.tool-field textarea::placeholder { color: #9aaba4; }
.tool-paste {
  flex: none; height: 36px; padding: 0 14px; margin-top: 2px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink2); cursor: pointer;
  transition: 0.16s;
}
.tool-paste:hover { border-color: #bfe3d6; color: var(--brand-d); background: var(--brand-l); }

.tool-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tool-actions .btn-primary { flex: 1; min-width: 160px; }
.tool-hint { font-size: 12.5px; color: var(--muted); margin-left: auto; }

.tool-hot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.chip {
  border: 1px dashed var(--line); background: #fff; color: var(--ink2);
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; cursor: pointer; transition: 0.16s;
}
.chip:hover { border-style: solid; border-color: var(--brand); color: var(--brand-d); background: var(--brand-l); }

.tool-history { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.history-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.history-list { display: flex; flex-wrap: wrap; gap: 6px; }
.history-list button {
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--line-2); background: #fbfdfc; border-radius: 8px;
  padding: 5px 10px; font-size: 12px; color: var(--ink2); cursor: pointer;
}
.history-list button:hover { border-color: var(--brand); color: var(--brand-d); }

/* ---------- Result ---------- */
.result { max-width: 720px; margin: 18px auto 0; text-align: left; }
.result:empty { display: none; }

.res-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh); overflow: hidden; animation: rise 0.32s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.res-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--muted);
  flex-wrap: wrap;
}
.res-head .ok { color: var(--brand-d); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.res-head .ok::before {
  content: "✓"; display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
}
.res-tag {
  background: var(--brand-l); color: var(--brand-d); border-radius: 999px;
  padding: 2px 9px; font-size: 11.5px; font-weight: 600;
}
.res-head .sp { margin-left: auto; }

.media { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 18px; }
.media-cover {
  position: relative; border-radius: var(--r); overflow: hidden; background: #0e1f1a;
  aspect-ratio: 4 / 5;
}
.media-cover img { width: 100%; height: 100%; object-fit: cover; }
.media-cover.no-img { display: grid; place-items: center; color: #fff; font-size: 12px; background: linear-gradient(135deg, #0fb98a, #0a9c74); }
.media-badge {
  position: absolute; left: 8px; top: 8px; background: rgba(0, 0, 0, 0.6);
  color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 6px; backdrop-filter: blur(4px);
}
.media-duration {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.66);
  color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 5px; font-variant-numeric: tabular-nums;
}
.media-info { min-width: 0; display: flex; flex-direction: column; }
.media-title {
  font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.media-author { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.media-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.media-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.media-meta li {
  font-size: 11.5px; color: var(--ink2); background: #f5f9f7;
  border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 9px;
}
.media-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.media-actions .btn { flex: 0 1 auto; }

.player { padding: 0 18px 18px; }
.player[hidden] { display: none; }
.player video {
  width: 100%; max-height: 62vh; border-radius: var(--r); background: #05100c;
  display: block;
}

.gallery { padding: 4px 18px 18px; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gallery-head h3 { font-size: 14.5px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #f2f6f4; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-dl {
  position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 8px;
  background: rgba(14, 31, 26, 0.66); color: #fff; font-size: 13px;
  backdrop-filter: blur(4px);
}
.gallery-idx { position: absolute; left: 6px; top: 6px; font-size: 10.5px; color: #fff; background: rgba(14, 31, 26, 0.55); border-radius: 5px; padding: 1px 6px; }

.live-note {
  margin: 0 18px 14px; padding: 9px 12px; border-radius: 10px;
  background: #fff8f2; border: 1px solid #ffe0c9; color: #a1591f; font-size: 12.5px;
}

.state { text-align: center; padding: 26px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.state-icon { font-size: 26px; margin-bottom: 8px; }
.state-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.state-desc { font-size: 13.5px; color: var(--muted); }
.state-err .state-icon { color: var(--danger); }
.state-tips { margin-top: 12px; text-align: left; display: inline-block; }
.state-tips li { font-size: 13px; color: var(--ink2); padding-left: 16px; position: relative; }
.state-tips li::before { content: "·"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }

.skel { padding: 18px; display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.skel div { background: linear-gradient(90deg, #f1f6f4 25%, #e8f1ed 37%, #f1f6f4 63%); background-size: 400% 100%; animation: shim 1.3s ease infinite; border-radius: 10px; }
.skel .s1 { aspect-ratio: 4 / 5; }
.skel .s2 { height: 18px; margin-bottom: 10px; }
.skel .s3 { height: 14px; width: 60%; margin-bottom: 10px; }
.skel .s4 { height: 40px; width: 70%; margin-top: 20px; }
@keyframes shim { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section + .section { border-top: 1px solid var(--line-2); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(21px, 3.4vw, 30px); margin-bottom: 10px; letter-spacing: -0.02em; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 15px; }
.section-head-left { text-align: left; margin-left: 0; }
.section-more { text-align: center; margin-top: 26px; }

.section-platforms { background: #fbfdfc; }
.pf-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pf-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 10px 14px; text-align: center;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.pf-card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: #cfe9df; }
.pf-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--pf, var(--brand)); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}
.pf-icon-sm { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; display: inline-grid; vertical-align: -5px; margin-right: 6px; box-shadow: none; }
.pf-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.pf-note { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 22px 22px; box-shadow: var(--sh-sm);
}
.step-no {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-d);
  background: var(--brand-l); border-radius: 7px; padding: 3px 9px; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.steps-inline { grid-template-columns: repeat(3, 1fr); margin: 0 0 34px; }
.steps-inline .step { padding: 20px; }
.steps-inline .step p { color: var(--ink2); font-size: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature {
  background: linear-gradient(180deg, #fff, #fcfefd);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.feature h3::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); flex: none;
}
.feature p { font-size: 14px; color: var(--muted); }

/* QR band */
.qr-band { padding: 56px 0; background: #0e1f1a; position: relative; overflow: hidden; }
.qr-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px;
  background: radial-gradient(circle, rgba(15, 185, 138, 0.35), transparent 62%);
}
.qr-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -220px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.18), transparent 62%);
}
.qr-band-inner {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.qr-band-text h2 { color: #fff; font-size: clamp(21px, 3.2vw, 28px); margin-bottom: 12px; }
.qr-band-text p { color: #a8bdb5; font-size: 14.5px; max-width: 480px; margin-bottom: 16px; }
.qr-band-list { margin-bottom: 22px; }
.qr-band-list li {
  color: #cfe0da; font-size: 13.5px; padding-left: 22px; position: relative; margin-bottom: 6px;
}
.qr-band-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand-mid); font-weight: 700;
}
.qr-band-codes { display: flex; gap: 16px; }
.qr-band-codes figure {
  margin: 0; background: #fff; border-radius: var(--r); padding: 10px 10px 8px;
  text-align: center; width: 152px;
}
.qr-band-codes img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.qr-band-codes figcaption { display: flex; flex-direction: column; line-height: 1.35; margin-top: 6px; }
.qr-band-codes figcaption strong { font-size: 12.5px; color: var(--ink); }
.qr-band-codes figcaption span { font-size: 10.5px; color: var(--muted); }

/* Prose */
.prose-block { margin-bottom: 30px; }
.prose-block h3 { font-size: 18px; margin-bottom: 10px; }
.prose-block p { font-size: 15px; color: var(--ink2); line-height: 1.85; margin-bottom: 12px; }
.prose-block p:last-child { margin-bottom: 0; }
.h2-block { font-size: clamp(19px, 2.6vw, 23px); margin: 44px 0 18px; }
.h2-block:first-child { margin-top: 0; }

.tip-list { margin-bottom: 10px; }
.tip-list li {
  font-size: 14.5px; color: var(--ink2); padding: 10px 14px 10px 34px; position: relative;
  background: #fbfdfc; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 8px;
}
.tip-list li::before {
  content: "💡"; position: absolute; left: 12px; top: 10px; font-size: 13px;
}

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color 0.18s, box-shadow 0.18s;
}
.faq-item[open] { border-color: #cfe9df; box-shadow: var(--sh-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; cursor: pointer; font-weight: 600; color: var(--ink);
  font-size: 15px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  flex: none; width: 20px; height: 20px; position: relative; border-radius: 50%;
  background: var(--brand-l); transition: transform 0.22s, background 0.18s;
}
.faq-item summary i::before, .faq-item summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--brand-d);
  border-radius: 2px; transform: translate(-50%, -50%);
}
.faq-item summary i::before { width: 9px; height: 1.8px; }
.faq-item summary i::after { width: 1.8px; height: 9px; transition: opacity 0.2s; }
.faq-item[open] summary i { transform: rotate(180deg); background: #d6f5e9; }
.faq-item[open] summary i::after { opacity: 0; }
.faq-a { padding: 0 18px 16px; }
.faq-a p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* Link cloud */
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a {
  font-size: 13.5px; color: var(--ink2); background: #fbfdfc;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  transition: 0.16s;
}
.link-cloud a:hover { color: var(--brand-d); border-color: #bfe3d6; background: var(--brand-l); }

/* Breadcrumb & page hero */
.breadcrumb { background: #fbfdfc; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.breadcrumb .wrap { display: flex; align-items: center; gap: 8px; height: 44px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-d); }
.breadcrumb span[aria-current] { color: var(--ink2); }

.page-hero {
  padding: 46px 0 52px; text-align: center;
  background:
    radial-gradient(680px 300px at 50% -20%, #e2f9f1 0%, rgba(226, 249, 241, 0) 68%),
    linear-gradient(180deg, #f8fdfb, #fff);
  border-bottom: 1px solid var(--line-2);
}
.page-hero h1 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 14px; letter-spacing: -0.02em; }
.page-hero .hero-sub { margin-bottom: 26px; }
.page-hero .hero-badge { margin-bottom: 16px; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.pf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf-table th, .pf-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.pf-table th { background: #f7fbf9; font-weight: 600; color: var(--ink); font-size: 13px; }
.pf-table tr:last-child td { border-bottom: 0; }
.pf-table td:first-child { font-weight: 600; color: var(--ink); width: 180px; }
.note-text { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Footer */
.site-footer { background: #0b1a16; color: #93a8a1; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand p { font-size: 13px; line-height: 1.75; color: #7f948d; margin: 14px 0 18px; max-width: 300px; }
.footer-qr { display: flex; align-items: center; gap: 12px; }
.footer-qr img { width: 84px; height: 84px; border-radius: 10px; background: #fff; padding: 4px; }
.footer-qr span { font-size: 12px; color: #7f948d; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h3 { font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 4px; letter-spacing: 0.02em; }
.footer-col a { font-size: 13px; color: #8ea39c; }
.footer-col a:hover { color: var(--brand-mid); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: #6d827b;
}
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a { color: #6d827b; }
.footer-legal a:hover { color: var(--brand-mid); }

/* Mobile bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #17c795, #0ba57b); color: #fff;
  border: 0; border-radius: 14px; padding: 9px 14px; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(15, 185, 138, 0.9);
}
.mb-icon {
  width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.2);
  display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none;
}
.mb-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; flex: 1; }
.mb-text strong { font-size: 14px; font-weight: 700; }
.mb-text em { font-size: 11px; font-style: normal; opacity: 0.82; }
.mb-arrow { font-size: 20px; opacity: 0.8; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(9, 24, 20, 0.55); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; background: #fff; border-radius: var(--r-xl); padding: 30px 26px 22px;
  width: min(520px, 100%); text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.4);
  animation: pop 0.24s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; right: 14px; top: 12px; width: 34px; height: 34px;
  border: 0; background: #f4f8f6; border-radius: 50%; font-size: 20px; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.modal-close:hover { background: #e9f2ee; color: var(--ink); }
.modal-panel h3 { font-size: 18px; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.modal-codes { display: flex; gap: 16px; justify-content: center; }
.modal-codes figure { margin: 0; }
.modal-codes img { width: 200px; height: 200px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; background: #fff; }
.modal-codes figcaption { font-size: 12.5px; color: var(--ink2); margin-top: 8px; font-weight: 600; }
.modal-note { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 14px);
  background: rgba(14, 31, 26, 0.92); color: #fff; font-size: 13.5px;
  padding: 10px 18px; border-radius: 999px; z-index: 150; opacity: 0;
  pointer-events: none; transition: opacity 0.22s, transform 0.22s;
  backdrop-filter: blur(6px); max-width: 86vw; text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.notfound { padding: 72px 0 80px; }
.nf-code { font-size: 76px; font-weight: 800; color: var(--brand-l); line-height: 1; letter-spacing: -0.04em; }
.nf-actions { display: flex; gap: 10px; justify-content: center; margin: 22px 0 30px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pf-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: block; }
  .header-cta .btn { display: none; }
  .header-inner { height: 60px; }
  .logo-text em { display: none; }

  .hero { padding: 34px 0 40px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 24px; }
  .hero-points { gap: 6px 22px; margin-top: 22px; }
  .hero-points strong { font-size: 17px; }

  .section { padding: 44px 0; }
  .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .pf-card { padding: 14px 6px 12px; gap: 6px; }
  .pf-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .pf-name { font-size: 12.5px; }
  .pf-note { display: none; }

  .steps, .steps-inline { grid-template-columns: 1fr; gap: 12px; }
  .features { grid-template-columns: 1fr; }

  .qr-band { padding: 40px 0; }
  .qr-band-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .qr-band-text p { margin-left: auto; margin-right: auto; }
  .qr-band-list { display: inline-block; text-align: left; }
  .qr-band-codes { justify-content: center; }
  .qr-band-codes figure { width: 136px; }

  .media { grid-template-columns: 132px 1fr; gap: 14px; padding: 14px; }
  .media-title { font-size: 15px; }
  .media-cover { aspect-ratio: 3 / 4; }
  .media-actions .btn { flex: 1 1 auto; min-width: 92px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .skel { grid-template-columns: 132px 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { display: flex; }
  .site-footer { padding-bottom: 84px; }
  .mobile-bar { display: block; }
  .modal-codes img { width: 140px; height: 140px; }
  .modal-panel { padding: 26px 18px 18px; }
}

@media (max-width: 420px) {
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-actions .btn-primary { width: 100%; flex: none; }
  .tool-hint { margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hero h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .mobile-bar, .qr-band, .site-footer, .tool, .modal { display: none !important; }
}
