/* Flatvora Mobile — m.flatvora.com */
:root {
  --bg: #f3f3f3;
  --card: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --spot: #25d366;
  --spot-dark: #1fad56;
  --bar: #111111;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 58px;
  --tab-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding-top: calc(var(--nav-h) + var(--safe-t));
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: calc(var(--nav-h) + var(--safe-t));
  padding: var(--safe-t) 14px 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: #1a1a1a; color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  box-shadow: inset 0 -2px 0 var(--spot);
  flex-shrink: 0;
}
.brand strong { display: block; font-size: 1rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 0.68rem; letter-spacing: .08em; }
.lang-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font-size: 14px;
  max-width: 7.2rem;
}

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: calc(var(--tab-h) + var(--safe-b));
  padding: 0 6px var(--safe-b);
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 0.72rem; color: var(--muted); min-height: var(--tab-h);
}
.tabbar a.active { color: var(--spot-dark); font-weight: 700; }
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { padding: 14px 14px 8px; max-width: 720px; margin: 0 auto; }

.hero {
  background: linear-gradient(160deg, #2a2a2a, #111);
  color: #fff;
  border-radius: 18px;
  padding: 22px 18px 20px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}
.hero h1 { font-size: 1.55rem; line-height: 1.25; margin: 8px 0 10px; }
.hero p { color: rgba(255,255,255,.82); font-size: 0.92rem; margin-bottom: 16px; }
.hero-brand { font-size: 0.78rem; letter-spacing: .14em; color: var(--spot); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 16px; border-radius: 12px;
  border: none; font-weight: 700; cursor: pointer; width: 100%;
}
.btn-primary { background: var(--spot); color: #fff; }
.btn-dark { background: #fff; color: #111; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-row { display: grid; gap: 10px; }
.btn-row.two { grid-template-columns: 1fr 1fr; }

.section-head { margin: 18px 2px 10px; }
.section-head h2 { font-size: 1.15rem; }
.section-head p { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}
.card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #ddd;
}
.card-body { padding: 12px 14px 14px; }
.card .cat { color: var(--muted); font-size: 0.78rem; margin-bottom: 4px; }
.card h3 { font-size: 1rem; margin-bottom: 6px; }
.card .meta { color: var(--muted); font-size: 0.84rem; }

.feature {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; margin-bottom: 10px;
}
.feature-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: #1a1a1a; color: #fff; display: grid; place-items: center;
  box-shadow: inset 0 -2px 0 var(--spot);
}
.feature-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature strong { display: block; margin-bottom: 2px; }
.feature span { color: var(--muted); font-size: 0.86rem; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 0.86rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; font-size: 16px;
}
.field textarea { min-height: 110px; resize: vertical; }
.msg { font-size: 0.9rem; margin-top: 8px; }
.msg.ok { color: var(--spot-dark); }
.msg.err { color: #c0392b; }

.contact-list { display: grid; gap: 10px; margin-bottom: 16px; }
.contact-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.contact-item small { color: var(--muted); display: block; font-size: 0.75rem; }
.contact-item a { color: var(--spot-dark); font-weight: 700; font-size: 0.9rem; }

.detail-hero img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: #ddd; border-radius: 16px;
}
.specs { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.specs th, .specs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 36%; color: var(--muted); font-weight: 600; }

.footer-note {
  text-align: center; color: var(--muted); font-size: 0.8rem;
  padding: 18px 8px 8px;
}
.footer-note a { color: var(--ink); text-decoration: underline; }

.wa-fab {
  position: fixed;
  right: 14px;
  bottom: calc(var(--tab-h) + var(--safe-b) + 14px);
  z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--spot); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(31,173,86,.4);
}
.wa-fab svg { width: 26px; height: 26px; fill: currentColor; }

.empty { color: var(--muted); padding: 28px 8px; text-align: center; }

.inquiry-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.inquiry-success-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.inquiry-success-card {
  width: min(320px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transform: translateY(10px) scale(0.96);
  transition: transform 0.22s ease;
}
.inquiry-success-overlay.is-visible .inquiry-success-card {
  transform: translateY(0) scale(1);
}
.inquiry-success-check {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
}
.inquiry-success-check svg {
  width: 84px;
  height: 84px;
  display: block;
}
.inquiry-success-circle {
  stroke: #25d366;
  stroke-width: 2.4;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: inquiryCircle 0.55s ease forwards;
}
.inquiry-success-tick {
  stroke: #25d366;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: inquiryTick 0.35s 0.35s ease forwards;
}
@keyframes inquiryCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes inquiryTick {
  to { stroke-dashoffset: 0; }
}
.inquiry-success-text {
  color: #222;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 18px;
}
.inquiry-success-close {
  border: none;
  border-radius: 999px;
  min-width: 96px;
  min-height: 42px;
  padding: 0 18px;
  background: #25d366;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
