/* 器脉在线官网 — 1:1 设计稿还原 */
:root {
  --brown: #7a5230;
  --brown-deep: #5f3d22;
  --brown-soft: #a68966;
  --cream: #f8f5f0;
  --cream-2: #f3eee6;
  --bg: #fdfbf7;
  --white: #ffffff;
  --text: #2c241c;
  --muted: #8a8178;
  --line: #e6e0d6;
  --price: #c08a3e;
  --radius: 6px;
  --shadow-soft: 0 6px 20px rgba(70, 45, 20, 0.06);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --header-h: 68px;
  --max: 1160px;
  --phone-screen-h: 520px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
strong {
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--font-serif);
  margin: 0;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* Buttons */
.btn-primary,
.btn-ghost,
.btn-login,
.btn-register,
.btn-sm,
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  transition: 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brown);
  color: #fff;
  border: 1px solid var(--brown);
  padding: 11px 26px;
}

.btn-primary:hover {
  background: var(--brown-deep);
  border-color: var(--brown-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--brown-soft);
  border: 1px solid #d5cfc4;
  padding: 11px 26px;
}

.btn-ghost:hover {
  border-color: var(--brown-soft);
  color: var(--brown);
  background: rgba(255, 255, 255, 0.55);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-login {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 16px;
  font-size: 13px;
}

.btn-login:hover {
  border-color: var(--brown-soft);
  color: var(--brown);
}

.btn-register {
  background: var(--brown);
  color: #fff;
  border: 1px solid var(--brown);
  padding: 7px 16px;
  font-size: 13px;
}

.btn-register:hover {
  background: var(--brown-deep);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eeeae3;
  backdrop-filter: blur(8px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.06em;
}

.logo-text small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  margin: 0 8px;
}

.nav a {
  padding: 8px 12px;
  font-size: 14px;
  color: #5a534c;
  border-radius: 4px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--brown);
}

.nav a.active {
  color: var(--brown);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  width: 210px;
  height: 34px;
  padding: 0 4px 0 14px;
  border: 1px solid #ddd7cd;
  border-radius: 999px;
  background: #fff;
}

.search-box:focus-within {
  border-color: var(--brown-soft);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
}

.search-box input::placeholder {
  color: #b0a79c;
}

.search-box button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9a9188;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #f7f2ea;
  background-image: url("../assets/hero-bg.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  min-height: 560px;
  padding: 48px 0 44px;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.28;
  letter-spacing: 0.08em;
  color: #2a2118;
  font-weight: 700;
}

.hero-sub {
  margin: 14px 0 0;
  font-size: 16px;
  color: #6e645a;
  letter-spacing: 0.18em;
  font-weight: 400;
}

.hero-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 34px;
  max-width: 460px;
}

.hero-feats li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d2c6b6;
  color: var(--brown);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
}

.hero-feats strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.hero-feats em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* iPhone 16 Pro 样式机模 */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 12px 8px 0;
}

.iphone {
  position: relative;
  width: 262px;
  filter: drop-shadow(0 28px 48px rgba(40, 28, 16, 0.28));
  animation: phoneIn 0.9s ease both;
}

@keyframes phoneIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.iphone-frame {
  position: relative;
  background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 45%, #2c2c2e 100%);
  border-radius: 42px;
  padding: 11px;
  border: 1px solid #555;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 3px #0a0a0a;
}

.iphone-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.iphone-island::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a3a55, #0a1520 70%);
  box-shadow: 0 0 0 1.5px #111;
}

.iphone-screen {
  position: relative;
  height: var(--phone-screen-h);
  border-radius: 32px;
  overflow: hidden;
  background: #f5f0e8;
}

