/* ============================================================
   佣金招聘网站 - 样式文件 (CSS)
   说明：所有可修改的颜色、尺寸集中在此文件顶部变量区
   修改任意变量即可全局生效，不会影响其他代码区块
   ============================================================ */

/* ==========================================
   [可修改] CSS 自定义属性 — 主题色/尺寸
   修改此处变量即可同步到所有使用该变量的元素
   ========================================== */
:root {
  /* -- 主色调 -- */
  --color-bg: #0f172a;
  --color-bg-card: rgba(30, 41, 59, 0.8);
  --color-bg-card-solid: #1e293b;
  --color-border: rgba(51, 65, 85, 0.5);
  --color-border-light: rgba(255, 255, 255, 0.08);

  /* -- 品牌色 -- */
  --color-amber: #f59e0b;
  --color-amber-light: #fbbf24;
  --color-orange: #ea580c;
  --color-red: #ef4444;
  --color-blue: #3b82f6;
  --color-emerald: #10b981;
  --color-purple: #8b5cf6;

  /* -- 文字色 -- */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-amber: #fbbf24;
  --text-blue: #60a5fa;
  --text-emerald: #34d399;
  --text-red: #f87171;

  /* -- 渐变预设 -- */
  --gradient-amber: linear-gradient(135deg, #f59e0b, #ea580c);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
  --gradient-red: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-card: linear-gradient(135deg, #1e293b, #0f172a);

  /* -- 尺寸 -- */
  --nav-height: 56px;
  --ticker-height: 36px;
  --max-width: 480px;
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;

  /* -- 阴影 -- */
  --shadow-amber: 0 4px 20px rgba(251, 191, 36, 0.25);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* -- 过渡 -- */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* ==========================================
   CSS Reset — 基础重置
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Segoe UI Emoji', 'Apple Color Emoji',
    'Noto Color Emoji', 'Android Emoji', 'EmojiOne Color', emoji,
    sans-serif;
  background: var(--color-bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   [可修改] 顶部快报栏 — Ticker Bar
   ========================================== */
.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    90deg,
    rgba(217, 119, 6, 0.9),
    rgba(202, 138, 4, 0.9),
    rgba(217, 119, 6, 0.9)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ticker-bar-inner {
  display: flex;
  align-items: center;
  height: var(--ticker-height);
  padding: 0 12px;
}

.ticker-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: #fef08a;
  flex-shrink: 0;
  margin-right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-bar-content {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-bar-content span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.ticker-bar-content i {
  color: var(--text-emerald);
  margin-right: 6px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   页面容器 — Page Container
   ========================================== */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--ticker-height);
  padding-bottom: calc(var(--nav-height) + 8px);
}

.page.active {
  display: block;
  animation: page-fade-in 0.4s ease;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   [可修改] Hero 区域 — 首页顶部
   ========================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  /* [可修改] Hero 背景渐变 */
  background: linear-gradient(
    160deg,
    #0a0f24 0%,
    #1a1040 40%,
    #0f2940 70%,
    #0a0f24 100%
  );
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hero 装饰光斑 */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.hero-glow-1 {
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: rgba(251, 191, 36, 0.05);
}

.hero-glow-2 {
  top: 40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: rgba(139, 92, 246, 0.05);
}

.hero-glow-3 {
  bottom: -40px;
  left: 50%;
  width: 320px;
  height: 80px;
  background: rgba(59, 130, 246, 0.05);
}

.hero-content {
  position: relative;
  padding: 0 20px;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-amber);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.hero-logo-icon i {
  color: #ffffff;
  font-size: 12px;
}

/* [可修改] Hero 标题旁边的文字 */
.hero-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.hero-body {
  text-align: center;
  margin-bottom: 12px;
}

/* 热招标签 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #f87171;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

/* [可修改] Hero 徽章文字 */
.hero-badge-text {
  font-size: 10px;
  font-weight: 700;
  color: #f87171;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Hero 主标题 */
/* [可修改] Hero 大标题 */
.hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
  text-align: center;
}

/* 每行独立显示 */
.hero-title-line {
  display: block;
}

/* [可修改] Hero 标题高亮 — 金额数字颜色 */
.hero-title-highlight {
  color: #fbbf24;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.35);
}

/* [可修改] Hero 副标题 */
.hero-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

/* ==========================================
   [可修改] Hero 统计卡片 — 代理月入 / 今日岗位
   ========================================== */
.hero-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.hero-stat-card {
  border-radius: var(--border-radius);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* [可修改] 绿色卡片 — 代理月入 */
.hero-stat-card-green {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* [可修改] 蓝色卡片 — 今日岗位 */
.hero-stat-card-blue {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

/* [可修改] 卡片数字 */
.hero-stat-card-value {
  font-size: 22px;
  font-weight: 900;
}

.hero-stat-card-green .hero-stat-card-value {
  color: #34d399;
}

.hero-stat-card-blue .hero-stat-card-value {
  color: #60a5fa;
}

/* [可修改] 卡片标签 — 带图标 */
.hero-stat-card-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-stat-card-green .hero-stat-card-label i {
  color: #34d399;
  font-size: 11px;
}

.hero-stat-card-blue .hero-stat-card-label i {
  color: #60a5fa;
  font-size: 11px;
}

/* ==========================================
   实时到账滚动区 — Live Feed
   ========================================== */
.live-feed-container {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.live-feed-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}

.live-feed-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-feed-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.live-feed-status-text {
  font-size: 11px;
  color: rgba(52, 211, 153, 0.8);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.live-feed-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
}

.live-feed-scroll {
  overflow: hidden;
  position: relative;
  /* [可修改] 滚动区高度 — 2行消息 */
  height: 50px;
}

.live-feed-list {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 0 10px;
}

/* 实时到账 — 单条消息项 */
.live-feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  animation: feed-item-in 0.4s ease;
}

@keyframes feed-item-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* [可修改] 序号徽章 — 金色小方块 */
.live-feed-item-rank {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fbbf24;
  flex-shrink: 0;
}

/* [可修改] 代理名称高亮色 */
.live-feed-item-agent {
  color: #fbbf24;
  font-weight: 700;
}

/* [可修改] 到账金额高亮色 */
.live-feed-item-amount {
  color: #34d399;
  font-weight: 700;
}

/* 消息主体文字 */
.live-feed-item-body {
  flex: 1;
  line-height: 1.2;
}

/* ==========================================
   统计卡片 — Stats Cards
   ========================================== */
.stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 12px;
  transition: all var(--transition-normal);
  cursor: default;
}

.stat-card:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.07);
}

.stat-card-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 2px;
}

.stat-card-value {
  font-size: 18px;
  font-weight: 900;
  display: inline-block;
}

.stat-card-value.stat-amber {
  color: var(--text-amber);
}

.stat-card-value.stat-blue {
  color: var(--text-blue);
}

.count-animate {
  animation: count-pulse 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes count-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* 加入按钮 */
.btn-join-hero {
  flex: none;
  padding: 16px;
  background: var(--gradient-amber);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
  transition: transform var(--transition-fast);
}

.btn-join-hero:active {
  transform: scale(0.95);
}

.btn-join-hero i {
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
}

.btn-join-hero-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.btn-join-hero-breathing {
  animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.6),
      0 0 60px rgba(251, 191, 36, 0.2);
  }
}

/* ==========================================
   [可修改] 筛选按钮 — Filter Buttons
   ========================================== */
.filter-section {
  padding: 8px 16px 4px;
  overflow-x: auto;
}

/* 隐藏滚动条 */
.filter-section::-webkit-scrollbar {
  display: none;
}
.filter-section {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-row {
  display: flex;
  gap: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: var(--border-radius);
  padding: 4px;
}

/* [可修改] 筛选按钮 — 默认状态 */
.filter-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.filter-btn i {
  font-size: 12px;
}

/* [可修改] 筛选按钮 — 选中状态 */
.filter-btn.active {
  font-weight: 700;
  background: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   [可修改] 搜索框 — Search Box
   ========================================== */
.search-section {
  padding: 12px 16px 0;
}

.search-row {
  display: flex;
  gap: 8px;
}

/* [可修改] 搜索输入框样式 */
.search-input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-normal);
}

.search-input:focus {
  border-color: #f59e0b;
}

.search-input::placeholder {
  color: #475569;
}

/* [可修改] 搜索按钮样式 */
.btn-search {
  padding: 10px 16px;
  background: var(--gradient-amber);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast);
  white-space: nowrap;
}

.btn-search:active {
  transform: scale(0.95);
}

/* ==========================================
   岗位目录 — Directory Panel
   ========================================== */
.dir-section {
  margin: 8px 16px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.3);
}

