/* ============================================================================
 * renjining.asia · style-v8-auto · 粗犷工业金属风
 * 主色: 钛钢灰 #2C2C2C
 * 强调: 霓虹黄 #FFEB3B + 烈焰红 #D32F2F
 * 辅色: 水泥灰 #5A5A5A + 金属白 #F5F5F5
 * 字体: Roboto / DIN (工业感无衬线)
 *
 * 全新设计元素:
 * 1. 首页品牌大区: 黑底霓虹字 "汽车配件 · 改装升级 · 原厂替换"
 * 2. 特价专区 (区别于 lilianhua 的秒杀): 倒计时 + 红色 tag 价 + 限购 X 件
 * 3. 新人专区 (区别于 lilianhua 的红包): 新人首单 9 折券 + "已领 N 人" 社交证明
 * 4. 购物车: 底部抽屉式 (区别于 lilianhua 的侧边抽屉)
 * 5. 分类: 左侧竖排树 (区别于 lilianhua 的顶部胶囊横滑)
 * 6. 商品排列: 移动端列表瀑布流 (区别于 lilianhua 的 2 列网格)
 * ========================================================================== */

:root {
  --color-primary: #2C2C2C;        /* 钛钢灰 */
  --color-primary-dark: #1A1A1A;
  --color-accent: #FFEB3B;         /* 霓虹黄 */
  --color-accent-dark: #FBC02D;
  --color-promo: #D32F2F;          /* 烈焰红 */
  --color-promo-dark: #B71C1C;
  --color-paper: #F5F5F5;          /* 金属白 */
  --color-paper-2: #E8E8E8;        /* 浅金属灰 */
  --color-ink: #1A1A1A;            /* 主文字 */
  --color-ink-light: #5A5A5A;      /* 副文字 */
  --color-ink-muted: #999;         /* 弱化文字 */
  --color-rule: #D5D5D5;           /* 浅灰分割线 */
  --color-muted: var(--color-ink-muted);
  --color-text-light: var(--color-ink-light);
  --color-text-lighter: var(--color-ink-muted);
  --color-border: var(--color-rule);
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 12px;
  --space-l: 16px;
  --space-xl: 24px;
  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
}

/* ========== 基础 ========== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: 'Roboto', 'DIN', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ========== Header (黑底霓虹) ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary);
  color: #fff;
  border-bottom: 3px solid var(--color-accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--color-accent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.header-logo-text .cn {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
}
.header-logo-text .en {
  font-size: 10px;
  opacity: 0.75;
  letter-spacing: 1px;
}
.header-cart {
  position: relative;
  background: rgba(255,235,59,0.15);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: 6px 14px 6px 32px;
  color: var(--color-accent);
  font-size: 12px;
  display: flex;
  align-items: center;
  min-width: 70px;
  height: 34px;
  font-weight: 600;
}
.header-cart::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23FFEB3B" stroke-width="2"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6"/></svg>') no-repeat;
  background-size: contain;
}
.header-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-promo);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-primary);
}

/* ========== Hero (黑底霓虹 Slogan) ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 32px 16px 40px;
  text-align: center;
  border-bottom: 3px solid var(--color-accent);
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,235,59,0.05) 50%, transparent 70%);
  pointer-events: none;
}
.hero-slogan-main {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(255,235,59,0.4);
}
.hero-slogan-sub {
  font-size: 13px;
  font-weight: 400;
  margin: 12px 0 0;
  opacity: 0.85;
  letter-spacing: 4px;
  position: relative;
  z-index: 1;
}
.hero-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.hero-tag {
  padding: 4px 12px;
  background: rgba(255,235,59,0.15);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ========== Banner 轮播 (替代 Hero 位置) ========== */
.banner {
  margin: 0 16px 16px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--color-paper-2);
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.banner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.banner-dot.active {
  width: 16px;
  border-radius: 3px;
  background: var(--color-accent);
}

/* ========== 新人首单 9 折券 (新设计) ========== */
.newbie-section {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,235,59,0.3);
}
.newbie-section::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,235,59,0.15) 0%, transparent 70%);
}
.newbie-section-left {
  z-index: 1;
}
.newbie-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.newbie-section-desc {
  font-size: 12px;
  opacity: 0.85;
}
.newbie-section-discount {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255,235,59,0.3);
}
.newbie-section-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
  flex-shrink: 0;
}
.newbie-section-btn.claimed {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  cursor: not-allowed;
}
.newbie-section-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.7;
}
.newbie-section-bar {
  width: 80px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.newbie-section-bar-fill {
  height: 100%;
  background: var(--color-accent);
}

/* ========== 特价专区 (新设计 - 区别于 lilianhua 秒杀) ========== */
.special-section {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-promo);
}
.special-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-promo);
  color: #fff;
}
.special-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.special-header-title-icon { font-size: 18px; }
.special-header-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.special-countdown-num {
  display: inline-block;
  min-width: 22px;
  padding: 2px 4px;
  background: #fff;
  color: var(--color-promo);
  border-radius: 3px;
  font-weight: 700;
  font-family: monospace;
  text-align: center;
}
.special-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-rule);
}
.special-card {
  background: #fff;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.special-card-img {
  aspect-ratio: 1;
  background: var(--color-paper-2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.special-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.special-card-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--color-promo);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 1;
}
.special-card-info {
  padding-top: 8px;
}
.special-card-name {
  font-size: 12px;
  line-height: 1.3;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.special-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.special-card-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-promo);
}
.special-card-orig {
  font-size: 11px;
  color: var(--color-ink-muted);
  text-decoration: line-through;
}
.special-card-limit {
  font-size: 10px;
  color: var(--color-promo);
  margin-top: 4px;
  font-weight: 600;
}

