/* ═══════════════════════════════════════════════
   推广计划 · 用户端（网站）
   松烟风格：宣纸底 / 赭金描边 / 墨色文字 / 宋体题字
   ═══════════════════════════════════════════════ */
#promoter-view {
  min-height: 100vh;
  background: linear-gradient(160deg, #FBF3DE 0%, #F0E1C0 100%);
  overflow-y: auto;
}

.pro-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px 64px;
  box-sizing: border-box;
  font-family: 'Noto Sans SC', sans-serif;
  color: #1a1208;
}

/* ── 顶部条 ── */
.pro-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pro-back-btn {
  border: 1px solid #A9803E;
  background: linear-gradient(180deg, #fbf3de, #f0e1c0);
  color: #3d3020;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Noto Serif SC', serif;
  transition: background 0.15s ease;
}
.pro-back-btn:hover { background: #f5ead0; }
.pro-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
}

/* ── 标签切换 ── */
.pro-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pro-tab {
  border: 1px solid #A9803E;
  background: #FDF8EC;
  color: #3d3020;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Noto Serif SC', serif;
  transition: background 0.15s ease, color 0.15s ease;
}
.pro-tab:hover { background: #f5ead0; }
.pro-tab.active {
  background: linear-gradient(180deg, #c8922a, #A9803E);
  color: #fdf8ec;
  border-color: #8a6526;
}

/* ── 统计卡 ── */
.pro-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.pro-card {
  background: #FDF8EC;
  border: 1px solid #A9803E;
  border-radius: 10px;
  padding: 14px 16px;
}
.pro-card-label {
  font-size: 13px;
  color: #6b5c40;
  margin-bottom: 6px;
}
.pro-card-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1208;
}
.pro-card-sub {
  font-size: 12px;
  color: #6b5c40;
  margin-top: 6px;
}

/* ── 提示条 ── */
.pro-hint {
  background: #FDF8EC;
  border: 1px dashed rgba(169, 128, 62, 0.55);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #3d3020;
  margin-bottom: 16px;
  line-height: 1.7;
}
.pro-hint-off {
  border-color: #a63a2a;
  color: #a63a2a;
}

/* ── 推广工具 ── */
.pro-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pro-panel {
  background: #FDF8EC;
  border: 1px solid #A9803E;
  border-radius: 12px;
  padding: 18px;
}
.pro-panel h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  margin: 0 0 12px;
  color: #1a1208;
  letter-spacing: 1px;
}
.pro-refcode {
  font-family: 'Noto Serif SC', serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #8a6526;
  text-align: center;
  padding: 12px 0;
  word-break: break-all;
}
.pro-link {
  word-break: break-all;
  font-size: 13px;
  color: #3d3020;
  background: #f5ead0;
  border: 1px solid rgba(169, 128, 62, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.pro-btn {
  border: 1px solid #8a6526;
  background: linear-gradient(180deg, #c8922a, #A9803E);
  color: #fdf8ec;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Noto Serif SC', serif;
  transition: filter 0.15s ease;
}
.pro-btn:hover { filter: brightness(1.06); }
.pro-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.pro-btn-ghost {
  background: #FDF8EC;
  color: #3d3020;
  border-color: #A9803E;
}
.pro-btn-ghost:hover { background: #f5ead0; filter: none; }
.pro-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pro-poster-preview {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 12px;
  border: 1px solid rgba(169, 128, 62, 0.45);
  border-radius: 10px;
  background: #f5ead0;
}

/* ── 列表表格 ── */
.pro-table-wrap {
  background: #FDF8EC;
  border: 1px solid #A9803E;
  border-radius: 12px;
  overflow: hidden;
}
.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pro-table th {
  background: linear-gradient(180deg, #f3e6c8, #eedcb6);
  color: #3d3020;
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(169, 128, 62, 0.45);
  white-space: nowrap;
}
.pro-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(169, 128, 62, 0.18);
  color: #1a1208;
  vertical-align: middle;
}
.pro-table tr:last-child td { border-bottom: none; }
.pro-neg { color: #a63a2a; font-weight: 600; }
.pro-tag {
  display: inline-block;
  border: 1px solid rgba(169, 128, 62, 0.55);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 12px;
  color: #3d3020;
  white-space: nowrap;
}
.pro-tag-off { color: #a63a2a; border-color: #a63a2a; }

/* ── 空态 ── */
.pro-empty {
  text-align: center;
  padding: 34px 16px 28px;
  color: #6b5c40;
}
.pro-empty img {
  width: 220px;
  max-width: 70%;
  border-radius: 10px;
  border: 1px solid rgba(169, 128, 62, 0.35);
  margin-bottom: 12px;
}
.pro-empty-text { font-size: 14px; }

/* ── 分页 ── */
.pro-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
  color: #6b5c40;
}

/* ── 加载与锁定 ── */
.pro-loading, .pro-locked {
  text-align: center;
  padding: 60px 20px;
  color: #6b5c40;
  font-size: 15px;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 1px;
}

/* ── 移动端 ── */
@media (max-width: 900px) {
  .pro-cards { grid-template-columns: repeat(2, 1fr); }
  .pro-tools { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pro-page { padding: 12px 12px 48px; }
  .pro-title { font-size: 20px; }
  .pro-table-wrap { overflow-x: auto; }
  .pro-table { min-width: 620px; }
  .pro-refcode { font-size: 30px; letter-spacing: 5px; }
}

/* 自助申请与身份设置：独立弹窗，标题/关闭与操作区保持可见。 */
.pro-dialog { position:fixed; inset:0; margin:auto; width:min(480px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); padding:0; border:1px solid var(--paper3,#ddcfb5); border-radius:18px; background:var(--paper,#fffaf0); color:var(--ink,#253e39); box-shadow:0 24px 80px #0004; }
.pro-dialog::backdrop { background:#171b1a80; }
html[data-theme] .pro-dialog { --paper:#fffaf0; --paper3:#ddcfb5; --ink:#253e39; background:#fffaf0!important; color:#253e39!important; border-color:#ddcfb5!important; }
.pro-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px 12px; }
.pro-dialog h2 { margin:0; font:700 22px/1.5 'Noto Serif SC',serif; }
.pro-dialog header button { flex:none; width:36px; height:36px; border:1px solid var(--paper3,#ddcfb5); border-radius:10px; background:transparent; color:inherit; font-size:22px; cursor:pointer; }
.pro-dialog-body { padding:0 22px; max-height:calc(100dvh - 220px); overflow:auto; line-height:1.9; font-size:15px; }
.pro-dialog-body p { margin:12px 0; }
.pro-dialog footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; padding:16px 22px 22px; }
.pro-dialog button:disabled { opacity:.6; cursor:wait; }
.pro-dialog-error { color:#a83a45; min-height:1em; }
.pro-dialog-error:empty { display:none; }
.pro-recruit-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:12px 0; }
.pro-recruit-steps span { text-align:center; font-size:12px; padding:12px 4px; border:1px solid var(--paper3,#ddcfb5); border-radius:10px; }
.pro-policy-list { padding-left:22px; line-height:2; }
.pro-exit-zone { border-top:1px solid var(--paper3,#ddcfb5); margin-top:24px; padding-top:20px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.pro-btn.pro-btn-danger { background:#fff5f3; color:#a83a45; border-color:#dca9aa; }
@media(max-width:600px) { .pro-dialog h2 { font-size:19px; } .pro-dialog header { padding:16px; } .pro-dialog-body { padding:0 16px; } .pro-dialog footer { padding:14px 16px 18px; } .pro-dialog footer .pro-btn { flex:1; } .pro-exit-zone { align-items:flex-start; flex-direction:column; } .pro-tabs { flex-wrap:wrap; } }
@media(max-width:360px) { .pro-dialog footer .pro-btn { min-width:0; padding:10px 8px; font-size:13px; white-space:nowrap; } }

/* 当前档位：浅纸底、金属描边；文字同时区分三档，不只依靠颜色。 */
.pro-tier-banner { margin:0 0 16px; padding:16px 18px; border:1px solid #d8c39b; border-radius:14px; background:#fffaf0; color:#3d3020; }
.pro-tier-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; font-size:13px; }
.pro-tier-badge { display:inline-flex; align-items:center; gap:5px; padding:7px 14px; border:1px solid; border-radius:999px; font-size:17px; line-height:1.5; }
.pro-tier-bronze { color:#80502d; border-color:#c69b75; background:linear-gradient(135deg,#fcf1e5,#f2dfcb); }
.pro-tier-silver { color:#435d72; border-color:#a9bdcc; background:linear-gradient(135deg,#f8fbfd,#e6edf3); }
.pro-tier-gold { color:#79571b; border-color:#c6a55f; background:linear-gradient(135deg,#fff9e5,#f3e2af); }
.pro-tier-banner p { margin:10px 0 0; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
@media(max-width:600px) { .pro-tier-banner { padding:12px 14px; } .pro-tier-badge { font-size:16px; } }

.pro-template-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0;max-height:360px;overflow:auto; }
.pro-template-grid button { padding:6px;border:1px solid #d8c39b;border-radius:10px;background:#fffaf0;color:#3d3020;cursor:pointer;min-width:0; }
.pro-template-grid button[aria-pressed=true] { border:2px solid #a9803e; }
.pro-template-grid img { width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:6px; }
.pro-template-grid span { display:block;font-size:12px;padding:5px 0;overflow-wrap:anywhere; }

/* 招募介绍保持简短，首屏包含完整文案及申请按钮。 */
.pro-recruitment-dialog .pro-dialog-body { line-height:1.65; max-height:none; }
.pro-recruitment-dialog h3 { font-size:20px; line-height:1.5; margin:4px 0 14px; color:#765b2e; }
.pro-recruitment-dialog .pro-dialog-body p { margin:10px 0; }
.pro-recruitment-dialog footer { padding-top:12px; }
@media(max-height:620px) { .pro-recruitment-dialog header { padding:12px 16px 8px; } .pro-recruitment-dialog h3 { margin:0 0 8px; font-size:18px; } .pro-recruitment-dialog .pro-dialog-body { font-size:14px; line-height:1.55; } .pro-recruitment-dialog .pro-dialog-body p { margin:8px 0; } .pro-recruitment-dialog footer { padding:10px 16px 14px; } }