/* 标题栏 — 点击展开/收起 */
.dir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s;
}

.dir-header:active {
  background: rgba(255, 255, 255, 0.03);
}

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

.dir-header-icon {
  color: #fbbf24;
  font-size: 14px;
}

.dir-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.dir-header-count {
  font-size: 11px;
  color: #64748b;
  background: rgba(51, 65, 85, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
}

.dir-header-arrow {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.3s ease;
}

.dir-clear-btn {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 4px;
  color: #f87171;
  cursor: pointer;
  transition: background 0.2s;
}

.dir-clear-btn:hover {
  background: rgba(239,68,68,0.25);
}

.dir-header.open .dir-header-arrow {
  transform: rotate(180deg);
}

/* 展开区域 */
.dir-body {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.25);
  padding: 12px;
}

.dir-body.open {
  display: block;
}

/* 两栏布局 — 上下排列 */
.dir-columns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 单栏 */
.dir-col {
  border-radius: 10px;
  overflow: hidden;
}

.dir-col-agent {
  background: rgba(251, 191, 36, 0.04);
  border: 1px solid rgba(251, 191, 36, 0.12);
}

.dir-col-partner {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.dir-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dir-col-head-text {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dir-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dir-dot-agent {
  background: #fbbf24;
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
}

.dir-dot-partner {
  background: #60a5fa;
  box-shadow: 0 0 4px rgba(96, 165, 250, 0.3);
}

.dir-copy-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.dir-copy-btn:hover {
  color: #fbbf24;
}

.dir-col-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  max-height: 180px;
  overflow-y: auto;
}

/* 每行 */
.dir-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  transition: background 0.15s;
}

