:root {
  --bg: #f7f1e7;
  --bg-soft: #fbf7ef;
  --panel: #fffaf2;
  --panel-strong: #ffffff;
  --ink: #241816;
  --muted: #766860;
  --line: rgba(80, 49, 38, 0.16);
  --red: #7a2023;
  --red-deep: #4d1115;
  --wood: #4c2f24;
  --gold: #c6a35b;
  --green: #1f4c3b;
  --warning-bg: #f3e8d7;
  --shadow: 0 14px 34px rgba(74, 37, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(122, 32, 35, 0.08), rgba(31, 76, 59, 0.06) 45%, rgba(198, 163, 91, 0.06)),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.58;
  letter-spacing: 0;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

#mobileApp {
  width: min(100vw, 560px);
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 54px;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  background: var(--bg-soft);
  box-shadow: 0 0 0 1px rgba(80, 49, 38, 0.06);
}

.mobile-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 54px;
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.mobile-header-inner {
  width: min(100vw, 560px);
  max-width: 100%;
  height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
}

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

.mobile-brand img {
  width: 104px;
  height: auto;
}

.brand-word {
  display: none;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--wood);
  background: #fff;
  display: inline-grid;
  place-items: center;
}

.icon-lines,
.icon-lines::before,
.icon-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
  content: "";
}

.icon-lines {
  position: relative;
}

.icon-lines::before,
.icon-lines::after {
  position: absolute;
  left: 0;
}

.icon-lines::before {
  top: -6px;
}

.icon-lines::after {
  top: 6px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(36, 24, 22, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(86vw, 380px);
  height: 100dvh;
  padding: calc(14px + env(safe-area-inset-top)) 18px 24px;
  background: #fffaf2;
  box-shadow: -22px 0 46px rgba(42, 24, 17, 0.22);
  transform: translateX(102%);
  transition: transform 220ms ease;
  overflow-y: auto;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--red-deep);
}

.drawer-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.drawer-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(80, 49, 38, 0.1);
  color: var(--wood);
  font-size: 16px;
  font-weight: 700;
}

.drawer-nav a::after {
  content: "›";
  color: var(--gold);
  font-size: 22px;
}

.mobile-bottom-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 35;
  width: min(100vw, 560px);
  max-width: 100%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 242, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -16px 32px rgba(70, 37, 28, 0.13);
  backdrop-filter: blur(14px);
}

.section,
.hero {
  padding: 22px 16px;
}

.section + .section {
  border-top: 1px solid rgba(80, 49, 38, 0.08);
}

.hero {
  min-height: calc(100dvh - 54px);
  display: grid;
  align-content: center;
  gap: 16px;
  background:
    linear-gradient(160deg, rgba(122, 32, 35, 0.95), rgba(77, 17, 21, 0.92) 48%, rgba(64, 47, 36, 0.94)),
    var(--red-deep);
  color: #fff7ea;
}

.hero.compact-hero {
  min-height: 320px;
}

.hero h1,
.section-title,
.card h3,
.article-title {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(25px, 7.4vw, 32px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero p {
  margin: 10px 0 0;
  color: rgba(255, 247, 234, 0.86);
  overflow-wrap: anywhere;
}

.hero .notice {
  color: rgba(255, 247, 234, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #f2d28b;
}

.section-title {
  font-size: clamp(20px, 6.4vw, 28px);
  color: var(--red-deep);
}

.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.hero-media {
  margin-top: 8px;
}

.hero-product-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-product-mini {
  min-height: 165px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.1);
}

.hero-product-mini img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.18));
}

.hero-product-mini strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.hero-product-mini small {
  color: rgba(255, 247, 234, 0.76);
}

.card,
.soft-panel,
.notice,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.card {
  padding: 14px;
  box-shadow: var(--shadow);
}

.card + .card,
.stack > * + * {
  margin-top: 10px;
}

.card h3 {
  font-size: 18px;
  color: var(--wood);
}

