/* =============================================================
   若男广告联盟 · 设计系统 (Union Ads Design System)
   ============================================================= */

:root {
  /* 品牌色 */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  /* 语义色 */
  --ok:      #10b981;
  --ok-bg:   #ecfdf5;
  --warn:    #f59e0b;
  --warn-bg: #fffbeb;
  --danger:  #ef4444;
  --danger-bg: #fef2f2;

  /* 中性 */
  --ink-900: #0b1220;
  --ink-800: #131c2e;
  --ink-700: #1e293b;
  --ink-600: #334155;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --line:    #e5e9f0;

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --sh-md: 0 8px 24px -6px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
  --sh-lg: 0 24px 48px -12px rgba(15, 23, 42, .18), 0 6px 16px -6px rgba(15, 23, 42, .08);
  --sh-brand: 0 10px 30px -8px rgba(37, 99, 235, .45);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --sidebar-w: 248px;
  --topbar-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

/* 后台角色主题 */
.role-publisher   { --accent-grad: linear-gradient(135deg, #2563eb, #06b6d4); --accent: #2563eb; }
.role-advertiser  { --accent-grad: linear-gradient(135deg, #7c3aed, #db2777); --accent: #7c3aed; }
.role-admin       { --accent-grad: linear-gradient(135deg, #0f172a, #334155); --accent: #0f172a; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; color: var(--ink-900); line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
a { color: var(--brand-600); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; }

/* =============================================================
   按钮
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  user-select: none;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px -8px rgba(37, 99, 235, .55); filter: brightness(1.06); }

.btn-violet {
  background: linear-gradient(135deg, var(--violet-600), #db2777);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, .5);
}
.btn-violet:hover { color: #fff; filter: brightness(1.06); }

.btn-dark {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, .6);
}
.btn-dark:hover { color: #fff; filter: brightness(1.15); }

.btn-default { background: #fff; border-color: var(--line); color: var(--ink-700); box-shadow: var(--sh-xs); }
.btn-default:hover { border-color: var(--brand-400); color: var(--brand-600); box-shadow: var(--sh-sm); }

.btn-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink-600); }
.btn-ghost:hover { background: var(--ink-100); color: var(--ink-900); }

.btn-danger { background: linear-gradient(135deg, #f87171, #dc2626); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }

.btn-ok { background: linear-gradient(135deg, #34d399, #059669); color: #fff; }
.btn-ok:hover { color: #fff; filter: brightness(1.05); }

.btn-lg { height: 52px; padding: 0 34px; font-size: 15.5px; border-radius: var(--radius); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* =============================================================
   表单
   ============================================================= */
.field { margin-bottom: 18px; }
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
}
.field-label .req { color: var(--danger); }
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-400); line-height: 1.6; }

.input, .select, .textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:hover, .select:hover, .textarea:hover { border-color: #cbd5e1; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3.5px rgba(59, 130, 246, .14);
}
.input[disabled], .select[disabled] { background: var(--ink-100); color: var(--ink-400); cursor: not-allowed; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 1.4 6 6l4.6-4.6' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.input-lg { height: 50px; font-size: 15px; }

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon {
  display: flex; align-items: center; padding: 0 14px;
  background: var(--ink-100); border: 1px solid var(--line); border-left: 0;
  color: var(--ink-500); font-size: 13px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; }

/* 复选/单选 */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink-600); }
.check input { width: 16px; height: 16px; accent-color: var(--brand-600); cursor: pointer; }

/* 选项卡片 */
.option-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.option-card {
  position: relative;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: all .18s;
}
.option-card:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.option-card input { position: absolute; opacity: 0; }
.option-card strong { display: block; font-size: 14px; color: var(--ink-900); margin-bottom: 3px; }
.option-card span { font-size: 12px; color: var(--ink-400); }
.option-card.checked { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(59, 130, 246, .1); }
.option-card.checked strong { color: var(--brand-700); }

/* 尺寸选择器 */
.size-groups { display: flex; flex-direction: column; gap: 16px; }
.size-group-title { font-size: 12.5px; font-weight: 700; color: var(--ink-400); letter-spacing: .04em; margin-bottom: 8px; }
.size-list { display: flex; flex-wrap: wrap; gap: 10px; }
.size-chip {
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-600);
  transition: all .18s;
  text-align: center;
  line-height: 1.35;
}
.size-chip:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.size-chip strong { display: block; font-size: 13.5px; color: var(--ink-900); font-weight: 700; }
.size-chip em { font-style: normal; font-size: 11.5px; color: var(--ink-400); }
.size-chip.checked { border-color: var(--brand-500); background: var(--brand-600); box-shadow: var(--sh-brand); }
.size-chip.checked strong, .size-chip.checked em { color: #fff; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-xs); transition: transform .2s; }
.switch input:checked + .track { background: var(--brand-600); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* =============================================================
   卡片 / 面板
   ============================================================= */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-sm);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 15.5px; }
.card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-400); }
.card-body { padding: 22px; }
.card-body.tight { padding: 14px 22px; }
.card-foot { padding: 16px 22px; border-top: 1px solid var(--line); background: var(--ink-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card + .card { margin-top: 20px; }

.page-section { margin-bottom: 22px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; }

/* =============================================================
   标签 / 徽标
   ============================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-ok      { color: #047857; background: var(--ok-bg); }
.tag-warn    { color: #b45309; background: var(--warn-bg); }
.tag-danger  { color: #b91c1c; background: var(--danger-bg); }
.tag-muted   { color: var(--ink-500); background: var(--ink-100); }
.tag-blue    { color: var(--brand-700); background: var(--brand-50); }
.tag-violet  { color: #6d28d9; background: #f5f3ff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--ink-100); color: var(--ink-600); font-size: 12.5px; font-weight: 500;
}
.chip-blue { background: var(--brand-50); color: var(--brand-700); }
.chip-violet { background: #f5f3ff; color: #6d28d9; }

/* =============================================================
   提示条
   ============================================================= */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; margin-bottom: 18px;
  border-radius: var(--radius); font-size: 13.5px;
  border: 1px solid transparent;
}
.alert-icon { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; margin-top: 1px; }
.alert-success { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; }
.alert-success .alert-icon { background: var(--ok); }
.alert-error { background: var(--danger-bg); border-color: #fecaca; color: #991b1b; }
.alert-error .alert-icon { background: var(--danger); }
.alert-warn { background: var(--warn-bg); border-color: #fde68a; color: #92400e; }
.alert-warn .alert-icon { background: var(--warn); }
.alert-info { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.alert-info .alert-icon { background: var(--brand-600); }

/* =============================================================
   表格
   ============================================================= */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--ink-50);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
table.table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
table.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-700); vertical-align: middle; }
table.table tbody tr { transition: background .15s; }
table.table tbody tr:hover { background: #fbfdff; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-900); }
table.table .strong { font-weight: 700; color: var(--ink-900); }
table.table .muted { color: var(--ink-400); font-size: 12.5px; }
table.table td.actions { white-space: nowrap; }
table.table .cell-main { display: flex; align-items: center; gap: 10px; }

/* 通用单元格工具类（表格外同样生效） */
.strong { font-weight: 700; color: var(--ink-900); }
.muted { color: var(--ink-400); }
.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-900); }
.cell-main { display: flex; align-items: center; gap: 10px; }

