/* =========================================================
   海南闪途数码 · 全局样式
   设计语言：现代科技风（靛蓝 + 青色渐变 + 圆角卡片 + 轻阴影）
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-d: #1e40af;
  --accent: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --green: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  --grad-1: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-2: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --grad-3: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-4: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-5: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  --grad-6: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 100%);
  --maxw: 1200px;
  --maxw-w: 1440px;
  --maxw-xl: 1600px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- 导航栏 ---------------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
}
@media (min-width: 1280px) { .nav-inner { max-width: var(--maxw-w); } }
@media (min-width: 1600px) { .nav-inner { max-width: var(--maxw-xl); } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.brand-text { color: var(--ink); letter-spacing: -0.5px; }
.brand-text small { color: var(--primary); font-weight: 700; margin-left: 2px; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
.nav-links a {
  padding: 8px 14px; border-radius: 30px; font-weight: 500; color: var(--muted);
  font-size: 15px; transition: all 0.15s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-links a:hover { color: var(--primary); background: #eef4ff; }
.nav-links a.active { color: #fff; background: var(--grad); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 30px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--ink); }

/* ---------------- 主区域 ---------------- */
.app-main { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 60px; min-height: 60vh; }
/* 宽屏：渐进放大容器 */
@media (min-width: 1280px) { .app-main { max-width: var(--maxw-w); } }
@media (min-width: 1600px) { .app-main { max-width: var(--maxw-xl); } }
.loading { text-align: center; color: var(--muted); padding: 80px 0; font-size: 16px; }
.section { margin-bottom: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.section-head .sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.section-head a.more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 30px;
  background: rgba(37, 99, 235, 0.08);
  transition: background 0.15s, transform 0.15s;
}
.section-head a.more:hover { background: rgba(37, 99, 235, 0.16); transform: translateX(2px); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; border-radius: 26px; overflow: hidden;
  background: var(--grad-dark); color: #fff; padding: 64px 52px;
  box-shadow: var(--shadow); margin-bottom: 50px;
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; left: -60px; bottom: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%);
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.15fr 1fr; padding: 72px 64px; gap: 56px; }
}
@media (min-width: 1400px) {
  .hero { grid-template-columns: 1.1fr 1fr; padding: 84px 80px; gap: 72px; }
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero .badge {
  display: inline-block; background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25); padding: 6px 16px;
  border-radius: 30px; font-size: 13px; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; font-weight: 900; line-height: 1.15; letter-spacing: -1px; }
.hero h1 span { background: linear-gradient(90deg, #67e8f9, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: rgba(255, 255, 255, 0.85); margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px; font-weight: 700; font-size: 15px;
  background: #fff; color: var(--primary-d); border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px; font-weight: 700; font-size: 15px;
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.15s;
}
.btn-line:hover { background: rgba(255, 255, 255, 0.22); }

.hero-search {
  position: relative; z-index: 2; margin-top: 34px; max-width: 520px;
  display: flex; background: #fff; border-radius: 30px; padding: 6px; box-shadow: var(--shadow);
}
.hero-search input { flex: 1; border: none; outline: none; padding: 12px 18px; font-size: 15px; border-radius: 30px; }
.hero-search button { border: none; background: var(--grad); color: #fff; padding: 12px 26px; border-radius: 30px; font-weight: 700; }

/* Hero 右侧：信任背书 / 数据亮点（玻璃态卡组） */
.hero-aside {
  position: relative; z-index: 2;
  display: none; /* 默认隐藏，≥980px 才显示 */
}
@media (min-width: 980px) { .hero-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; padding: 22px 20px;
  transition: transform .2s, background .2s, border-color .2s;
}
.hero-stat:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); }
.hero-stat .num {
  font-size: 32px; font-weight: 900; line-height: 1.1;
  background: linear-gradient(90deg, #67e8f9, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.5px;
}
.hero-stat .num small { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); margin-left: 4px;
  background: none; -webkit-text-fill-color: rgba(255, 255, 255, 0.85); }
.hero-stat .lbl { color: rgba(255, 255, 255, 0.78); font-size: 13px; margin-top: 6px; letter-spacing: 0.2px; }
.hero-stat .ic {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.14); margin-bottom: 10px; font-size: 14px; color: #67e8f9;
}
.hero-aside-foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 6px 12px; border-radius: 30px;
  background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}