.dir-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.dir-item-num {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  min-width: 28px;
  flex-shrink: 0;
  line-height: 1.5;
}

.dir-col-agent .dir-item-num {
  color: #fbbf24;
}

.dir-col-partner .dir-item-num {
  color: #60a5fa;
}

.dir-item-text {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
  word-break: break-all;
  cursor: pointer;
}

.dir-col-list::-webkit-scrollbar {
  width: 3px;
}

.dir-col-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

/* ==========================================
   岗位列表 — Job List
   ========================================== */
.job-list-section {
  padding: 16px;
}

.job-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* [可修改] 区块标题样式 */
.section-heading {
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 14px;
}

.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
  border-radius: 2px;
}

.job-count-badge {
  font-size: 12px;
  color: #64748b;
  background: rgba(30, 41, 59, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 空状态 */
.empty-state {
  display: none;
  text-align: center;
  padding: 24px 16px;
  color: #475569;
}

.empty-state.visible {
  display: block;
}

.empty-state i {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

/* ==========================================
   岗位卡片 — Job Card
   ========================================== */
.job-card {
  background: rgba(30, 41, 59, 0.8);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.5);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  position: relative;
}

.job-card:hover {
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.job-card:active {
  border-color: rgba(251, 191, 36, 0.4);
  transform: scale(0.99);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px 10px;
  gap: 12px;
}

.job-card-title-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow: visible;
}

.job-card-title {
  font-weight: 800;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.3px;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

.job-card-company {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* [可修改] 岗位来源标签 — 代理/合伙人 */
.job-card-source-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* [可修改] 代理标签 — 金色 */
.tag-agent {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* [可修改] 合伙人标签 — 蓝色 */
.tag-partner {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

/* 佣金标签 */
.comm-badge {
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.comm-badge i {
  font-size: 12px;
}

.comm-badge span {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* 高光效果 — 标签上的光泽 */
.comm-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
  pointer-events: none;
}

/* [可修改] 普通佣金标签 — 红色 */
.comm-badge.comm-normal {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.35);
}

.comm-badge.comm-high {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.35);
}

.comm-badge.comm-hourly {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
  animation: pulse-blue 2s ease-in-out infinite;
}

@keyframes pulse-blue {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
  }
}

.job-card-body {
  padding: 0 16px 16px;
  overflow: visible;
}

/* 岗位描述（完整显示，不折叠） */
.job-card-desc {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.85;
  white-space: pre-line;
  overflow: visible;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
}

/* 薪资/地点信息行 */
.job-card-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
}

/* [可修改] 薪资/地点标签 */
.job-card-info-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
}

.job-card-info-tag i {
  font-size: 11px;
  color: #fbbf24;
}

/* 联系方式行 */
.job-card-contact {
  padding: 8px 16px;
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(51, 65, 85, 0.25);
  border-bottom: 1px solid rgba(51, 65, 85, 0.25);
}

.job-card-contact i {
  margin-right: 6px;
  color: #34d399;
}

.job-card-footer {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* [可修改] 复制按钮 */
.btn-copy {
  padding: 7px 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-copy:hover {
  background: rgba(59, 130, 246, 0.25);
}

.btn-copy:active {
  background: rgba(59, 130, 246, 0.35);
  transform: scale(0.95);
}

/* ==========================================
   详情弹窗 — Detail Modal
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal-overlay.visible {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 底部弹出面板 */
.modal-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  max-height: 85vh;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  animation: sheet-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheet-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-handle {
  width: 48px;
  height: 4px;
  background: #334155;
  border-radius: 999px;
  margin: 12px auto 0;
}

.modal-sheet-body {
  padding: 20px 20px 32px;
}

/* 详情佣金展示 */
.detail-comm-box {
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.detail-comm-box.comm-box-amber {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
}

.detail-comm-box.comm-box-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

.detail-comm-box.comm-box-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.detail-comm-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.detail-comm-value {
  font-size: 48px;
  font-weight: 900;
}

.detail-comm-value span {
  font-size: 24px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-info-item {
  background: #1e293b;
  border-radius: var(--border-radius);
  padding: 12px;
}

.detail-info-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.detail-info-value {
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
}

.detail-desc-section {
  margin-bottom: 20px;
}

.detail-contact-row {
  background: #1e293b;
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-recommend {
  width: 100%;
  padding: 16px;
  background: var(--gradient-amber);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-amber);
  transition: transform var(--transition-fast);
}

.btn-recommend:active {
  transform: scale(0.96);
}

/* 居中弹窗 */
.modal-centered {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-centered.visible {
  display: flex;
}

.modal-dialog {
  position: relative;
  background: #0f172a;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  animation: sheet-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-dialog-body {
  text-align: center;
  margin-bottom: 20px;
}

.modal-dialog-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-amber);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.modal-dialog-icon i {
  color: #ffffff;
  font-size: 20px;
}

.modal-dialog-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
}

.modal-dialog-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-normal);
}

.modal-input:focus {
  border-color: #f59e0b;
}

.modal-error {
  font-size: 12px;
  color: #f87171;
  text-align: center;
  margin-top: 8px;
  display: none;
}

.modal-error.visible {
  display: block;
}

/* ==========================================
   Toast 提示 — Toast
   ========================================== */
.toast {
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(251, 191, 36, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
}

/* ==========================================
   底部导航 — Bottom Navigation
   ========================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--nav-height);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #64748b;
  transition: color var(--transition-fast);
}

.nav-item.active {
  color: #fbbf24;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 0 0 3px 3px;
}

.nav-item i {
  font-size: 18px;
}

/* ==========================================
   开代理页面 — Join Page
   ========================================== */

/* —— 头部区域 —— */
.join-header {
  position: relative;
  padding: 40px 20px 32px;
}

.join-header-body {
  position: relative;
  text-align: center;
  z-index: 1;
}

.join-header-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* [可修改] 头部徽章 */
.join-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
}

.join-badge i {
  color: #fbbf24;
  font-size: 12px;
}

.join-badge span {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
}

/* [可修改] 主标题 */
.join-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
}

.join-title span {
  color: #fbbf24;
}

/* [可修改] 副标题 */
.join-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}
.join-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #0f172a 60%, #1e3a5f 100%);
}

