* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f5f6f8; color: #222; max-width: 640px; margin: 0 auto;
  padding-bottom: 40px;
}
.topbar {
  background: linear-gradient(135deg, #1677ff, #0958d9); color: #fff;
  padding: 16px; font-size: 18px; font-weight: 600; position: sticky; top: 0; z-index: 10;
}
.card {
  background: #fff; border-radius: 12px; margin: 12px; padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.product { display: flex; gap: 14px; align-items: center; }
.product .thumb {
  width: 72px; height: 72px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #e8f1ff, #d4e6ff); color: #1677ff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
}
.product .info { flex: 1; min-width: 0; }
.product .name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.product .meta { color: #999; font-size: 12px; }
.price { color: #ff4d4f; font-weight: 700; font-size: 18px; }
.price::before { content: '¥'; font-size: 13px; margin-right: 1px; }
.btn {
  display: block; width: 100%; border: none; border-radius: 10px; padding: 14px;
  background: #1677ff; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn:active { opacity: .85; }
.btn.ghost { background: #f0f3f8; color: #333; }
.btn.danger { background: #ff4d4f; }
.btn.small { width: auto; padding: 8px 14px; font-size: 13px; display: inline-block; }
.btn:disabled { background: #b5cdf5; }
label { display: block; font-size: 13px; color: #666; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; border: 1px solid #e3e6eb; border-radius: 8px; padding: 12px;
  font-size: 15px; background: #fafbfc;
}
input:focus { outline: none; border-color: #1677ff; background: #fff; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.muted { color: #999; font-size: 12px; }
.tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px;
  margin-left: 6px; vertical-align: middle;
}
.tag.blue { background: #e8f1ff; color: #1677ff; }
.tag.green { background: #e6f9ec; color: #18a058; }
.tag.orange { background: #fff3e6; color: #f77234; }
.tag.gray { background: #f0f0f0; color: #888; }
.tag.red { background: #ffece8; color: #ff4d4f; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid #f0f0f0; padding: 8px; text-align: left; vertical-align: top; }
th { color: #888; font-weight: 500; background: #fafbfc; }
.pager { display: flex; gap: 10px; justify-content: center; margin: 16px; }
.toast {
  position: fixed; left: 50%; top: 30%; transform: translateX(-50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 12px 20px; border-radius: 8px;
  font-size: 14px; z-index: 99; display: none; max-width: 80%; text-align: center;
}
.tabs { display: flex; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 9; }
.tabs div { flex: 1; text-align: center; padding: 14px 0; font-size: 15px; color: #666; }
.tabs div.active { color: #1677ff; font-weight: 600; border-bottom: 2px solid #1677ff; }
.section { display: none; }
.section.active { display: block; }
.status-line { text-align: center; padding: 24px 0; }
.status-line .big { font-size: 20px; font-weight: 700; margin: 10px 0 4px; }
.kv { font-size: 14px; line-height: 2; }
.kv b { color: #555; font-weight: 500; display: inline-block; width: 96px; }
.dialog-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50;
  display: none; align-items: center; justify-content: center;
}
.dialog {
  background: #fff; border-radius: 14px; width: 88%; max-width: 420px;
  padding: 20px; max-height: 82vh; overflow-y: auto;
}
.dialog h3 { font-size: 16px; margin-bottom: 12px; }

/* ============================================================
   三期美化：首页 hero + 商品卡升级 + 悬浮客服 + ICP 底栏 + 详情抽屉
   ============================================================ */

/* 顶部品牌栏：渐变 + 阴影 + logo 圆角徽标 */
.site-header {
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 60%, #003eb3 100%);
  color: #fff; padding: 18px 16px 22px; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 4px 14px rgba(20, 80, 200, .25);
}
.site-header .brand { display: flex; align-items: center; gap: 12px; }
.site-header .logo {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.site-header h1 { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.site-header .sub { font-size: 12px; opacity: .85; margin-top: 2px; }

/* 首页 hero：在大品牌栏下方加副 banner，强化"高级感" */
.hero {
  margin: 0 12px 14px; padding: 22px 18px; border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f0f6ff 100%);
  box-shadow: 0 6px 18px rgba(22, 119, 255, .12);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,119,255,.18) 0%, transparent 70%);
}
.hero h2 { font-size: 18px; color: #1677ff; font-weight: 700; }
.hero .slogan { font-size: 13px; color: #6b7280; margin-top: 6px; line-height: 1.5; }
.hero .stats {
  display: flex; gap: 18px; margin-top: 14px;
  font-size: 12px; color: #888;
}
.hero .stats b { color: #1677ff; font-size: 16px; display: block; font-weight: 700; }

/* 升级版商品卡：圆角更大 + hover 抬升 + 圆形首字母徽标 */
.product-card {
  background: #fff; border-radius: 14px; margin: 0 12px 12px; padding: 14px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:active { transform: scale(.99); }
.product-card .thumb {
  width: 76px; height: 76px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #e8f1ff 0%, #cfe2ff 100%);
  color: #1677ff; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(22,119,255,.1);
}
.product-card .info { flex: 1; min-width: 0; }
.product-card .name {
  font-size: 15px; font-weight: 600; color: #1f2937;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .meta { color: #9ca3af; font-size: 12px; margin-top: 4px; }
.product-card .bottom {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
}
.product-card .price { font-size: 19px; }
.product-card .buy-btn {
  border: none; border-radius: 999px; padding: 8px 18px;
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 3px 10px rgba(22,119,255,.35);
}
.product-card .buy-btn:active { opacity: .88; }

/* 右下角悬浮客服电话按钮（圆形 FAB） */
.fab {
  position: fixed; right: 16px; bottom: 78px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 22px;
  box-shadow: 0 6px 16px rgba(22,119,255,.45);
  transition: transform .18s ease;
}
.fab:active { transform: scale(.92); }
.fab .label {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 6px 12px;
  border-radius: 6px; font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.fab:hover .label { opacity: 1; }
.fab.hidden { display: none; }

/* 底部 ICP 备案条 */
.site-footer {
  background: #1f2937; color: #9ca3af; text-align: center;
  padding: 14px 12px 18px; margin-top: 12px; font-size: 12px; line-height: 1.8;
}
.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .copyright { margin-bottom: 4px; }
.site-footer .icp { display: inline-block; }
.site-footer .icp::before { content: '🌐 '; margin-right: 2px; }
.site-footer.hidden { display: none; }

/* 后台详情抽屉：右侧滑入，移动端全屏 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60;
  display: none; opacity: 0; transition: opacity .2s ease;
}
.drawer-mask.show { display: block; opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%;
  background: #fff; z-index: 61; transform: translateX(100%);
  transition: transform .25s ease; display: flex; flex-direction: column;
  box-shadow: -6px 0 20px rgba(0,0,0,.1);
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #f8faff, #eef4ff);
}
.drawer-head h3 { font-size: 15px; color: #1677ff; font-weight: 700; }
.drawer-head .close {
  border: none; background: #f0f3f8; width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 14px; color: #666;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot {
  padding: 12px 20px; border-top: 1px solid #f0f0f0; display: flex; gap: 10px;
}
.detail-section {
  margin-bottom: 16px; padding: 12px 14px; background: #fafbfc;
  border-radius: 10px; border: 1px solid #f0f0f0;
}
.detail-section .title {
  font-size: 13px; color: #1677ff; font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.detail-section .title::before {
  content: ''; width: 3px; height: 12px; background: #1677ff; border-radius: 2px;
}
.detail-kv { font-size: 13px; line-height: 2; color: #333; }
.detail-kv b { color: #6b7280; font-weight: 500; display: inline-block; width: 92px; }
.detail-kv .tag { margin-left: 0; margin-right: 6px; }

/* 危险按钮（删除渠道） */
.btn.danger-outline {
  background: #fff; color: #ff4d4f; border: 1px solid #ffc9c9;
}
.btn.danger-outline:active { background: #fff1f0; }

