:root {
  --primary: #007AFF;
  --primary-dark: #0051D5;
  --primary-light: #E8F2FF;
  --primary-gradient: linear-gradient(135deg, #007AFF, #5AC8FA);
  --accent-gradient: linear-gradient(135deg, #007AFF, #34AADC);
  --hero-gradient: linear-gradient(180deg, #007AFF 0%, #5AC8FA 55%, #F2F6FA 100%);
  --price: #FF3B30;
  --bg: #F2F6FA;
  --card: #FFFFFF;
  --border: #E8EDF2;
  --text: #1C1C1E;
  --text-secondary: #636366;
  --text-muted: #8E8E93;
  --success: #34C759;
  --warning: #FF9500;
  --error: #FF3B30;
  --info: #007AFF;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 20px rgba(0,122,255,0.1);
  --shadow-btn: 0 4px 16px rgba(0,122,255,0.28);
  --font: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
  --nav-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}
body.no-bottom-nav { padding-bottom: var(--safe-bottom); }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

.page { max-width: 480px; margin: 0 auto; min-height: 100vh; }
.page-no-nav { padding-bottom: var(--safe-bottom); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--card);
  height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.header-immersive {
  background: transparent;
  box-shadow: none;
  color: #fff;
}
.header-title { font-size: 18px; font-weight: 600; flex: 1; text-align: center; }
.header-back {
  width: 32px; height: 32px; border: none; background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: inherit;
}
.header-logo { font-size: 18px; font-weight: 700; color: var(--text); }
.header-icon {
  width: 36px; height: 36px; border: none; background: rgba(0,122,255,0.1);
  border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}

/* Bottom Nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  max-width: 480px; margin: 0 auto;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-muted); font-size: 10px; transition: color 0.2s;
  padding: 6px 0;
}
.nav-item.active { color: var(--primary); }
.nav-item.active .nav-icon svg { color: var(--primary); stroke: var(--primary); }
.nav-icon { font-size: 22px; line-height: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 16px; font-weight: 500; transition: all 0.2s ease;
  padding: 0 20px; height: 40px;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--primary-gradient); color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(0,122,255,0.25); }
.btn-dark { background: var(--primary-dark); color: #fff; height: 48px; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border); color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(0,122,255,0.05); }
.btn-sm { height: 32px; font-size: 13px; padding: 0 12px; }
.btn-lg { height: 48px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-buy { background: var(--primary-dark); color: #fff; height: 44px; border-radius: var(--radius-sm); padding: 0 24px; font-weight: 500; border: none; cursor: pointer; }

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-body { padding: 16px; }

/* Banner */
.banner-wrap { padding: 16px; }
.banner-slider {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; background: var(--accent-gradient);
}
.banner-slider.swipe-gallery { aspect-ratio: auto; min-height: 140px; }
.banner-slider .swipe-slide img { width: 100%; height: auto; object-fit: contain; display: block; }
.banner-slide { width: 100%; height: 100%; object-fit: cover; display: none; }
.banner-slide.active { display: block; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: all 0.2s;
}
.banner-dot.active { width: 18px; border-radius: 3px; background: #fff; }

/* Section */
.section { padding: 0 16px; margin-bottom: 24px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 20px; font-weight: 600; }
.section-more { font-size: 13px; color: var(--text-secondary); }

/* Intro Card */
.intro-card {
  margin: 0 16px 20px; padding: 20px;
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.intro-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* Category Grid */
.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 0 16px; margin-bottom: 20px;
}
.category-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.category-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.category-name { font-size: 12px; color: var(--text-secondary); }

/* Product Horizontal Scroll */
.scroll-list {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.scroll-list::-webkit-scrollbar { display: none; }
.product-card-h {
  flex: 0 0 160px; scroll-snap-align: start;
  background: var(--card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.product-card-h .cover { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card-h .info { padding: 12px; }
.product-card-h .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-h .price { color: var(--price); font-size: 16px; font-weight: 700; }
.product-card-h .price del { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }

/* Product List */
.product-list { padding: 0 16px; }
.product-item {
  display: flex; gap: 12px; background: var(--card);
  border-radius: var(--radius-lg); padding: 12px; margin-bottom: 12px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.product-item .thumb { width: 100px; height: 100px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.product-item .content { flex: 1; display: flex; flex-direction: column; }
.product-item .name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.product-item .desc { font-size: 13px; color: var(--text-secondary); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-item .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-item .price { color: var(--price); font-size: 18px; font-weight: 700; }
.product-item .price del { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.product-item .actions { display: flex; gap: 8px; align-items: center; }

/* Category Tabs */
.cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px;
  background: var(--card); border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; padding: 6px 16px; border-radius: 20px;
  font-size: 14px; color: var(--text-secondary);
  background: var(--bg); border: none; cursor: pointer; transition: all 0.2s;
}
.cat-tab.active { background: var(--primary-gradient); color: #fff; }

/* Products Split Layout */
.products-split {
  display: flex;
  height: calc(100vh - 48px - var(--nav-height) - var(--safe-bottom));
  background: var(--bg);
}
.cat-sidebar {
  width: 92px;
  flex-shrink: 0;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-right: 1px solid var(--border);
}
.cat-sidebar-item {
  padding: 16px 8px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  word-break: break-all;
}
.cat-sidebar-item.active {
  background: var(--card);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.products-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
}

/* Product cards in split layout */
.product-card-split {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: var(--card);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  min-height: 108px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card-split:active {
  transform: scale(0.985);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.product-card-thumb {
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
}
.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery.swipe-gallery { width: 100%; max-width: 100%; background: #F8FAFC; }
.detail-gallery .swipe-track { align-items: flex-start; }
.detail-gallery .swipe-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  position: relative;
  overflow: hidden;
  background: #F8FAFC;
  aspect-ratio: 1 / 1;
}
.detail-gallery .swipe-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card-thumb.is-fallback {
  background: linear-gradient(135deg, hsl(var(--thumb-hue), 78%, 58%), hsl(calc(var(--thumb-hue) + 24), 82%, 62%));
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.product-card-thumb.is-fallback:not(:empty) { font-size: 18px; }
.product-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.product-card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.product-item-tag,
.product-card-body .product-item-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  background: #F2F6FA;
}
.product-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.product-price-box {
  min-width: 0;
  flex: 1;
}
.product-price-line {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: nowrap;
}
.product-price-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--price);
  line-height: 1.2;
  white-space: nowrap;
}
.product-price-suffix {
  font-size: 11px;
  font-weight: 600;
  color: var(--price);
  line-height: 1.2;
  flex-shrink: 0;
}
.product-price-origin {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1.2;
}
.product-card-cart {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.product-card-cart:active {
  background: var(--primary-light);
  border-color: rgba(0,122,255,0.25);
  color: var(--primary);
}
.product-card-cart svg {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Legacy product list (other pages) */

/* Product Detail */
.detail-gallery { position: relative; background: var(--card); width: 100%; }
.detail-gallery .swipe-gallery { width: 100%; }
.detail-hero { background: var(--card); width: 100%; }
.detail-info { padding: 16px; background: var(--card); }
.detail-name { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.detail-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.detail-price .current { font-size: 28px; font-weight: 700; color: var(--primary); }
.detail-price .original { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.detail-coupon-tip { font-size: 13px; color: var(--warning); margin-bottom: 16px; }
.detail-content { padding: 16px; background: var(--card); margin-top: 8px; }
.detail-content img { max-width: 100%; border-radius: var(--radius-sm); }
.detail-actions { display: flex; gap: 12px; padding: 16px; }
.detail-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  height: 64px; background: var(--card);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  display: flex; align-items: center; padding: 0 16px; gap: 12px;
  max-width: 480px; margin: 0 auto;
}
.detail-bar .cart-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px;
}

/* Cart */
.cart-item {
  display: flex; gap: 12px; padding: 16px; background: var(--card);
  border-bottom: 1px solid #F1F5F9;
}
.cart-item .check { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 30px; }
.cart-item .thumb { width: 80px; height: 80px; border-radius: var(--radius-md); object-fit: cover; }
.cart-bar {
  position: fixed; bottom: var(--nav-height); left: 0; right: 0; z-index: 150;
  background: var(--card); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  max-width: 480px; margin: 0 auto;
}
.cart-bar .total { flex: 1; }
.cart-bar .total-price { font-size: 20px; font-weight: 700; color: var(--primary); }

/* Checkout */
.steps {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px; background: var(--card); gap: 8px;
}
.step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.step.active { color: var(--primary); font-weight: 600; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.step.active .step-num { background: var(--primary-gradient); color: #fff; }
.step-line { width: 40px; height: 2px; background: var(--border); }
.form-section { background: var(--card); padding: 16px; margin-bottom: 8px; }
.form-section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-input {
  width: 100%; height: 44px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 12px; font-size: 15px;
  outline: none; transition: border 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,122,255,0.1); }
.form-textarea { height: auto; min-height: 80px; padding: 12px; resize: vertical; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer;
  transition: border 0.2s;
}
.pay-method.selected { border-color: var(--primary); background: rgba(0,122,255,0.05); }
.pay-method input { accent-color: var(--primary); }
.amount-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.amount-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.amount-row.total .val { color: var(--primary); }

/* Profile */
.profile-header {
  background: var(--primary-gradient); padding: 32px 16px 24px;
  color: #fff; position: relative;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3); object-fit: cover;
  background: rgba(255,255,255,0.2);
}
.profile-name { font-size: 20px; font-weight: 600; margin-top: 8px; }
.profile-badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  font-size: 12px; margin-top: 4px;
}
.profile-points {
  margin: 16px; padding: 16px; background: var(--card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: flex; justify-content: space-around; text-align: center;
}
.profile-points .val { font-size: 24px; font-weight: 700; color: var(--primary); }
.profile-points .label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.menu-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 20px 16px; background: var(--card); margin: 0 16px 16px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.menu-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.menu-item .icon { font-size: 24px; }
.menu-item .text { font-size: 12px; color: var(--text-secondary); }

/* Order */
.order-tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--border); overflow-x: auto; }
.order-tab {
  flex: 1; min-width: 70px; padding: 12px 8px; text-align: center;
  font-size: 14px; color: var(--text-secondary); border: none; background: none;
  cursor: pointer; white-space: nowrap; position: relative;
}
.order-tab.active { color: var(--primary); font-weight: 600; }
.order-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--primary); border-radius: 2px;
}
.order-card {
  margin: 12px 16px; background: var(--card); border-radius: var(--radius-md);
  box-shadow: var(--shadow); overflow: hidden;
}
.order-card-header {
  display: flex; justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9; font-size: 13px;
}
.order-card-body { display: flex; gap: 12px; padding: 12px 16px; align-items: center; }
.order-card-body .thumb { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.order-card-info { flex: 1; min-width: 0; }
.order-card-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.order-card-price { color: var(--price); font-weight: 700; margin-top: 6px; font-size: 16px; }
.order-card-main { cursor: pointer; }
.order-card-time { font-size: 12px; color: var(--text-muted); margin-right: auto; }
.order-delete-btn {
  height: 32px; padding: 0 14px; font-size: 13px; color: var(--text-secondary);
  border-color: var(--border);
}
.order-delete-btn:active { transform: scale(0.97); }
.order-delete-hint { font-size: 11px; color: var(--text-muted); }
.order-card-footer {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 8px 16px 12px; border-top: 1px solid #F1F5F9;
}
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}
.tag-success { background: rgba(16,185,129,0.1); color: var(--success); }
.tag-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.tag-error { background: rgba(239,68,68,0.1); color: var(--error); }
.tag-info { background: rgba(59,130,246,0.1); color: var(--info); }
.tag-primary { background: rgba(0,122,255,0.1); color: var(--primary); }

/* Coupon */
.coupon-card {
  margin: 12px 16px; display: flex; background: var(--card);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow);
}
.coupon-left {
  width: 100px; background: var(--primary-gradient); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px;
}
.coupon-left .amount { font-size: 28px; font-weight: 700; }
.coupon-left .unit { font-size: 14px; }
.coupon-right { flex: 1; padding: 12px 16px; }
.coupon-right .name { font-weight: 600; margin-bottom: 4px; }
.coupon-right .condition { font-size: 13px; color: var(--text-secondary); }
.coupon-right .expire { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.coupon-tag-new {
  display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 6px;
  border-radius: 4px; background: rgba(99,102,241,0.12); color: var(--primary); vertical-align: middle;
}

/* New guest popup */
.new-guest-overlay {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(10, 14, 39, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px 20px;
}
.new-guest-popup {
  position: relative; width: 100%; max-width: 320px;
  background: var(--card); border-radius: 20px; padding: 20px 18px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: newGuestIn 0.28s ease-out;
}
@keyframes newGuestIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.new-guest-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  border: none; border-radius: 50%; background: rgba(15,23,42,0.06);
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
}
.new-guest-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary);
  background: rgba(99,102,241,0.1); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.new-guest-image {
  width: 100%; border-radius: 14px; display: block; cursor: pointer;
}
.new-guest-card {
  display: flex; border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}
.new-guest-card-left {
  width: 92px; background: var(--primary-gradient); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px;
}
.new-guest-card-left .amount { font-size: 30px; font-weight: 700; line-height: 1; }
.new-guest-card-left .unit { font-size: 13px; margin-top: 4px; }
.new-guest-card-right { flex: 1; padding: 14px 12px; background: #fff; }
.new-guest-card-right .name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.new-guest-card-right .desc { font-size: 12px; color: var(--text-secondary); }
.new-guest-btn { margin-top: 14px; }

/* Distribution */
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }

.dist-rule-box {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.dist-rule-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.5; padding: 6px 0;
}
.dist-rule-item svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* Distribution hub */
.dist-nav-card {
  margin: 0 16px 12px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  box-shadow: var(--shadow);
}
.dist-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dist-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dist-nav-item:active { opacity: 0.75; }
.dist-nav-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dist-nav-icon svg { width: 22px; height: 22px; }
.dist-nav-icon.tone-purple { background: rgba(99,102,241,0.12); color: #6366F1; }
.dist-nav-icon.tone-blue { background: rgba(59,130,246,0.12); color: #3B82F6; }
.dist-nav-icon.tone-orange { background: rgba(249,115,22,0.12); color: #F97316; }
.dist-nav-icon.tone-green { background: rgba(16,185,129,0.12); color: #10B981; }
.dist-nav-label { font-size: 12px; color: var(--text); font-weight: 500; }

.dist-team-entry {
  margin: 0 16px 12px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.dist-team-entry:active { opacity: 0.85; }
.dist-team-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dist-team-icon svg { width: 20px; height: 20px; }
.dist-team-text { flex: 1; font-size: 15px; font-weight: 600; }
.dist-team-arrow svg { width: 18px; height: 18px; color: #C7C7CC; }

.dist-apply-banner {
  margin: 0 16px 12px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}
.dist-apply-banner p { font-size: 13px; color: #64748B; margin-bottom: 12px; line-height: 1.5; }

.dist-section-link {
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.dist-my-orders .order-card { margin: 0 16px 10px; }
.dist-promo-orders .order-card { margin: 0 16px 10px; }

.dist-page-pad { padding: 0 16px 24px; }
.dist-page-sub { font-size: 12px; color: #94A3B8; margin: 0 0 12px; }

.dist-poster-page { padding: 16px; }
.dist-poster-tip { text-align: center; font-size: 13px; color: #64748B; margin-bottom: 12px; }
.dist-poster-preview {
  width: 240px;
  height: 426px;
  margin: 0 auto 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #E2E8F0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
}
.dist-poster-save-btn { margin-bottom: 16px; }
.dist-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.dist-link-row .form-input {
  flex: 1;
  font-size: 12px;
  min-width: 0;
}
.dist-link-row .btn { flex-shrink: 0; min-width: 72px; padding: 0 16px; }
.dist-poster-link-hint { font-size: 12px; color: #94A3B8; text-align: center; line-height: 1.5; }
.dist-poster-empty { padding: 24px 0; text-align: center; }
.dist-poster-empty p { color: #64748B; margin-bottom: 16px; }

.stat-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow);
}
.stat-card .label { font-size: 13px; color: var(--text-secondary); }
.stat-card .value { font-size: 24px; font-weight: 700; color: var(--primary); margin-top: 4px; }

/* Modal / Bottom Sheet */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 300; display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
  background: var(--card); border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px; max-height: 80vh; overflow-y: auto;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle {
  width: 36px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 10px auto;
}
.modal-body { padding: 16px 20px 32px; }
.modal-title { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 16px; }

/* Service FAB */
.fab-service {
  position: fixed; right: 16px; bottom: calc(var(--nav-height) + 16px);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-gradient); color: #fff; border: none;
  box-shadow: var(--shadow-btn); cursor: pointer; font-size: 22px; z-index: 100;
  display: flex; align-items: center; justify-content: center;
}

/* Empty State */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { margin-bottom: 16px; }

/* ===== Auth Pages (Login / Register / Forgot) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.auth-orb-1 {
  width: 280px; height: 280px;
  top: -80px; right: -60px;
  background: rgba(255, 255, 255, 0.35);
}
.auth-orb-2 {
  width: 220px; height: 220px;
  bottom: 10%; left: -70px;
  background: rgba(90, 200, 250, 0.5);
}
.auth-shell {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  animation: authFadeUp 0.45s ease-out;
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  padding: 8px 12px 8px 8px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.auth-back:active { background: rgba(255, 255, 255, 0.28); }
.auth-back svg { width: 18px; height: 18px; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-logo-icon {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F7FF 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 40, 100, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-icon svg { width: 34px; height: 34px; color: var(--primary); }
.auth-brand h1 {
  font-size: 26px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 40, 100, 0.12);
}
.auth-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}
.auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 16px 48px rgba(0, 40, 100, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.auth-segment {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  background: #F0F4F8;
  border-radius: 14px;
}
.auth-segment-item {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.auth-segment-item.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 40, 100, 0.08);
}
.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  margin-bottom: 12px;
  background: #F8FAFC;
  border: 1.5px solid #E8EDF2;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-field:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}
.auth-field-icon {
  flex-shrink: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s;
}
.auth-field:focus-within .auth-field-icon { color: var(--primary); }
.auth-field-icon svg { width: 18px; height: 18px; }
.auth-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
}
.auth-input::placeholder { color: #AEB4BC; }
.auth-code-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.auth-code-row .auth-field { flex: 1; margin-bottom: 0; }
.auth-code-btn {
  flex-shrink: 0;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid rgba(0, 122, 255, 0.25);
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.06);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.auth-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-code-btn:not(:disabled):active { transform: scale(0.97); }
.auth-captcha-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch;
}
.auth-captcha-row .auth-field { flex: 1; margin-bottom: 0; min-width: 0; }
.auth-captcha-img {
  flex-shrink: 0;
  width: 118px;
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid #E8EDF2;
  cursor: pointer;
  object-fit: fill;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.2s, transform 0.2s;
}
.auth-captcha-img:active { transform: scale(0.97); border-color: rgba(0, 122, 255, 0.35); }
.auth-btn-primary {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.32);
  transition: transform 0.2s, box-shadow 0.2s;
}
.auth-btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.28);
}
.auth-btn-secondary {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 1.5px solid #E8EDF2;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.auth-btn-secondary:active { background: #F8FAFC; transform: scale(0.98); }
.auth-btn-secondary svg { width: 18px; height: 18px; color: var(--text-secondary); }
.auth-btn-wechat {
  border-color: rgba(7, 193, 96, 0.35);
  color: #059669;
}
.auth-btn-wechat svg { color: #07C160; }
.auth-btn-wechat:active { background: rgba(7, 193, 96, 0.06); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E8EDF2, transparent);
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.auth-check input {
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.auth-check a { color: var(--primary); font-weight: 500; }
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}
.auth-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-hint a { color: var(--primary); font-weight: 500; cursor: pointer; }

/* Auth legal / agreement page */
.auth-page-legal {
  justify-content: flex-start;
  padding-top: 16px;
}
.auth-brand-compact { margin-bottom: 18px; }
.auth-brand-compact .auth-logo-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  margin-bottom: 10px;
}
.auth-brand-compact .auth-logo-icon svg { width: 28px; height: 28px; }
.auth-brand-compact h1 { font-size: 22px; }
.auth-legal-card {
  padding: 20px 18px 24px;
  max-height: none;
}
.auth-legal-content {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
}
.auth-legal-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.auth-legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-legal-content h3::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--primary-gradient);
  flex-shrink: 0;
}
.auth-legal-content p { margin-bottom: 10px; }
.auth-legal-content ul,
.auth-legal-content ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}
.auth-legal-content li { margin-bottom: 6px; }
.auth-legal-content a { color: var(--primary); font-weight: 500; }
.auth-legal-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}
.auth-legal-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #E8EDF2;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.auth-legal-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.auth-legal-actions .auth-btn-primary { margin-top: 0; flex: 1; }
.auth-legal-actions .auth-btn-secondary { margin-top: 0; flex: 1; height: 52px; }

.auth-logo { text-align: center; margin-bottom: 40px; }
.auth-logo h1 { font-size: 24px; font-weight: 700; margin-top: 12px; }
.auth-tabs { display: flex; gap: 24px; margin-bottom: 24px; justify-content: center; }
.auth-tab { font-size: 16px; color: var(--text-muted); cursor: pointer; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Toast */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(15,23,42,0.85); color: #fff; padding: 12px 24px;
  border-radius: var(--radius-sm); font-size: 14px; z-index: 999;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* 海报保存（手机长按存图） */
.poster-save-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,0.72); align-items: flex-end; justify-content: center;
}
.poster-save-overlay.show { display: flex; }
.poster-save-sheet {
  width: 100%; max-width: 420px; background: var(--card, #fff);
  border-radius: 16px 16px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}
.poster-save-title { font-size: 17px; font-weight: 600; text-align: center; margin-bottom: 8px; }
.poster-save-tip { font-size: 13px; color: var(--text-secondary, #64748B); text-align: center; margin-bottom: 12px; line-height: 1.5; }
.poster-save-img-wrap {
  max-height: 58vh; overflow: auto; margin-bottom: 12px;
  border-radius: 12px; background: #F1F5F9; padding: 8px;
}
.poster-save-img-wrap img { display: block; width: 100%; border-radius: 8px; }

/* Loading */
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.fade-in { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Icons */
.icon, svg.icon { display: inline-block; vertical-align: middle; }
.nav-icon svg { width: 22px; height: 22px; }
.menu-item .icon svg { width: 24px; height: 24px; color: var(--primary); }
.header-icon svg { width: 20px; height: 20px; }
.btn svg, .btn-icon svg { width: 18px; height: 18px; margin-right: 4px; }
.empty-state .icon svg { width: 48px; height: 48px; color: var(--text-muted); margin: 0 auto 12px; display: block; }
.fab-service svg { width: 22px; height: 22px; color: #fff; }

/* Glass */
.glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(255,255,255,0.72); }
.header-immersive.glass-bar { background: rgba(0,122,255,0.92); backdrop-filter: blur(16px); }

/* Swipe gallery */
.swipe-gallery { position: relative; overflow: hidden; touch-action: pan-y; width: 100%; }
.swipe-track { display: flex; transition: transform 0.25s ease; width: 100%; }
.swipe-slide {
  flex: 0 0 100%; width: 100%; min-width: 100%;
  overflow: hidden; position: relative;
}
.swipe-slide img { display: block; width: 100%; height: auto; vertical-align: top; }
.swipe-track > img {
  flex: 0 0 100%; width: 100%; min-width: 100%;
  aspect-ratio: 1; object-fit: cover;
}
.swipe-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.swipe-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.swipe-dot.active { width: 18px; border-radius: 3px; background: #fff; }

/* Pull refresh */
.pull-indicator { text-align: center; padding: 12px; color: var(--text-muted); font-size: 13px; display: none; }
.pull-indicator.show { display: block; }

/* Order progress */
.order-progress { display: flex; justify-content: space-between; padding: 20px 16px; background: var(--card); margin-bottom: 8px; position: relative; }
.order-progress::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: var(--border); }
.order-progress-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.order-progress-step .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--border); margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.order-progress-step.done .dot { background: var(--primary-gradient); color: #fff; }
.order-progress-step.done .dot svg { width: 14px; height: 14px; color: #fff; }
.order-progress-step.active .dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(0,122,255,0.2); }
.order-progress-step span { font-size: 11px; color: var(--text-secondary); }
.order-progress-step.active span { color: var(--primary); font-weight: 600; }

/* Product detail v2 */
.detail-info-v2 { padding: 16px; background: var(--card); margin-bottom: 8px; }
.detail-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-price-main { font-size: 26px; font-weight: 800; color: var(--price); }
.detail-price-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.detail-promo-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 14px 7px 11px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF3B30 0%, #FF6B35 55%, #FF9500 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(255, 59, 48, 0.32);
  transform: scale(1.05);
  transform-origin: left center;
}
.detail-promo-tag-fire {
  font-size: 15px;
  line-height: 1;
  margin-right: 1px;
}
.detail-promo-tag-limit {
  position: absolute;
  top: -9px;
  right: -8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fff;
  color: #FF3B30;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}
.detail-sales { margin-left: auto; font-size: 12px; color: var(--text-secondary); }
.detail-price-unit { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-left: 2px; }
.detail-annual-plan { background: var(--card); padding: 12px 16px 14px; margin-bottom: 8px; }
.detail-annual-plan-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.annual-plan-section { margin-bottom: 0; padding-bottom: 12px; }
.annual-plan-section .form-section-title { margin-bottom: 10px; }
.annual-plan-list { display: flex; flex-direction: column; gap: 10px; }
.annual-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.annual-plan-row.active {
  border-color: var(--primary);
  background: rgba(0,122,255,0.06);
  box-shadow: 0 0 0 1px rgba(0,122,255,0.12);
}
.annual-plan-row-promo.active {
  border-color: #FF3B30;
  background: rgba(255, 59, 48, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.12);
}
.annual-plan-row-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.annual-plan-row-tag {
  display: inline-block;
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #FF3B30, #FF9500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.annual-plan-row-price {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--price);
}
.detail-name-v2 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.detail-tag { display: inline-block; font-size: 12px; color: var(--primary); background: rgba(0,122,255,0.1); padding: 2px 10px; border-radius: 20px; }
.detail-spec-row { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--card); margin-bottom: 8px; cursor: pointer; }
.detail-spec-row .label { color: var(--text-secondary); font-size: 14px; }
.detail-spec-row .value { flex: 1; text-align: right; font-weight: 600; font-size: 14px; }
.detail-spec-preview { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 12px; -webkit-overflow-scrolling: touch; }
.spec-chip { flex: 0 0 140px; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--card); cursor: pointer; transition: .2s; }
.spec-chip.active { border-color: var(--primary); background: rgba(0,122,255,0.06); box-shadow: 0 0 0 1px rgba(0,122,255,0.15); }
.spec-chip-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.spec-chip-price { font-size: 15px; font-weight: 700; color: var(--price); }
.spec-chip-renew { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.detail-features { background: var(--card); padding: 16px; margin-bottom: 8px; }
.detail-features-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.detail-feature-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); padding: 6px 0; }
.detail-feature-item svg { color: var(--success); flex-shrink: 0; }
.detail-content { background: var(--card); padding: 16px; margin-bottom: 8px; }
.detail-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text); }

.rich-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.rich-content p { margin: 0 0 12px; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content ul, .rich-content ol { margin: 0 0 12px; padding-left: 1.25em; }
.rich-content li { margin-bottom: 8px; }
.rich-content li:last-child { margin-bottom: 0; }
.rich-content strong, .rich-content b { color: var(--text); font-weight: 600; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
  color: var(--text); font-weight: 700; line-height: 1.4; margin: 16px 0 8px;
}
.rich-content h1 { font-size: 18px; }
.rich-content h2 { font-size: 16px; }
.rich-content h3 { font-size: 15px; }
.rich-content a { color: var(--primary); text-decoration: underline; word-break: break-all; }
.rich-content img { max-width: 100% !important; height: auto !important; border-radius: 10px; margin: 10px 0; display: block; }
.rich-content table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.rich-content table td,
.rich-content table th { border: none; padding: 0; vertical-align: top; text-align: inherit; }
.rich-content table.data-table th,
.rich-content table.data-table td { border: 1px solid var(--border); padding: 8px; text-align: left; }

.detail-bar-v3 {
  gap: 10px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  max-width: 480px;
  margin: 0 auto;
  left: 0;
  right: 0;
}
.detail-bar-v3 .detail-bar-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: 12px;
}
.detail-bar-v3 .detail-bar-secondary,
.detail-bar-v3 .detail-bar-buy {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}
.detail-bar-v3 .detail-bar-secondary {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--card);
}
.detail-bar-v2 { gap: 8px; padding: 8px 12px calc(8px + var(--safe-bottom)); }
.detail-bar-icon { width: 40px; height: 40px; border: none; background: var(--bg); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); flex-shrink: 0; }
.detail-bar-cart { flex: 1; min-width: 0; padding: 0 8px; }
.detail-bar-buy { flex: 1; min-width: 0; padding: 0 8px; }

/* Case detail page */
.case-page-header { background: var(--card); }
.case-hero { background: var(--card); position: relative; }
.case-gallery-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.case-gallery-indicator {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.case-gallery .case-gallery-track { display: flex; transition: transform 0.25s ease; }
.case-gallery .swipe-slide { flex: 0 0 100%; }
.case-gallery .swipe-slide { aspect-ratio: 9 / 16; max-height: 72vh; }
.case-gallery .swipe-slide img { width: 100%; height: 100%; object-fit: contain; background: #F2F6FA; }
.case-gallery .swipe-slide img,
.case-gallery .swipe-track > img { aspect-ratio: 9 / 16; max-height: 72vh; width: 100%; object-fit: contain; background: #F2F6FA; display: block; }
.case-head-card {
  margin: -12px 12px 10px;
  position: relative;
  z-index: 2;
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.case-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: rgba(0,122,255,0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.case-product-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin-top: 8px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.case-product-link span:nth-child(2) { flex: 1; min-width: 0; }
.case-product-link svg { color: var(--primary); flex-shrink: 0; }
.case-content-card {
  margin: 0 12px 12px;
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.case-content-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.case-detail-bar { background: var(--card); box-shadow: 0 -2px 16px rgba(0,0,0,0.06); }

/* Case showcase cards (home + list) */
.case-showcase-grid,
.case-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.case-list-grid {
  padding: 0 16px 8px;
}
.store-case-intro {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: #F3F5F8;
}
.store-case-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 16px;
}
.store-case-head {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 40, 100, 0.04);
  margin-bottom: 10px;
}
.store-case-filter {
  padding: 10px 12px 6px;
  background: #fff;
}
.store-case-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}
.store-case-filter-tab {
  flex: 0 0 auto;
  min-width: calc(100% / 6);
  max-width: 25%;
  padding: 10px 6px 12px;
  border: none;
  background: none;
  font-size: 14px;
  line-height: 1.2;
  color: #333;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  text-align: center;
  transition: color 0.2s ease;
}
.store-case-filter-tab:active {
  opacity: 0.75;
}
.store-case-filter-tab.active {
  color: var(--primary);
  font-weight: 600;
}
.store-case-filter-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.store-case-grid {
  padding-top: 2px;
}
@media (max-width: 360px) {
  .store-case-filter-tab {
    min-width: calc(100% / 5);
    font-size: 13px;
    padding: 9px 4px 11px;
  }
}
.website-case-intro {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: #F3F5F8;
}
.website-case-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 16px;
}
.website-case-head {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 40, 100, 0.04);
  margin-bottom: 10px;
}
.website-case-filter {
  padding: 12px 16px 14px;
  background: #fff;
  border-bottom: 1px solid #E8ECF0;
}
.website-case-pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.website-case-pill-tab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: #F0F2F5;
  color: #333;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.website-case-pill-tab:active {
  opacity: 0.85;
}
.website-case-pill-tab.active {
  background: #5B9FED;
  color: #fff;
  font-weight: 500;
}
.website-case-grid {
  padding-top: 2px;
}
.showcase-case-intro {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: #F3F5F8;
}
.showcase-case-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 16px;
}
.showcase-case-head {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 40, 100, 0.04);
  margin-bottom: 10px;
}
.showcase-case-filter {
  padding: 12px 0 10px;
  background: #fff;
  border-bottom: 1px solid #E8ECF0;
}
.showcase-case-tag-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 0 16px 4px;
}
.showcase-case-tag-scroll::-webkit-scrollbar {
  display: none;
}
.showcase-case-tag-grid {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px 10px;
  width: max-content;
  min-width: 100%;
}
.showcase-case-tag {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: #F0F2F5;
  color: #333;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background 0.2s ease, color 0.2s ease;
}
.showcase-case-tag:active {
  opacity: 0.85;
}
.showcase-case-tag.active {
  background: #5B9FED;
  color: #fff;
  font-weight: 500;
}
.showcase-case-grid {
  padding-top: 2px;
}
@media (max-width: 360px) {
  .showcase-case-tag {
    padding: 7px 14px;
    font-size: 12px;
  }
}
.case-thumb-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 40, 100, 0.06);
  transition: transform 0.2s ease;
}
.case-thumb-card:not(.case-thumb-card-static) {
  cursor: pointer;
}
.case-thumb-card:not(.case-thumb-card-static):active { transform: scale(0.98); }
.case-thumb-card-static { cursor: default; }
.case-thumb-cover {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #E8EDF2;
  overflow: hidden;
}
.case-thumb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-thumb-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(0, 122, 255, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}
.case-thumb-title {
  padding: 8px 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-thumb-count {
  padding: 2px 10px 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.case-thumb-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.case-pager-wrap {
  padding: 4px 16px 20px;
}
.case-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.case-pager-btn {
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.case-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.case-pager-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 72px;
  text-align: center;
}
.case-pager-info {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.home-page .case-thumb-card {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 40, 100, 0.1);
}
.home-page .case-thumb-title { color: var(--text-secondary); }
.case-showcase-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.case-showcase-scroll::-webkit-scrollbar { display: none; }
.home-page .case-showcase-scroll .case-thumb-card-home {
  flex: 0 0 calc((100% - 40px) / 2.35);
  min-width: 96px;
  scroll-snap-align: start;
}
.home-page .case-showcase-scroll .case-thumb-cover-home {
  aspect-ratio: 3 / 4;
}
.home-page .case-showcase-scroll .case-thumb-title {
  font-size: 12px;
  padding: 6px 8px 0;
}
.home-page .case-showcase-scroll .case-thumb-count {
  font-size: 10px;
  padding: 0 8px 8px;
}
.home-page .case-showcase-scroll .case-thumb-badge {
  font-size: 9px;
  padding: 2px 6px;
}
.case-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.case-showcase-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 40, 100, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-showcase-card:active { transform: scale(0.98); }
.case-showcase-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #E8EDF2;
  overflow: hidden;
}
.case-showcase-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-showcase-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0, 122, 255, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.case-showcase-body { padding: 12px; }
.case-showcase-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-showcase-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.home-page .case-showcase-card {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 40, 100, 0.1);
}
.home-page .case-showcase-title { color: var(--text); }
.home-page .case-showcase-meta { color: var(--text-secondary); }
.spec-modal-list { display: flex; flex-direction: column; gap: 8px; }
.spec-modal-item { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; }
.spec-modal-item.active { border-color: var(--primary); background: rgba(0,122,255,0.06); }
.spec-modal-item .n { font-weight: 600; margin-bottom: 4px; }
.spec-modal-item .p { font-size: 12px; color: var(--text-secondary); }
.spec-modal-item svg { color: var(--primary); opacity: 0; }
.spec-modal-item.active svg { opacity: 1; }

.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button { width: 32px; height: 32px; border: none; background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-stepper span { min-width: 32px; text-align: center; font-size: 14px; }

/* Category icon */
.category-icon svg { width: 22px; height: 22px; }

/* Auth logo icon (legacy pages) */
.auth-logo-icon svg { width: 48px; height: 48px; color: var(--primary); margin: 0 auto; display: block; }
.auth-page .auth-logo-icon svg { width: 34px; height: 34px; margin: 0; }

/* Pay method icon */
.pay-method svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== Design alignment: Home ===== */
.home-page { background: var(--hero-gradient); min-height: 100vh; padding-bottom: 0; }
.home-page .header-immersive {
  position: relative;
  background: transparent;
  height: auto;
  min-height: 52px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 16px;
  box-shadow: none;
}
.home-page .header-logo {
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.home-page .header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.home-search {
  margin: 0 16px 16px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 24px; padding: 0 16px; height: 44px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.home-search svg { color: var(--text-muted); flex-shrink: 0; }
.home-search input {
  flex: 1; border: none; outline: none; font-size: 14px; background: transparent;
}
.home-page .banner-wrap { padding: 0 16px 12px; }
.home-page .banner-slider {
  aspect-ratio: unset;
  height: auto;
  background: rgba(255, 255, 255, 0.12);
}
.home-page .banner-slider .swipe-track {
  align-items: flex-start;
}
.home-page .banner-slider .swipe-track img {
  width: 100%;
  min-width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}
.home-page .banner-slider .swipe-dots {
  bottom: 8px;
}

/* 首页分类入口：白底图标 + 白字标签 + 彩色线框图标 */
.home-page .category-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 28px;
}
.home-page .category-item {
  transition: transform 0.2s ease;
}
.home-page .category-item:active { transform: scale(0.96); }
.home-page .category-icon {
  width: 52px; height: 52px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F7FF 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 40, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.home-page .category-name {
  color: #fff;
  font-weight: 500;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.15);
}
.home-page .category-icon svg { width: 24px; height: 24px; stroke-width: 1.75; }
.home-page .category-type-custom .category-icon svg { color: #5856D6; }
.home-page .category-type-annual .category-icon svg { color: #007AFF; }
.home-page .category-type-other .category-icon svg { color: #FF9500; }
.home-page .category-type-join .category-icon svg { color: #34C759; }

/* ===== Join / 合伙人介绍页 ===== */
.join-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: calc(88px + var(--safe-bottom));
}
.header-join {
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  color: #fff;
}
.header-join .header-back,
.header-join .header-title { color: #fff; }
.join-hero {
  padding: 72px 20px 28px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.18);
}
.join-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.join-hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}
.join-hero-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}
.join-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.join-hero-stat {
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.join-hero-stat-num {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.join-hero-stat-label {
  font-size: 11px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
}
.join-body {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.join-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}
.join-card-soft { background: #F8FAFF; }
.join-card-head {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.join-card-head h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.join-card-head p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.join-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.join-card-icon.tone-blue {
  background: var(--primary-light);
  color: var(--primary);
}
.join-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.join-tag {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
}
.join-card-note {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 12px;
  border-radius: 12px;
  background: #F8FAFC;
}
.join-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.join-section-title svg { color: var(--primary); }
.join-steps { display: flex; flex-direction: column; gap: 12px; }
.join-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.join-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.join-step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.join-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.join-benefits { display: flex; flex-direction: column; gap: 12px; }
.join-benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: #F8FAFC;
}
.join-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.join-benefit-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.join-benefit-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.join-rules { box-shadow: none; background: transparent; padding: 0; }
.join-cta-spacer { height: 12px; }
.join-cta-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  width: 100%;
  max-width: 480px;
  padding: 12px 16px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 90;
}
.join-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.join-cta-tip {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.join-disabled {
  padding: 80px 24px 40px;
  text-align: center;
}
.join-disabled-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-disabled h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.join-disabled p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 首页区块标题：蓝色背景上统一白色文字 */
.home-page .section-title {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.12);
}
.home-page .section-more {
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.home-page .section-more svg {
  color: rgba(255, 255, 255, 0.9);
  stroke: rgba(255, 255, 255, 0.9);
}
.home-page .section-title-bar::before {
  background: rgba(255, 255, 255, 0.95);
}
.home-page .scroll-list .empty-state {
  color: rgba(255, 255, 255, 0.8);
}
.home-page .scroll-list .empty-state .icon svg,
.home-page .scroll-list .empty-state svg {
  color: rgba(255, 255, 255, 0.65);
}
.advantage-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.advantage-item {
  background: var(--card); border-radius: var(--radius-lg); padding: 16px 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 40, 100, 0.08);
}
.advantage-item .adv-icon {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
}
.advantage-item .adv-icon svg { width: 22px; height: 22px; color: var(--primary); }
.advantage-item .adv-title { font-size: 13px; font-weight: 600; color: var(--text); }
.advantage-item .adv-desc { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.price-red, .price-from { color: var(--price); font-weight: 700; }
.section-title-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.section-title-bar::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px;
  background: var(--primary-gradient);
}

/* ===== Profile v3 (图2布局 · 蓝色主题) ===== */
.profile-v3 { background: #F5F6F8; padding-bottom: 16px; }

/* 本地 token 存在时首屏即隐藏未登录区块，避免刷新闪一下 */
html.auth-in .profile-guest-only { display: none !important; }
html.auth-in .profile-user-only { display: block !important; }
html.auth-out .profile-user-only { display: none !important; }

.profile-hero {
  background: linear-gradient(135deg, #007AFF 0%, #0051D5 55%, #004BB8 100%);
  border-radius: 0 0 22px 22px;
  padding: 28px 16px 52px;
  color: #fff;
}
.profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.profile-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
}
.profile-avatar-placeholder svg { width: 28px; height: 28px; }
.profile-hero-text { flex: 1; min-width: 0; }
.profile-hero-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}
.profile-hero-sub {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
}
.profile-hero-arrow {
  flex-shrink: 0;
  opacity: 0.85;
  display: flex;
}
.profile-hero-arrow svg { width: 20px; height: 20px; color: #fff; }

.profile-stats-card {
  display: flex;
  margin: -34px 12px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.profile-stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  cursor: pointer;
  position: relative;
}
.profile-stat + .profile-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: #F0F2F5;
}
.profile-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: #1C1C1E;
  line-height: 1.2;
  margin-bottom: 4px;
}
.profile-stat-label {
  font-size: 12px;
  color: #8E8E93;
}

.profile-orders-card,
.profile-menu-card {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
}
.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
}
.profile-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1E;
}
.profile-card-link {
  font-size: 12px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-weight: 500;
}
.profile-card-link svg { color: var(--primary); }

.profile-order-grid {
  display: flex;
  padding: 8px 8px 16px;
}
.profile-order-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
}
.profile-order-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-order-icon svg {
  width: 22px; height: 22px;
  color: currentColor;
  stroke: currentColor;
}
.profile-order-icon.tone-orange { background: #FFF4E8; color: #FF9500; }
.profile-order-icon.tone-green { background: #E8FAEF; color: #34C759; }
.profile-order-label {
  font-size: 12px;
  color: #636366;
  line-height: 1.2;
}
.profile-order-badge {
  position: absolute;
  top: 0;
  right: calc(50% - 26px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #FF3B30;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #F2F4F7;
  cursor: pointer;
  transition: background 0.15s;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: #F8F9FB; }
.profile-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #E8F2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-menu-icon svg {
  width: 18px; height: 18px;
  color: var(--primary);
  stroke: var(--primary);
}
.profile-menu-text {
  flex: 1;
  font-size: 15px;
  color: #1C1C1E;
  min-width: 0;
}
.profile-menu-extra {
  font-size: 13px;
  color: var(--primary);
  flex-shrink: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu-extra-muted { color: #8E8E93; }
.profile-menu-extra-primary { color: var(--primary); font-weight: 500; }
.profile-menu-arrow svg { width: 16px; height: 16px; color: #C7C7CC; flex-shrink: 0; }
.profile-menu-highlight {
  background: linear-gradient(90deg, rgba(0,122,255,0.06), rgba(0,122,255,0.02));
}
.profile-menu-highlight .profile-menu-icon {
  background: rgba(0,122,255,0.12);
}

.profile-footer-actions {
  padding: 4px 12px 8px;
}

/* Legacy profile v2 (keep for compatibility) */
.profile-page { background: var(--bg); }
.profile-header-v2 {
  background: var(--primary-gradient); padding: 28px 16px 48px;
  color: #fff; position: relative;
}
.profile-header-v2 .profile-top {
  display: flex; align-items: center; gap: 14px;
}
.profile-header-v2 .profile-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); object-fit: cover;
  background: rgba(255,255,255,0.2);
}
.profile-header-v2 .profile-name { font-size: 18px; font-weight: 700; }
.profile-header-v2 .profile-badge {
  display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.2); font-size: 11px;
}
.profile-header-v2 .profile-points-inline {
  margin-left: auto; text-align: center; font-size: 12px;
}
.profile-header-v2 .profile-points-inline .val { font-size: 20px; font-weight: 700; display: block; }
.order-strip {
  margin: -32px 16px 12px; background: var(--card); border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); padding: 16px 8px 12px;
  position: relative; z-index: 2;
}
.order-strip-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 8px 12px; font-size: 15px; font-weight: 600;
}
.order-strip-title a { font-size: 12px; color: var(--primary); font-weight: 500; }
.order-strip-row { display: flex; justify-content: space-around; }
.order-strip-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; position: relative;
}
.order-strip-item svg { width: 24px; height: 24px; color: var(--text-secondary); }
.order-strip-item span { font-size: 11px; color: var(--text-secondary); }
.order-strip-item .badge {
  position: absolute; top: -4px; right: calc(50% - 22px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--price); color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.menu-list {
  margin: 0 16px 12px; background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.menu-list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; border-bottom: 1px solid #F2F6FA;
}
.menu-list-item:last-child { border-bottom: none; }
.menu-list-item:active { background: var(--bg); }
.menu-list-item .ml-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-list-item .ml-icon svg { width: 18px; height: 18px; color: var(--primary); }
.menu-list-item .ml-text { flex: 1; font-size: 15px; }
.menu-list-item .ml-arrow svg { width: 16px; height: 16px; color: var(--text-muted); }

/* ===== Bottom nav 5 tabs ===== */
.bottom-nav .nav-item { font-size: 10px; }

/* ===== Products page polish ===== */
.products-page .cat-sidebar-item.active { color: var(--primary); border-left-color: var(--primary); }
.products-page .empty-state { padding: 48px 16px; }
.custom-cat-promo { padding: 56px 24px; }
.custom-cat-promo .custom-cat-title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.custom-cat-promo .btn { min-width: 200px; padding: 12px 24px; font-size: 15px; }
.products-page .loading { padding: 40px 16px; text-align: center; color: var(--text-secondary); }
.products-main .pull-indicator {
  display: none; text-align: center; padding: 8px; font-size: 12px; color: var(--text-muted);
}
.products-main .pull-indicator.show { display: block; }
.btn-buy { background: var(--primary); }
.detail-price-main, .spec-chip-price { color: var(--price); }
.detail-price .current { color: var(--price); }
.cart-bar .total-price { color: var(--price); }

/* ===== 开发定制表单页 ===== */
.custom-dev-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 24px;
}
.header-custom-dev {
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  color: #fff;
}
.header-custom-dev .header-back,
.header-custom-dev .header-title { color: #fff; }
.cdev-hero {
  padding: 68px 20px 24px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 0 0 24px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.18);
}
.cdev-hero-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  display: flex; align-items: center; justify-content: center;
}
.cdev-hero h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cdev-hero-sub { font-size: 14px; opacity: 0.95; margin-bottom: 10px; }
.cdev-hero-intro {
  font-size: 13px; line-height: 1.7; opacity: 0.88;
  text-align: left; background: rgba(255,255,255,0.12);
  border-radius: 12px; padding: 12px 14px; margin-top: 8px;
}
.cdev-budget-alert {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF4E5;
  border: 1px solid #FFD699;
  color: #9A5B00;
  font-size: 13px;
  line-height: 1.6;
  display: flex; gap: 8px; align-items: flex-start;
}
.cdev-budget-alert svg { flex-shrink: 0; margin-top: 2px; }
.cdev-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 14px 16px 0;
}
.cdev-highlight {
  background: var(--card);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}
.cdev-highlight svg { display: block; margin: 0 auto 6px; color: var(--primary); }
.cdev-form { padding: 14px 16px 0; }
.cdev-form .form-section { margin-bottom: 0; }
.cdev-field-hint {
  font-size: 12px; color: var(--warning);
  line-height: 1.55; margin: -4px 0 8px;
}
.cdev-textarea { min-height: 140px; resize: vertical; }
.form-label .req { color: var(--error); }
.cdev-upload-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.cdev-thumb {
  position: relative; width: 72px; height: 72px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.cdev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cdev-thumb-del, .cdev-file-del {
  position: absolute; top: 2px; right: 2px;
  width: 22px; height: 22px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cdev-file-del { position: static; background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.cdev-upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.cdev-upload-btn-outline {
  background: #fff; border: 1px dashed var(--border); color: var(--text-secondary);
}
.cdev-file-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cdev-file-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: #F8FAFC; border: 1px solid var(--border);
  font-size: 13px;
}
.cdev-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdev-submit-wrap { padding: 8px 0 12px; }
.cdev-submit-tip { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* ===== 800元展示小程序 · 登记制作 ===== */
.mini-order-page { background: #F0F2F5; min-height: 100vh; padding-bottom: 28px; }
.mini-order-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.mini-order-header-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}
.mini-order-banner {
  margin: 0;
  padding: 28px 20px 36px;
  background: linear-gradient(145deg, #007AFF 0%, #0051D5 52%, #004BB8 100%);
  color: #fff;
  text-align: center;
  border-radius: 0 0 24px 24px;
}
.mini-order-banner-badge {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mini-order-banner-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.mini-order-banner-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.mini-order-banner-tip {
  margin: 14px auto 0;
  max-width: 320px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.mini-order-form {
  margin: -18px 16px 0;
  padding: 4px 16px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1;
}
.mini-order-form-section {
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}
.mini-order-form-section:first-child {
  border-top: none;
  padding-top: 12px;
}
.mini-order-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.mini-order-form .form-group { margin-bottom: 14px; }
.mini-order-form .form-group:last-child { margin-bottom: 0; }
.mini-order-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1E293B;
}
.mini-order-input,
.mini-order-form .form-input {
  width: 100%;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #FAFBFC;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.mini-order-input:focus,
.mini-order-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}
.mini-order-form .req { color: #EF4444; font-weight: 600; }
.mini-order-hint { margin: 0 0 8px; font-size: 12px; color: #94A3B8; line-height: 1.5; }
.mini-order-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.mini-order-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.mini-order-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}
.mini-order-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-order-thumb-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border: none; border-radius: 50%;
  background: rgba(15, 23, 42, 0.55); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mini-order-upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  background: rgba(0, 122, 255, 0.08); color: var(--primary);
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1px dashed rgba(0, 122, 255, 0.25);
}
.mini-order-submit-wrap { padding-top: 20px; }
.mini-order-submit-btn {
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  height: 50px;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.28);
}
.mini-order-submit-tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
}
