/* ==========================================================================
   华驿（天津）信息科技有限公司（paigongai.com）对客官网落地页样式
   严格遵循 assets/brand-tokens.css（暖陶土 × 暖象牙纸 × 墨炭黑）
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--hy-ivory);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--hy-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--hy-text);
  background: var(--hy-ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--hy-terracotta);
  outline-offset: 2px;
}

.num-mono {
  font-family: var(--hy-font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--hy-radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--hy-terracotta);
  color: #ffffff;
  border-color: var(--hy-terracotta);
  box-shadow: 0 2px 10px rgba(196, 93, 58, 0.22);
}

.btn-primary:hover {
  background: var(--hy-terracotta-dark);
  border-color: var(--hy-terracotta-dark);
  box-shadow: 0 4px 14px rgba(166, 74, 43, 0.28);
}

.btn-secondary {
  background: var(--hy-surface);
  color: var(--hy-charcoal);
  border-color: var(--hy-sand-strong);
  box-shadow: var(--hy-shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--hy-charcoal);
  background: var(--hy-ivory-subtle);
}

.btn-outline-accent {
  background: var(--hy-terracotta-soft);
  color: var(--hy-terracotta-dark);
  border-color: rgba(196, 93, 58, 0.36);
}

.btn-outline-accent:hover {
  background: var(--hy-terracotta);
  color: #ffffff;
  border-color: var(--hy-terracotta);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ---------- 0. Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hy-sand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hy-charcoal);
}

.brand-domain {
  font-family: var(--hy-font-mono);
  font-size: 11px;
  color: var(--hy-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--hy-text-secondary);
  padding: 6px 2px;
  position: relative;
  transition: color 0.16s ease;
}

.main-nav a:hover {
  color: var(--hy-terracotta);
}

.header-cta {
  flex-shrink: 0;
}

/* ---------- Section Common ---------- */
.section {
  padding: 84px 0;
  scroll-margin-top: 72px;
}

.section-alt {
  background: var(--hy-ivory-subtle);
  border-top: 1px solid var(--hy-sand);
  border-bottom: 1px solid var(--hy-sand);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hy-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hy-terracotta);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--hy-terracotta);
  display: inline-block;
}

.section-title {
  margin: 0;
  font-family: var(--hy-font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--hy-charcoal);
}

.section-desc {
  margin: 12px 0 0;
  font-size: 15.5px;
  color: var(--hy-text-secondary);
  line-height: 1.7;
}

/* ---------- 1. Hero Section ---------- */
.hero {
  padding: 58px 0 78px;
  position: relative;
  background:
    radial-gradient(circle at 86% 18%, rgba(196, 93, 58, 0.06), transparent 44%),
    linear-gradient(180deg, var(--hy-ivory) 0%, #f6f2ea 100%);
  border-bottom: 1px solid var(--hy-sand);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--hy-surface);
  border: 1px solid var(--hy-sand-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--hy-text-secondary);
  box-shadow: var(--hy-shadow-xs);
  margin-bottom: 22px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hy-terracotta);
  flex-shrink: 0;
}

.hero-title {
  margin: 0;
  font-family: var(--hy-font-serif);
  font-size: clamp(28px, 3.05vw, 41px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--hy-charcoal);
}

.hero-title-line {
  display: block;
}

.hero-subtitle {
  margin: 20px 0 28px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--hy-text-secondary);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hy-sand);
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hy-text-secondary);
}

.hero-trust-check {
  color: var(--hy-terracotta);
  font-weight: 700;
}

/* Industrial Browser Frame */
.hero-visual {
  position: relative;
}

.device-frame {
  background: var(--hy-surface);
  border: 1px solid var(--hy-sand-strong);
  border-radius: var(--hy-radius);
  box-shadow: var(--hy-shadow-md);
  overflow: hidden;
}

.device-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--hy-charcoal);
  color: #e7e2d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chrome-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chrome-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.24);
}

.chrome-dots span:first-child {
  background: var(--hy-terracotta);
}