.particle-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  animation: float-up 6s ease-in-out infinite;
}

/* 粒子位置 — 使用 nth-child 自动分配 */
.particle-dot:nth-child(1) { top: 10%; left: 10%; }
.particle-dot:nth-child(2) { top: 20%; left: 70%; }
.particle-dot:nth-child(3) { top: 50%; left: 30%; }
.particle-dot:nth-child(4) { top: 60%; left: 80%; }
.particle-dot:nth-child(5) { top: 30%; left: 50%; }
.particle-dot:nth-child(6) { top: 70%; left: 20%; }
.particle-dot:nth-child(7) { top: 80%; left: 60%; }
.particle-dot:nth-child(8) { top: 40%; left: 90%; }

@keyframes float-up {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-30px) scale(1.5);
    opacity: 1;
  }
}

.coin-fall {
  position: absolute;
  color: rgba(251, 191, 36, 0.2);
  font-size: 20px;
  animation: coin-drop 4s ease-in-out infinite;
}

/* 金币位置 — 使用 nth-child 自动分配 */
.coin-fall:nth-child(1) { top: 5%;  left: 15%; }
.coin-fall:nth-child(2) { top: 10%; left: 55%; }
.coin-fall:nth-child(3) { top: 3%;  left: 75%; }
.coin-fall:nth-child(4) { top: 8%;  left: 35%; }

@keyframes coin-drop {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(360deg);
    opacity: 0;
  }
}

/* 套餐卡片容器 */
.tier-section {
  padding: 20px 16px 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* 推荐码管理列表 */
.code-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.code-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 8px;
  font-size: 13px;
}