.iphone-scroll {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.iphone-scroll img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.iphone-scroll img.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

.iphone-scroll img.is-leaving {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .iphone-scroll img {
    transition: none;
    transform: none;
  }
}

.iphone-side {
  position: absolute;
  background: #2a2a2c;
  border-radius: 2px;
  z-index: 0;
}

.iphone-side.left {
  left: -3px;
  top: 110px;
  width: 3px;
  height: 28px;
  box-shadow: 0 48px 0 #2a2a2c, 0 92px 0 #2a2a2c;
}

.iphone-side.right {
  right: -3px;
  top: 150px;
  width: 3px;
  height: 64px;
}

/* ========== Categories（接口 getSearchCategoryList） ========== */
.categories {
  background: #fff;
  padding: 32px 0 28px;
  border-bottom: 1px solid #f0ebe3;
}

.cat-wrap {
  position: relative;
}

.cat-list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px 10px;
}

.cat-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.cat-list a:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f3eee6;
  box-shadow: 0 2px 10px rgba(60, 40, 20, 0.08);
  border: 1px solid rgba(210, 198, 182, 0.65);
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cat-toggle {
  display: none;
  margin: 14px auto 0;
  padding: 8px 18px;
  border: 1px solid #ddd4c8;
  border-radius: 999px;
  background: #fff;
  color: var(--brown-deep);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.cat-toggle:hover {
  background: var(--cream);
  border-color: var(--brown);
}

.cat-icon.fallback {
  background: var(--brown);
}

.cat-list em {
  font-style: normal;
  font-size: 13px;
  color: #3d3630;
  line-height: 1.3;
  text-align: center;
}

.cat-loading,
.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
}