.hero-tag i { color: #34d399; }

/* ---------------- 服务亮点 ---------------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1180px) { .service-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.service-card {
  position: relative;
  background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent 40%);
  opacity: 0; transition: opacity 0.2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 24px; color: #fff; background: var(--grad); margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.service-card[data-c="2"] .service-icon { background: var(--grad-2); box-shadow: 0 8px 18px rgba(16, 185, 129, 0.32); }
.service-card[data-c="3"] .service-icon { background: var(--grad-3); box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28); }
.service-card[data-c="4"] .service-icon { background: var(--grad-4); box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28); }
.service-card[data-c="5"] .service-icon { background: var(--grad-5); box-shadow: 0 8px 18px rgba(20, 184, 166, 0.32); }
.service-card[data-c="6"] .service-icon { background: var(--grad-6); box-shadow: 0 8px 18px rgba(244, 63, 94, 0.28); }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; }

/* ---------------- 产品网格 ---------------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .product-grid { grid-template-columns: repeat(5, 1fr); gap: 22px; } }
.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb {
  height: 170px; display: grid; place-items: center; font-size: 70px;
  background: linear-gradient(135deg, #eef4ff, #e0f7fa); position: relative;
}
.product-thumb .tag {
  position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.product-thumb .hot-tag {
  position: absolute; top: 12px; right: 12px; background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 12px; color: var(--muted); font-weight: 600; }
.product-name { font-size: 15px; font-weight: 700; margin: 4px 0 8px; line-height: 1.4; min-height: 42px; }
.product-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.product-meta .stars { color: #f59e0b; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 20px; font-weight: 800; color: var(--danger); }
.product-price small { font-size: 13px; font-weight: 600; }
.product-price .old { color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: line-through; margin-left: 6px; }
.btn-cart {
  border: none; background: var(--grad); color: #fff; width: 40px; height: 40px;
  border-radius: 12px; font-size: 16px; display: grid; place-items: center; transition: transform 0.15s;
}
.btn-cart:hover { transform: scale(1.08); }

/* ---------------- 统计带 ---------------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { text-align: center; padding: 26px 12px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.stat-box .num { font-size: 36px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box .label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------------- 分类页 ---------------- */
.cat-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.cat-chip {
  padding: 9px 18px; border-radius: 30px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; color: var(--muted); transition: all 0.15s;
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.search-inline { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 4px 6px; flex: 1; max-width: 360px; }
.search-inline input { flex: 1; border: none; outline: none; padding: 9px 14px; font-size: 14px; }
.search-inline button { border: none; background: var(--grad); color: #fff; border-radius: 24px; padding: 8px 18px; font-weight: 600; }
.select-sort { border: 1px solid var(--line); border-radius: 30px; padding: 9px 16px; font-size: 14px; background: #fff; outline: none; }

/* ---------------- 表单 / 通用卡片 ---------------- */
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; outline: none; transition: border 0.15s; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.field textarea { resize: vertical; min-height: 90px; }
.btn-submit {
  grid-column: 1 / -1; border: none; background: var(--grad); color: #fff; padding: 14px;
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; transition: transform 0.15s; margin-top: 6px;
}
.btn-submit:hover { transform: translateY(-2px); }

/* ---------------- 订单 / 列表 ---------------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tbl th { text-align: left; padding: 14px 10px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line); }
.tbl td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fafcff; }
.badge-status { padding: 4px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; }
.s-paid { background: #dbeafe; color: #1d4ed8; }
.s-shipped { background: #cffafe; color: #0e7490; }
.s-completed { background: #dcfce7; color: #15803d; }
.s-cancelled { background: #fee2e2; color: #b91c1c; }
.s-pending { background: #fef3c7; color: #b45309; }
.s-accepted { background: #dbeafe; color: #1d4ed8; }
.s-done { background: #dcfce7; color: #15803d; }
.order-items { font-size: 13px; color: var(--muted); }

/* ---------------- 用户中心 ---------------- */
.user-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.user-side { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; height: fit-content; }
.user-avatar-lg { width: 80px; height: 80px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; margin: 0 auto 14px; }
.user-side h3 { text-align: center; font-size: 18px; }
.user-side .role { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.user-menu { display: flex; flex-direction: column; gap: 4px; }
.user-menu button { text-align: left; border: none; background: none; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--ink); transition: background 0.15s; }
.user-menu button:hover { background: #eef4ff; }
.user-menu button.active { background: var(--grad); color: #fff; }
.user-panel { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; }

/* ---------------- 购物车浮窗 ---------------- */
.cart-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff;
  border: none; font-size: 22px; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4); display: grid; place-items: center;
}
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 5px; }
.cart-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 81; width: 360px; max-width: 92vw;
  background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,0.2); border: 1px solid var(--line); overflow: hidden; display: none;
}
.cart-panel.open { display: block; }
.cart-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.cart-list { max-height: 320px; overflow-y: auto; padding: 8px 0; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #f1f5f9; }
.cart-row .ci-thumb { font-size: 30px; width: 44px; text-align: center; }
.cart-row .ci-info { flex: 1; }
.cart-row .ci-name { font-size: 14px; font-weight: 600; }
.cart-row .ci-price { font-size: 13px; color: var(--danger); font-weight: 700; }
.qty-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-ctrl button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.cart-foot { padding: 16px 18px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 12px; font-size: 17px; }
.cart-empty { padding: 40px 18px; text-align: center; color: var(--muted); }

/* ---------------- 弹窗 ---------------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); display: grid; place-items: center; z-index: 200; padding: 20px; }
.modal {
  background: #fff; border-radius: 22px; width: 420px; max-width: 100%; padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); animation: pop 0.2s ease;
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 22px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.modal .field { margin-bottom: 14px; }
.modal-close { position: absolute; }
.modal-switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.modal-switch a { color: var(--primary); font-weight: 600; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: var(--ink); color: #fff; padding: 13px 26px; border-radius: 30px; font-size: 14px; font-weight: 600;
  z-index: 300; opacity: 0; transition: all 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.25); pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok { background: #16a34a; }
.toast.err { background: #dc2626; }

/* ---------------- 页脚 ---------------- */
.footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 50px 20px 30px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
@media (min-width: 1280px) { .footer-inner { max-width: var(--maxw-w); } }
@media (min-width: 1600px) { .footer-inner { max-width: var(--maxw-xl); } }
.footer .brand-text { color: #fff; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #94a3b8; font-size: 14px; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: #67e8f9; }
.footer-desc { font-size: 14px; line-height: 1.7; color: #94a3b8; margin: 14px 0; }
.footer-social span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); margin-right: 8px; font-size: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 18px; font-size: 13px; color: #64748b; }

/* ---------------- 空态 ---------------- */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty i { font-size: 50px; opacity: 0.4; margin-bottom: 14px; }

/* ---------------- 响应式 ---------------- */
/* 平板/移动端：stats-band 在中等屏先降档，再 mobile 折叠 */
@media (max-width: 1024px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 12px 20px; border-bottom: 1px solid var(--line); display: none; margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 44px 28px; }
  .hero h1 { font-size: 32px; }
  .user-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { border-radius: 18px; }
  .app-main { padding: 20px 14px 50px; }
  .section-head h2 { font-size: 21px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-actions .btn-ghost span { display: none; }
}

/* ---------------- 顶栏全局搜索 ---------------- */
.nav-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 2px 4px 2px 12px; flex-shrink: 0; }
.nav-search input { border: none; outline: none; font-size: 14px; width: 160px; background: transparent; }
.nav-search button { border: none; background: var(--grad); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
@media (min-width: 1280px) { .nav-search input { width: 180px; } }
@media (max-width: 1024px) { .nav-search input { width: 120px; } }
@media (max-width: 820px) { .nav-search { display: none; } }

/* ---------------- 产品渐变图（SVG） ---------------- */
.prod-svg { width: 100%; height: 100%; display: block; }
.product-thumb { height: 170px; display: grid; place-items: center; background: linear-gradient(135deg, #eef4ff, #e0f7fa); position: relative; overflow: hidden; }
.product-thumb .prod-svg { position: absolute; inset: 0; }
.product-thumb:hover .prod-svg { transform: scale(1.04); transition: transform .3s; }

/* ---------------- 面包屑 ---------------- */
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.crumb a:hover { color: var(--primary); }

/* ---------------- 产品详情页 ---------------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 20px; }
.pd-gallery .pd-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; background: #eef4ff; }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.pd-thumb { border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; background: #eef4ff; cursor: pointer; padding: 0; }
.pd-thumb.active { border-color: var(--primary); }
.pd-info .pd-brand { color: var(--primary); font-weight: 700; font-size: 14px; }
.pd-title { font-size: 28px; font-weight: 800; margin: 6px 0 12px; line-height: 1.3; }
.pd-rate { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.pd-rate .stars.big { color: #f59e0b; font-size: 18px; }
.pd-score { color: var(--ink); font-weight: 700; font-size: 18px; }
.pd-price-box { background: linear-gradient(135deg, #fff7ed, #fef2f2); border: 1px solid #fed7aa; border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.pd-price { font-size: 34px; font-weight: 900; color: var(--danger); }
.pd-price small { font-size: 18px; }
.pd-old { color: var(--muted); font-size: 16px; text-decoration: line-through; margin-left: 10px; font-weight: 500; }
.pd-stock { color: var(--muted); font-size: 14px; margin-top: 6px; }
.pd-save { color: var(--ok); font-weight: 700; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pd-tag { background: #eef4ff; color: var(--primary); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.pd-desc { color: #475569; line-height: 1.8; margin-bottom: 22px; }
.pd-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pd-qty button { width: 38px; height: 42px; border: none; background: #f8fafc; font-size: 18px; font-weight: 700; }
.pd-qty button:hover { background: #eef4ff; }
.pd-qty span { width: 46px; text-align: center; font-weight: 700; }
.btn-primary.lg, .btn-line.lg { padding: 14px 26px; font-size: 15px; }
.pd-services { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 18px; }
.pd-services span { display: inline-flex; align-items: center; gap: 6px; }
.pd-services i { color: var(--primary); }

/* 规格表 */
.spec-tbl { width: 100%; border-collapse: collapse; }
.spec-tbl th { text-align: left; width: 140px; color: var(--muted); font-weight: 600; padding: 14px 10px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.spec-tbl td { padding: 14px 10px; border-bottom: 1px solid var(--line); }

/* 评价 */
.rev-list { display: flex; flex-direction: column; margin-bottom: 24px; }
.rev-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rev-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.rev-body { flex: 1; }
.rev-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.rev-name { font-weight: 700; }
.rev-top .stars { color: #f59e0b; }
.rev-date { color: var(--muted); font-size: 13px; }
.rev-text { color: #475569; line-height: 1.7; }
.rev-form h4 { margin-bottom: 12px; }
.rev-stars { display: flex; gap: 6px; font-size: 26px; color: #f59e0b; margin-bottom: 12px; cursor: pointer; }
.rev-stars i:hover { transform: scale(1.12); }
.rev-login { text-align: center; color: var(--muted); }
.rev-login a { color: var(--primary); font-weight: 600; cursor: pointer; }

/* ---------------- 关于我们 ---------------- */
.about-hero, .contact-hero { position: relative; border-radius: 26px; overflow: hidden; background: var(--grad-dark); color: #fff; padding: 60px 52px; margin-bottom: 50px; box-shadow: var(--shadow); }
.about-hero::after, .contact-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent 70%); }
.about-hero-inner, .contact-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.about-hero .badge, .contact-hero .badge { display: inline-block; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); padding: 6px 16px; border-radius: 30px; font-size: 13px; margin-bottom: 18px; }
.about-hero h1, .contact-hero h1 { font-size: 42px; font-weight: 900; line-height: 1.2; letter-spacing: -1px; }
.about-hero h1 span, .contact-hero h1 span { background: linear-gradient(90deg, #67e8f9, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-hero p, .contact-hero p { font-size: 17px; color: rgba(255, 255, 255, 0.85); margin-top: 16px; line-height: 1.8; }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mission-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s; }
.mission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.m-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.mission-card h3 { font-size: 18px; margin-bottom: 8px; }
.mission-card p { color: var(--muted); font-size: 14px; }

.timeline { position: relative; padding-left: 8px; }
.tl-item { display: grid; grid-template-columns: 90px 30px 1fr; align-items: start; gap: 8px; padding-bottom: 26px; }
.tl-year { font-weight: 900; font-size: 20px; color: var(--primary); text-align: right; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--grad); margin: 6px auto 0; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.tl-card h4 { font-size: 16px; margin-bottom: 4px; }
.tl-card p { color: var(--muted); font-size: 14px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .18s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; margin: 0 auto 14px; }
.team-card h4 { font-size: 17px; }
.team-role { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: 13px; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; font-weight: 600; box-shadow: var(--shadow-sm); }
.cert-card i { font-size: 26px; color: var(--primary); }

.cta-band { text-align: center; background: var(--grad); color: #fff; border-radius: 26px; padding: 48px 24px; margin-top: 20px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-bottom: 22px; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-line { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.contact-info h3, .contact-form h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 18px; }
.ci-list { list-style: none; }
.ci-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.ci-list li i { font-size: 20px; color: var(--primary); width: 24px; text-align: center; margin-top: 2px; }
.ci-list li b { display: block; font-size: 14px; }
.ci-list li span { color: var(--muted); font-size: 14px; }
.ci-stores { margin-top: 20px; }
.ci-stores h4 { margin-bottom: 12px; font-size: 15px; }
.store { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #f8fafc; }
.store-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.store-name i { color: var(--primary); }
.store-addr { color: var(--muted); font-size: 13px; margin: 4px 0; }
.store-tel { color: var(--primary); font-size: 13px; font-weight: 600; }

.contact-right { display: flex; flex-direction: column; gap: 24px; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-placeholder { height: 240px; background: linear-gradient(135deg, #eef4ff, #e0f7fa); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 20px; }
.map-placeholder i { font-size: 44px; color: var(--primary); }
.map-placeholder span { font-weight: 700; color: var(--ink); }
.map-placeholder small { font-size: 12px; }
.map-embed { width: 100%; height: 300px; border: 0; display: block; }
.map-link { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--primary); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

/* ---------------- 新页面响应式 ---------------- */
@media (max-width: 1024px) {
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .mission-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .about-hero, .contact-hero { padding: 40px 26px; }
  .about-hero h1, .contact-hero h1 { font-size: 30px; }
  .pd-title { font-size: 24px; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .pd-price { font-size: 28px; }
  .tl-item { grid-template-columns: 64px 24px 1fr; }
  .tl-year { font-size: 16px; }
}

/* ================= 升级：设计令牌扩展 / 暗色模式 / 组件 ================= */

/* 字体栈统一（系统优先，避免外部字体阻塞 LCP） */
body { font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }

/* Logo（SVG 填充 brand-mark） */
.brand-mark { background: none; box-shadow: none; padding: 0; }
.brand-svg { width: 38px; height: 38px; display: block; border-radius: 11px; }
.icon-btn { padding: 9px 12px; }

/* 暗色模式 */
[data-theme="dark"] {
  --bg: #0b1220; --card: #111a2e; --ink: #e6edf7; --muted: #94a3b8;
  --line: #22324f; --bg-soft: #0e1626;
}
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .navbar { background: rgba(15, 23, 42, 0.86); border-bottom-color: var(--line); }
[data-theme="dark"] .nav-links a:hover { background: #18243c; }
[data-theme="dark"] .nav-links.open { background: #0f172a; }
[data-theme="dark"] .btn-ghost { background: #0f172a; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { background: #0e1626; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .modal, [data-theme="dark"] .cart-panel, [data-theme="dark"] .user-side, [data-theme="dark"] .user-panel { background: #111a2e; color: var(--ink); }
[data-theme="dark"] .product-thumb { background: linear-gradient(135deg, #16223a, #0d1830); }
[data-theme="dark"] .pd-gallery .pd-main, [data-theme="dark"] .pd-thumb { background: #16223a; }
[data-theme="dark"] .tbl tr:hover td { background: #0e1626; }
[data-theme="dark"] .cart-row { border-color: #18243c; }
[data-theme="dark"] .store { background: #0e1626; }
[data-theme="dark"] .map-placeholder { background: linear-gradient(135deg, #16223a, #0d1830); }

/* Mega Menu */
.has-mega { position: static; }
.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 26px 0; display: none; z-index: 90;
}
[data-theme="dark"] .mega-menu { background: #0f172a; }
.has-mega:hover .mega-menu { display: block; }
.mega-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1280px) { .mega-inner { max-width: var(--maxw-w); } }
@media (min-width: 1600px) { .mega-inner { max-width: var(--maxw-xl); } }
.mega-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mega-col { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); transition: background .15s; }
.mega-col:hover { background: #eef4ff; }
[data-theme="dark"] .mega-col:hover { background: #18243c; }
.mega-col i { width: 36px; height: 36px; border-radius: 10px; background: #eef4ff; color: var(--primary); display: grid; place-items: center; }
[data-theme="dark"] .mega-col i { background: #18243c; }
.mega-col span { font-weight: 600; font-size: 15px; }
@media (max-width: 820px) { .mega-menu { display: none !important; } }

/* 移动端底部导航 */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); display: flex; justify-content: space-around;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15,23,42,0.08);
  }
  [data-theme="dark"] .bottom-nav { background: rgba(15,23,42,0.96); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; padding: 4px 10px; border-radius: 10px; }
  .bottom-nav a i { font-size: 20px; }
  .bottom-nav a.active { color: var(--primary); }
  .app-main { padding-bottom: 84px; }
  .cart-fab { bottom: 92px; }
  .cart-panel { bottom: 164px; }
}

/* 骨架屏 */
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sk { background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 6px; }
[data-theme="dark"] .sk { background: linear-gradient(90deg, #16223a 25%, #1d2c47 37%, #16223a 63%); background-size: 400% 100%; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-thumb { height: 170px; border-radius: 0; }
.sk-line { height: 12px; margin: 12px 16px 0; }
.sk-line.w40 { width: 40%; } .sk-line.w70 { width: 70%; } .sk-line.w90 { width: 90%; }
@media (max-width: 1024px) { .sk-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sk-grid { grid-template-columns: repeat(2, 1fr); } }

/* 可达性：焦点环 + 减少动效 */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .pd-thumb:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* 商品卡收藏心形 */
.product-wish { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,0.85); color: var(--danger); display: grid; place-items: center; font-size: 15px; transition: transform .15s; }
.product-wish:hover { transform: scale(1.1); }
.product-wish.on { background: var(--danger); color: #fff; }

/* 资讯 / 服务套餐 */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 560px) { .news-grid, .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid, .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .news-grid, .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-cover { height: 150px; display: grid; place-items: center; }
.news-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.news-cat { color: var(--primary); font-size: 12px; font-weight: 700; }
.news-card h3 { font-size: 17px; margin: 6px 0 8px; line-height: 1.4; }
.news-card p { color: var(--muted); font-size: 14px; flex: 1; }
.news-meta { color: var(--muted); font-size: 12px; margin-top: 12px; }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .18s; position: relative; overflow: hidden; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 24px; margin-bottom: 16px; }
.svc-card h3 { font-size: 18px; margin-bottom: 8px; }
.svc-card .price { font-size: 22px; font-weight: 800; color: var(--danger); margin: 6px 0 12px; }
.svc-card .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.svc-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.svc-feat { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.svc-feat li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.svc-feat li i { color: var(--ok); }
/* ---------------- 仪表盘 / 用户 / 收藏 ---------------- */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.dash-card .k { color: var(--muted); font-size: 14px; }
.dash-card .v { font-size: 30px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.user-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.user-tabs button { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 30px; font-weight: 600; color: var(--muted); }
.user-tabs button.active { background: var(--grad); color: #fff; border-color: transparent; }
[data-theme="dark"] .user-tabs button { background: #0f172a; }
.addr-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; background: var(--bg-soft); }
.addr-card .nm { font-weight: 700; }
.addr-card .df { color: var(--primary); font-size: 12px; font-weight: 700; margin-left: 8px; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }

/* 商城布局：侧栏筛选 + 主区 */
.prod-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.prod-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .prod-side { background: #111a2e; }
.filter-block { margin-bottom: 22px; }
.filter-block h4 { font-size: 15px; margin-bottom: 12px; }
.cat-bar.col { flex-direction: column; align-items: stretch; gap: 8px; }
.cat-bar.col .cat-chip { text-align: left; }
.brand-list { display: flex; flex-direction: column; gap: 6px; }
.brand-chip { border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; text-align: left; display: flex; justify-content: space-between; color: var(--ink); transition: all .15s; }
[data-theme="dark"] .brand-chip { background: #0f172a; }
.brand-chip span { color: var(--muted); font-size: 12px; }
.brand-chip:hover { border-color: var(--primary); }
.brand-chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.brand-chip.active span { color: rgba(255,255,255,0.85); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; outline: none; background: #fff; }
[data-theme="dark"] .price-inputs input { background: #0e1626; color: var(--ink); }
.rating-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rating-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.result-count { color: var(--muted); font-size: 14px; }
.btn-submit.sm, .btn-ghost.sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); transition: all .15s; }
[data-theme="dark"] .pager button { background: #0f172a; }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button.active { background: var(--grad); color: #fff; border-color: transparent; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pg-dots { color: var(--muted); padding: 0 4px; }
@media (max-width: 820px) {
  .prod-layout { grid-template-columns: 1fr; }
  .prod-side { position: static; }
}

/* 用户中心：地址簿 / 概览 / 安全设置补充样式 */
.addr-card .dt { color: var(--muted); font-size: 14px; margin: 6px 0 12px; line-height: 1.5; }
.addr-card .ops { display: flex; gap: 8px; flex-wrap: wrap; }
.addr-card .ops .btn-ghost { border-color: var(--line); }
.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.addr-grid .addr-card { margin-bottom: 0; }
.addr-form { margin: 14px 0 4px; }
.user-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.user-quick { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; }
.user-quick .btn-line { border: 1px solid var(--line); }
.user-meta { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.user-meta span { display: inline-flex; align-items: center; gap: 6px; }
.field-hint { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* 暗色模式补充 */
[data-theme="dark"] .addr-card { background: #0f172a; }
[data-theme="dark"] .addr-card .ops .btn-ghost { background: #0e1626; }
[data-theme="dark"] .user-quick .btn-line { background: #0e1626; }

@media (max-width: 820px) {
  .addr-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   同城二手平台专属样式
   ============================================================ */

/* 首页 hero（复用 .hero，覆盖背景为同城渐变） */
.hero.second-hero { background: linear-gradient(135deg, #2563eb 0%, #06b6d4 55%, #10b981 100%); }
.second-hero .hero-aside {
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(6px);
}
.loc-pin { font-size: 26px; color: #fff; }
.loc-status { color: #fff; font-weight: 600; font-size: 15px; }
.loc-radius { font-size: 13px; color: rgba(255, 255, 255, 0.92); }
.radius-chips { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.radius-chips button {
  padding: 7px 14px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 13px; cursor: pointer;
}
.radius-chips button.active { background: #fff; color: var(--primary); font-weight: 700; }
.loc-near { color: #fff; font-weight: 600; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* 闲物品类 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-ic { font-size: 34px; margin-bottom: 10px; }
.cat-name { font-weight: 700; font-size: 16px; }
.cat-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 二手商品卡片徽标 */
.product-card { position: relative; }
.thumb-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; }
.cond-badge { background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.merch-badge { background: rgba(245, 158, 11, 0.95); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.dist-badge { background: #eef4ff; color: var(--primary); padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; }
.meet-badge { background: #e8f8f0; color: var(--green); padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; }
.owner-badge { background: #f1f5f9; color: var(--muted); padding: 3px 9px; border-radius: 20px; }
.product-wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #94a3b8; display: grid; place-items: center; font-size: 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); z-index: 2; }
.product-wish.on, .product-wish:hover { color: var(--danger); }
.product-wish.lg { width: 46px; height: 46px; position: static; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 18px; }

/* LBS 工具栏 + 地图 */
.lbs-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.lbs-loc { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; }
.radius-select { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.radius-select select { border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; background: #fff; }
.view-toggle { display: flex; gap: 6px; margin-left: auto; }
.view-toggle button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.view-toggle button.active { background: var(--grad); color: #fff; border-color: transparent; }
.map-view { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.map-svg { width: 100%; height: auto; border-radius: 12px; }
.map-legend { display: flex; gap: 18px; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.map-dot:hover circle { stroke-width: 3; }

/* 发布页 */
.publish-wrap .publish-card { max-width: 760px; margin: 0 auto; }
.req { color: var(--danger); }
.hint { color: var(--muted); font-size: 12px; }
.img-uploader { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.img-list { display: flex; gap: 10px; flex-wrap: wrap; }
.img-thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cover-tag { position: absolute; bottom: 0; left: 0; right: 0; background: var(--primary); color: #fff; font-size: 11px; text-align: center; padding: 2px; }
.img-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 11px; }
.img-add { width: 92px; height: 92px; border: 2px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; font-size: 13px; }
.img-add:hover { border-color: var(--primary); color: var(--primary); }
.loc-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.loc-btn { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.loc-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.loc-sel { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; }
.publish-foot { display: flex; gap: 12px; align-items: center; }
.quota-warn { background: #fff7ed; border: 1px solid #fed7aa; color: var(--warn); padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-right: auto; }
.quota-warn a { color: var(--warn); font-weight: 700; text-decoration: underline; }

/* 认证页 */
.verify-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.verify-status { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; margin-bottom: 18px; font-size: 15px; }
.verify-status.s-pending { background: #fff7ed; }
.verify-status.s-completed { background: #ecfdf5; }
.verify-status.s-cancelled { background: #fef2f2; }
.verify-status i { font-size: 26px; }
.verify-status.s-pending i { color: var(--warn); }
.verify-status.s-completed i { color: var(--green); }
.verify-status.s-cancelled i { color: var(--danger); }
.vs-desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.vs-note { background: #fef2f2; color: var(--danger); padding: 6px 10px; border-radius: 8px; margin-top: 6px; font-size: 13px; }
.verify-pending-tip { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.seg { display: flex; gap: 10px; }
.seg-item { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; cursor: pointer; font-size: 14px; }
.seg-item.active { border-color: var(--primary); background: #eef4ff; color: var(--primary); font-weight: 700; }
.seg-item input { display: none; }
.benefit-card h3 { font-size: 18px; margin-bottom: 12px; }
.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.benefit-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.benefit-list li i { color: var(--green); }
.merch-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* 店铺页 */
.store-banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; background-size: cover; background-position: center; margin-bottom: 18px; }
.store-banner-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45)); }
.store-banner-inner { position: relative; display: flex; align-items: center; gap: 20px; padding: 32px; color: #fff; flex-wrap: wrap; }
.store-logo { width: 80px; height: 80px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; }
.store-meta h1 { font-size: 28px; font-weight: 800; }
.store-slogan { opacity: 0.92; margin-top: 4px; }
.store-tags { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.s-tag { background: rgba(255, 255, 255, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.store-deco { color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.15); }
.store-deco:hover { background: rgba(255, 255, 255, 0.3); }
.store-notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.store-desc { margin-bottom: 18px; }
.store-desc h3 { font-size: 18px; margin-bottom: 10px; }
.store-desc p { color: var(--muted); white-space: pre-wrap; line-height: 1.7; }
.deco-modal { max-width: 560px; }

/* 消息中心 */
.msg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.msg-chips button { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 20px; font-size: 14px; cursor: pointer; color: var(--muted); }
.msg-chips button.active { background: var(--grad); color: #fff; border-color: transparent; }
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item { display: flex; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: background .15s; }
.msg-item:hover { background: #f8fafc; }
.msg-item.unread { background: #f0f7ff; border-color: #bfdbfe; }
.msg-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.m-order .msg-ic { background: #2563eb; }
.m-review .msg-ic { background: #f59e0b; }
.m-inquiry .msg-ic { background: #06b6d4; }
.m-verify .msg-ic { background: #8b5cf6; }
.m-system .msg-ic { background: #64748b; }
.msg-top { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.msg-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.msg-text { color: var(--muted); font-size: 14px; margin-top: 4px; }
.msg-time { color: #94a3b8; font-size: 12px; margin-top: 6px; }

/* 用户中心分级 */
.upgrade-card { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: 14px; padding: 18px 20px; margin: 4px 0 18px; flex-wrap: wrap; }
.uc-left { font-size: 30px; color: var(--warn); }
.uc-mid { flex: 1; display: flex; flex-direction: column; }
.uc-mid b { font-size: 16px; }
.uc-mid span { color: var(--muted); font-size: 13px; }
.role.role-merch { background: var(--grad); color: #fff; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 6px; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.dash-card .v { font-size: 28px; font-weight: 800; color: var(--primary); }
.dash-card .k { color: var(--muted); font-size: 13px; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }

/* 我的发布 */
.my-prod-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.my-prod { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.my-prod.off { opacity: 0.6; }
.mp-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; font-size: 34px; display: grid; place-items: center; background: #eef4ff; }
.mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-info { flex: 1; min-width: 0; }
.mp-name { font-weight: 700; font-size: 15px; }
.mp-meta { display: flex; gap: 10px; align-items: center; margin-top: 4px; font-size: 13px; }
.mp-price { color: var(--danger); font-weight: 800; }
.mp-cond { background: #eef4ff; color: var(--primary); padding: 2px 8px; border-radius: 12px; }
.mp-status.on { color: var(--green); }
.mp-status.off { color: var(--muted); }
.mp-sub { color: #94a3b8; font-size: 12px; margin-top: 4px; }
.mp-ops { display: flex; gap: 8px; flex-wrap: wrap; }

/* 订单卡片（二手） */
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.oc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.oc-id { font-weight: 700; font-size: 14px; }
.oc-role { margin-left: auto; font-size: 12px; color: var(--muted); background: #f1f5f9; padding: 2px 10px; border-radius: 12px; }
.oc-items { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.oc-item { display: flex; justify-content: space-between; font-size: 14px; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.oc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.oc-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rev-done { color: var(--green); font-size: 13px; }
.peer-rev { font-size: 12px; color: var(--muted); }

/* 购买弹窗 */
.buy-prod { display: flex; gap: 14px; align-items: center; background: #f8fafc; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.bp-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #eef4ff; font-size: 30px; }
.bp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bp-name { font-weight: 700; }
.bp-price { color: var(--danger); font-weight: 800; }
.buy-total { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.buy-total b { color: var(--ink); font-size: 18px; }

/* 详情页二手补充 */
.pd.second .pd-tags-top { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cond-badge.big, .merch-badge.big { font-size: 14px; padding: 5px 12px; }
.merch-badge.big { background: var(--warn); }
.pd-meta-row { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 10px 0 14px; }
.pd-meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.pd-seller { display: flex; align-items: center; gap: 12px; background: #f8fafc; border-radius: 12px; padding: 12px 14px; margin: 6px 0 14px; }
.seller-avatar { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; }
.seller-info { flex: 1; }
.seller-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.merch-mini { background: var(--warn); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 10px; font-weight: 600; }
.seller-sub { color: var(--muted); font-size: 13px; }
.loc-map svg { width: 100%; height: auto; border-radius: 12px; }
.loc-addr { margin-top: 10px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* 导航消息角标 + 发布按钮 */
.nav-badge { position: absolute; top: -6px; right: -10px; background: var(--danger); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.nav-links a { position: relative; }
.btn-publish { display: none; }
@media (max-width: 980px) { .btn-publish { display: inline-flex; align-items: center; gap: 6px; } }

/* 响应式 */
@media (max-width: 980px) { .verify-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .lbs-bar { gap: 10px; }
  .view-toggle { margin-left: 0; }
}

/* ============ 担保交易（资金托管） ============ */
.s-refund { background: #fef3c7; color: #b45309; }
.s-dispute { background: #ede9fe; color: #6d28d9; }

.escrow-tip { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 12px; font-size: 13px; }
.escrow-tip i { color: #2563eb; }

.oc-fundrow { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; }
.oc-fund { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #b45309; background: #fef3c7; padding: 3px 10px; border-radius: 20px; }
.oc-fund.done { color: #15803d; background: #dcfce7; }
.oc-fund.back { color: #b91c1c; background: #fee2e2; }
.oc-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.oc-extra { margin-top: 6px; font-size: 13px; color: var(--muted); }
.oc-wait { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6d28d9; font-weight: 600; }

/* 钱包 */
.wallet-balance { background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(37,99,235,.25); }
.wb-main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wb-label { font-size: 14px; opacity: .9; }
.wb-amount { font-size: 34px; font-weight: 800; letter-spacing: .5px; margin-right: auto; }
.wb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.wb-cell { background: rgba(255,255,255,.15); border-radius: 12px; padding: 12px 14px; }
.wb-cell .k { font-size: 12.5px; opacity: .92; display: flex; align-items: center; gap: 6px; }
.wb-cell .v { font-size: 20px; font-weight: 700; margin-top: 4px; }
.wb-note { margin-top: 14px; font-size: 12.5px; opacity: .92; display: flex; align-items: flex-start; gap: 6px; line-height: 1.6; }
.wb-note i { margin-top: 2px; }

.le-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: 600; }
.le-in { color: #15803d; background: #dcfce7; }
.le-out { color: #b91c1c; background: #fee2e2; }
.le-in strong { color: #15803d; }
.le-out strong { color: #b91c1c; }
.le-note { color: var(--muted); font-size: 13px; max-width: 320px; }
.le-time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

@media (max-width: 640px) {
  .wb-amount { font-size: 28px; }
  .wb-grid { grid-template-columns: 1fr; }
  .le-note { max-width: 160px; }
}