.code-list-item .code-val {
  font-weight: 700;
  color: #fbbf24;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 1px;
  flex: 1;
}

.code-list-item .code-discount {
  color: #34d399;
  font-weight: 600;
  font-size: 12px;
}

.code-list-item .code-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.code-list-item .code-status.unused {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.code-list-item .code-status.used {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}
/* ==========================================
   推荐码优惠卡片
   可修改：颜色、字号、间距
   ========================================== */

.code-section {
  padding: 20px 16px 0;
}

/* 卡片主体 — 磨砂玻璃质感 + 顶部微光 */
.code-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.06), 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* 卡片顶部金色微光装饰线 */
.code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.35), transparent);
  pointer-events: none;
}

/* 卡片头部：图标+标题 + 优惠金额 */
.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.code-card-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* [可修改] 礼物图标 — 尺寸/颜色 */
.code-card-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 14px rgba(245, 158, 11, 0.35);
}

.code-card-icon i {
  color: #ffffff;
  font-size: 13px;
}

/* [可修改] 标题文字 — 字号/颜色 */
.code-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

/* [可修改] 立减金额 — 渐变徽章 + 呼吸发光 */
.code-discount-num {
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.35);
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(234, 88, 12, 0.08));
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  animation: discountPulse 2.5s ease-in-out infinite;
}

/* 优惠金额呼吸发光动画 */
@keyframes discountPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.15);
  }
  50% {
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.4), 0 0 42px rgba(245, 158, 11, 0.18);
  }
}

/* [可修改] 提示文字 — 字号/颜色 */
.code-card-desc {
  font-size: 12px;
  color: rgba(251, 191, 36, 0.55);
  margin-bottom: 10px;
  text-align: center;
}

/* 输入框 + 按钮行 */
.code-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* [可修改] 推荐码输入框 — 字号/颜色 */
.code-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.code-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.code-input::placeholder {
  color: #475569;
  letter-spacing: 0;
}

/* 验证通过 — 输入框绿色状态 */
.code-input.code-valid {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

/* 验证失败 — 输入框抖动 */
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.code-input.shake {
  animation: shakeX 0.4s ease-in-out;
}

/* [可修改] 验证按钮 — 字号/颜色 */
.btn-code-verify {
  padding: 10px 16px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
}

.btn-code-verify:active {
  transform: scale(0.95);
}

.btn-code-verify:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* 验证结果提示 */
.code-result {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  min-height: 22px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* [可修改] 验证成功 — 绿色高亮条 */
.code-result.success {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
}

/* [可修改] 验证失败 — 红色高亮条 */
.code-result.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.18);
  animation: shakeX 0.4s ease-in-out;
}

.tier-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.5);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* [可修改] 尊享版卡片强调 */
.tier-card.tier-premium {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.08);
}

/* [可修改] 推荐标签 */
.tier-card-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 0 0 0 16px;
}

.tier-card-body {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.tier-card-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.tier-card-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* 价格列 — 右对齐 */
.tier-price-col {
  text-align: right;
  flex-shrink: 0;
}

/* [可修改] 价格样式 */
.tier-card-price {
  font-size: 32px;
  font-weight: 900;
  color: #fbbf24;
  text-align: right;
  line-height: 1;
}

.tier-card-period {
  font-size: 12px;
  color: #64748b;
  text-align: right;
}

.tier-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.tier-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.tier-feature-check {
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.tier-feature-check i {
  color: #34d399;
  font-size: 10px;
}

.tier-feature-text {
  color: #cbd5e1;
  flex: 1;
}

/* 结算比例条 */
.tier-feature-rate-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  margin-top: 4px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.1);
  border-radius: 10px;
}

