/* 一元购 H5 — 京东红 + 渐变，移动端优先 */
:root {
  --red: #E4393C;
  --bg: #F5F5F5;
  --card: #fff;
  --text: #333;
  --muted: #999;
  --nav-h: 56px;
  --top-h: 48px;
}
* { box-sizing: border-box; }
body.page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--nav-h) + 12px);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #E4393C, #C62F2F);
  color: #fff;
  min-height: var(--top-h);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}
.site-title { font-weight: 600; }
.lang-switch { color: #fff; text-decoration: none; font-size: 14px; opacity: .95; }
.main-wrap { padding: 10px 10px 0; }
.search-bar input {
  width: 100%;
  border: none;
  border-radius: 20px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.banner-wrap { margin: 10px 0; border-radius: 10px; overflow: hidden; }
.banner-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.banner-item {
  min-width: 100%;
  height: 140px;
  background: center/cover no-repeat #ddd;
  scroll-snap-align: start;
}
.notice-strip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: #666;
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cat-chips a {
  padding: 6px 12px; border-radius: 16px;
  background: linear-gradient(135deg, #FF6B35, #E4393C); color: #fff; text-decoration: none; font-size: 13px;
}
.section { margin: 18px 0; }
.section-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-hd h2 { margin: 0; font-size: 16px; }
.section-hd a { color: var(--red); text-decoration: none; font-size: 13px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-card {
  background: var(--card); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1);
}
.p-card:active { transform: scale(.98); }
.p-img {
  height: 110px; background: center/cover no-repeat #eee; position: relative;
}
.badge {
  position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; border-radius: 4px; color: #fff;
}
.badge.hot { background: linear-gradient(135deg, #FF6B35, #E4393C); }
.badge.cd { background: linear-gradient(135deg, #FFD700, #FFA500); color: #333; }
.p-info { padding: 8px; }
.p-title { font-size: 14px; font-weight: 600; line-height: 1.3; height: 2.6em; overflow: hidden; }
.p-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.p-row { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; }
.price { color: var(--red); font-weight: 700; }
.progress { height: 6px; background: #eee; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.progress.lg { height: 8px; }
.progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
  border-radius: 3px;
  transition: width .8s ease-in-out;
}
.countdown-grid { display: flex; flex-direction: column; gap: 10px; }
.cd-card {
  display: flex; gap: 10px; background: #fff; border-radius: 10px; padding: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.pulse-bg { animation: pulseOp 2s ease-in-out infinite; }
@keyframes pulseOp { 0%,100%{opacity:1} 50%{opacity:.88} }
@media (prefers-reduced-motion: reduce) { .pulse-bg { animation: none; } }
.cd-cover { width: 72px; height: 72px; border-radius: 8px; background: center/cover no-repeat #eee; flex-shrink: 0; }
.cd-body { flex: 1; min-width: 0; }
.cd-title { font-weight: 600; font-size: 14px; }
.cd-meta { font-size: 12px; color: #666; margin-top: 4px; }
.cd-timer { font-size: 18px; font-weight: 700; color: var(--red); margin-top: 6px; font-variant-numeric: tabular-nums; }
.cd-timer.lg { font-size: 22px; }
.reveal-mini { display: flex; flex-direction: column; gap: 8px; }
.rm-item {
  display: flex; gap: 10px; align-items: center; background: #fff; padding: 8px; border-radius: 8px; text-decoration: none; color: inherit;
}
.rm-cover { width: 48px; height: 48px; border-radius: 6px; background: center/cover no-repeat #eee; }
.rm-sub { font-size: 12px; color: var(--muted); }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  height: var(--nav-h); background: #fff; border-top: 1px solid #eee;
  display: flex; justify-content: space-around; align-items: center; z-index: 100;
}
.bottom-nav a {
  flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 11px;
  display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.bottom-nav a.active { color: var(--red); }
.bottom-nav .ico { font-size: 18px; line-height: 1; }
.page-pad { padding: 8px 4px 12px; }
.page-title { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 13px; }
.detail-cover { height: 200px; background: center/cover no-repeat #eee; border-radius: 0 0 12px 12px; }
.detail-block { background: #fff; margin: 10px 0; padding: 12px; border-radius: 10px; }
.detail-page { padding-bottom: 72px; }
.fix-bar {
  position: fixed; left: 0; right: 0; bottom: var(--nav-h); max-width: 480px; margin: 0 auto;
  background: #fff; border-top: 1px solid #eee; padding: 8px; display: flex; gap: 8px; z-index: 90;
}
.buy-form { flex: 1; display: flex; gap: 6px; align-items: center; }
.buy-form input[type=number] { width: 48px; }
.btn {
  border: none; border-radius: 22px; padding: 10px 16px; cursor: pointer; font-size: 14px;
  text-align: center; text-decoration: none; display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, #E4393C, #C1272D); color: #fff; flex: 1;
  box-shadow: 0 4px 12px rgba(228,57,60,.35);
}
.btn-ghost { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn-block { width: 100%; }
.part-list { margin: 0; padding-left: 18px; font-size: 13px; color: #555; }
.content-html img { max-width: 100%; height: auto; }
.user-head {
  background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 24px 16px; border-radius: 0 0 16px 16px; margin: -10px -10px 12px;
}
.uh-name { font-size: 20px; font-weight: 700; }
.uh-stats { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; }
.menu-list a {
  display: block; background: #fff; padding: 14px 12px; border-bottom: 1px solid #f0f0f0; color: #333; text-decoration: none;
}
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.auth-card { background: #fff; padding: 20px; border-radius: 12px; width: 100%; max-width: 360px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.auth-card input { width: 100%; margin: 6px 0 12px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.err { color: var(--red); font-size: 13px; }
.ok { color: #2e7d32; font-size: 13px; }
.cart-row { display: flex; gap: 10px; background: #fff; padding: 10px; border-radius: 10px; margin-bottom: 10px; align-items: flex-start; }
.cart-cover { width: 64px; height: 64px; border-radius: 8px; background: center/cover no-repeat #eee; flex-shrink: 0; }
.cart-main { flex: 1; min-width: 0; font-size: 13px; }
.cart-sum { display: flex; justify-content: space-between; padding: 12px 0; font-size: 16px; font-weight: 700; }
.inline-form { margin-top: 6px; }
.btn-mini { font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid #ddd; background: #fff; }
.btn-link { background: none; border: none; color: var(--red); cursor: pointer; padding: 0; }
.order-lines { padding-left: 18px; }
.order-card { display: block; background: #fff; padding: 12px; border-radius: 10px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs a { flex: 1; text-align: center; padding: 10px; background: #fff; border-radius: 8px; text-decoration: none; color: #666; }
.tabs a.on { color: var(--red); font-weight: 700; border: 1px solid var(--red); }
.reveal-list { display: flex; flex-direction: column; gap: 10px; }
.rv-card { display: flex; gap: 10px; background: #fff; padding: 10px; border-radius: 10px; text-decoration: none; color: inherit; }
.rv-cover { width: 72px; height: 72px; border-radius: 8px; background: center/cover no-repeat #eee; flex-shrink: 0; }
.tag-cd { font-size: 12px; color: var(--red); }
.cat-list .cat-row { display: block; background: #fff; padding: 14px; margin-bottom: 8px; border-radius: 10px; text-decoration: none; color: #333; }
.filter-row { display: flex; gap: 8px; margin-bottom: 12px; }
.filter-row select { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid #ddd; }
.win-banner { background: linear-gradient(135deg, #FFD700, #FFA500); padding: 12px; border-radius: 10px; color: #333; }
.warn { color: var(--red); font-size: 12px; }
.msg-list { list-style: none; padding: 0; margin: 0; }
.msg-list li { background: #fff; padding: 10px; border-radius: 8px; margin-bottom: 8px; }
.msg-list li.unread { border-left: 3px solid var(--red); }
.addr-card { background: #fff; padding: 12px; border-radius: 10px; margin-bottom: 10px; }
