/* ─── Design tokens ─── */
:root {
  --ink: #443b3a;
  --gold: #d28540;
  --bg: #ffffff;
  --soft: #f7f5f3;
  --line: #e9e2dc;
  --text: #443b3a;
  --muted: #766b68;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(68, 59, 58, 0.08);
  --max: 430px;
}

/* ─── Reset ─── */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

body {
  display: flex;
  justify-content: center;
  padding: 0;
}

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

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

/* ─── Phone frame ─── */
.phone-frame {
  width: 100%;
  max-width: var(--max);
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 18px;
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 30;
  background: var(--bg);
  padding: 12px 14px;
  border-radius: 14px;
}

/* ─── Top bar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
  overflow: hidden;
  padding: 4px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.topbar-action {
  min-height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}

/* ─── Sections ─── */
.section {
  padding: 11px 18px;
}

/* ─── Hero ─── */
.hero {
  padding-top: 10px;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-inline: 10px;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.single-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-wechat {
  background: #07c160;
  color: #fff;
  min-height: 32px;
  padding: 0 14px;
  width: auto;
  display: inline-flex;
  border-radius: 0;
  font-size: 11px;
}

.btn-phone {
  background: var(--ink);
  color: #fff;
  min-height: 32px;
  padding: 0 14px;
  width: auto;
  display: inline-flex;
  border-radius: 10px;
  font-size: 11px;
}

/* ─── Section heading ─── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 21px;
  line-height: 1.2;
}

.section-head span {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

h2 {
  font-size: 21px;
  line-height: 1.2;
}

h3 {
  font-size: 16px;
  line-height: 1.3;
}

.section-copy {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ─── Cards grid ─── */
.grid {
  display: grid;
  gap: 12px;
}

/* ─── Category & product cards ─── */
.category-card,
.product-card,
.info-card,
.contact-card-dark {
  border: none;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.category-image,
.product-image {
  height: 200px;
  background: linear-gradient(135deg, #f2ece7, #fbf8f6);
  overflow: hidden;
}

.category-image img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.card-body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.card-meta {
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chip {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(210,133,64,0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ─── About / info cards ─── */
.about-grid {
  display: grid;
  gap: 10px;
}

.info-card {
  padding: 14px;
  background: var(--soft);
  border: none;
  border-radius: 20px;
}

.info-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* ─── Products strip ─── */
.products-strip {
  display: grid;
  gap: 12px;
}

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

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ─── Contact card (dark) ─── */
.contact-card-dark {
  background: var(--ink);
  color: #fff;
  padding: 18px;
}

.contact-card-dark h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.contact-card-dark p {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  line-height: 1.6;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.contact-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-item small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.contact-item strong {
  font-size: 15px;
}

.contact-item a {
  text-decoration: none;
  color: inherit;
}

/* ─── Contact page light cards ─── */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-card-light {
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.contact-card-light small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-card-light strong {
  font-size: 13px;
}

.contact-card-light a {
  text-decoration: none;
  color: inherit;
}

/* ─── QR card ─── */
.qr-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.qr-image {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

/* ─── Feature banner ─── */
.feature-banner {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.feature-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Back button ─── */
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  flex: 0 0 auto;
}

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
}

/* ─── Product detail ─── */
.product-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.product-image-panel {
  overflow: hidden;
  min-height: 200px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.product-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-copy .hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.detail-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-card {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

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

.feature-list li {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 13px;
}

.spec-list {
  margin: 10px 0 0;
  padding: 0;
}

.spec-list div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

/* ─── Horizontal swiper ─── */
.swiper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.swiper-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.swiper-track::-webkit-scrollbar {
  display: none;
}

.swiper-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.swiper-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
}

.swiper-dot.active {
  background: #fff;
}

/* ─── Product info ─── */
.product-info {
  margin-bottom: 14px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

/* ─── Contact actions row ─── */
.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

/* ─── Desktop enhancement ─── */
@media (min-width: 700px) {
  body {
    background: #f3f1ef;
    padding: 24px;
  }

  .phone-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(68,59,58,0.12);
    min-height: calc(100vh - 48px);
  }
}