.tier-feature-rate-icon {
  width: 24px;
  height: 24px;
  background: rgba(251, 191, 36, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tier-feature-rate-icon i {
  color: #fbbf24;
  font-size: 11px;
}

.tier-feature-rate-text {
  color: #cbd5e1;
  font-size: 13px;
}

.tier-feature-rate-value {
  margin-left: auto;
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
}

/* 选择按钮 */
.btn-tier-select {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-tier-select:active {
  transform: scale(0.96);
}

/* [可修改] 基础版按钮 */
.btn-tier-basic {
  background: #334155;
  border: 1px solid #475569;
  color: #ffffff;
}

/* [可修改] 尊享版按钮 */
.btn-tier-premium {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

.btn-tier-premium:active {
  box-shadow: 0 6px 28px rgba(251, 191, 36, 0.35);
}

/* QQ 联系区 */
.qq-section {
  padding: 28px 16px 0;
}

.qq-contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  background: var(--gradient-card);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.qq-contact-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.qq-contact-icon i {
  color: #ffffff;
  font-size: 30px;
}

.qq-contact-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.qq-contact-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.qq-contact-number {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 12px;
}

.qq-qr-wrapper {
  width: 176px;
  height: 176px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.qq-qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-copy-qq {
  margin-top: 12px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.btn-copy-qq:active {
  transform: scale(0.95);
}

/* FAQ */
.faq-section {
  padding: 28px 16px 24px;
}

.faq-heading {
  margin-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 12px;
  overflow: hidden;
}

/* [可修改] FAQ 问题 */
.faq-item summary {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* 折叠箭头指示 */
.faq-item summary::after {
  content: '\f107';
  font-family: 'FontAwesome';
  font-size: 12px;
  color: #64748b;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  color: #fbbf24;
}

/* [可修改] FAQ 答案 */
.faq-item p {
  font-size: 13px;
  color: #94a3b8;
  padding: 0 16px 14px;
  line-height: 1.7;
}

/* 对比表 */
.compare-section {
  padding: 24px 16px 0;
}

.compare-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.compare-title-row i {
  color: #f59e0b;
  font-size: 14px;
}

.compare-title-row span {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}

.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compare-col {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compare-col-premium {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.04);
}

.compare-col-head {
  padding: 14px 14px 10px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.compare-hot {
  font-size: 14px;
}

.compare-col-body {
  padding: 12px 14px;
  flex: 1;
}

.compare-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.compare-feature i {
  color: #34d399;
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

.compare-rate-badge {
  margin: 0 14px 14px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

.compare-rate-badge strong {
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
  margin-left: 6px;
}

.compare-rate-premium {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.compare-rate-premium strong {
  color: #f59e0b;
}

/* ==========================================
   管理后台 — Admin Panel
   ========================================== */
.admin-header {
  padding: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
  box-shadow: 0 1px 0 rgba(251, 191, 36, 0.05);
}

.admin-form-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.5);
  padding: 20px;
}

.admin-form-label {
  font-size: 12px;
  color: #94a3b8;
  margin-right: 8px;
}

.btn-comm-type {
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 500;
  background: #334155;
  color: #cbd5e1;
  transition: all var(--transition-fast);
}

.btn-comm-type.active {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.input-admin {
  width: 100%;
  padding: 10px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--border-radius-sm);
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.input-admin:focus {
  border-color: #f59e0b;
}

.input-admin-sm {
  width: 80px;
  padding: 8px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--border-radius-sm);
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.input-admin-sm:focus {
  border-color: #f59e0b;
}

.textarea-admin {
  width: 100%;
  padding: 12px 16px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  resize: vertical;
  line-height: 1.6;
}

.textarea-admin:focus {
  border-color: #f59e0b;
}

.btn-quick-comm {
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  background: #334155;
  color: #fbbf24;
  transition: background var(--transition-fast);
}

.btn-quick-comm:hover {
  background: #475569;
}

.btn-quick-comm.hourly-quick {
  background: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.btn-publish {
  width: 100%;
  padding: 14px;
  background: var(--gradient-amber);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-amber);
  transition: transform var(--transition-fast);
}

.btn-publish:active {
  transform: scale(0.96);
}

.btn-admin-action {
  padding: 16px;
  width: 100%;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color var(--transition-fast);
}

.btn-admin-action:hover {
  border-color: rgba(251, 191, 36, 0.3);
}

/* 管理列表项 */
.admin-item {
  background: rgba(30, 41, 59, 0.6);
  border-radius: var(--border-radius);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.admin-item-avatar {
  width: 36px;
  height: 36px;
  background: #334155;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  flex-shrink: 0;
}

.admin-item-info {
  flex: 1;
  min-width: 0;
}

.admin-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item-meta {
  font-size: 12px;
  color: #94a3b8;
}

.btn-toggle-status {
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
}

.btn-toggle-status.status-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.btn-toggle-status.status-inactive {
  background: #334155;
  color: #94a3b8;
}

.btn-delete {
  color: rgba(248, 113, 113, 0.6);
  font-size: 14px;
  padding: 4px;
}

.btn-delete:hover {
  color: #f87171;
}

/* 设置面板 */
.settings-block {
  background: rgba(30, 41, 59, 0.4);
  border-radius: var(--border-radius);
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.3);
}

.settings-block.premium-block {
  border-color: rgba(251, 191, 36, 0.2);
}

.settings-block-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.settings-block-title.text-amber {
  color: #fbbf24;
}

.settings-block-title.text-white {
  color: #ffffff;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.settings-label {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.settings-faq-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.settings-faq-inputs {
  flex: 1;
}

.btn-save-settings {
  width: 100%;
  padding: 14px;
  background: var(--gradient-amber);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-amber);
  transition: transform var(--transition-fast);
}

.btn-save-settings:active {
  transform: scale(0.96);
}

/* ==========================================
   代理中心 — Agent Center
   ========================================== */
.agent-header {
  padding: 24px 20px 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-avatar {
  width: 64px;
  height: 64px;
  background: var(--gradient-amber);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
  flex-shrink: 0;
}

.agent-earning-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  text-align: center;
}

.agent-earning-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2px;
}

.agent-earning-value {
  font-size: 36px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.3), 0 0 60px rgba(251, 191, 36, 0.1);
}

.agent-rec-item {
  background: rgba(30, 41, 59, 0.6);
  border-radius: var(--border-radius);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.agent-rec-star {
  width: 36px;
  height: 36px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-rec-star i {
  color: #fbbf24;
  font-size: 12px;
}

.agent-rec-info {
  flex: 1;
  min-width: 0;
}

.agent-rec-title {
  font-size: 14px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-rec-meta {
  font-size: 10px;
  color: #64748b;
}

.agent-rec-amount {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
}

/* 结算表单 */
.settle-form-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.5);
  padding: 16px;
}

.settle-form-group {
  margin-bottom: 12px;
}

.settle-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
  display: block;
}

.btn-method {
  flex: 1;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 500;
  background: #334155;
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.btn-method.active.method-wx {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-method.active.method-ali {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-submit-settle {
  width: 100%;
  padding: 14px;
  background: var(--gradient-amber);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-amber);
  transition: transform var(--transition-fast);
}

.btn-submit-settle:active {
  transform: scale(0.95);
}

/* ==========================================
   通用按钮 / 工具类
   ========================================== */
.btn-outline {
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-outline.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.btn-outline.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-outline.btn-muted {
  background: #1e293b;
  color: #cbd5e1;
}

.btn-outline.btn-amber {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.badge-count {
  font-size: 12px;
  color: #64748b;
}

/* 间距工具 */
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-20 {
  margin-bottom: 20px;
}
.px-16 {
  padding-left: 16px;
  padding-right: 16px;
}
.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}
.py-16 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.pt-16 {
  padding-top: 16px;
}
.pb-16 {
  padding-bottom: 16px;
}
.pb-24 {
  padding-bottom: 24px;
}

/* Flex 工具 */
.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.text-center {
  text-align: center;
}
.relative {
  position: relative;
}
.hidden {
  display: none;
}
.shrink-0 {
  flex-shrink: 0;
}

/* ==========================================
   响应式 — Tablet 及以上
   ========================================== */
@media (min-width: 640px) {
  .page {
    max-width: var(--max-width);
    margin: 0 auto;
  }

  .bottom-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
  }

  .tier-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================
   管理后台 — 卡片区分 + 列表分隔（新增）
   ========================================== */

/* 粘贴发布卡片 — 左侧金色强调边 */
.admin-form-card.card-publish {
  border-left: 3px solid rgba(251, 191, 36, 0.35);
  padding-left: 20px;
}

/* 合伙人链接 + 推荐码管理卡片 — 紧凑模式 */
.admin-form-card.card-compact {
  padding: 14px;
}

.admin-form-card.card-compact .flex.items-center.justify-between {
  margin-bottom: 10px;
}

/* 已发布列表 — 顶部分隔 */
.published-section {
  padding-top: 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
}

.published-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.published-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================
   代理中心 — 新增样式
   ========================================== */

/* 收益卡顶部微光 */
.agent-earning-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.25), transparent);
  pointer-events: none;
}

/* 结算表单 — 姓名手机号并排 */
.settle-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.settle-form-row .settle-form-group {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

/* btn-outline btn-amber 增强 */
.btn-outline.btn-amber {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.18);
  transition: all 0.2s ease;
}

.btn-outline.btn-amber:hover {
  background: rgba(251, 191, 36, 0.22);
}

/* 空状态按钮间距 */
.empty-state .btn-outline {
  margin-top: 12px;
}
/* ==========================================
   管理后台 + 代理中心 — 商用级精简布局
   去卡片框、分隔线区分、内容流畅
   ========================================== */

/* --- 顶部栏：标题在上，按钮在下均分 --- */
.admin-header {
  display: block;
  padding: 16px 14px 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.08);
}

.admin-header-row {
  margin-bottom: 10px;
}

.admin-header-row h2 {
  margin-top: 2px;
}

.admin-header-btns {
  display: flex;
  gap: 8px;
}

/* [可修改] 顶部功能按钮 */
.btn-header-action {
  flex: 1;
  padding: 8px 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.15);
  transition: all 0.2s ease;
}

.btn-header-action:active {
  transform: scale(0.96);
}

.btn-header-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.18);
}

.btn-header-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
  border-color: rgba(100, 116, 139, 0.15);
}

/* --- 内容区块：无卡片框 --- */
.content-section {
  padding: 14px 14px;
}

/* [可修改] 区块标签行 */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-label h3 {
  margin: 0;
}

/* --- 分隔线 --- */
.section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0 14px;
}

.section-sub-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin: 14px 0;
}

