:root {
  --primary: #ed4025;
  --text: #1f2937;
  --muted: #9ca3af;
  --sub: #6b7280;
  --line: #f3f4f6;
  --bg: #f5f5f5;
  --page: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: #e8e8e8;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button, input { font-family: inherit; }

.app {
  width: 100%;
  max-width: var(--page);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: 72px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  line-height: 1;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
}

.brand span {
  font-size: 15px;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.02em;
}

.search {
  flex: 1;
  min-width: 0;
}

.search input {
  width: 100%;
  height: 32px;
  border: 0;
  outline: none;
  border-radius: 4px;
  background: #f3f4f6;
  padding: 0 12px;
  font-size: 12px;
  color: var(--text);
}

.search input::placeholder { color: #b0b0b0; }

.cart {
  position: relative;
  flex-shrink: 0;
  color: #374151;
  display: flex;
}

.hero {
  position: relative;
  display: block;
  height: 160px;
  overflow: hidden;
  background: #c2351e;
}

.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.slide-a {
  background-image: url("https://h5.zongpukj.cn/assets/banners/t49-banner1.jpg");
  animation: fadeA 11s infinite;
}

.slide-b {
  background-image: url("https://h5.zongpukj.cn/assets/banners/t49-banner2.jpg");
  animation: fadeB 11s infinite;
}

@keyframes fadeA {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeB {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.dots i:first-child { animation: dotA 11s infinite; }
.dots i:last-child { animation: dotB 11s infinite; }

@keyframes dotA {
  0%, 40% { background: #fff; }
  50%, 90% { background: rgba(255, 255, 255, 0.4); }
  100% { background: #fff; }
}

@keyframes dotB {
  0%, 40% { background: rgba(255, 255, 255, 0.4); }
  50%, 90% { background: #fff; }
  100% { background: rgba(255, 255, 255, 0.4); }
}

.cats-wrap {
  background: #fff;
  padding: 8px 0;
}

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar { display: none; }

.cats a {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  color: #374151;
  background: #fff;
}

.panel {
  margin-top: 8px;
  background: #fff;
}

.panel-hd {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.panel-hd h2 {
  font-size: 14px;
  font-weight: 800;
}

.panel-hd h2.hot { color: var(--primary); }

.panel-hd .more {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.promo a {
  display: block;
  padding: 12px;
  background: #fff1f0;
  border: 1px solid var(--line);
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.4;
  color: #fff;
  background: var(--primary);
}

.promo h3 {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #111;
}

.promo p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--sub);
}

.pick a {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.pick img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fafafa;
}

.pick-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.price {
  margin-top: auto;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.price s {
  margin-left: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.detail {
  margin-top: 4px;
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.worth-wrap { margin-bottom: 16px; }

.worth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.worth a { display: block; background: #fff; }

.worth .pic {
  aspect-ratio: 1;
  padding: 8px;
  background: #fff;
}

.worth img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.worth .meta { padding: 0 8px 8px; }

.worth .clamp2 { min-height: 2rem; }

.worth .price { margin-top: 4px; }

.footer {
  padding: 12px 16px 8px;
  text-align: center;
}

.footer img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.company {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.icp {
  padding: 8px 16px 10px;
  font-size: 12px;
  color: var(--muted);
}

.icp a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.icp a:hover { opacity: 0.8; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  width: min(100%, var(--page));
  height: 56px;
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
}

.tab.on { color: var(--primary); }

.tab svg { display: block; }

textarea { font-family: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.topbar .back,
.topbar .side {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.topbar .back { left: 4px; }
.topbar .side { right: 4px; }

.list-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

.list-search { padding: 8px 12px; }

.list-search input {
  width: 100%;
  height: 36px;
  border: 0;
  outline: none;
  background: #f3f4f6;
  padding: 0 16px;
  font-size: 12px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 8px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1;
  padding: 6px 12px;
  color: #4b5563;
}

.chip.on {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.count-line {
  padding: 8px 0;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.gcard { display: block; background: #fff; }

.gpic { aspect-ratio: 1; padding: 6px; }

.gpic img { width: 100%; height: 100%; object-fit: contain; }

.gmeta { padding: 0 6px 8px; }

.gmeta .clamp2 { font-size: 10px; min-height: 1.8rem; }

.gmeta .price { margin-top: 2px; font-size: 12px; }

.sub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.cart-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #1f2937;
}

.cart-item {
  display: flex;
  gap: 10px;
  margin: 8px 12px 0;
  padding: 12px;
  background: #fff;
  border-left: 4px solid var(--primary);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.cart-item > a {
  flex: 0 0 72px;
  width: 72px;
  min-width: 0;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f4f4f4;
  flex-shrink: 0;
}

.cart-item .grow,
.line-item .grow {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.cart-item .clamp2,
.line-item .clamp2 {
  display: block;
  white-space: normal;
  word-break: break-all;
  -webkit-line-clamp: unset;
}

.cart-row {
  display: block;
  margin-top: 8px;
}

.cart-row .qty { margin-top: 6px; width: max-content; }

.qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty span,
.qty a {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  background: #fff;
}

.qty .plus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.del {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}

.empty {
  padding: 64px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.empty a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.settle {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
}

.settle .sum { flex: 1; min-width: 0; }
.settle .hint { font-size: 10px; color: rgba(255, 255, 255, 0.8); }
.settle strong { display: block; font-size: 18px; line-height: 1.2; }

.settle .go {
  flex-shrink: 0;
  padding: 10px 24px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.app.pad-cart { padding-bottom: 132px; }
.app.pad-buy { padding-bottom: 96px; }

.member {
  padding: 24px 16px 40px;
  background: var(--primary);
}

.member .en {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.7);
}

.member h1 {
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.member .tip {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.sheet { padding: 0 12px; margin-top: -24px; }

.member-card {
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pair { display: flex; gap: 8px; }

.btn-fill,
.btn-line,
.btn-block {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 0;
}

.btn-fill { flex: 1; background: var(--primary); color: #fff; }
.btn-line { flex: 1; border: 1px solid var(--primary); color: var(--primary); }

.btn-block {
  margin-top: 4px;
  padding: 14px 0;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  text-align: center;
}

.stats strong { display: block; font-size: 18px; font-weight: 800; }
.stats .hotnum { color: var(--primary); }
.stats span { font-size: 10px; color: var(--muted); }

.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
}

.hotline {
  margin-top: 24px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}

.card {
  margin: 12px;
  padding: 16px;
  background: #fff;
  max-width: calc(100% - 24px);
  overflow: hidden;
}

.card h2 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }

.field {
  width: 100%;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 8px;
  outline: none;
  background: #fff;
}

.switch-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--primary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 12px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}

.steps span { padding: 8px 0; }
.steps .dim { background: var(--primary); color: rgba(255, 255, 255, 0.7); }
.steps .on { background: var(--primary); color: #fff; }
.steps .off { background: #fff; color: var(--muted); }

.coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px;
  padding: 12px 16px;
  background: #fff1f0;
}

.coupon b { display: block; font-size: 14px; }
.coupon span { font-size: 10px; color: var(--sub); }

.coupon a {
  padding: 6px 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.line-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.line-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.line-item .grow { flex: 1; min-width: 0; }
.line-item .amt { font-size: 14px; font-weight: 700; color: var(--primary); }

.split {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--sub);
}

.split.pay {
  font-weight: 700;
  color: var(--text);
}

.split.pay b { color: var(--primary); }

.paybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.hero-img {
  background: #fff;
  aspect-ratio: 1;
  padding: 24px;
}

.hero-img img { width: 100%; height: 100%; object-fit: contain; }

.price-band { background: #fff1f0; padding: 12px 16px; }
.price-band .big { font-size: 24px; font-weight: 800; color: var(--primary); }
.price-band .daily { margin-top: 2px; font-size: 10px; color: var(--sub); }

.block { margin-top: 8px; padding: 16px; background: #fff; }
.block h1 { font-size: 16px; font-weight: 500; }
.block h2 { margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.block .label { margin-bottom: 8px; font-size: 12px; color: var(--sub); }
.desc { font-size: 12px; color: #4b5563; line-height: 1.7; }

.specs a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}

.specs:not(:has(:target)) a:first-child,
.specs a:target {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

.detail-photo {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: #fff;
}

.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.svc {
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--sub);
  font-size: 10px;
}

.buybar .ghost,
.buybar .solid {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
}

.buybar .ghost {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.buybar .solid {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.help-chips { padding-top: 12px; }

.help-group { margin: 0 12px 12px; background: #fff; }

.help-group h2 {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.help-group details { border-bottom: 1px solid var(--line); }

.help-group summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.help-group summary::-webkit-details-marker { display: none; }

.help-group details p {
  padding: 0 16px 12px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.7;
}

.done {
  padding: 72px 24px 24px;
  text-align: center;
}

.done h1 { font-size: 18px; font-weight: 800; }
.done p { margin-top: 8px; font-size: 12px; color: var(--sub); line-height: 1.7; }

.done .btn-fill {
  display: inline-block;
  min-width: 160px;
  margin-top: 20px;
  padding: 10px 16px;
}