/* ========== Products ========== */
.products {
  padding: 42px 0 28px;
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.more {
  font-size: 13px;
  color: var(--brown-soft);
}

.more:hover {
  color: var(--brown);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

.product-card {
  min-width: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #ece7e0;
  flex-shrink: 0;
}

.product-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.product-card:hover .product-cover img {
  transform: scale(1.04);
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
  min-width: 0;
}

.product-name {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  min-height: calc(1.4em * 2);
}

.product-price {
  margin-top: auto;
  color: var(--price);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price.is-locked {
  color: var(--brown-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-skeleton {
  min-width: 0;
  aspect-ratio: 1 / 1.45;
  height: auto;
  border-radius: 8px;
  background: linear-gradient(90deg, #ebe6df 25%, #f5f1eb 50%, #ebe6df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.list-status {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.list-status.error {
  color: #c0392b;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.load-more {
  min-width: 160px;
  padding: 11px 28px;
  border: 1px solid #d2c6b6;
  border-radius: 999px;
  background: #fff;
  color: var(--brown-deep);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.load-more:hover:not(:disabled) {
  background: var(--cream);
  border-color: var(--brown);
  color: var(--brown);
}

.load-more:disabled {
  opacity: 0.65;
  cursor: wait;
}

.load-more[hidden] {
  display: none;
}

/* ========== Why ========== */
.why {
  padding: 18px 0 48px;
  background: var(--bg);
}

.why-panel {
  background: #f7f3ed;
  border-radius: 12px;
  padding: 36px 40px 32px;
}

.why-panel h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #efe8dc;
  color: var(--brown);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.why-grid strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.why-grid em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* ========== Footer ========== */
.site-footer {
  background: #f7f3ed;
  border-top: 1px solid #ebe4da;
  padding-top: 48px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-family: var(--font-serif);
  color: var(--brown-deep);
  letter-spacing: 0.04em;
}

.footer-about p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #6b635a;
}

.app-tip {
  margin: -6px 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.app-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qr-box {
  position: relative;
  width: 112px;
  height: 112px;
  background: #fff;
  border: 1px solid #e5dfd5;
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}

.qr-box img.qr-logo,
.qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  padding: 3px;
  background: #fff;
  border-radius: 6px;
  object-fit: contain;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.qr-code {
  width: 100%;
  height: 100%;
}

.qr-code img,
.qr-code canvas,
.qr-code table {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.store-btns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.store-btn {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  justify-content: center;
}

.store-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
}

.store-btn.android {
  background: var(--brown);
}

.store-btn.android:hover {
  background: var(--brown-deep);
}

.store-btn.ios {
  background: #2c2c2c;
}

.store-btn.ios:hover {
  background: #111;
}

.footer-contact ul {
  display: grid;
  gap: 10px;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 8px;
  font-size: 13px;
  align-items: start;
}

.footer-contact span {
  color: var(--muted);
}

.footer-contact b {
  font-weight: 500;
  color: #4a433c;
  overflow-wrap: anywhere;
}

.footer-contact .work-hours {
  white-space: nowrap;
  overflow-wrap: normal;
}

.footer-bottom {
  border-top: 1px solid #e8e1d6;
  padding: 18px 0 28px;
  text-align: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
  color: #6b635a;
}

.legal-links span {
  color: #cfc7bb;
}

.legal-links a:hover {
  color: var(--brown);
}

.copyright {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9a9188;
}

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

.copyright a:hover {
  color: var(--brown);
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .cat-list {
    grid-template-columns: repeat(6, 1fr);
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .nav {
    display: none;
  }

  .header-inner.nav-open .nav {
    display: flex;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    margin: 0;
    z-index: 50;
    gap: 2px;
  }

  .header-inner.nav-open .nav a {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
    --phone-screen-h: 380px;
  }

  .container {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    background-position: 70% center;
    background-size: cover;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(247, 242, 234, 0.82) 0%,
      rgba(247, 242, 234, 0.55) 42%,
      rgba(247, 242, 234, 0.2) 100%
    );
    pointer-events: none;
    z-index: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0 28px;
    gap: 20px;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
    justify-self: stretch;
    order: 1;
  }

  .hero-copy h1 {
    font-size: clamp(22px, 5.6vw, 28px);
    letter-spacing: 0.04em;
    line-height: 1.3;
    white-space: nowrap;
  }

  .hero-title-br {
    display: none;
  }

  .hero-sub {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .hero-feats {
    margin: 22px auto 0;
    gap: 14px 16px;
    max-width: 420px;
    text-align: left;
  }

  .feat-icon {
    width: 36px;
    height: 36px;
  }

  .hero-cta {
    margin: 22px auto 0;
    gap: 10px;
    justify-content: center;
    max-width: 420px;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 14px;
  }

  .hero-visual {
    order: 0;
    padding: 0;
  }

  .iphone {
    width: 190px;
  }

  .iphone-frame {
    border-radius: 34px;
    padding: 9px;
  }

  .iphone-island {
    top: 16px;
    width: 72px;
    height: 22px;
  }

  .iphone-screen {
    border-radius: 26px;
  }

  .iphone-side {
    display: none;
  }

  .categories {
    padding: 18px 0 14px;
  }

  .cat-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 8px;
  }

  .cat-wrap.is-collapsed .cat-list > li:nth-child(n + 5) {
    display: none;
  }

  .cat-toggle {
    display: block;
  }

  .cat-toggle[hidden] {
    display: none;
  }

  .products {
    padding: 28px 0 16px;
  }

  .section-head {
    margin-bottom: 16px;
    gap: 12px;
  }

  .section-head h2,
  .why-panel h2 {
    font-size: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .product-name {
    font-size: 13px;
    min-height: calc(1.35em * 2);
    line-height: 1.35;
  }

  .product-price {
    font-size: 15px;
  }

  .why {
    padding: 8px 0 28px;
  }

  .why-panel {
    padding: 24px 16px 20px;
    border-radius: 10px;
  }

  .why-panel h2 {
    margin-bottom: 20px;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .why-grid li {
    gap: 10px;
    align-items: flex-start;
  }

  .why-icon {
    width: 44px;
    height: 44px;
  }

  .why-icon svg {
    width: 24px;
    height: 24px;
  }

  .why-grid strong {
    font-size: 14px;
  }

  .why-grid em {
    font-size: 11px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
  }

  .site-footer {
    padding-top: 28px;
  }

  .site-footer h3 {
    margin-bottom: 10px;
  }

  .footer-about p {
    margin-bottom: 14px;
  }

  .app-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
  }

  .store-btns {
    flex: 1;
    min-width: 0;
  }

  .store-btn {
    min-width: 0;
    width: auto;
    padding: 10px 12px;
    font-size: 12px;
  }

  .footer-contact li {
    grid-template-columns: 4.2em 1fr;
    gap: 6px 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --phone-screen-h: 340px;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-text strong {
    font-size: 15px;
  }

  .logo-text small {
    display: none;
  }

  .search-box {
    width: 140px;
  }

  .search-box input {
    font-size: 12px;
  }

  .header-actions {
    gap: 6px;
    margin-left: auto;
  }

  .header-actions .btn-login {
    display: none;
  }

  .btn-register {
    padding: 7px 12px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .hero {
    background-position: 78% center;
  }

  .hero-inner {
    padding: 16px 0 22px;
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.35;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .hero-sub {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .hero-feats {
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    margin-top: 18px;
  }

  .hero-feats strong {
    font-size: 13px;
  }

  .hero-feats em {
    font-size: 11px;
  }

  .feat-icon {
    width: 32px;
    height: 32px;
  }

  .feat-icon svg {
    width: 16px;
    height: 16px;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: nowrap;
    margin-top: 18px;
    width: 100%;
    max-width: none;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 11px 12px;
    font-size: 13px;
    justify-content: center;
  }

  .iphone {
    width: 168px;
  }

  .iphone-frame {
    border-radius: 28px;
    padding: 7px;
  }

  .iphone-island {
    top: 12px;
    width: 58px;
    height: 18px;
  }

  .iphone-screen {
    border-radius: 22px;
  }

  .cat-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 4px;
  }

  .cat-icon {
    width: 44px;
    height: 44px;
  }

  .cat-list em {
    font-size: 12px;
  }

  .cat-toggle {
    margin-top: 10px;
    padding: 7px 16px;
    font-size: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    gap: 8px;
  }

  .product-cover {
    border-radius: 6px;
  }

  .product-name {
    font-size: 12px;
    min-height: calc(1.35em * 2);
  }

  .product-price {
    font-size: 14px;
  }

  .load-more-wrap {
    margin-top: 20px;
  }

  .load-more {
    width: min(100%, 240px);
  }

  .why-panel {
    padding: 20px 12px 16px;
  }

  .why-grid {
    gap: 14px 8px;
  }

  .why-icon {
    width: 40px;
    height: 40px;
  }

  .app-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
  }

  .qr-box {
    width: 108px;
    height: 108px;
    margin: 0 auto;
  }

  .store-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    flex: none;
    min-width: 0;
    gap: 10px;
  }

  .store-btn {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 11px 10px;
    font-size: 13px;
  }

  .footer-contact li {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5dfd5;
  }

  .footer-contact li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-contact span {
    font-size: 11px;
  }

  .footer-contact b {
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
  }

  .footer-contact .work-hours {
    white-space: normal;
  }

  .legal-links {
    gap: 8px 10px;
    font-size: 12px;
    justify-content: center;
  }

  .legal-links span {
    display: none;
  }

  .copyright {
    font-size: 11px;
    line-height: 1.6;
    padding: 0 4px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  :root {
    --phone-screen-h: 300px;
  }

  .iphone {
    width: 148px;
  }

  .search-box {
    display: none;
  }

  .hero-copy h1 {
    font-size: 17px;
    white-space: nowrap;
  }

  .hero-sub {
    font-size: 11px;
    margin-top: 4px;
  }

  .hero-feats {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 24px;
  }
}

/* 防止横向溢出 */
html,
body {
  overflow-x: hidden;
}

@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