/* --- 表单内联行 --- */
.form-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.form-label {
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

.form-quick-btns {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

/* --- 两列输入 --- */
.form-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

/* --- 图标按钮 --- */
.btn-icon-only {
  padding: 12px 16px;
  background: #334155;
  border: none;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon-only:active {
  background: #475569;
}

/* --- 一键发布按钮 --- */
.btn-publish {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
  margin-top: 14px;
}

.btn-publish:active {
  transform: scale(0.96);
}

/* --- 已发布列表项 --- */
.admin-item {
  background: rgba(30, 41, 59, 0.4);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(51, 65, 85, 0.25);
  margin-bottom: 8px;
}

.admin-item-avatar {
  width: 34px;
  height: 34px;
  background: #334155;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  flex-shrink: 0;
}

.admin-item-info {
  flex: 1;
  min-width: 0;
}

.admin-item-title {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item-meta {
  font-size: 11px;
  color: #64748b;
}

/* --- 佣金类型按钮 --- */
.btn-comm-type {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: #334155;
  color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-comm-type.active {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* --- 快捷佣金按钮 --- */
.btn-quick-comm {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  background: #334155;
  color: #fbbf24;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-quick-comm:active {
  background: #475569;
}

.btn-quick-comm.hourly-quick {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* --- 代理中心：收益卡 --- */
.agent-earning-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.agent-earning-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
  pointer-events: none;
}

.agent-earning-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2px;
}

.agent-earning-value {
  font-size: 36px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* --- 代理中心：结算表单 --- */
.settle-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.settle-form-group {
  margin-bottom: 12px;
}

.settle-form-half {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.settle-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
  display: block;
}

.btn-method {
  flex: 1;
  padding: 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  background: #334155;
  color: #94a3b8;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-method.active.method-wx {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.btn-method.active.method-ali {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.btn-submit-settle {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
  margin-top: 4px;
}

.btn-submit-settle:active {
  transform: scale(0.96);
}

/* --- 空状态 --- */
.empty-state {
  display: none;
  text-align: center;
  padding: 32px 16px;
  color: #475569;
  font-size: 13px;
}

.empty-state.visible {
  display: block;
}

.empty-state i {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
}

/* --- 通用按钮补充 --- */
.btn-outline {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-outline.btn-amber {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.btn-outline.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.btn-outline.btn-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
}

.badge-count {
  font-size: 11px;
  color: #64748b;
}

/* --- 代码列表 --- */
.code-list {
  font-size: 12px;
}

.code-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  margin-bottom: 6px;
}

.code-list-item .code-val {
  flex: 1;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 1px;
}

.code-list-item .code-discount {
  color: #34d399;
  font-weight: 600;
  font-size: 11px;
}

.code-list-item .code-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.code-list-item .code-status.unused {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.code-list-item .code-status.used {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

/* --- 间距工具 --- */
.mt-12 { margin-top: 12px; }
.ml-auto { margin-left: auto; }

/* ==========================================
   快捷修复：按钮行均分 / 留白 / 分隔线
   ========================================== */

/* 快捷佣金按钮 — 独立一行，四个均分 */
.form-quick-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.form-quick-row .btn-quick-comm {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
}

/* 内容区留白 — 16px 更精致 */
.content-section {
  padding: 16px 16px;
}

/* 分隔线加深一点 */
.section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 16px;
}

.section-sub-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 16px 0;
}

/* 表单行间距微调 */
.form-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* 顶部栏留白统一 */
.admin-header {
  display: block;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

/* 代理中心收益卡外留白 */
#pageAgent .content-section {
  padding: 16px 16px;
}

/* 已发布列表项间距 */
.admin-item {
  background: rgba(30, 41, 59, 0.4);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(51, 65, 85, 0.25);
  margin-bottom: 8px;
}

/* section-heading 间距 */
.section-heading {
  margin-bottom: 14px;
}