.thumb {
  width: 64px; height: 40px; object-fit: cover;
  border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--ink-100);
}

/* =============================================================
   分页
   ============================================================= */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; flex-wrap: wrap; }
.pager-info { font-size: 12.5px; color: var(--ink-400); }
.pager-links { display: flex; align-items: center; gap: 6px; }
.pager-item {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-xs);
  background: #fff; color: var(--ink-600); font-size: 13px; font-weight: 500;
}
.pager-item:hover { border-color: var(--brand-400); color: var(--brand-600); }
.pager-item.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: var(--sh-brand); }
.pager-dots { color: var(--ink-300); }

/* =============================================================
   空状态
   ============================================================= */
.empty-state { padding: 60px 24px; text-align: center; }
.empty-art { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: var(--ink-100); display: grid; place-items: center; color: var(--ink-300); }
.empty-art svg { width: 32px; height: 32px; }
.empty-state p { color: var(--ink-400); font-size: 13.5px; margin-bottom: 18px; }

/* =============================================================
   顶部导航（前台）
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.site-header .container { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand-inline { display: flex; align-items: center; gap: 11px; }
.brand-logo-lg {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--violet-600));
  color: #fff; font-size: 20px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7);
}
.brand-inline strong { display: block; font-size: 17.5px; color: var(--ink-900); letter-spacing: -.02em; }
.brand-inline em { font-style: normal; font-size: 11px; color: var(--ink-400); letter-spacing: .12em; text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--ink-600); }
.main-nav a:hover, .main-nav a.active { color: var(--brand-600); background: var(--brand-50); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* =============================================================
   首页 Hero
   ============================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 82% -10%, #3b82f6 0%, transparent 55%),
              radial-gradient(900px 500px at 8% 8%, #7c3aed 0%, transparent 50%),
              linear-gradient(160deg, #060d1f 0%, #0b1733 40%, #0d1b3d 100%);
  color: #fff;
  padding: 96px 0 120px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: 50%; bottom: -60%; width: 1200px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(37, 99, 235, .4), transparent);
  filter: blur(40px); pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 8px; margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 12.5px; color: #cbd5e1; backdrop-filter: blur(8px);
}
.hero-eyebrow b { padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-size: 11.5px; font-weight: 700; }

.hero h1 {
  font-size: 54px; line-height: 1.1; color: #fff; letter-spacing: -.03em; margin-bottom: 22px;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #60a5fa 0%, #a78bfa 45%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 16.5px; line-height: 1.85; color: #a9b8d0; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stats .hs-item strong { display: block; font-size: 27px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero-stats .hs-item span { font-size: 12.5px; color: #8ea1bd; }

/* Hero 右侧演示面板 */
.hero-panel {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-xl);
  padding: 22px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.hero-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.hero-panel-title { margin-left: 8px; font-size: 12.5px; color: #7f90ab; }
.mock-ad {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  padding: 26px 24px; margin-bottom: 14px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: center;
}
.mock-ad h4 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.mock-ad p { color: rgba(255, 255, 255, .78); font-size: 12.5px; margin: 0; }
.mock-rows { display: grid; gap: 10px; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px; color: #a9b8d0;
}
.mock-row b { color: #4ade80; font-weight: 700; }
.mock-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; flex: 1; margin: 0 14px; }
.mock-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #22d3ee, #60a5fa); }

/* 联盟标识（badge） */
.union-badge {
  position: absolute; right: 6px; bottom: 6px; z-index: 5;
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px 0 4px;
  border-radius: 5px;
  font-size: 11px; font-weight: 600; line-height: 1;
  text-decoration: none !important;
  transition: all .2s;
}
.union-badge .ub-mark {
  width: 14px; height: 14px; border-radius: 3.5px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 9px; font-weight: 800;
  display: grid; place-items: center;
}
.union-badge-light { background: rgba(255, 255, 255, .9); color: #475569; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.union-badge-light:hover { background: #fff; color: #1d4ed8; }
.union-badge-dark { background: rgba(15, 23, 42, .72); color: #e2e8f0; backdrop-filter: blur(6px); }
.union-badge-dark:hover { background: rgba(15, 23, 42, .9); color: #93c5fd; }

/* 信任条 */
.trust-bar { background: #0b1220; border-top: 1px solid rgba(255, 255, 255, .06); padding: 26px 0; }
.trust-bar .container { display: flex; align-items: center; justify-content: center; gap: 54px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #64748b; font-size: 13.5px; font-weight: 500; }
.trust-item svg { width: 18px; height: 18px; color: #3b82f6; }

/* =============================================================
   通用区块
   ============================================================= */
.section { padding: 88px 0; }
.section-alt { background: #fff; }
.section-dark { background: #0b1220; color: #cbd5e1; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker {
  display: inline-block; padding: 5px 14px; margin-bottom: 16px;
  border-radius: 999px; background: var(--brand-50); color: var(--brand-700);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.section-head h2 { font-size: 36px; letter-spacing: -.025em; margin-bottom: 14px; }
.section-head p { font-size: 15.5px; color: var(--ink-400); line-height: 1.8; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #94a3b8; }
.section-dark .section-head .kicker { background: rgba(59, 130, 246, .15); color: #93c5fd; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }
.feature-ico {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-50), #ede9fe);
  color: var(--brand-600);
}
.feature-ico svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 9px; }
.feature-card p { font-size: 13.5px; color: var(--ink-400); line-height: 1.8; margin: 0; }

.section-dark .feature-card { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .09); }
.section-dark .feature-card:hover { background: rgba(255, 255, 255, .06); border-color: rgba(96, 165, 250, .4); }
.section-dark .feature-card h3 { color: #fff; }
.section-dark .feature-card p { color: #94a3b8; }
.section-dark .feature-ico { background: rgba(59, 130, 246, .14); color: #60a5fa; }

/* 广告样式展示 */
.adtype-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.adtype-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.adtype-visual {
  height: 132px; border-radius: var(--radius); margin-bottom: 16px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid var(--line);
}
.adtype-card h4 { font-size: 15px; margin-bottom: 6px; }
.adtype-card > p { font-size: 12.5px; color: var(--ink-400); margin: 0 0 12px; line-height: 1.7; }

/* 视觉：固定位 */
.v-fixed { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78%; height: 52px; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600; position: absolute; }
/* 视觉：右下悬浮 */
.v-br { position: absolute; right: 10px; bottom: 10px; width: 92px; height: 66px; border-radius: 6px; background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
/* 视觉：对联 */
.v-couplet-l, .v-couplet-r { position: absolute; top: 12px; width: 34px; height: 108px; border-radius: 5px; background: linear-gradient(180deg, #0ea5e9, #6366f1); color: #fff; font-size: 9px; writing-mode: vertical-rl; display: grid; place-items: center; letter-spacing: 2px; }
.v-couplet-l { left: 14px; } .v-couplet-r { right: 14px; }
/* 视觉：顶部/底部悬浮 */
.v-top, .v-bottom { position: absolute; left: 10px; right: 10px; height: 30px; border-radius: 5px; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.v-top { top: 10px; } .v-bottom { bottom: 10px; background: linear-gradient(90deg, #10b981, #06b6d4); }
.v-phone { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 74px; height: 108px; border-radius: 8px; border: 1.5px solid #334155; background: #111c33; }
.mock-union-badge { position: absolute; right: 3px; bottom: 3px; height: 13px; padding: 0 5px; border-radius: 3px; background: rgba(255, 255, 255, .92); font-size: 8px; font-weight: 700; color: #475569; display: inline-flex; align-items: center; gap: 3px; }
.mock-union-badge i { width: 9px; height: 9px; border-radius: 2px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-size: 6px; font-style: normal; display: grid; place-items: center; }

/* 尺寸表 */
.size-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.size-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: all .2s;
}
.size-item:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.size-item .s-box { flex: none; border-radius: 3px; background: linear-gradient(135deg, #60a5fa, #a78bfa); }
.size-item strong { display: block; font-size: 13px; color: var(--ink-900); }
.size-item em { font-style: normal; font-size: 11.5px; color: var(--ink-400); }

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-item { position: relative; padding: 26px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step-num {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--violet-600));
  color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center;
  box-shadow: var(--sh-brand);
}
.step-item h4 { font-size: 15px; margin-bottom: 7px; }
.step-item p { font-size: 12.5px; color: var(--ink-400); margin: 0; line-height: 1.75; }

/* 代码块 */
.code-box {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0b1220; border: 1px solid #1e293b;
}
.code-box-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #1e293b; font-size: 12px; color: #64748b; }
.code-box pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.8; color: #93c5fd; }
.code-copy { background: rgba(255, 255, 255, .08); border: 0; color: #cbd5e1; padding: 4px 10px; border-radius: 5px; font-size: 11.5px; cursor: pointer; font-family: inherit; }
.code-copy:hover { background: rgba(255, 255, 255, .16); }

/* 双栏收益 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.role-card {
  padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff;
  transition: all .3s;
}
.role-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.role-card .rc-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.role-card h3 { font-size: 21px; margin-bottom: 12px; }
.role-card > p { font-size: 13.5px; color: var(--ink-400); line-height: 1.8; margin-bottom: 20px; }
.role-card ul { margin-bottom: 24px; display: grid; gap: 10px; }
.role-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-600); }
.role-card li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ok); }

/* CTA */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1d4ed8, #6d28d9 60%, #0891b2);
  border-radius: var(--radius-xl);
  padding: 56px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .22), transparent 45%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 10px; letter-spacing: -.02em; }
.cta-band p { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin: 0; }

/* 页脚 */
.site-footer { background: #070d1a; color: #64748b; padding: 60px 0 30px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-col h5 { color: #e2e8f0; font-size: 13.5px; margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: #64748b; padding: 5px 0; font-size: 13px; }
.footer-col a:hover { color: #93c5fd; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; flex-wrap: wrap; font-size: 12.5px; color: #475569; }

/* =============================================================
   登录 / 注册
   ============================================================= */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-visual {
  position: relative; overflow: hidden; padding: 60px 64px; color: #fff;
  background: radial-gradient(900px 500px at 80% 0%, #2563eb 0%, transparent 55%),
              radial-gradient(700px 500px at 10% 100%, #7c3aed 0%, transparent 50%),
              linear-gradient(160deg, #060d1f, #0c1830 60%, #0e1c3c);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 70%);
}
.auth-visual > * { position: relative; z-index: 2; }
.auth-visual h2 { color: #fff; font-size: 40px; line-height: 1.22; letter-spacing: -.03em; margin-bottom: 20px; font-weight: 800; }
.auth-visual .lead { color: #9fb0cc; font-size: 15.5px; line-height: 1.9; max-width: 460px; }
.auth-points { display: grid; gap: 16px; margin-top: 36px; max-width: 460px; }
.auth-point { display: flex; gap: 13px; align-items: flex-start; }
.auth-point .ap-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; color: #60a5fa; }
.auth-point .ap-ico svg { width: 17px; height: 17px; }
.auth-point strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.auth-point span { font-size: 12.5px; color: #8ea1bd; line-height: 1.7; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #fff; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 27px; margin-bottom: 8px; letter-spacing: -.02em; }
.auth-form .sub { color: var(--ink-400); font-size: 13.5px; margin-bottom: 30px; }
.auth-tabs { display: flex; gap: 6px; padding: 5px; background: var(--ink-100); border-radius: var(--radius); margin-bottom: 28px; }
.auth-tabs a {
  flex: 1; text-align: center; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-500); transition: all .2s;
}
.auth-tabs a.active { background: #fff; color: var(--brand-600); box-shadow: var(--sh-xs); }
.auth-tabs a:hover { color: var(--brand-600); }
.auth-foot { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--ink-400); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--ink-300); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* =============================================================
   后台布局
   ============================================================= */
.app { display: flex; min-height: 100vh; background: var(--ink-50); }

.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 60;
  background: linear-gradient(180deg, #0c172c 0%, #0a1222 100%);
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; }
.sidebar .brand-logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--accent-grad, linear-gradient(135deg, #2563eb, #7c3aed));
  color: #fff; font-size: 19px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .8);
}
.sidebar .brand-text strong { display: block; color: #fff; font-size: 15px; letter-spacing: -.01em; }
.sidebar .brand-text em { font-style: normal; font-size: 11px; color: #5c7290; letter-spacing: .06em; }

.side-user { display: flex; align-items: center; gap: 11px; margin: 0 14px 16px; padding: 11px 13px; border-radius: var(--radius); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.side-user .avatar { width: 34px; height: 34px; font-size: 14px; }
.side-user-info { min-width: 0; }
.side-user-info strong { display: block; color: #e2e8f0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-info em { font-style: normal; font-size: 11.5px; color: #5c7290; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.avatar.sm { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }

.side-nav { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); }
.nav-group { margin-bottom: 18px; }
.nav-group-title { padding: 0 10px 8px; font-size: 11px; font-weight: 700; color: #46587a; letter-spacing: .1em; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: #8fa3c0; font-size: 13.5px; font-weight: 500;
  transition: all .18s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #e2e8f0; }
.nav-item.active { background: var(--accent-grad, linear-gradient(135deg, #2563eb, #06b6d4)); color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .9); font-weight: 600; }
.nav-ico { flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
.nav-ico svg { width: 17px; height: 17px; }

.side-foot { padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; gap: 16px; font-size: 12.5px; }
.side-foot a { color: #5c7290; }
.side-foot a:hover { color: #93c5fd; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-title h1 { font-size: 18px; letter-spacing: -.01em; }
.topbar-title p { margin: 1px 0 0; font-size: 12.5px; color: var(--ink-400); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 20px; color: var(--ink-600); cursor: pointer; }

.balance-chip {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  padding: 6px 16px; border-radius: var(--radius); line-height: 1.25;
  background: linear-gradient(135deg, #f0f7ff, #f5f3ff);
  border: 1px solid #dbeafe;
}
.balance-chip em { font-style: normal; font-size: 11px; color: var(--ink-400); }
.balance-chip strong { font-size: 15px; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.balance-chip:hover { border-color: var(--brand-300); }

.user-menu { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  cursor: pointer; transition: all .18s;
}
.user-menu-btn:hover { border-color: var(--brand-300); box-shadow: var(--sh-xs); }
.user-menu-btn .caret { font-size: 10px; color: var(--ink-300); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 172px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--sh-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s; z-index: 70;
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-xs); font-size: 13.5px; color: var(--ink-600); font-weight: 500; }
.dropdown a:hover { background: var(--ink-100); color: var(--ink-900); }
.dropdown a.danger { color: var(--danger); }
.dropdown a.danger:hover { background: var(--danger-bg); }
.dropdown-divider { height: 1px; background: var(--line); margin: 5px 8px; }

.content { flex: 1; padding: 26px 28px 48px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-tile {
  position: relative; overflow: hidden;
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-xs);
  transition: all .25s;
}
.stat-tile:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.stat-tile::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; opacity: .07; background: currentColor; }
.stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-label { font-size: 13px; color: var(--ink-400); font-weight: 500; }
.stat-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--ink-100); }
.stat-ico svg { width: 16px; height: 16px; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink-900); letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-sub { margin-top: 7px; font-size: 12.5px; color: var(--ink-400); }
.stat-sub .up { color: var(--ok); font-weight: 700; }
.stat-sub .down { color: var(--danger); font-weight: 700; }
.tone-blue   { color: var(--brand-600); }   .tone-blue .stat-ico   { background: var(--brand-50); }
.tone-violet { color: var(--violet-600); }  .tone-violet .stat-ico { background: #f5f3ff; }
.tone-green  { color: #059669; }            .tone-green .stat-ico  { background: var(--ok-bg); }
.tone-orange { color: #d97706; }            .tone-orange .stat-ico { background: var(--warn-bg); }
.tone-cyan   { color: #0891b2; }            .tone-cyan .stat-ico   { background: #ecfeff; }
.tone-pink   { color: #db2777; }            .tone-pink .stat-ico   { background: #fdf2f8; }
.stat-tile .stat-value { color: var(--ink-900); }

/* 网格布局 */
.grid-cols { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.cols-1-2 { grid-template-columns: 1fr 2fr; }

/* 图表 */
.chart-wrap { position: relative; width: 100%; }
.chart-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; background: var(--ink-100); border-radius: var(--radius-sm); gap: 3px; }
.seg a, .seg button {
  padding: 6px 13px; border-radius: var(--radius-xs); border: 0; background: transparent;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-500); cursor: pointer; transition: all .18s;
}
.seg a.active, .seg button.active { background: #fff; color: var(--brand-600); box-shadow: var(--sh-xs); }
.seg a:hover, .seg button:hover { color: var(--brand-600); }

.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-500); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

canvas.chart { width: 100%; display: block; }

/* 迷你趋势条 */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.spark i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #93c5fd, #dbeafe); min-height: 3px; }
.spark i.hi { background: linear-gradient(180deg, #2563eb, #60a5fa); }

/* 流量主/广告主 侧栏小卡 */
.side-card { padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, #0b1220, #16233f); color: #cbd5e1; }
.side-card h4 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.side-card p { font-size: 12.5px; color: #8296b3; line-height: 1.7; margin: 0 0 14px; }

/* 广告位代码 */
.slot-code {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: #0b1220; color: #93c5fd; font-family: var(--mono); font-size: 12px;
  word-break: break-all;
}
.slot-code code { flex: 1; color: #93c5fd; }

/* 素材预览 */
.creative-preview {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; background: var(--ink-50);
}
.creative-preview img { max-height: 200px; border-radius: var(--radius-sm); }
.creative-text-demo {
  display: inline-block; padding: 12px 20px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
}

/* 广告位渲染预览框 */
.render-frame {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px);
  color: var(--ink-400); font-size: 12px; overflow: hidden;
}

/* 进度条 */
.progress { height: 6px; border-radius: 4px; background: var(--ink-100); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-500), var(--violet-500)); }
.progress.ok i { background: linear-gradient(90deg, #34d399, #059669); }
.progress.warn i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.progress.danger i { background: linear-gradient(90deg, #f87171, #dc2626); }

/* 详情列表 */
.desc-list { display: grid; gap: 0; }
.desc-list .dl-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.desc-list .dl-row:last-child { border-bottom: 0; }
.desc-list .dl-key { flex: none; width: 110px; color: var(--ink-400); }
.desc-list .dl-val { color: var(--ink-800); font-weight: 500; word-break: break-all; }

/* 弹层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(11, 18, 32, .5);
  backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.open { display: flex; }
.modal { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--sh-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-close { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--ink-300); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink-600); }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--ink-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* 复制提示 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  padding: 11px 20px; border-radius: var(--radius); background: var(--ink-900); color: #fff;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--sh-lg); z-index: 999;
  opacity: 0; visibility: hidden; transition: all .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* 金额强调 */
.amount-pos { color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.amount-neg { color: var(--danger); font-weight: 700; font-variant-numeric: tabular-nums; }
.amount-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-900); }

/* 工具类 */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; } .mb-6 { margin-bottom: 6px; } .mb-10 { margin-bottom: 10px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-28 { margin-bottom: 28px; }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-muted { color: var(--ink-400); } .text-sm { font-size: 12.5px; } .text-xs { font-size: 11.5px; }
.text-strong { font-weight: 700; color: var(--ink-900); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* =============================================================
   响应式
   ============================================================= */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 40px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .split { grid-template-columns: 1fr; }
  .cols-2-1, .cols-1-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--sh-lg);
  }
  body.side-open .sidebar { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .feature-grid, .cols-2, .cols-3, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-value { font-size: 21px; }
  .cta-band { padding: 34px 26px; }
  .cta-band h2 { font-size: 23px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .main-nav { display: none; }
  .hero-stats { gap: 26px; }
  .hero-stats .hs-item strong { font-size: 22px; }
  .container { padding: 0 18px; }
  .balance-chip { display: none; }
  .modal { max-width: 100%; }
}

@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 31px; }
  .hero-cta .btn { width: 100%; }
  .pager { flex-direction: column; align-items: flex-start; }
}
