/* ============================================================
 * 华华优惠券 - 全网优惠券CPS分销平台 样式
 * ============================================================ */

:root {
  --primary: #FF5A3C;
  --primary-dark: #E8482C;
  --primary-light: #FFF1EC;
  --gradient: linear-gradient(135deg, #FF6A3D 0%, #FF3D5A 100%);
  --gold: #FFB800;
  --green: #00B578;
  --green-light: #E8F8F1;
  --blue: #2E6BE6;
  --blue-light: #EBF1FD;
  --red: #F5222D;
  --purple: #8A5CF6;
  --text: #2B2B2B;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --bg: #F5F6F8;
  --bg-2: #F0F2F5;
  --card: #FFFFFF;
  --border: #EEF0F3;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select { font-family: inherit; outline: none; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px; height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; }
.logo-text em { font-style: normal; color: var(--primary); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 16px; border-radius: 20px;
  font-size: 15px; color: var(--text-2); font-weight: 500;
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a.active { color: #fff; background: var(--gradient); box-shadow: 0 4px 12px rgba(255,61,90,0.3); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 24px;
  background: var(--primary-light); cursor: pointer;
  transition: all 0.2s;
}
.user-badge:hover { background: #FFE4DB; }
.ub-avatar { font-size: 20px; }
.ub-name { font-weight: 600; font-size: 13px; }
.ub-level {
  font-size: 11px; color: var(--primary);
  background: #fff; padding: 2px 8px; border-radius: 10px;
  font-weight: 600; border: 1px solid #FFD9CE;
}

/* ---------- 主容器 ---------- */
#app { min-height: 70vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 20px; }
.page { animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 24px;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
  background: var(--bg); color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(255,61,90,0.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(255,61,90,0.4); }
.btn-gold { background: linear-gradient(135deg, #FFB800, #FF9500); color: #fff; box-shadow: 0 4px 14px rgba(255,150,0,0.3); }
.btn-green { background: linear-gradient(135deg, #00C48A, #00A06E); color: #fff; box-shadow: 0 4px 14px rgba(0,180,120,0.3); }
.btn-blue { background: linear-gradient(135deg, #4A8DFF, #2E6BE6); color: #fff; box-shadow: 0 4px 14px rgba(46,107,230,0.3); }
.btn-ghost { background: #fff; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 700; margin-bottom: 16px;
}
.card-title .more { font-size: 13px; color: var(--text-3); font-weight: 400; cursor: pointer; }
.card-title .more:hover { color: var(--primary); }

.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; margin: 28px 0 16px;
}
.section-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--gradient); border-radius: 2px;
}

/* 标签 */
.tag {
  display: inline-block; padding: 2px 8px;
  font-size: 11px; border-radius: 4px; font-weight: 600;
}
.tag-red { background: #FFF0EF; color: var(--red); }
.tag-orange { background: #FFF4E6; color: #FF9500; }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-purple { background: #F3EDFF; color: var(--purple); }
.tag-gold { background: #FFF9E6; color: var(--gold); }

/* 徽章 */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-success { background: var(--green-light); color: var(--green); }
.badge-warning { background: #FFF4E6; color: #FF9500; }
.badge-info { background: var(--blue-light); color: var(--blue); }
.badge-danger { background: #FFF0EF; color: var(--red); }

.text-comm { color: var(--primary); font-weight: 700; }
.text-gold { color: var(--gold); font-weight: 700; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* ---------- 首页 Hero ---------- */
.hero {
  background: var(--gradient);
  border-radius: 0 0 24px 24px;
  padding: 40px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.hero h1 {
  color: #fff; font-size: 34px; font-weight: 800;
  text-align: center; margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero p.sub { color: rgba(255,255,255,0.9); text-align: center; font-size: 15px; margin-bottom: 28px; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 24px; color: #fff;
}
.hero-stats .hs-item { text-align: center; }
.hero-stats .hs-num { font-size: 26px; font-weight: 800; display: block; }
.hero-stats .hs-label { font-size: 12px; opacity: 0.85; }

/* 搜索框 */
.search-box {
  max-width: 680px; margin: 0 auto;
  display: flex; background: #fff;
  border-radius: 40px; padding: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.search-box input {
  flex: 1; border: none; padding: 10px 20px;
  font-size: 15px; border-radius: 40px;
}
.search-box .search-btn {
  background: var(--gradient); color: #fff;
  padding: 10px 32px; border-radius: 40px;
  font-size: 15px; font-weight: 600;
  transition: all 0.2s;
}
.search-box .search-btn:hover { transform: scale(1.03); }
.hot-search {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; color: rgba(255,255,255,0.9); font-size: 13px;
}
.hot-search .hot-item {
  padding: 3px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.18); cursor: pointer;
  transition: all 0.2s;
}
.hot-search .hot-item:hover { background: rgba(255,255,255,0.3); }

/* 平台快捷入口 */
.platform-quick {
  margin-top: -40px; position: relative; z-index: 5;
}
.pq-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.pq-item {
  background: #fff; border-radius: var(--radius);
  padding: 14px 8px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer;
  transition: all 0.2s;
}
.pq-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pq-item .pq-icon {
  width: 44px; height: 44px; margin: 0 auto 8px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.pq-item .pq-name { font-size: 13px; font-weight: 600; }
.pq-item .pq-rate { font-size: 11px; color: var(--primary); font-weight: 700; margin-top: 2px; }

/* 公告 */
.notice-bar {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius);
  padding: 10px 16px; margin: 20px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.notice-bar .nb-label {
  background: var(--gradient); color: #fff;
  padding: 2px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.notice-bar .nb-text {
  flex: 1; font-size: 13px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-bar .nb-more { color: var(--text-3); font-size: 12px; flex-shrink: 0; }

/* ---------- 优惠券卡片 ---------- */
.coupon-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.coupon-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  position: relative;
}
.coupon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cc-img {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative;
}
.cc-img .cc-platform {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.9); border-radius: 6px;
  padding: 2px 8px; font-size: 12px; font-weight: 700;
}
.cc-img .cc-tag {
  position: absolute; top: 10px; right: 10px;
  background: var(--gradient); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
}
/* 人工添加商品角标（首页优先展示的精选商品） */
.cc-img .cc-tag.cc-manual {
  position: absolute; top: 36px; right: 10px; left: auto;
  background: linear-gradient(135deg, #ff9a3d, #ff6a00); color: #fff;
}
/* 商品真实图片（人工添加：网址导入/手填图片地址时替代 emoji 图标） */
.cc-img .cc-real-img, .detail-img .cc-real-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 0;
}
.cc-img .cc-platform, .cc-img .cc-tag, .detail-img .di-tag, .detail-img .di-platform {
  z-index: 1;
}
/* 管理后台列表里的商品小图 */
.td-icon .td-thumb {
  width: 26px; height: 26px; border-radius: 6px; object-fit: cover; display: block;
}
/* 首页商品数量提示 */
.section-title .home-count-tip {
  font-size: 12px; font-weight: 400; color: var(--text-3);
  margin-left: 10px; vertical-align: middle;
}
.cc-body { padding: 12px 14px 14px; }
.cc-title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; height: 36px; margin-bottom: 8px;
}
.cc-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.cc-price { font-size: 22px; font-weight: 800; color: var(--red); }
.cc-price .yuan { font-size: 13px; }
.cc-original { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.cc-comm-row { display: flex; justify-content: space-between; align-items: center; }
.cc-comm { font-size: 12px; color: var(--primary); font-weight: 700; }
.cc-sales { font-size: 11px; color: var(--text-3); }
.cc-btn {
  margin-top: 10px; width: 100%;
  padding: 7px 0; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 700;
  transition: all 0.2s;
}
.coupon-card:hover .cc-btn { background: var(--gradient); color: #fff; }

/* ---------- 分类 Tab ---------- */
.cat-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.cat-tab {
  padding: 7px 18px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); font-weight: 500;
  transition: all 0.2s;
}
.cat-tab:hover { color: var(--primary); border-color: var(--primary); }
.cat-tab.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(255,61,90,0.25); }

/* ---------- 平台中心 ---------- */
.platform-header { text-align: center; padding: 30px 0 10px; }
.platform-header h2 { font-size: 28px; font-weight: 800; }
.platform-header p { color: var(--text-2); margin-top: 6px; }
.platform-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 24px 0;
}
.ps-card {
  background: #fff; border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
.ps-card:nth-child(2) { border-top-color: var(--gold); }
.ps-card:nth-child(3) { border-top-color: var(--green); }
.ps-card:nth-child(4) { border-top-color: var(--blue); }
.ps-num { font-size: 28px; font-weight: 800; }
.ps-label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.platform-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.platform-card {
  background: #fff; border-radius: var(--radius);
  padding: 16px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.pc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.pc-info { flex: 1; min-width: 0; }
.pc-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pc-cat { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pc-rate { font-size: 13px; color: var(--primary); font-weight: 800; white-space: nowrap; }
.pc-rate span { font-size: 11px; font-weight: 600; }
.pc-status { font-size: 10px; color: var(--green); margin-top: 2px; }

/* ---------- 优惠券详情 ---------- */
.detail-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; margin-top: 20px; }
.detail-img {
  border-radius: var(--radius); height: 380px;
  display: flex; align-items: center; justify-content: center;
  font-size: 120px; position: relative; overflow: hidden;
}
.detail-img .di-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--gradient); color: #fff;
  padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 700;
}
.detail-img .di-platform {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.92); border-radius: 8px;
  padding: 4px 12px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.detail-info { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.detail-title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.detail-price-box {
  display: flex; align-items: center; gap: 24px;
  background: var(--primary-light); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 20px;
}
.dp-now { font-size: 34px; font-weight: 800; color: var(--red); }
.dp-now .yuan { font-size: 16px; }
.dp-old { color: var(--text-3); text-decoration: line-through; font-size: 14px; }
.dp-save {
  background: var(--gradient); color: #fff;
  padding: 4px 12px; border-radius: 16px; font-size: 13px; font-weight: 700;
}
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.dm-item {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 12px; text-align: center;
}
.dm-item b { display: block; font-size: 18px; color: var(--primary); }
.dm-item span { font-size: 12px; color: var(--text-2); }

/* 佣金计算器 */
.comm-calc {
  border: 1px dashed var(--primary); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 20px;
  background: #FFFBF9;
}
.comm-calc h4 { font-size: 14px; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.comm-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.comm-row {
  text-align: center; padding: 10px;
  background: #fff; border-radius: var(--radius-sm);
}
.comm-row .cr-label { font-size: 12px; color: var(--text-2); }
.comm-row .cr-value { font-size: 18px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.comm-row.cr-level2 .cr-value { color: var(--gold); }
.comm-row.cr-level3 .cr-value { color: var(--green); }

/* 分销链路 */
.chain-box { margin-bottom: 20px; }
.chain-box h4 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.chain {
  display: flex; align-items: center; gap: 0;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 14px; overflow-x: auto;
}
.chain-node {
  display: flex; flex-direction: column; align-items: center;
  min-width: 90px; position: relative; flex-shrink: 0;
}
.chain-node .cn-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: #fff; box-shadow: var(--shadow);
}
.chain-node .cn-name { font-size: 12px; font-weight: 600; margin-top: 4px; }
.chain-node .cn-role { font-size: 10px; color: var(--text-3); }
.chain-node.highlight .cn-avatar { background: var(--gradient); box-shadow: 0 4px 12px rgba(255,61,90,0.3); }
.chain-node.highlight .cn-name { color: var(--primary); }
.chain-arrow { flex-shrink: 0; color: var(--text-3); font-size: 18px; padding: 0 6px; }

.detail-actions { display: flex; gap: 12px; }
.detail-actions .btn { flex: 1; padding: 14px; font-size: 15px; }

/* ---------- 用户中心 ---------- */
.user-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin-top: 20px; }
.user-sidebar .card { padding: 0; overflow: hidden; }
.user-profile {
  background: var(--gradient); color: #fff;
  padding: 24px 20px; text-align: center;
}
.up-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.25); font-size: 38px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; border: 3px solid rgba(255,255,255,0.5);
}
.up-name { font-size: 18px; font-weight: 700; }
.up-level {
  display: inline-block; margin-top: 6px;
  background: rgba(255,255,255,0.25); color: #fff;
  padding: 2px 12px; border-radius: 12px; font-size: 12px; font-weight: 600;
}
.up-code {
  margin-top: 12px; background: rgba(255,255,255,0.18);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.up-code b { font-family: monospace; letter-spacing: 1px; }
.up-code button { background: rgba(255,255,255,0.25); color: #fff; border-radius: 8px; padding: 3px 10px; font-size: 12px; }

.user-menu { padding: 12px; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; color: var(--text-2);
  transition: all 0.15s;
}
.user-menu-item:hover { background: var(--bg); color: var(--text); }
.user-menu-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.user-menu-item .umi-icon { font-size: 18px; }
.user-menu-item .umi-arrow { margin-left: auto; color: var(--text-3); font-size: 12px; }

/* 佣金概览 */
.wallet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.wallet-card {
  background: #fff; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.wallet-card .wc-icon { font-size: 26px; margin-bottom: 8px; }
.wallet-card .wc-label { font-size: 13px; color: var(--text-2); }
.wallet-card .wc-value { font-size: 26px; font-weight: 800; margin-top: 4px; }
.wallet-card.wc-1 .wc-value { color: var(--primary); }
.wallet-card.wc-2 .wc-value { color: var(--gold); }
.wallet-card.wc-3 .wc-value { color: var(--green); }
.wallet-card.wc-4 .wc-value { color: var(--blue); }

/* 提现卡 */
.withdraw-box {
  background: linear-gradient(135deg, #FFF7ED, #FFEFE6);
  border-radius: var(--radius); padding: 20px;
  border: 1px solid #FFE3C9;
  margin-bottom: 20px;
}
.withdraw-box h4 { font-size: 15px; margin-bottom: 12px; color: #A05A00; }
.withdraw-input-row { display: flex; gap: 10px; align-items: center; }
.withdraw-input-row input {
  flex: 1; padding: 10px 16px; border-radius: 20px;
  border: 1px solid #FFD9B8; background: #fff; font-size: 14px;
}
.withdraw-quick { display: flex; gap: 8px; margin-top: 10px; }
.withdraw-quick button {
  padding: 5px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #FFD9B8;
  font-size: 12px; color: #A05A00; transition: all 0.2s;
}
.withdraw-quick button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 订单表格 */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.table th {
  background: var(--bg); text-align: left;
  padding: 12px 14px; font-weight: 600; color: var(--text-2);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tr:hover td { background: #FAFBFC; }
.td-product { display: flex; align-items: center; gap: 10px; }
.td-product .td-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--bg); flex-shrink: 0;
}
.td-product .td-title {
  max-width: 240px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* 图表 */
.chart-bar {
  display: flex; align-items: flex-end; gap: 8px;
  height: 160px; padding-top: 10px;
}
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-bars { display: flex; gap: 3px; align-items: flex-end; height: 120px; width: 100%; justify-content: center; }
.chart-bar-item {
  width: 10px; border-radius: 4px 4px 0 0;
  min-height: 4px; transition: all 0.3s;
}
.chart-bar-item.c1 { background: var(--gradient); }
.chart-bar-item.c2 { background: linear-gradient(180deg, #FFD58A, #FFB800); }
.chart-col .chart-label { font-size: 11px; color: var(--text-3); }
.chart-legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* 团队 */
.team-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.ts-card { background: #fff; border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.ts-card b { font-size: 24px; display: block; }
.ts-card span { font-size: 13px; color: var(--text-2); }

.referral-list { display: flex; flex-direction: column; gap: 10px; }
.referral-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius-sm);
  padding: 12px 16px; box-shadow: var(--shadow);
}
.referral-item .ri-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center; font-size: 20px;
}
.referral-item .ri-info { flex: 1; }
.referral-item .ri-name { font-weight: 600; font-size: 14px; }
.referral-item .ri-meta { font-size: 12px; color: var(--text-3); }
.referral-item .ri-comm { text-align: right; }
.referral-item .ri-comm b { color: var(--primary); font-size: 15px; display: block; }
.referral-item .ri-comm span { font-size: 11px; color: var(--text-3); }

/* 提现记录 */
.withdraw-list { display: flex; flex-direction: column; gap: 10px; }
.withdraw-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.withdraw-item .wi-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-light); display: flex;
  align-items: center; justify-content: center; font-size: 18px;
}
.withdraw-item .wi-info { flex: 1; }
.withdraw-item .wi-amount { font-weight: 800; font-size: 16px; }

/* ---------- 管理后台 ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 20px; }
.admin-sidebar { position: sticky; top: 80px; align-self: start; }
.admin-sidebar .card { padding: 12px; }
.admin-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border); padding-bottom: 14px;
}
.admin-logo .al-icon { font-size: 26px; }
.admin-logo b { font-size: 16px; }
.admin-logo span { display: block; font-size: 11px; color: var(--text-3); }
.admin-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; color: var(--text-2);
  transition: all 0.15s;
}
.admin-menu-item:hover { background: var(--bg); }
.admin-menu-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.admin-menu-item .ami-icon { font-size: 17px; }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.admin-header h2 { font-size: 22px; font-weight: 800; }
.admin-header p { color: var(--text-3); font-size: 13px; margin-top: 2px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.stat-card .sc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-card .sc-info b { font-size: 22px; font-weight: 800; display: block; }
.stat-card .sc-info span { font-size: 12px; color: var(--text-2); }
.sc-1 .sc-icon { background: var(--primary-light); }
.sc-2 .sc-icon { background: #FFF4E6; }
.sc-3 .sc-icon { background: var(--green-light); }
.sc-4 .sc-icon { background: var(--blue-light); }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background: #fff; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #D1D5DB; border-radius: 24px;
  transition: all 0.3s;
}
.switch-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
  transition: all 0.3s;
}
.switch input:checked + .switch-slider { background: var(--green); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

/* 进度条 */
.progress { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient); border-radius: 4px; }

/* 空状态 */
.empty {
  text-align: center; padding: 60px 20px; color: var(--text-3);
}
.empty .empty-icon { font-size: 56px; margin-bottom: 12px; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: #fff; border-radius: 20px;
  padding: 28px; width: 92%; max-width: 460px;
  position: relative; max-height: 88vh; overflow-y: auto;
  animation: popIn 0.3s;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box h3 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.modal-sub { text-align: center; color: var(--text-2); font-size: 13px; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: var(--text-2); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: #E5E7EB; }

/* 导出全网配置弹窗（管理后台 · 手机端同步） */
.modal-box.export-box { max-width: 620px; }
.export-steps {
  background: #FFF7ED; border: 1px dashed #FDBA74;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
  font-size: 13px; line-height: 1.9; color: #7C2D12;
}
.export-steps ol { margin: 4px 0 0 18px; padding: 0; }
.export-steps code {
  background: #FFEDD5; border-radius: 4px; padding: 1px 6px;
  font-family: Consolas, Monaco, monospace; font-size: 12px;
}
#exportContent {
  width: 100%; box-sizing: border-box;
  font-family: Consolas, Monaco, monospace; font-size: 11px; line-height: 1.5;
  background: #FAFAFA; color: #111827; border: 1px solid #E5E7EB;
  border-radius: 10px; padding: 10px; resize: vertical; word-break: break-all;
}

/* 分享弹窗 */
.share-qr {
  width: 160px; height: 160px; margin: 0 auto 16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.share-qr .qr-grid { display: grid; grid-template-columns: repeat(21, 1fr); gap: 1px; }
.share-qr .qr-grid i { aspect-ratio: 1; background: #000; }
.share-qr .qr-center {
  position: absolute; width: 34px; height: 34px;
  background: #fff; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.share-link-box { display: flex; gap: 8px; margin-bottom: 14px; }
.share-link-box input {
  flex: 1; padding: 9px 14px; border: 1px solid var(--border);
  border-radius: 20px; font-size: 12px; color: var(--text-2);
  background: var(--bg);
}
.share-comm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.share-comm > div {
  text-align: center; background: var(--bg);
  border-radius: var(--radius-sm); padding: 10px;
}
.share-comm span { display: block; font-size: 11px; color: var(--text-2); }
.share-comm b { font-size: 16px; color: var(--primary); }
.share-btns { display: flex; gap: 10px; justify-content: center; }
.modal-tip {
  background: var(--green-light); color: var(--green);
  font-size: 12px; border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 14px; line-height: 1.5;
}

/* 领券弹窗 */
.coupon-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-light); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; animation: bounceIn 0.5s;
}
@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.coupon-received {
  display: flex; align-items: center; gap: 16px;
  border: 2px dashed var(--primary); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px; background: var(--primary-light);
}
.cr-left { text-align: center; border-right: 1px dashed var(--primary); padding-right: 16px; flex-shrink: 0; }
.cr-left b { font-size: 26px; color: var(--red); display: block; }
.cr-left span { font-size: 11px; color: var(--text-2); }
.cr-right b { font-size: 14px; display: block; margin-bottom: 2px; }
.cr-right span { font-size: 12px; color: var(--text-2); }

/* 购买弹窗 */
.purchase-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-light); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; animation: bounceIn 0.5s;
}
.purchase-comm {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px;
}
.pc-item { display: flex; justify-content: space-between; font-size: 14px; }
.pc-item span { color: var(--text-2); }
.pc-item b { font-size: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(0,0,0,0.82); color: #fff;
  padding: 10px 24px; border-radius: 24px;
  font-size: 14px; z-index: 300;
  opacity: 0; transition: all 0.3s; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1F2430; color: #B8BFCB; margin-top: 60px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
}
.footer-brand .logo-text { color: #fff; font-size: 24px; }
.footer-brand p { margin-top: 12px; font-size: 13px; line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13px; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; padding: 16px;
  font-size: 12px; color: #6B7280;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .coupon-grid { grid-template-columns: repeat(4, 1fr); }
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
  .pq-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 992px) {
  .coupon-grid { grid-template-columns: repeat(3, 1fr); }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-img { height: 280px; font-size: 90px; }
  .user-layout, .admin-layout { grid-template-columns: 1fr; }
  .user-sidebar, .admin-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .pq-grid { grid-template-columns: repeat(4, 1fr); }
  .main-nav a { padding: 6px 10px; font-size: 13px; }
  .user-badge .ub-level { display: none; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 24px; }
  .comm-rows { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .team-summary { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ===== 好友分享提示条（?ref= 推广落地） ===== */
.ref-tip {
  display: inline-block;
  background: linear-gradient(90deg, rgba(255,90,60,.12), rgba(255,178,56,.12));
  border: 1px dashed var(--primary, #FF5A3C);
  color: var(--primary, #FF5A3C);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.ref-tip b { color: var(--gold, #FFB238); }

/* ===== 移动端菜单按钮（桌面隐藏） ===== */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== 登录页（用户后台 / 管理后台） ===== */
.login-wrap { display: flex; justify-content: center; padding: 40px 16px 60px; }
.login-card {
  width: 100%; max-width: 440px;
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(255, 90, 60, .08);
  overflow: hidden;
}
.login-tabs { display: flex; background: var(--primary-light); }
.lt-btn {
  flex: 1; padding: 14px; font-size: 15px; font-weight: 600;
  color: var(--text-2); background: transparent;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.lt-btn.active { color: var(--primary); background: #fff; border-bottom-color: var(--primary); }
.login-body { padding: 24px 28px 20px; }
.login-body h2 { font-size: 20px; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.login-hint {
  margin-top: 14px; font-size: 12px; color: var(--text-3);
  background: var(--primary-light); border-radius: 8px; padding: 8px 12px; line-height: 1.6;
}
.login-reg { margin-top: 14px; font-size: 13px; color: var(--text-2); text-align: center; }
.login-reg a { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; }
.login-users { padding: 0 28px 24px; }
.login-users-title { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 10px; }
.login-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px; cursor: pointer;
  transition: all .2s;
}
.login-user:hover { border-color: var(--primary); background: var(--primary-light); }
.lu-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.lu-info { flex: 1; display: flex; flex-direction: column; }
.lu-info b { font-size: 14px; }
.lu-info small { font-size: 12px; color: var(--text-3); }
.user-menu-logout, .admin-menu-logout { color: var(--red) !important; }

/* ===== 响应式增强：平板（≤992px 表格横向滚动不挤压） ===== */
@media (max-width: 992px) {
  .table { min-width: 720px; }
}

/* ===== 响应式增强：手机（≤768px 汉堡菜单 + 布局堆叠） ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .topbar-inner { position: relative; gap: 12px; }
  .main-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .withdraw-input-row { flex-direction: column; align-items: stretch; }
  .withdraw-input-row select, .withdraw-input-row .btn { width: 100%; }
  .share-link-box { flex-direction: column; }
  .share-link-box .btn { width: 100%; }
  .modal-box { width: 92vw; }
  .hero-inner { padding: 40px 16px; }
  .detail-meta { gap: 8px; }
  .chain { flex-wrap: wrap; gap: 6px; }
}

/* ===== 响应式增强：小屏手机（≤480px） ===== */
@media (max-width: 480px) {
  .topbar-inner { padding: 0 12px; height: 56px; }
  .main-nav { top: 56px; }
  .logo-text { font-size: 18px; }
  .logo-icon { font-size: 24px; }
  .ub-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .coupon-grid { gap: 10px; }
  .hero h1 { font-size: 22px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .wallet-grid { gap: 10px; }
  .platform-stats-row { grid-template-columns: 1fr 1fr; }
  .withdraw-quick { flex-wrap: wrap; }
  .detail-actions .btn { width: 100%; }
  .login-body, .login-users { padding-left: 18px; padding-right: 18px; }
  .pq-grid { gap: 8px; }
}

/* ===== 领券弹窗 CPS 口令 / 短链接 ===== */
.cps-code-row { margin-bottom: 12px; }
.cps-code-row > label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px;
}
.cps-code-row .share-link-box input { flex: 1; min-width: 0; }

/* ===== 管理后台平台CPS配置表（口令/短链/跳转可编辑列较宽） ===== */
.admin-plat-table { min-width: 1580px; }
.admin-plat-table input { font-size: 12px; }
.admin-plat-table th small { font-size: 11px; color: var(--text-3); }

/* ===== 平台 CPS API 接口列 ===== */
.api-cell { display: flex; gap: 4px; flex-wrap: wrap; }
.api-cell input, .api-cell select {
  padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px;
}
.api-cell input:first-child { flex: 1; min-width: 120px; }

/* ===== 新增平台弹窗 ===== */
.addplat-box { max-width: 560px; }
.addplat-form { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
/* 人工添加商品：佣金实时预览条 */
.ac-preview {
  background: #fff7e6; border: 1px dashed #ffb84d; border-radius: 8px;
  padding: 9px 12px; font-size: 12.5px; color: #ad5b00; line-height: 1.5;
}
.ac-preview b { color: #d46b00; font-size: 14px; }
/* ===== 人工添加商品：网址导入行 / 图片预览 ===== */
.url-import-row { display: flex; gap: 8px; align-items: stretch; }
.url-import-row input { flex: 1; min-width: 0; }
.url-import-row .btn { white-space: nowrap; }
/* 本地上传商品首图：上传按钮行（label 模拟按钮，触发隐藏的 file input） */
.img-upload-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.img-upload-btn { cursor: pointer; display: inline-flex; align-items: center; user-select: none; white-space: nowrap; }
.img-upload-tip { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.ac-fetch-tip {
  margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--text-3);
  background: var(--bg-2); border-radius: 6px; padding: 6px 10px;
}
.ac-fetch-tip b { color: #d46b00; }
.ac-img-cell { flex: 0 0 88px; }
.ac-img-preview {
  width: 88px; height: 64px; border-radius: 8px; border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  overflow: hidden; background: var(--bg-2); flex: none;
}
.ac-img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.addplat-form .form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.addplat-form input, .addplat-form select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; box-sizing: border-box;
}
.addplat-form input:focus, .addplat-form select:focus { border-color: var(--primary); outline: none; }

/* ===== 抓取预览弹窗 ===== */
.fetch-box { max-width: 620px; }
.fp-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.fp-stats > div {
  flex: 1; background: var(--bg-2); border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--text-2);
}
.fp-stats b { font-size: 22px; color: var(--primary); }
.fp-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; margin-bottom: 12px; }
.fp-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.fp-row:last-child { border-bottom: none; }
.fp-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.fp-title small { display: block; font-weight: 400; color: var(--text-3); font-size: 11px; }
.fp-more { font-size: 12px; color: var(--text-3); text-align: center; padding: 8px 0; }
.fp-json-box label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.fp-json-box textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 12px; font-family: Consolas, Menlo, monospace; resize: vertical;
}
.fp-json-box .btn { margin-top: 6px; }
