/* ============================================
   代购韩国 v2.5+ — Warm Terracotta Design System
   韩国跨境代购平台 · 温暖亲和购物风格
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* 🟠 Brand: Coral Red 珊瑚红 (新品牌色) */
  --brand-50: #FFF0F2;
  --brand-100: #FFE4E8;
  --brand-200: #FFC8D0;
  --brand-300: #FF9AA8;
  --brand-400: #FF7080;
  --brand-500: #F54B64;
  --brand-600: #E04055;
  --brand-700: #C92A3E;
  --brand-800: #A82032;
  --brand-900: #7A1824;

  /* 🔵 Secondary: Sky Blue 天蓝色 */
  --secondary-50: #EFF6FF;
  --secondary-100: #DBEAFE;
  --secondary-200: #BFDBFE;
  --secondary-500: #6a9bcc;
  --secondary-600: #5a8bbc;

  /* 🟢 Accent: Olive Green 橄榄绿 */
  --accent-50: #F4F7EE;
  --accent-100: #E8EFD8;
  --accent-500: #788c5d;
  --accent-600: #687c4d;

  /* 🟢 Success */
  --success-50: #F0FDF4;
  --success-100: #DCFCE7;
  --success-500: #22C55E;
  --success-600: #16A34A;

  /* 🔵 Info */
  --info-50: #EFF6FF;
  --info-100: #DBEAFE;
  --info-500: #3B82F6;
  --info-600: #2563EB;

  /* ⚠️ Warning */
  --warn-50: #FFFBEB;
  --warn-100: #FEF3C7;
  --warn-500: #F59E0B;

  /* Neutrals - 中性灰 */
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --gray-950: #121212;

  /* Background / Text */
  --bg-primary: #FFFFFF;
  --bg-secondary: var(--gray-50);
  --bg-page: #eef0f4;
  --bg-warm: #FFFDFB;
  --bg-tertiary: var(--gray-100);
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9E9E9E;
  --border-color: #E5E7EB;
  --border-light: rgba(0,0,0,0.06);

  /* Type Scale */
  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Poppins', 'Noto Sans SC', sans-serif;
  --font-mono: 'SF Mono', 'Consolas', monospace;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.12);
  --shadow-brand: 0 4px 16px rgba(245,75,100,.25);
  --shadow-card: 0 4px 16px rgba(0,0,0,.07);
  --shadow-card-hover: 0 8px 28px rgba(0,0,0,.12);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;

  /* Layout */
  --header-height: 60px;
  --sidebar-width: 260px;
  --content-max: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-family);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
}

a { color: var(--brand-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }

button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; }
button { cursor: pointer; }

::selection { background: var(--brand-500); color: white; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CCC; border-radius: 3px; }


/* ---------- Typography ---------- */
.h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--text-primary); }
.h2 { font-size: 24px; font-weight: 750; line-height: 1.25; color: var(--text-primary); }
.h3 { font-size: 18px; font-weight: 650; line-height: 1.35; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---------- Layout Utilities ---------- */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.hidden { display: none !important; }
.w-full { width: 100%; }


/* ==================== HEADER (Gradient + Nav) ==================== */

/* Sticky wrapper */
.header-wrapper {
  position: sticky; top: 0; z-index: 100;
}

/* Top bar: Logo + Search + Actions — 白色背景 */
.header-bar {
  height: var(--header-height);
  background: white;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}
.header-bar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo-group { display: flex; align-items: center; gap: 10px; cursor:pointer; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--brand-500);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 850;
}
.logo-text { font-size: 19px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; font-family: var(--font-display); }
.logo-text span { font-weight: 900; color: var(--brand-500); }
.logo-subtitle { font-size: 10px; color: var(--text-muted); margin-left: 6px; padding-top: 4px; }

/* Search bar in header — 带搜索按钮 */
.header-search {
  display: flex; align-items: center; gap: 0;
  max-width: 480px; flex: 1;
  border: 2px solid var(--brand-500); border-radius: 9999px;
  overflow: hidden; background: white;
}
.header-search-icon { font-size: 14px; color: var(--text-muted); flex-shrink: 0; padding-left: 14px; }
.header-search-input { flex: 1; border:none;background:transparent;font-size:13px;color:var(--text-primary);outline:none; padding: 8px 10px; }
.header-search-input::placeholder { color: #999; }
.header-search-btn {
  background: var(--brand-500); color: white; border: none;
  padding: 0 22px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background .2s;
  align-self: stretch;
}
.header-search-btn:hover { background: var(--brand-600); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Cart button on white header */
.header-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--text-secondary);
  font-size: 17px; transition: all .2s; cursor: pointer; position: relative;
}
.header-btn:hover { background: var(--gray-200); color: var(--text-primary); }

.badge-count {
  position: absolute; top: 0; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #EF4444; color: white; font-size: 10px; font-weight: 700;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.8);
}

/* Login button on white header */
.header-login-btn {
  padding: 8px 22px; border-radius: 9999px;
  background: var(--brand-500); color: white; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s;
}
.header-login-btn:hover { background: var(--brand-600); }

/* User avatar on white header */
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-500); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; border: 2px solid var(--brand-200);
}

/* Nav bar: tab items — 白色背景 */
.nav-bar {
  background: white;
  height: 44px;
  border-bottom: 1px solid var(--border-color);
}
.nav-bar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  display: flex; align-items: stretch;
  padding: 0 20px;
}
.nav-tab {
  padding: 0 20px; height: 100%;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all .2s ease;
  border: none; background: transparent;
  white-space: nowrap; position: relative;
  display: flex; align-items: center; gap: 6px;
}
.nav-tab:hover { color: var(--brand-500); }
.nav-tab.active {
  color: var(--brand-500); font-weight: 600;
}
.nav-tab.active::after {
  content:''; position:absolute; bottom:0; left:12px; right:12px;
  height: 2px; background: var(--brand-500); border-radius: 2px 2px 0 0;
}
.nav-icon { font-size: 15px; }
.nav-tab:hover .nav-icon { transform: scale(1.1); }