.chrome-addr {
  flex: 1;
  min-width: 0;
  font-family: var(--hy-font-mono);
  font-size: 11.5px;
  color: rgba(250, 248, 244, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(250, 248, 244, 0.22);
  background: rgba(250, 248, 244, 0.08);
  color: #faf8f4;
  font-size: 11.5px;
  font-weight: 500;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.chrome-zoom-btn:hover {
  background: var(--hy-terracotta);
  border-color: var(--hy-terracotta);
}

.device-screen-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #141210;
  position: relative;
  text-align: left;
  cursor: zoom-in;
}

.device-screen-btn img {
  width: 100%;
  height: auto;
  transition: transform 0.28s ease;
}

.device-screen-btn:hover img {
  transform: scale(1.01);
}

.hero-badge-card {
  position: absolute;
  right: 16px;
  bottom: -20px;
  background: var(--hy-surface);
  border: 1px solid var(--hy-sand-strong);
  border-radius: var(--hy-radius-sm);
  padding: 11px 15px;
  box-shadow: var(--hy-shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
}

.traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--hy-ivory);
  border: 1px solid var(--hy-sand);
  flex-shrink: 0;
}

.light-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.light-dot.ok {
  background: var(--hy-ok);
}

.light-dot.warn {
  background: var(--hy-warn);
}

.light-dot.danger {
  background: var(--hy-danger);
}

.hero-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hy-charcoal);
  line-height: 1.3;
}

.hero-badge-sub {
  font-size: 11.5px;
  color: var(--hy-muted);
  margin-top: 2px;
}

/* ---------- 2. Pain Points ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pain-card {
  background: var(--hy-surface);
  border: 1px solid var(--hy-sand);
  border-radius: var(--hy-radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--hy-shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pain-card:hover {
  border-color: var(--hy-sand-strong);
  box-shadow: var(--hy-shadow-sm);
  transform: translateY(-2px);
}

.pain-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pain-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--hy-radius-sm);
  background: var(--hy-terracotta-soft);
  border: 1px solid rgba(196, 93, 58, 0.18);
  color: var(--hy-terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pain-tag {
  font-family: var(--hy-font-mono);
  font-size: 11.5px;
  color: var(--hy-muted);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--hy-ivory);
  border: 1px solid var(--hy-sand);
}

.pain-title {
  margin: 0 0 12px;
  font-family: var(--hy-font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--hy-charcoal);
}

.pain-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--hy-text-secondary);
}

.pain-body strong {
  color: var(--hy-charcoal);
  font-weight: 600;
}

/* ---------- 3. Product Gallery (4-Tab) ---------- */
.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.gallery-tab {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--hy-radius-sm);
  border: 1px solid var(--hy-sand);
  background: var(--hy-surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.gallery-tab:hover {
  border-color: var(--hy-sand-strong);
}

.gallery-tab.is-active {
  border-color: var(--hy-terracotta);
  background: var(--hy-terracotta-soft);
  box-shadow: 0 2px 10px rgba(196, 93, 58, 0.12);
}

.tab-cabin {
  font-family: var(--hy-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--hy-muted);
  letter-spacing: 0.03em;
}

.gallery-tab.is-active .tab-cabin {
  color: var(--hy-terracotta);
}

.tab-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--hy-charcoal);
  line-height: 1.35;
}

.gallery-stage {
  background: var(--hy-surface);
  border: 1px solid var(--hy-sand-strong);
  border-radius: var(--hy-radius);
  box-shadow: var(--hy-shadow-sm);
  overflow: hidden;
}

.gallery-panel {
  display: none;
}

.gallery-panel.is-active {
  display: block;
}

.gallery-screen-wrap {
  background: #141210;
  border-bottom: 1px solid var(--hy-sand);
}

.gallery-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.gallery-point {
  padding: 22px 24px;
  border-right: 1px solid var(--hy-sand);
}

.gallery-point:last-child {
  border-right: 0;
}

.gallery-point-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.point-index {
  font-family: var(--hy-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hy-terracotta);
  background: var(--hy-terracotta-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

.gallery-point h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--hy-charcoal);
}

.gallery-point p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.68;
  color: var(--hy-text-secondary);
}