/* ========== 分类区 (左侧竖排树 - 区别于 lilianhua 顶部胶囊) ========== */
.cat-section {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-rule);
}
.cat-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-rule);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-header::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 2px;
}
.cat-layout {
  display: flex;
  min-height: 400px;
}
.cat-sidebar {
  width: 96px;
  background: var(--color-paper-2);
  border-right: 1px solid var(--color-rule);
}
.cat-sidebar-item {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--color-ink-light);
  text-align: center;
  border-bottom: 1px solid #fff;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-sidebar-item.active {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}
.cat-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
}
.cat-content {
  flex: 1;
  padding: 12px;
}
.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== 商品横向卡片 (移动端列表 - 区别于 lilianhua 网格) ========== */
.product-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  position: relative;
  transition: all 0.2s;
}
.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.product-card-img-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  background: var(--color-paper-2);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--color-promo);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  z-index: 1;
}
.product-card-tag.special {
  background: linear-gradient(135deg, var(--color-promo) 0%, #F44336 100%);
}
.product-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.product-card-name {
  font-size: 13px;
  color: var(--color-ink);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}
.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.product-card-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-promo);
}
.product-card-orig {
  font-size: 11px;
  color: var(--color-ink-muted);
  text-decoration: line-through;
}
.product-card-meta {
  font-size: 10px;
  color: var(--color-ink-muted);
  margin-bottom: 6px;
}
.product-card-add {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  align-self: flex-start;
}
.product-card-add.added {
  background: var(--color-paper-2);
  color: var(--color-ink-light);
}

/* ========== 底部抽屉式购物车 (新设计 - 区别于 lilianhua 侧边抽屉) ========== */
.cart-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-drawer-mask.show {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  border-radius: 16px 16px 0 0;
}
.cart-drawer.show {
  transform: translateY(0);
}
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 16px 16px 0 0;
}
.cart-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
}
.cart-drawer-close {
  font-size: 24px;
  color: var(--color-accent);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}
.cart-empty {
  text-align: center;
  padding: 50px 0;
  color: var(--color-ink-muted);
}
.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-rule);
}
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--color-paper-2);
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-item-spec {
  font-size: 11px;
  color: var(--color-ink-muted);
  margin-bottom: 6px;
}
.cart-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-promo);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  overflow: hidden;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: var(--color-ink);
  background: var(--color-paper);
}
.cart-item-qty span {
  min-width: 32px;
  text-align: center;
  font-size: 12px;
}
.cart-drawer-footer {
  padding: 14px 18px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-total {
  flex: 1;
}
.cart-total-label {
  font-size: 12px;
  color: var(--color-accent);
}
.cart-total-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
}
.cart-total-amount .currency {
  font-size: 14px;
}
.cart-checkout-btn {
  padding: 12px 28px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ========== Footer ========== */
.footer {
  background: var(--color-primary);
  color: #999;
  padding: 24px 16px 32px;
  margin-top: 24px;
  border-top: 3px solid var(--color-accent);
}
.footer-info {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-info .row {
  display: flex;
  gap: 8px;
  padding: 3px 0;
}
.footer-info .label {
  flex-shrink: 0;
  min-width: 70px;
  color: #777;
}
.footer-info .value {
  flex: 1;
  color: #ccc;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}
.footer-links a {
  display: inline-block;
  padding: 6px 10px;
  background: #333;
  color: #ccc;
  border-radius: 4px;
  font-size: 12px;
}
.footer-icp {
  text-align: center;
  padding-top: 12px;
  font-size: 11px;
  color: #777;
}
.footer-icp a {
  color: #999;
}

/* ========== 详情页 ========== */
.detail-page { padding: 0 0 80px; }
.detail-gallery {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-paper-2);
  overflow: hidden;
  border-radius: 0;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 16px; background: #fff; margin-bottom: 8px; }
.detail-name { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.detail-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.detail-price { font-size: 24px; font-weight: 800; color: var(--color-promo); }
.detail-price-currency { font-size: 14px; }
.detail-orig { font-size: 13px; color: var(--color-ink-muted); text-decoration: line-through; }
.detail-meta { display: flex; gap: 12px; font-size: 12px; color: var(--color-ink-muted); padding-top: 8px; border-top: 1px solid var(--color-rule); }
.detail-specs { padding: 16px; background: #fff; margin-bottom: 8px; }
.spec-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tag {
  padding: 8px 14px;
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-ink);
  transition: all 0.2s;
}
.spec-tag.active {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
  font-weight: 700;
}
.spec-tag .spec-add {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 4px;
}
.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--color-rule); border-radius: 4px; overflow: hidden; }
.qty-control button { width: 36px; height: 36px; font-size: 16px; color: var(--color-ink); background: var(--color-paper); }
.qty-control input { width: 50px; height: 36px; text-align: center; border: none; font-size: 14px; }

.detail-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--color-rule);
  padding: 8px 12px;
  z-index: 40;
  gap: 8px;
}
.detail-cart-btn {
  flex: 1;
  padding: 12px 0;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}