/* Mobile nav toggle */
.mobile-menu-btn { display: none; }
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; width:36px;height:36px;align-items:center;justify-content:center;background:var(--gray-100);border-radius:50%;cursor:pointer;font-size:18px;border:1px solid var(--border-color);color:var(--text-secondary); }
  .nav-bar-inner { display:none;position:absolute;top:44px;left:0;right:0;flex-direction:column;background:white;padding:6px;box-shadow:var(--shadow-lg);height:auto;border-radius:0 0 12px 12px; }
  .nav-bar-inner.open { display:flex; }
  .nav-tab { justify-content:flex-start; padding:11px 16px; border-radius:8px; height:auto; color:var(--text-secondary); }
  .nav-tab.active { background:var(--brand-50); color:var(--brand-500); border-radius:8px; }
  .nav-tab.active::after { display:none; }
  .header-search { max-width: 160px; }
}


/* ==================== MAIN CONTENT ==================== */
.main-content { padding-top: 0; min-height: calc(100vh - var(--header-height) - 44px); }


/* ==================== HERO SECTION ==================== */
.hero-section {
  padding: 44px 0 34px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF0F2 50%, #FFE4E8 100%);
  border-bottom: 1px solid var(--border-color);
}
.hero-inner { max-width: var(--content-max); margin:0 auto; padding:0 20px; position:relative; }
.hero-badge {
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 14px; background:white;
  border:1px solid var(--brand-200); border-radius:var(--radius-full);
  font-size:12px; color:var(--brand-600); margin-bottom:18px;
  font-weight:600; box-shadow:var(--shadow-xs);
}
.pulse-dot {
  width:7px; height:7px; background:#22C55E; border-radius:50%;
  animation:pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title { 
  font-size: 38px; font-weight: 900; color:var(--text-primary); letter-spacing:-0.03em; 
  line-height:1.15; margin-bottom:12px; 
}
.hero-title span { color:var(--brand-500); }
.hero-desc { 
  font-size: 15px; color:var(--text-secondary); max-width:480px; line-height:1.6; 
}
.hero-stats { display:flex; gap:32px; margin-top:28px; }
.hero-stat { text-align:center; }
.hero-stat-num { font-size:26px; font-weight:900; color:var(--brand-500); letter-spacing:-0.02em;}
.hero-stat-label { font-size:12px; color:var(--text-muted); margin-top:2px; }


/* ==================== SECTIONS ==================== */
.section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.section-title { font-size:19px; font-weight:780; color:var(--text-primary); display:flex;align-items:center;gap:8px; }
.section-more { font-size:13px; color:var(--brand-500); font-weight:600; cursor:pointer; padding:4px 10px;border-radius:var(--radius-full);transition:all .15s; }
.section-more:hover { background:var(--brand-50); }


/* ==================== FILTER CHIPS ==================== */
.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.chip {
  padding:7px 16px; border-radius:var(--radius-full);
  font-size:13px; font-weight:550; color:var(--text-secondary);
  background:white; border:1.5px solid var(--border-color);
  cursor:pointer; transition:all .2s; user-select:none;
}
.chip:hover { border-color:var(--brand-300); color:var(--brand-600); }
.chip.active { background:var(--brand-500); color:white; border-color:transparent; font-weight:700; box-shadow:var(--shadow-brand); }


/* ==================== PRODUCT CARDS ==================== */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:16px; }
.product-card {
  background:white; border-radius:var(--radius-lg);
  overflow:hidden; border:1px solid var(--border-light);
  transition:all .3s var(--ease-out); cursor:pointer;
  display:flex; flex-direction:column;
  box-shadow:var(--shadow-card);
}
.product-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,.10); border-color:var(--brand-200); }
.product-img-wrap {
  aspect-ratio:1; overflow:hidden;
  background:linear-gradient(145deg,var(--brand-100),var(--brand-50));
  position:relative;
}
.product-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.product-card:hover .product-img-wrap img { transform:scale(1.05); }
.product-discount-badge {
  position:absolute; top:10px; right:10px;
  background:#EF4444; color:white; font-size:11px; font-weight:800;
  padding:3px 9px; border-radius:var(--radius-full); z-index:2;
  box-shadow:0 2px 6px rgba(239,68,68,.3);
}
.product-body { padding:12px 12px 14px; display:flex; flex-direction:column; flex:1; }
.product-site { font-size:11px; color:var(--brand-500); font-weight:700; margin-bottom:4px; text-transform:uppercase; letter-spacing:.03em; }
.product-name { font-size:13px; font-weight:600; color:var(--text-primary); line-height:1.4; margin-bottom:2px; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.product-name-ko { font-size:11px; color:var(--text-muted); margin-bottom:6px; white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.product-price-row { display:flex; align-items:baseline; gap:8px; padding-top:4px; }
.product-price { font-size:17px; font-weight:900; color:var(--brand-500); letter-spacing:-0.02em; }
.product-price-unit { font-size:12px; color:var(--text-muted); }
.product-original-price { font-size:12px; color:var(--text-muted); text-decoration:line-through; }
.product-price-convert { font-size:11px; color:var(--text-muted); font-weight:500; }

/* Attribute panel - background container for color/size options */
.attr-panel {
  background:var(--gray-50);
  border-radius:var(--radius-md);
  padding:8px 10px;
  margin-bottom:8px;
  border:1px solid var(--border-light);
}
.attr-panel-label {
  font-size:11px; font-weight:600; color:var(--text-muted);
  margin-bottom:6px; display:block;
}
.attr-panel-options {
  display:flex; gap:6px; flex-wrap:wrap; align-items:center;
}


/* ==================== SITE CARDS ==================== */
.site-card {
  background:white; border-radius:var(--radius-lg);
  padding:14px 16px; border:1px solid var(--border-light);
  display:flex; align-items:center; gap:12px;
  transition:all .2s; cursor:pointer; box-shadow:var(--shadow-card);
}
.site-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--brand-200); }
.site-favicon {
  width:40px; height:40px; border-radius:var(--radius-md);
  background:var(--brand-50); display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:800; color:var(--brand-600); flex-shrink:0;
}
.site-info { flex:1; min-width:0; }
.site-name { font-size:14px; font-weight:650; color:var(--text-primary); white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.site-url { font-size:11px; color:var(--text-muted); white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.site-cat { font-size:11px; font-weight:700; background:var(--brand-500); color:white; padding:3px 10px; border-radius:var(--radius-full); flex-shrink:0; }


/* ==================== ORDER FORM ==================== */
.form-section { max-width:720px; margin:0 auto; padding:28px 0; }
.form-card {
  background:white; border-radius:var(--radius-xl);
  padding:30px 28px; border:1px solid var(--border-light);
  box-shadow:var(--shadow-md);
}
.form-title { font-size:21px; font-weight:780; margin-bottom:6px; color:var(--text-primary); }
.form-title .icon { font-size:22px; }
.form-subtitle { font-size:13px; color:var(--text-secondary); margin-bottom:22px; }

.form-group { margin-bottom:18px; }
.form-label { display:block; font-size:13px; font-weight:600; color:var(--text-primary); margin-bottom:5px; }
.form-label .required { color:var(--brand-500); margin-left:2px; }
.form-input, .form-textarea, .form-select {
  width:100%; padding:11px 14px;
  border:1.5px solid var(--border-color); border-radius:var(--radius-md);
  font-size:14px; color:var(--text-primary); background:white;
  transition:border-color .15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color:var(--brand-500); box-shadow:0 0 0 3px rgba(245,75,100,.08);
}
.form-input::placeholder, .form-textarea::placeholder { color:var(--text-muted); }
.form-textarea { resize:vertical; min-height:80px; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }

.order-items-table { width:100%; margin-bottom:18px; border-collapse:collapse; border-radius:var(--radius-md); overflow:hidden; }
.order-items-table th { text-align:left; font-size:12px; font-weight:700; color:var(--text-secondary); padding:10px 12px; background:var(--gray-50); border-bottom:2px solid var(--border-color); text-transform:uppercase; letter-spacing:.04em; }
.order-items-table td { padding:12px; border-bottom:1px solid var(--border-light); font-size:13px; vertical-align:middle; }
.order-items-table tr:last-child td { border-bottom:none; }
.order-items-table tr:hover { background:var(--brand-50); }

.item-product-cell { display:flex; align-items:center; gap:8px; }
.item-thumb { width:42px; height:42px; border-radius:var(--radius-sm); object-fit:cover; background:var(--gray-100); }
.item-remove-btn { width:26px; height:26px; border-radius:50%; display:inline-flex;align-items:center;justify-content:center; background:var(--gray-100);color:var(--text-secondary);font-size:14px;cursor:pointer;border:none;transition:all .15s; }
.item-remove-btn:hover { background:var(--brand-50); color:var(--brand-500); transform:scale(1.08); }

.order-summary { background:var(--brand-50); border-radius:var(--radius-lg); padding:18px 22px; margin-top:18px; border:1px solid var(--brand-100); }
.summary-row { display:flex; justify-content:space-between; padding:6px 0; font-size:14px; }
.summary-row.total { border-top:2px dashed var(--brand-200); margin-top:10px; padding-top:14px; font-size:17px; font-weight:780; }
.summary-total-value { color:var(--brand-600); font-size:21px; font-weight:900; }

/* --- Address Picker in Order Form --- */
.order-addr-section { margin-bottom:22px; }
.order-addr-section-title { font-size:14px; font-weight:700; color:var(--text-primary); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.order-addr-empty { text-align:center; padding:24px; background:var(--gray-50); border-radius:var(--radius-lg); border:1.5px dashed var(--border-color); }
.order-addr-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.order-addr-card {
  background:white; border-radius:var(--radius-lg); padding:14px 16px;
  border:2px solid var(--border-color); cursor:pointer; transition:all .2s;
  position:relative;
}
.order-addr-card:hover { border-color:var(--brand-300); box-shadow:var(--shadow-sm); }
.order-addr-card.selected { border-color:var(--brand-500); background:var(--brand-50); box-shadow:0 0 0 3px rgba(245,75,100,.08); }
.order-addr-check {
  position:absolute; top:10px; right:10px;
  width:20px; height:20px; border-radius:50%;
  background:var(--border-color); display:flex; align-items:center; justify-content:center;
  font-size:11px; color:white; font-weight:700;
}
.order-addr-card.selected .order-addr-check { background:var(--brand-500); }
.order-addr-name { font-size:13px; font-weight:700; color:var(--text-primary); }
.order-addr-phone { font-size:11px; color:var(--text-muted); margin-bottom:4px; }
.order-addr-detail { font-size:11px; color:var(--text-secondary); line-height:1.5; }
.order-addr-default-badge {
  display:inline-block; padding:1px 8px; border-radius:10px;
  background:var(--brand-100); color:var(--brand-600); font-size:9px; font-weight:700;
  margin-left:6px;
}
@media (max-width:600px) {
  .order-addr-grid { grid-template-columns:1fr; }
}


/* ==================== BUTTONS ==================== */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:10px 24px; border-radius:9999px;
  font-size:14px; font-weight:650; transition:all .2s;
  border:none; cursor:pointer; white-space:nowrap;
}
.btn-primary { background:var(--brand-500); color:white; box-shadow:var(--shadow-brand); }
.btn-primary:hover { background:var(--brand-600); transform:translateY(-1px); box-shadow:0 6px 20px rgba(245,75,100,.35); }
.btn-secondary { background:white; color:var(--text-primary); border:1.5px solid var(--border-color); }
.btn-secondary:hover { border-color:var(--brand-300); color:var(--brand-600); background:var(--brand-50); }
.btn-ghost { background:transparent; color:var(--text-secondary); }
.btn-ghost:hover { background:var(--gray-100); color:var(--text-primary); }
.btn-danger { background:#EF4444; color:white; }
.btn-danger:hover { background:#DC2626; transform:translateY(-1px); }
.btn-success { background:var(--success-600); color:white; }
.btn-success:hover { background:#16A34A; transform:translateY(-1px); }
.btn-sm { padding:6px 14px; font-size:12px; }
.btn-lg { padding:13px 32px; font-size:15px; font-weight:700; }
.btn-block { width:100%; }
.btn:disabled { opacity:.45; cursor:not-allowed; transform:none!important; }


/* ==================== STATUS BADGES ==================== */
.status-badge {
  display:inline-flex; align-items:center; gap:3px;
  padding:3px 10px; border-radius:var(--radius-full);
  font-size:11px; font-weight:650; white-space:nowrap;
}
.status-pending_quote, .status-draft { background:var(--accent-50); color:var(--accent-500); border:1px solid var(--accent-200); }
.status-quoted { background:var(--warn-50); color:#B45309; border:1px solid var(--warn-100); }
.status-payment_pending, .status-payment_submitted, .status-payment_verifying { background:var(--info-50); color:var(--info-600); border:1px solid var(--info-100); }
.status-payment_confirmed, .status-purchasing, .status-purchased { background:var(--brand-50); color:var(--brand-700); border:1px solid var(--brand-200); }
.status-inbound, .status-warehousing, .status-inbound_scanned { background:var(--success-50); color:var(--success-600); border:1px solid var(--success-100); }
.status-warehoused, .status-consolidating, .status-paid_freight { background:var(--warn-50); color:#B45309; border:1px solid var(--warn-100); }
.status-intl_shipping, .status-shipped_ready, .status-shipping { background:var(--brand-50); color:var(--brand-700); border:1px solid var(--brand-200); }
.status-shipped_intl { background:var(--info-50); color:#4338CA; border:1px solid #C7D2FE; }
.status-delivered_local, .status-customs, .status-delivering, .status-arrived_warehouse { background:#EDE9FE; color:#4338CA; border:1px solid #DDD6FE; }
.status-done { background:var(--success-50); color:#15803D; border:1px solid #BBF7D0; }
.status-cancelled { background:var(--gray-100); color:var(--gray-600); border:1px solid var(--gray-200); }


/* ==================== TOAST / NOTIFICATION ==================== */
.toast-container { position:fixed; top:72px; right:20px; z-index:9999; display:flex;flex-direction:column;gap:6px; }
.toast { padding:12px 20px; border-radius:var(--radius-lg); background:var(--gray-900); color:white; font-size:13px; font-weight:550; box-shadow:var(--shadow-xl); animation:slideInRight .3s ease,fadeOut .3s ease 2.7s forwards; max-width:340px; }
.toast.success { background:linear-gradient(135deg,#16A34A,#22C55E); }
.toast.error { background:linear-gradient(135deg,#E04055,#EF4444); }
@keyframes slideInRight { from{opacity:0;transform:translateX(40px);} to{opacity:1;transform:translateX(0);} }
@keyframes fadeOut { to{opacity:0;transform:translateY(-8px);} }


/* ==================== MODAL ==================== */
.modal-overlay { position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.45);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;animation:fadeIn .2s ease;padding:20px; }
.modal { background:white; border-radius:var(--radius-xl); width:100%;max-width:640px;max-height:85vh;overflow-y:auto; box-shadow:var(--shadow-xl); animation:scaleIn .25s; }
.modal-header { display:flex;justify-content:space-between;align-items:center;padding:22px 24px 0;position:sticky;top:0;background:white;z-index:2; }
.modal-title { font-size:18px; font-weight:780; color:var(--text-primary); }
.modal-close { width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--gray-100);color:var(--text-secondary);font-size:17px;cursor:pointer;border:none;transition:all .15s; }
.modal-close:hover { background:var(--gray-200); color:var(--text-primary); transform:rotate(90deg); }
.modal-body { padding:22px 24px 24px; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes scaleIn { from{opacity:0;transform:scale(.95);} to{opacity:1;transform:scale(1);} }


/* ==================== EMPTY STATE ==================== */
.empty-state { text-align:center; padding:48px 20px; color:var(--text-muted); }
.empty-icon { font-size:48px; margin-bottom:12px; opacity:.4; }
.empty-title { font-size:16px; font-weight:650; color:var(--text-secondary); margin-bottom:4px; }
.empty-desc { font-size:13px; }


/* ==================== SEARCH BAR ==================== */
.search-bar {
  display:flex; align-items:center; gap:8px;
  padding:9px 16px; background:white;
  border:1.5px solid var(--border-color); border-radius:var(--radius-full);
  transition:all .15s; max-width:380px; flex:1; box-shadow:var(--shadow-xs);
}
.search-bar:focus-within { border-color:var(--brand-500); box-shadow:0 0 0 3px rgba(245,75,100,.06), var(--shadow-sm); }
.search-icon { font-size:15px; color:var(--text-muted); flex-shrink:0; }
.search-input { flex:1; border:none;background:transparent;font-size:14px;color:var(--text-primary);outline:none; }
.search-input::placeholder { color:var(--text-muted); }


/* ==================== ADMIN STYLES ==================== */
.admin-layout { display:flex; min-height:100vh; }

.admin-sidebar {
  width:var(--sidebar-width); min-width:var(--sidebar-width);
  background: linear-gradient(180deg, #E04055 0%, #C92A3E 50%, #A82032 100%);
  color:white; display:flex; flex-direction:column;
  position:fixed; top:0; left:0; bottom:0; z-index:200; overflow-y:auto;
}
.sidebar-header { padding:20px 18px 16px; border-bottom:1px solid rgba(255,255,255,.1); }
.sidebar-logo { font-size:19px; font-weight:850; color:white; }
.sidebar-logo-sub { font-size:11px; color:rgba(255,255,255,.35); margin-top:2px; }

.sidebar-nav { padding:10px 8px; flex:1; }
.nav-section-title { font-size:10px; font-weight:780; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.3); padding:10px 12px 6px; }
.nav-item {
  display:flex; align-items:center; gap:8px;
  padding:9px 12px; border-radius:var(--radius-md);
  font-size:13px; font-weight:550; color:rgba(255,255,255,.65);
  cursor:pointer; transition:all .2s; border:none; background:transparent; width:100%; text-align:left;
}
.nav-item:hover { background:rgba(255,255,255,.1); color:white; }
.nav-item.active { background:rgba(255,255,255,.15); color:white; border-left:3px solid white; border-radius:0 var(--radius-md) var(--radius-md)0; padding-left:9px; font-weight:700; }
.nav-item .nav-icon { font-size:16px; width:20px; text-align:center; flex-shrink:0; }
.nav-item .nav-badge { margin-left:auto; min-width:18px;height:18px;padding:0 4px; background:var(--brand-500);color:white;font-size:10px;font-weight:700;border-radius:10px;display:flex;align-items:center;justify-content:center; }

.admin-main { flex:1; margin-left:var(--sidebar-width); background:var(--gray-100); min-height:100vh; }

.topbar { height:var(--header-height);background:white;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:50; }
.topbar-title { font-size:17px; font-weight:780; color:var(--text-primary); }
.topbar-actions { display:flex; gap:8px; align-items:center; }

.stat-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:16px; padding:22px 24px 0; }
.stat-card { background:white; border-radius:var(--radius-lg); padding:22px; border:1px solid var(--border-light); transition:all .2s; box-shadow:var(--shadow-card); }
.stat-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.stat-icon { width:42px;height:42px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:12px; }
.stat-icon.orange { background:var(--accent-50); color:var(--accent-500); }
.stat-icon.blue { background:var(--info-50); color:var(--info-500); }
.stat-icon.green { background:var(--success-50); color:var(--success-600); }
.stat-icon.red { background:var(--brand-50); color:var(--brand-600); }
.stat-value { font-size:28px; font-weight:900; color:var(--text-primary); letter-spacing:-.02em; }
.stat-label { font-size:13px; color:var(--text-secondary); margin-top:2px; }

.admin-content { padding:22px 24px; }

.data-table-wrap { background:white; border-radius:var(--radius-lg); border:1px solid var(--border-light); overflow:hidden; box-shadow:var(--shadow-card); }
.table-toolbar { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--border-light); }
.data-table { width:100%; border-collapse:collapse; }
.data-table th { text-align:left; font-size:12px; font-weight:700; color:var(--text-secondary); padding:11px 14px; background:var(--gray-50); border-bottom:2px solid var(--border-color); white-space:nowrap; text-transform:uppercase; letter-spacing:.04em; }
.data-table td { padding:13px 14px; font-size:13px; border-bottom:1px solid var(--border-light); vertical-align:middle; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:var(--brand-50); }

.detail-section { background:var(--gray-50); border-radius:var(--radius-md); padding:16px 18px; margin-bottom:14px; border:1px solid var(--border-light); }
.detail-section-title { font-size:14px; font-weight:780; margin-bottom:10px; color:var(--text-primary); }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.detail-field label { font-size:11px; color:var(--text-muted); font-weight:600; display:block; margin-bottom:2px; }
.detail-field .value { font-size:14px; font-weight:650; color:var(--text-primary); }

.img-gallery { display:flex; gap:6px; flex-wrap:wrap; }
.img-thumb { width:60px;height:60px;border-radius:var(--radius-sm);object-fit:cover;border:1.5px solid var(--border-color);cursor:pointer;transition:all .15s; }
.img-thumb:hover { transform:scale(1.08); border-color:var(--brand-400); }

.upload-zone { border:2px dashed var(--border-color); border-radius:var(--radius-lg); padding:24px; text-align:center; cursor:pointer; transition:all .2s; background:var(--gray-50); }
.upload-zone:hover, .upload-zone.dragover { border-color:var(--brand-400); background:var(--brand-50); }
.upload-zone-icon { font-size:32px; margin-bottom:6px; }
.upload-zone-text { font-size:13px; color:var(--text-secondary); }

.timeline { padding-left:0; list-style:none; }
.timeline-item { display:flex; gap:10px; padding:8px 0; position:relative; }
.timeline-item::before { content:'';position:absolute;left:10px;top:28px;bottom:-4px;width:2px;background:var(--border-color); }
.timeline-item:last-child::before { display:none; }
.timeline-dot { width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0;background:var(--gray-100);border:2px solid var(--border-color); }
.timeline-dot.done { background:var(--brand-500);border-color:var(--brand-500);color:white; }
.timeline-dot.current { background:white;border-color:var(--brand-500);color:var(--brand-500); }
.timeline-content { flex:1; }
.timeline-action { font-size:13px; font-weight:650; }
.timeline-time { font-size:11px; color:var(--text-muted); }
.timeline-detail { font-size:12px; color:var(--text-secondary); margin-top:1px; }

.pack-card { background:white;border-radius:var(--radius-lg);border:1px solid var(--border-light);padding:18px 20px;margin-bottom:14px;transition:all .2s;box-shadow:var(--shadow-card); }
.pack-card:hover { box-shadow:var(--shadow-md); transform:translateY(-1px); }
.pack-card.pending { border-left:4px solid var(--accent-500); }
.pack-card.awaiting_payment { border-left:4px solid var(--info-500); }
.pack-card.paid { border-left:4px solid var(--success-600); }
.pack-card.shipped, .pack-card.done { border-left:4px solid var(--brand-500); }

/* ==================== PROFILE PAGE (Single Column) ==================== */
/* ============================================
   Profile / Personal Center  —— 全新设计
   ============================================ */

/* ---- Layout ---- */
.profile-page { max-width:var(--content-max); margin:0 auto; padding:24px 20px; }
.profile-layout { display:block; }

/* ---- User Header Card ---- */
.profile-user-card {
  background:white; border-radius:16px; padding:24px;
  display:flex; align-items:center; gap:20px;
  border:1px solid var(--border-light); margin-bottom:16px;
  box-shadow:var(--shadow-xs);
}
.profile-user-avatar {
  width:56px; height:56px; border-radius:16px;
  background:linear-gradient(135deg, var(--brand-500), var(--brand-600));
  display:flex; align-items:center; justify-content:center;
  font-size:22px; color:#fff; font-weight:800; flex-shrink:0;
}
.profile-user-info { flex:1; }
.profile-user-name { font-size:17px; font-weight:750; color:var(--text-primary); }
.profile-user-tier {
  display:inline-flex; align-items:center; gap:4px;
  font-size:12px; font-weight:600; color:#fff;
  background:linear-gradient(135deg, #f59e0b, #d97706);
  padding:2px 10px; border-radius:20px; margin-top:4px;
}
.profile-user-meta { font-size:12px; color:var(--text-muted); margin-top:2px; }
.profile-user-edit-btn {
  padding:8px 20px; border-radius:10px;
  background:var(--brand-500); color:#fff; border:none;
  font-size:13px; font-weight:600; cursor:pointer; transition:all .15s;
  white-space:nowrap;
}
.profile-user-edit-btn:hover { background:var(--brand-600); }

/* ---- Stats Row ---- */
.profile-stats {
  display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px;
}
.profile-stat-card {
  background:white; border-radius:12px; padding:14px; text-align:center;
  border:1px solid var(--border-light);
}
.profile-stat-icon { font-size:22px; margin-bottom:4px; }
.profile-stat-num { font-size:20px; font-weight:800; color:var(--text-primary); }
.profile-stat-label { font-size:11px; color:var(--text-muted); margin-top:2px; }

/* ---- Tab Nav (Pill Style) ---- */
.profile-tabs {
  display:flex; gap:0; background:white; border-radius:14px;
  padding:4px; border:1px solid var(--border-light);
  margin-bottom:16px;
}
.profile-tab {
  flex:1; padding:10px 6px; border-radius:10px; border:none;
  background:transparent; font-size:12px; font-weight:600; color:var(--text-secondary);
  cursor:pointer; text-align:center; transition:all .15s;
}
.profile-tab:hover { background:var(--brand-50); color:var(--brand-600); }
.profile-tab.active {
  background:var(--brand-500); color:#fff; font-weight:700;
  box-shadow:0 4px 12px rgba(245,75,100,.25);
}
.profile-tab-icon { display:block; font-size:18px; margin-bottom:2px; }

/* ---- Content Card ---- */
.profile-content-card {
  background:white; border-radius:14px;
  border:1px solid var(--border-light); overflow:hidden;
}
.profile-content-hd {
  padding:14px 20px; border-bottom:1px solid var(--gray-100);
  font-size:15px; font-weight:700; display:flex; align-items:center; gap:8px;
  background:#FAFAFA;
}
.profile-content-bd { padding:14px 20px; }

/* ---- Order Filter Chips ---- */
.profile-order-filter {
  display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px;
}
.profile-order-filter-chip {
  padding:5px 14px; border-radius:20px; border:none;
  font-size:12px; font-weight:600; color:var(--text-secondary);
  background:var(--gray-100); cursor:pointer; transition:all .15s;
  white-space:nowrap;
}
.profile-order-filter-chip:hover { background:var(--gray-200); color:var(--text-primary); }
.profile-order-filter-chip.active { background:var(--brand-500); color:#fff; font-weight:700; box-shadow:var(--shadow-brand); }

/* ---- Badge on filter chips ---- */
.order-chip-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 5px;
  border-radius: 10px; font-size: 10px; font-weight: 700;
  background: #ef4444; color: #fff;
  margin-left: 4px; line-height: 1;
}
.profile-order-filter-chip.active .order-chip-badge {
  background: rgba(255,255,255,.3);
  color: #fff;
}

/* ---- Badge on profile tabs ---- */
.profile-tab {
  position: relative;
}
.profile-tab-badge {
  position: absolute; top: 2px; right: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 10px; font-size: 11px; font-weight: 800;
  background: #ef4444; color: #fff;
  box-shadow: 0 2px 6px rgba(239,68,68,.4);
  line-height: 1; z-index: 2;
}

/* ---- Order Rows ---- */
.profile-order-row {
  display:flex; align-items:center; padding:12px 0;
  border-bottom:1px solid var(--gray-100); gap:12px; cursor:pointer; transition:background .12s;
}
.profile-order-row:last-child { border-bottom:none; }
.profile-order-row:hover { background:var(--brand-50); border-radius:8px; padding-left:8px; padding-right:8px; }
.profile-order-no { font-weight:600; font-size:13px; min-width:140px; color:var(--text-primary); }
.profile-order-prod { font-size:12px; color:var(--text-muted); flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-order-amt { font-size:13px; font-weight:700; color:var(--brand-500); min-width:70px; text-align:right; }
.profile-order-action { font-size:18px; color:var(--gray-300); flex-shrink:0; width:16px; text-align:center; }

/* --- Bulk Action Bar --- */
.profile-action-bar {
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  background:white; border-radius:var(--radius-lg);
  border:1px solid var(--border-light); margin-bottom:14px;
  box-shadow:var(--shadow-xs);
}
.profile-action-bar input[type=checkbox] { width:18px;height:18px;accent-color:var(--brand-500);cursor:pointer; }
.profile-action-link { transition:opacity .15s; }
.profile-action-link:hover { opacity:.7; }

/* --- Consolidation Cards --- */
.profile-pack-card {
  background:white; border-radius:var(--radius-lg);
  border:1px solid var(--border-light); padding:14px 16px;
  margin-bottom:10px; transition:all .2s; cursor:pointer; box-shadow:var(--shadow-xs);
}
.profile-pack-card:hover { border-color:var(--brand-200); box-shadow:var(--shadow-md); }
.profile-pack-card.selected { border-color:#059669; background:#ECFDF5; }
.profile-pack-top { display:flex; align-items:center; gap:10px; }
.profile-pack-no { font-size:13px; font-weight:700; color:var(--text-primary); }
.profile-pack-meta { font-size:11px; color:var(--text-muted); margin-top:4px; }
.profile-pack-pay {
  margin-top:10px; padding:10px 14px; background:#F5F3FF; border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:space-between; border:1px solid #EDE9FE;
}
.profile-pack-pay-label { font-size:11px; color:#6D28D9; font-weight:600; }
.profile-pack-pay-amount { font-size:17px; font-weight:700; color:#6D28D9; }
.profile-pack-pay-btn {
  padding:7px 16px; background:var(--brand-500); color:white; border:none;
  border-radius:9999px; font-size:13px; font-weight:600; cursor:pointer; transition:all .15s;
}
.profile-pack-pay-btn:hover { background:var(--brand-600); }
.profile-pack-shipped { padding:10px 14px; background:#DCFCE7; border-radius:var(--radius-md); margin-top:8px; }
.profile-pack-shipped-text { font-size:12px; color:#15803D; font-weight:600; }

/* --- Cart Items --- */
.profile-cart-card {
  display:flex; gap:12px; padding:14px 16px; background:white;
  border-radius:var(--radius-lg); border:1px solid var(--border-light);
  margin-bottom:10px; transition:all .2s; box-shadow:var(--shadow-xs);
}
.profile-cart-card:hover { box-shadow:var(--shadow-md); }
.profile-cart-thumb { width:60px;height:60px;border-radius:var(--radius-md);object-fit:cover;background:var(--gray-100);flex-shrink:0; }
.profile-cart-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.profile-cart-name { font-size:13px; font-weight:600; line-height:1.4; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.profile-cart-meta { font-size:11px; color:var(--text-muted); }
.profile-cart-row { display:flex; align-items:center; justify-content:space-between; margin-top:4px; }
.profile-cart-price { font-size:16px; font-weight:800; color:var(--brand-500); }

.qty-control { display:inline-flex;align-items:center;gap:0;border:1.5px solid var(--border-color);border-radius:20px;overflow:hidden; }
.qty-btn { width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:14px;background:var(--gray-100);color:var(--text-primary);cursor:pointer;border:none;transition:all .15s; }
.qty-btn:hover { background:var(--gray-200); }
.qty-val { min-width:34px;height:28px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;border-left:1px solid var(--border-color);border-right:1px solid var(--border-color); }

.profile-cart-summary { background:var(--brand-50); border-radius:var(--radius-lg); padding:16px 18px; border:1px solid var(--brand-100); margin-top:4px; }
.profile-cart-total { display:flex;justify-content:space-between;padding:4px 0;font-size:13px; }
.profile-cart-total.final { border-top:2px dashed var(--brand-200);margin-top:8px;padding-top:12px;font-size:15px;font-weight:700; }
.profile-cart-total-value { color:var(--brand-500); font-size:20px; font-weight:900; }
.profile-cart-actions { display:flex;gap:8px;margin-top:12px; }

/* --- Settings Forms --- */
.profile-form-card {
  background:white; border-radius:var(--radius-lg);
  border:1px solid var(--border-light); padding:22px 24px;
  margin-bottom:16px; box-shadow:var(--shadow-xs);
}
.profile-form-title { font-size:16px; font-weight:750; color:var(--text-primary); }

/* --- Address Cards --- */
.profile-addr-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; }
.profile-addr-card {
  background:white; border-radius:var(--radius-lg); padding:16px 18px;
  border:2px solid var(--border-color); position:relative; cursor:pointer;
  transition:all .2s; box-shadow:var(--shadow-xs);
}
.profile-addr-card:hover { border-color:var(--brand-300); }
.profile-addr-card.default { border-color:#7C3AED; background:#F5F3FF; }
.profile-addr-badge {
  position:absolute; top:10px; right:10px; padding:2px 10px;
  background:#7C3AED; color:white; font-size:11px; font-weight:700;
  border-radius:var(--radius-full);
}
.profile-addr-avatar { width:36px;height:36px;border-radius:50%;background:var(--brand-50);color:var(--brand-600);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;margin-bottom:6px; }
.profile-addr-name { font-size:14px;font-weight:650;color:var(--text-primary); }
.profile-addr-phone { font-size:12px;color:var(--text-muted);margin-bottom:4px; }
.profile-addr-detail { font-size:12px;color:var(--text-secondary);line-height:1.5; }
.profile-addr-id { font-size:11px;color:var(--text-muted);margin-top:4px; }
.profile-addr-actions { display:flex;gap:8px;margin-top:10px; }
.profile-addr-hint { font-size:10px;color:var(--text-muted);margin-top:6px;text-align:center; }

/* --- Profile Section Title --- */
.profile-section-title { font-size:15px; font-weight:700; color:var(--text-primary); margin-bottom:10px; display:flex;align-items:center;gap:6px; }

/* ==================== HOME PAGE V2 (White Header Layout) ==================== */

/* 首页顶部一行：钱包 + Hero Banner 并排 */
.home-top-row {
  max-width: var(--content-max);
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: stretch;
}

/* 钱包面板 - 首页版本 */
.home-top-row .wallet-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  height: fit-content;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

/* Hero Banner v2 - 首页版本 */
.home-top-row .hero-banner-v2 {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF0F2 50%, #FFE4E8 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
  border: 1px solid var(--brand-100);
  min-height: 280px;
}

/* Wallet Panel */
.wallet-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  height: fit-content;
}
.wallet-panel-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.wallet-panel-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.wallet-panel-view { font-size: 12px; color: var(--brand-500); cursor: pointer; font-weight: 500; }
.wallet-panel-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.wallet-panel-balance { font-size: 28px; font-weight: 800; color: var(--brand-500); margin-bottom: 14px; letter-spacing: -0.02em; }
.wallet-panel-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.wallet-panel-actions .btn { flex: 1; padding: 8px 0; font-size: 13px; border-radius: var(--radius-md); }
.wallet-panel-stats {
  display: flex; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border-color);
}
.wallet-panel-stat { display: flex; flex-direction: column; gap: 3px; }
.wallet-panel-stat-label { font-size: 11px; color: var(--text-muted); }
.wallet-panel-stat-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* Sidebar Services */
.sidebar-services {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-service-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.sidebar-service-icon.green { background: #F0FDF4; }
.sidebar-service-icon.blue { background: #EFF6FF; }
.sidebar-service-icon.yellow { background: #FFFBEB; }
.sidebar-service-text { display: flex; flex-direction: column; }
.sidebar-service-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sidebar-service-desc { font-size: 11px; color: var(--text-muted); }

/* Sidebar Hot Products */
.sidebar-hot-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}
.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sidebar-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.sidebar-section-more {
  font-size: 12px;
  color: var(--brand-500);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.sidebar-section-more:hover { text-decoration: underline; }
.sidebar-product-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .15s;
}
.sidebar-product-item:hover { background: var(--brand-50); }
.sidebar-product-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--brand-100), var(--brand-50));
}
.sidebar-product-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-product-info { flex: 1; min-width: 0; }
.sidebar-product-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.sidebar-product-price { display: flex; align-items: center; gap: 4px; }
.sidebar-product-price-main { font-size: 13px; font-weight: 700; color: var(--brand-600); }
.sidebar-product-price-convert { font-size: 11px; color: var(--text-muted); }
.sidebar-cart-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--brand-500);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.sidebar-cart-btn:hover { background: var(--brand-600); transform: scale(1.05); }

/* Hero Banner v2 */
.hero-banner-v2 {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF0F2 50%, #FFE4E8 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; position: relative; overflow: hidden;
  border: 1px solid var(--brand-100);
}
.hero-banner-content { max-width: 480px; z-index: 1; }
.hero-banner-title { font-size: 32px; font-weight: 800; line-height: 1.25; color: var(--text-primary); margin-bottom: 10px; letter-spacing: -0.02em; }
.hero-banner-title span { color: var(--brand-500); }
.hero-banner-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.hero-banner-features { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-banner-feature { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.hero-banner-feature-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.hero-banner-feature-icon.blue { background: #EEF2FF; color: #4F46E5; }
.hero-banner-feature-icon.cyan { background: #ECFEFF; color: #06B6D4; }
.hero-banner-feature-icon.purple { background: #F3E8FF; color: #9333EA; }
.hero-banner-feature-icon.orange { background: #FFF7ED; color: #F97316; }
.hero-banner-image { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 280px; height: 160px; display: flex; align-items: center; justify-content: center; opacity: .9; }
.hero-banner-image svg { width: 100%; height: 100%; }

/* Service Bar v2 */
.service-bar-v2 {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-bottom: 24px;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.service-item-v2 {
  background: white; border-radius: var(--radius-md); padding: 16px 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-xs); border: 1px solid var(--border-light);
  min-height: 64px;
}
.service-item-v2-text {
  display: flex; flex-direction: column;
  text-align: left;
}

/* Product card actions v2 */
.card-actions-v2 { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.btn-cart-icon {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); background: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; color: var(--text-secondary); flex-shrink: 0;
}
.btn-cart-icon:hover { border-color: var(--brand-500); color: var(--brand-500); }
.btn-detail-outline {
  flex: 1; height: 32px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); background: white;
  color: var(--text-secondary); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.btn-detail-outline:hover { border-color: var(--brand-500); color: var(--brand-500); }

/* Bottom Stats v2 */
.bottom-stats-v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: white; border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-xs); border: 1px solid var(--border-light);
  margin-top: 24px;
  margin-bottom: 20px;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 常用网站区域 */
.sites-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px 8px;
}

/* 热门商品区域 */
.products-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px 8px;
}
.products-section-inner {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}
.home-sites-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.home-site-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all .2s ease;
}
.home-site-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}
.home-site-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), #E04055);
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-site-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}
.home-site-cat {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}
.bottom-stat-item { display: flex; align-items: flex-start; gap: 10px; }
.bottom-stat-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.bottom-stat-icon.blue { background: #EFF6FF; }
.bottom-stat-icon.green { background: #F0FDF4; }
.bottom-stat-icon.purple { background: #F3E8FF; }
.bottom-stat-icon.orange { background: #FFF7ED; }
.bottom-stat-content { display: flex; flex-direction: column; }
.bottom-stat-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.bottom-stat-desc { font-size: 12px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 992px) {
  .home-top-row { grid-template-columns: 1fr; }
  .home-top-row .wallet-panel { max-width: 100%; min-height: auto; }
  .home-top-row .hero-banner-v2 { min-height: auto; }
  .hero-banner-image { display: none; }
  .service-bar-v2 { grid-template-columns: repeat(3, 1fr); }
  .home-sites-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width:768px) {
  :root { --header-height:54px; --sidebar-width:240px; }
  .hero-title { font-size:28px; }
  .card-grid { grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; }
  .form-row { grid-template-columns:1fr; }
  .admin-sidebar { transform:translateX(-100%); transition:transform .3s; }
  .admin-sidebar.open { transform:translateX(0); }
  .admin-main { margin-left:0; }
  .stat-cards { grid-template-columns:1fr 1fr; padding:16px; }
  .detail-grid { grid-template-columns:1fr; }
  .site-grid { grid-template-columns:1fr; }
  .profile-tabs { width:100%; overflow-x:auto; }
  .profile-tab { flex-shrink:0; padding:12px 16px; font-size:12px; }
  .profile-addr-grid { grid-template-columns:1fr; }
  .home-top-row { grid-template-columns: 1fr; gap: 16px; }
  .home-top-row .wallet-panel { max-width: 100%; min-height: auto; }
  .home-top-row .hero-banner-v2 { min-height: auto; }
  .hero-banner-image { display: none; }
  .hero-banner-title { font-size: 24px; }
  .service-bar-v2 { grid-template-columns: repeat(2, 1fr); }
  .bottom-stats-v2 { grid-template-columns: repeat(2, 1fr); }
  .home-sites-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .home-sites-grid { grid-template-columns: repeat(2, 1fr); }
}