.card p {
  margin: 7px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.soft-panel {
  padding: 14px;
  background: var(--panel);
}

.notice {
  padding: 9px 10px;
  color: #755c40;
  background: var(--warning-bg);
  font-size: 13px;
}

.empty-state {
  display: none;
  margin-top: 12px;
  padding: 14px;
  color: var(--muted);
  background: var(--panel);
}

.empty-state.is-visible {
  display: block;
}

.button-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.button-row.two {
  grid-template-columns: 1fr 1fr;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.btn-primary {
  color: #fff8ec;
  background: var(--red);
  border-color: var(--red);
}

.btn-gold {
  color: #2d2118;
  background: var(--gold);
  border-color: var(--gold);
}

.btn-outline {
  color: var(--red);
  background: #fffaf2;
  border-color: rgba(122, 32, 35, 0.28);
}

.btn-green {
  color: #fffaf2;
  background: var(--green);
  border-color: var(--green);
}

.mobile-bottom-bar .btn {
  min-height: 40px;
  padding: 7px 5px;
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(122, 32, 35, 0.09);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.chip.gold {
  color: #745120;
  background: rgba(198, 163, 91, 0.22);
}

.chip.green {
  color: var(--green);
  background: rgba(31, 76, 59, 0.12);
}

.hero .chip {
  color: #fff7ea;
  background: rgba(255, 255, 255, 0.13);
}

.grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.product-card {
  display: grid;
  gap: 12px;
}

.product-thumb {
  min-height: 155px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(247, 241, 231, 0.4), rgba(244, 230, 206, 0.95)),
    #f4e6ce;
}

.product-thumb img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 8px;
}

.product-card h3 {
  margin-top: 8px;
}

.clean-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
}

.clean-list li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--gold);
  content: "";
}

.h-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 12px -16px 0;
  padding: 0 16px 5px;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--wood);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.tab.is-active {
  color: #fffaf2;
  background: var(--red);
  border-color: var(--red);
}

.scenario-card {
  min-height: 130px;
}

.accordion {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--wood);
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p,
details .detail-body {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
}

.gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 14px -16px 0;
  padding: 0 16px 7px;
}

.gallery-item {
  flex: 0 0 86%;
  scroll-snap-align: start;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.12);
}

.gallery-item img {
  max-height: 200px;
  object-fit: contain;
  padding: 10px;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.18));
}

.article-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.article-meta {
  color: var(--muted);
  font-size: 13px;
}

.article-title {
  margin-top: 8px;
  font-size: 17px;
}

.article-body {
  font-size: 15.5px;
}

.article-body h2 {
  margin: 18px 0 6px;
  color: var(--red-deep);
  font-size: 20px;
  line-height: 1.25;
}

.article-body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 11px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--wood);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(80, 49, 38, 0.2);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.inquiry-verification-row {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(100px, 1fr);
  gap: 8px;
  align-items: center;
}

.inquiry-verification-row strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border: 1px dashed rgba(80, 49, 38, 0.24);
  border-radius: 8px;
  background: var(--paper);
  color: var(--wood);
}

.inquiry-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.checkbox-line {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.contact-methods {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contact-method {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--wood);
  background: #fff;
  text-align: left;
}

.contact-method small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fffaf2;
  background: var(--green);
  font-weight: 900;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 100;
  transform: translate(-50%, 18px);
  max-width: min(88vw, 420px);
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(36, 24, 22, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.footer {
  width: min(100vw, 560px);
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 16px calc(92px + env(safe-area-inset-bottom));
  color: rgba(255, 247, 234, 0.84);
  background: var(--wood);
}

.footer h2 {
  margin: 0 0 6px;
  color: #fff7ea;
  font-size: 20px;
}

.footer a {
  color: #f2d28b;
}

.footer-notice {
  margin: 14px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(242, 210, 139, 0.36);
  border-radius: 8px;
  color: #5f4212;
  background: #fff4d8;
  font-size: 13px;
  line-height: 1.62;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: 13px;
}

.footer-record {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 210, 139, 0.28);
  text-align: center;
  font-size: 13px;
}

.footer .footer-record a {
  color: rgba(255, 247, 234, 0.82);
}

@media (min-width: 520px) {
  .brand-word {
    display: inline;
  }

  .button-row:not(.two) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button-row.single {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .hero-product-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