.detail-buy-btn {
  flex: 1.2;
  padding: 12px 0;
  background: var(--color-promo);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

/* ========== 结算页 ========== */
.checkout-page { padding: 0 0 80px; }
.checkout-section { background: #fff; padding: 16px; margin-bottom: 8px; }
.checkout-section-title { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--color-primary); }
.checkout-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color-rule); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; background: var(--color-paper-2); flex-shrink: 0; }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { font-size: 13px; line-height: 1.4; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.checkout-item-meta { font-size: 11px; color: var(--color-ink-muted); }
.checkout-item-price { font-size: 14px; font-weight: 700; color: var(--color-promo); flex-shrink: 0; }

.form-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label { flex-shrink: 0; min-width: 70px; font-size: 13px; color: var(--color-ink-light); padding-top: 10px; position: relative; }
.form-row label.required::before { content: '*'; color: var(--color-promo); position: absolute; left: -10px; top: 10px; font-weight: 700; }
.form-row input, .form-row textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-ink);
  background: #fff;
  outline: none;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--color-primary); }
.form-row textarea { resize: vertical; min-height: 60px; }

.checkout-pay-option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--color-rule);
  border-radius: 6px;
  background: #fff;
  gap: 12px;
  cursor: pointer;
}
.checkout-pay-option.active { border-color: var(--color-primary); background: var(--color-paper); }
.checkout-pay-icon { width: 40px; height: 40px; flex-shrink: 0; }
.checkout-pay-info { flex: 1; }
.checkout-pay-name { font-size: 14px; font-weight: 700; }
.checkout-pay-desc { font-size: 12px; color: var(--color-ink-muted); }

.submit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--color-rule);
  padding: 12px 16px;
  z-index: 40;
  gap: 12px;
}
.submit-total { flex: 1; font-size: 13px; color: var(--color-ink-light); }
.submit-total .amt { font-size: 22px; font-weight: 800; color: var(--color-promo); margin-left: 6px; }
.submit-btn {
  padding: 14px 32px;
  background: var(--color-promo);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 13px;
  z-index: 200;
  display: none;
  max-width: 80vw;
  text-align: center;
}
.toast.show { display: block; animation: toastIn 0.2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -60%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ========== 移动端适配 ========== */
@media (max-width: 640px) {
  .hero-slogan-main { font-size: 22px; }
  .hero-slogan-sub { font-size: 11px; letter-spacing: 3px; }
  .hero { padding: 24px 12px 32px; }
  .newbie-section { margin: 0 12px 12px; padding: 14px 16px; }
  .newbie-section-title { font-size: 14px; }
  .newbie-section-discount { font-size: 22px; }
  .newbie-section-btn { padding: 8px 14px; font-size: 12px; }
  .special-section { margin: 0 12px 12px; }
  .special-header-title { font-size: 14px; }
  .cat-section { margin: 0 12px 12px; }
  .cat-sidebar { width: 80px; }
  .cat-sidebar-item { font-size: 12px; padding: 12px 8px; }
  .cat-content { padding: 8px; }
  .product-card { padding: 8px; gap: 10px; }
  .product-card-img-wrap { width: 88px; height: 88px; }
  .product-card-name { font-size: 12px; }
  .product-card-price { font-size: 15px; }
  .product-card-add { padding: 4px 10px; font-size: 10px; }
  .banner { margin: 0 12px 12px; }
  .header-inner { padding: 10px 12px; }
  .header-logo-mark { width: 32px; height: 32px; font-size: 18px; }
  .header-logo-text .cn { font-size: 14px; }
  .header-cart { min-width: 60px; height: 30px; font-size: 11px; padding-left: 28px; }
  .checkout-section { padding: 12px; }
  .form-row { flex-direction: column; gap: 4px; }
  .form-row label { padding-top: 0; }
  .submit-btn { padding: 12px 24px; }
  .footer-info .row { flex-direction: column; gap: 0; }
  .footer-info .label { min-width: auto; }
  .newbie-section::before { display: none; }
}