/* ---------- 4. 3-Step Trial Path ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.step-card {
  background: var(--hy-surface);
  border: 1px solid var(--hy-sand);
  border-radius: var(--hy-radius);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--hy-shadow-xs);
}

.step-card.is-featured {
  border: 2px solid var(--hy-terracotta);
  box-shadow: var(--hy-shadow-md);
}

.step-ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--hy-terracotta);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.step-num {
  font-family: var(--hy-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--hy-terracotta);
  letter-spacing: 0.04em;
}

.step-time {
  font-size: 12px;
  color: var(--hy-muted);
  background: var(--hy-ivory);
  border: 1px solid var(--hy-sand);
  padding: 2px 9px;
  border-radius: 999px;
}

.step-title {
  margin: 0 0 12px;
  font-family: var(--hy-font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--hy-charcoal);
}

.step-price-row {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hy-sand);
}

.step-price {
  font-family: var(--hy-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 700;
  color: var(--hy-charcoal);
  line-height: 1.15;
}

.step-price.is-custom {
  font-family: var(--hy-font-sans);
  font-size: 20px;
  line-height: 1.4;
  padding: 4px 0;
}

.step-price-note {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hy-terracotta-dark);
}

.step-price-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--hy-muted);
}

.step-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.step-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.3px;
  line-height: 1.65;
  color: var(--hy-text-secondary);
}

.step-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hy-terracotta);
  font-weight: 700;
}

.step-list strong {
  color: var(--hy-charcoal);
}

/* ---------- 5. FAQ Accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: var(--hy-surface);
  border: 1px solid var(--hy-sand);
  border-radius: var(--hy-radius-sm);
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.faq-item.is-open {
  border-color: var(--hy-sand-strong);
  box-shadow: var(--hy-shadow-xs);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  text-align: left;
}

.faq-q-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.faq-q-index {
  font-family: var(--hy-font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hy-terracotta);
  flex-shrink: 0;
}

.faq-q-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--hy-charcoal);
  line-height: 1.45;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hy-sand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hy-muted);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  border-color: var(--hy-terracotta);
  color: var(--hy-terracotta);
}

.faq-answer {
  display: none;
  padding: 0 22px 22px 54px;
  font-size: 14.8px;
  line-height: 1.78;
  color: var(--hy-text-secondary);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer strong {
  color: var(--hy-charcoal);
}

/* ---------- 6. Charcoal Conversion Footer ---------- */
.site-footer {
  background: var(--hy-charcoal);
  color: var(--hy-ivory);
  padding: 76px 0 36px;
  border-top: 3px solid var(--hy-terracotta);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.12);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand .brand-name {
  color: var(--hy-ivory);
  font-size: 20px;
}

.footer-brand .brand-domain {
  color: rgba(250, 248, 244, 0.6);
}

.footer-slogan {
  margin: 0 0 18px;
  font-family: var(--hy-font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.38;
  color: #ffffff;
}

.footer-local-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(196, 93, 58, 0.16);
  border: 1px solid rgba(224, 142, 90, 0.35);
  color: #f6c4a8;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 24px;
}

.privacy-box {
  background: var(--hy-charcoal-soft);
  border: 1px solid rgba(250, 248, 244, 0.12);
  border-radius: var(--hy-radius-sm);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.privacy-box-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-box ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(250, 248, 244, 0.78);
  font-size: 13.5px;
  line-height: 1.72;
}

.privacy-box li + li {
  margin-top: 4px;
}

.footer-contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: rgba(250, 248, 244, 0.68);
}

.footer-contact-meta strong {
  color: rgba(250, 248, 244, 0.92);
  font-weight: 500;
}

/* Footer QR Card */
.footer-qr-card {
  background: var(--hy-ivory);
  color: var(--hy-charcoal);
  border-radius: var(--hy-radius);
  padding: 26px 24px;
  text-align: center;
  box-shadow: var(--hy-shadow-lg);
}

.footer-qr-img {
  width: 196px;
  height: 196px;
  margin: 0 auto 16px;
  border-radius: 10px;
  border: 1px solid var(--hy-sand);
  background: #ffffff;
  object-fit: contain;
}

.qr-wechat-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--hy-surface);
  border: 1px solid var(--hy-sand-strong);
  margin-bottom: 14px;
  font-size: 13.5px;
}

.qr-wechat-label {
  color: var(--hy-muted);
}

.qr-wechat-id {
  font-family: var(--hy-font-mono);
  font-weight: 700;
  color: var(--hy-charcoal);
}

.qr-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hy-text-secondary);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 12.5px;
  color: rgba(250, 248, 244, 0.56);
}

.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.icp-link {
  color: rgba(250, 248, 244, 0.72);
  transition: color 0.16s ease;
}

.icp-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Mobile Sticky CTA Bar ---------- */
.mobile-sticky-cta {
  display: none;
}

/* ---------- Modals (WeChat & Lightbox) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--hy-ivory);
  border: 1px solid var(--hy-sand-strong);
  border-radius: 12px;
  padding: 28px 24px 24px;
  position: relative;
  text-align: center;
  box-shadow: var(--hy-shadow-lg);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-backdrop.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--hy-sand);
  background: var(--hy-surface);
  color: var(--hy-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--hy-charcoal);
  color: var(--hy-charcoal);
}

.modal-kicker {
  display: inline-block;
  font-family: var(--hy-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hy-terracotta);
  background: var(--hy-terracotta-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.modal-title {
  margin: 0 0 6px;
  font-family: var(--hy-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--hy-charcoal);
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--hy-text-secondary);
  line-height: 1.6;
}

.modal-qr {
  width: 212px;
  height: 212px;
  margin: 0 auto 16px;
  border-radius: 10px;
  border: 1px solid var(--hy-sand-strong);
  background: #ffffff;
  object-fit: contain;
}

.modal-promise {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hy-sand);
  font-size: 12.5px;
  color: var(--hy-muted);
  line-height: 1.6;
  text-align: left;
}

/* Lightbox Modal */
.lightbox-card {
  width: 100%;
  max-width: 1220px;
  background: var(--hy-charcoal-deep);
  border: 1px solid rgba(250, 248, 244, 0.16);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--hy-shadow-lg);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--hy-charcoal);
  border-bottom: 1px solid rgba(250, 248, 244, 0.1);
  color: var(--hy-ivory);
}

.lightbox-caption {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lightbox-nav-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(250, 248, 244, 0.22);
  background: rgba(250, 248, 244, 0.08);
  color: #faf8f4;
  font-size: 13px;
}

.lightbox-nav-btn:hover {
  background: var(--hy-terracotta);
  border-color: var(--hy-terracotta);
}

.lightbox-body {
  padding: 12px;
  max-height: calc(90vh - 60px);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 140;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--hy-charcoal);
  color: #ffffff;
  border: 1px solid rgba(250, 248, 244, 0.16);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--hy-shadow-md);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive: Tablet (<= 980px) ---------- */
@media (max-width: 980px) {
  .brand-name {
    font-size: 14.5px;
    letter-spacing: 0.01em;
  }

  .main-nav {
    gap: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-subtitle {
    max-width: none;
  }

  .pain-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-point {
    border-right: 0;
    border-bottom: 1px solid var(--hy-sand);
  }

  .gallery-point:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---------- Responsive: Mobile / iPhone 14 390px (<= 768px) ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 60px;
    gap: 10px;
  }

  .main-nav {
    display: none;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-mark {
    width: 28px;
    height: 20px;
  }

  .brand-name {
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.25;
  }

  .footer-brand .brand-name {
    font-size: 17px;
  }

  .header-cta .btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 30px 0 48px;
  }

  .hero-pill {
    font-size: 12px;
    padding: 5px 11px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.32;
  }

  .hero-subtitle {
    font-size: 14.8px;
    margin: 14px 0 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 8px 14px;
  }

  .hero-trust li {
    font-size: 12.8px;
  }

  .device-chrome {
    padding: 8px 10px;
  }

  .chrome-addr {
    font-size: 10.5px;
  }

  .hero-badge-card {
    position: static;
    margin-top: 12px;
    max-width: 100%;
    box-shadow: var(--hy-shadow-xs);
  }

  .section {
    padding: 56px 0;
    scroll-margin-top: 64px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .pain-card,
  .step-card {
    padding: 22px 18px;
  }

  .gallery-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-tab {
    padding: 11px 11px;
  }

  .tab-label {
    font-size: 12.8px;
  }

  .gallery-point {
    padding: 18px 16px;
  }

  .faq-trigger {
    padding: 16px 16px;
  }

  .faq-q-text {
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 18px 16px;
    font-size: 14px;
  }

  .site-footer {
    padding: 56px 0 104px;
  }

  .footer-qr-card {
    padding: 22px 18px;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: rgba(250, 248, 244, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--hy-sand-strong);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(28, 25, 23, 0.08);
  }

  .toast {
    bottom: 82px;
  }

  .lightbox-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .lightbox-caption {
    width: 100%;
    font-size: 13px;
  }
}
