* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #1f2430;
  font-size: 14px;
}
a { color: #2d7df1; text-decoration: none; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: calc(100vh - 58px); }
.side {
  width: 208px; flex-shrink: 0; background: #fff; color: #333a46;
  border-right: 1px solid #e8ecf2; display: flex; flex-direction: column;
  position: sticky; top: 58px; height: calc(100vh - 58px);
}
.brand {
  padding: 16px 18px 14px; font-size: 17px; font-weight: 700; color: #1f2430;
  border-bottom: 1px solid #f0f3f7; display: flex; align-items: center; gap: 8px;
}
.dot-logo {
  width: 26px; height: 26px; border-radius: 7px; background: #ff6a00; color: #fff;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.brand small { display: block; font-size: 11px; font-weight: 400; color: #98a2b3; margin-top: 2px; }
.side nav { padding: 10px 0 8px; flex: 1; overflow-y: auto; }
.side nav > a {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 8px; padding: 9px 12px 9px 4px; border-radius: 7px;
  color: #3c4453; font-size: 13.5px;
}
.side nav > a::before {
  content: ""; width: 13px; height: 13px; flex-shrink: 0; opacity: .5;
  background-image:
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 3px 3px; background-repeat: no-repeat;
  background-position: 3px 3px, 7px 3px, 3px 7px, 7px 7px;
  display: none;
}
.side nav > a.on::before { opacity: 1; }
.ng-ico {
  width: 14px; height: 14px; flex: 0 0 14px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linejoin: round; stroke-linecap: round;
}
.side nav a:hover { background: #fafbfd; color: #ff6a00; }
.nav-group a { display: block; margin: 2px 8px; padding: 9px 12px 9px 34px; border-radius: 7px; color: #3c4453; font-size: 13.5px; }
.nav-group a.on, .side nav > a.on { color: #ff6a00; font-weight: 600; background: #fff2e6; }
.side nav .group {
  padding: 14px 18px 6px; font-size: 11.5px; color: #a3adbd; letter-spacing: .5px;
}
.nav-group { margin: 0; }
.nav-group > summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 12px 12px 6px; font-size: 13px; color: #4a5261; letter-spacing: 0;
  display: flex; align-items: center; gap: 8px;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::before { display: none; content: none; }
.nav-group > summary::after {
  content: ""; width: 7px; height: 7px; margin-left: auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .18s; opacity: .55;
}
.nav-group[open] > summary { color: #ff6a00; font-weight: 600; }
/* 展开但不是当前页所在分组：保持灰色，避免同时出现两个高亮 */
.nav-group[open]:not(:has(a.on)) > summary { color: #4a5261; font-weight: 400; }
.nav-group[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.nav-group > summary:hover { color: #ff6a00; }
.side-foot {
  padding: 12px 18px; border-top: 1px solid #f0f3f7; font-size: 12px;
  display: flex; justify-content: space-between; align-items: center; color: #98a2b3;
}
.side-foot a { color: #ff6a00; text-decoration: none; }

.main { flex: 1; min-width: 0; }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid #e8ecf2;
  display: flex; align-items: center; gap: 20px;
  padding: 0 22px; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 rgba(31, 36, 48, .02);
}
.tb-brand { display: flex; align-items: center; gap: 9px; font-size: 15.5px; color: #1f2430; }
.tb-brand .dot-logo { width: 24px; height: 24px; border-radius: 6px; font-size: 13px; }
.tb-brand b { font-weight: 700; }
.tb-brand i {
  font-style: normal; color: #98a2b3; font-weight: 400; font-size: 13px;
  padding-left: 12px; margin-left: 4px; border-left: 1px solid #e8ecf2;
}
.tb-account { display: flex; align-items: center; gap: 8px; }
.tb-label { color: #98a2b3; font-size: 12.5px; white-space: nowrap; }
.tb-select {
  padding: 7px 10px; border: 1px solid #e0e5ee; border-radius: 6px;
  background: #fff; color: #1f2430; font-size: 13px; font-family: inherit;
  min-width: 190px; cursor: pointer;
}
.tb-select:focus { outline: none; border-color: #ff6a00; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.tb-exit { color: #98a2b3; font-size: 12.5px; text-decoration: none; }
.tb-exit:hover { color: #ff6a00; }
.crumb { font-weight: 600; font-size: 14.5px; color: #1f2430; }
.crumbs { font-weight: 600; }
.topright { color: #98a2b3; font-size: 12.5px; }
.content { padding: 18px 22px 40px; }

/* ---------- 卡片与表格 ---------- */
.card {
  background: #fff; border-radius: 10px; border: 1px solid #edf0f5;
  padding: 18px 20px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #f0f3f7; vertical-align: middle; }
th { background: #fafbfd; color: #5a6472; font-weight: 600; white-space: nowrap; border-bottom: 1px solid #edf0f5; }
td.muted, .muted { color: #98a2b3; }
.nowrap { white-space: nowrap; }

.cover {
  width: 44px; height: 58px; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; text-align: center; line-height: 1.2; padding: 2px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11.5px; background: #f2f4f8; color: #5a6472; margin-right: 4px;
}
.tag.ok { background: rgba(34,197,94,.12); color: #16a34a; }
.tag.warn { background: rgba(255,106,0,.12); color: #d95c00; }
.tag.orange { background: #fff2e8; color: #ff6a00; }

.dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.dot i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.on i { background: #22c55e; }
.dot.off i { background: #f04452; }

.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 8px 16px; border-radius: 6px; font-size: 13.5px;
  background: #ff6a00; color: #fff; font-family: inherit;
}
.btn:hover { background: #e95f00; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.gray { background: #f2f4f8; color: #444c59; }
.btn.gray:hover { background: #e8ecf2; }
.btn.red { background: #f04452; }
.btn.red:hover { background: #d93a47; }
.btn.ghost { background: #fff; border: 1px solid #e0e5ee; color: #444c59; }
.btn.ghost:hover { background: #fafbfd; }
.link { color: #2d7df1; font-size: 12.5px; cursor: pointer; background: none; border: none; padding: 0; font-family: inherit; }
.link + .link { margin-left: 10px; }

input[type=text], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #dfe4ec; border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fff; color: #1f2430;
}
textarea { min-height: 110px; font-family: Consolas, monospace; font-size: 12.5px; }
select { cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #ff6a00; }
input::placeholder, textarea::placeholder { color: #c3c9d4; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12.5px; color: #5a6472; margin-bottom: 6px; }
.req { color: #f04452; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
/* 验证码一行：输入框 + 发送按钮 */
.code-row { display: flex; gap: 10px; align-items: center; }
.code-row input { flex: 1; }
.code-row .btn { flex: 0 0 auto; white-space: nowrap; }
.hint-sm { font-size: 12px; color: #98a2b3; margin-top: 6px; }

/* ---------- 账户表单：标签在左、输入框在右（对齐参考后台） ---------- */
.form-h { display: flex; align-items: flex-start; margin-bottom: 20px; }
.form-h > label {
  flex: 0 0 96px; width: 96px; text-align: right; padding-top: 11px;
  font-size: 13px; color: #4a5261; margin-right: 10px; line-height: 1.45;
}
.form-h > label::after { content: "："; }
.form-h > label .req { color: #f04452; margin-right: 2px; }
.form-h > .field { flex: 1; min-width: 0; }
.form-h input[type=text], .form-h input[type=password] { height: 40px; padding: 0 12px; }
.form-h .field .hint-sm { margin-top: 10px; font-size: 12px; color: #9aa4b2; line-height: 1.55; }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 42px !important; }
.pwd-wrap .eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 32px; border: none; background: none; cursor: pointer;
  color: #a3acb9; display: flex; align-items: center; justify-content: center;
}
.pwd-wrap .eye:hover, .pwd-wrap .eye.on { color: #ff6a00; }
.code-row .btn.send {
  background: #f2f4f8; color: #6b7684; border: 1px solid #e3e8f0;
  height: 40px; padding: 0 16px; font-weight: 400;
}
.code-row .btn.send:hover { background: #e9edf4; color: #4a5261; }
.code-row .btn.send:disabled { opacity: .7; cursor: default; }
.code-msg { font-size: 12px; margin-top: 10px; line-height: 1.45; display: none; }
.code-msg.ok, .code-msg.err { display: block; }
.code-msg.ok { color: #16a34a; }
.code-msg.err { color: #f04452; }
/* 邮箱账号下方预留提示位（高 28px），提示出现时不顶动下方；用 padding 放 10px 间距，避免 margin 折叠把整行推下去 */
.msg-slot { min-height: 28px; }
.msg-slot .code-msg { margin-top: 0; padding-top: 10px; }
.code-row .btn.send { min-width: 104px; }
/* 提示文字：距上方输入框 10px；行下边距与普通行一致（20px） */
.form-h.has-msg { margin-bottom: 20px; }
/* 单选 / 勾选组（回传规则等表单用）：每项固定 20px 高，首行文字与左侧标签同一基线 */
.radio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 0; }
.radio { display: inline-flex; align-items: center; gap: 6px; height: 20px; font-size: 13px; color: #4a5261; cursor: pointer; font-weight: 400; white-space: nowrap; }
.radio input[type=radio], .radio input[type=checkbox] {
  width: 14px; height: 14px; margin: 0; accent-color: #ff6a00; cursor: pointer;
}
.form-h input[type=number] { height: 40px; padding: 0 12px; max-width: 160px; }
/* 回传部分订单：红字提示、问号、行内输入、金额区间行 */
.hide { display: none !important; }
.tip-red { font-size: 13px; color: #f04452; margin-left: 2px; }
.q-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; background: #8d97a8; color: #fff;
  font-size: 11px; cursor: help; margin-left: 2px;
}
.inline-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0; min-height: 40px; font-size: 13px; color: #4a5261; }
.inline-row input[type=number] { width: 80px; height: 32px; max-width: 80px; padding: 0 10px; }
.form-h .field select { height: 40px; }
.btn.green { background: #0d7a63; color: #fff; }
.btn.green:hover { background: #0a6752; }
.range-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; font-size: 13px; color: #4a5261; }
.range-row .rg-min, .range-row .rg-max { width: 96px !important; flex: 0 0 96px; height: 36px; padding: 0 10px; }
.range-row .rg-modes { display: inline-flex; align-items: center; gap: 12px; }
.range-row .link { margin-left: auto; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 列表页顶部搜索条（对齐参考后台） ---------- */
.toolbar {
  background: #fff; border: 1px solid #edf0f5; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 16px;
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.toolbar .field { min-width: 170px; }
.toolbar .field label { display: block; font-size: 12.5px; color: #5a6472; margin-bottom: 6px; }
.toolbar .spacer { flex: 1; }

/* ---------- 概览数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid #edf0f5; border-radius: 10px; padding: 16px 18px;
}
.stat .k { font-size: 12.5px; color: #98a2b3; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 6px; }
.stat .v small { font-size: 13px; font-weight: 400; color: #98a2b3; margin-left: 4px; }

.empty { text-align: center; color: #a3adbd; padding: 36px 0; font-size: 13px; }
.hint { font-size: 12.5px; color: #98a2b3; line-height: 1.8; }
.alert { background: #fff2f3; color: #c0392b; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.notice { background: #fff8e8; color: #b26a00; border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; font-size: 12.5px; }
.login-hint { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef1f6; color: #8a94a6; font-size: 12.5px; line-height: 1.9; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input { width: 230px; padding: 8px 11px; border: 1px solid #e0e5ee; border-radius: 6px; font-size: 13px; font-family: inherit; }
.search-form input:focus { outline: none; border-color: #ff6a00; }
.search-form .muted { margin-left: 6px; font-size: 12.5px; }

/* ---------- 轻提示（白色小卡片，2 秒自动消失） ---------- */
.toast {
  position: fixed; left: 50%; top: 50%;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: #1b2233;
  font-size: 17px; line-height: 24px; letter-spacing: .2px;
  padding: 20px 30px 20px 22px; border-radius: 14px;
  border: 1px solid rgba(16,24,40,.05);
  box-shadow: 0 20px 50px -14px rgba(16,24,40,.32), 0 6px 16px rgba(16,24,40,.08);
  z-index: 80; opacity: 0; pointer-events: none;
  transform: translate(-50%, -46%) scale(.96);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.9,.3,1.1);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast-ico {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(22,163,74,.30);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 抽屉 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(16,24,40,.35); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 430px; max-width: 92vw;
  background: #fff; z-index: 50; box-shadow: -8px 0 30px rgba(16,24,40,.12);
  transform: translateX(102%); transition: transform .22s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer.wide { width: 520px; }
/* 回传规则抽屉：四项回传内容要排一行，需要更宽 */
.drawer.xwide { width: 620px; }
.drawer-head {
  padding: 18px 22px; border-bottom: 1px solid #f0f3f7;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 { margin: 0; font-size: 16px; }
.drawer-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.drawer-foot {
  padding: 14px 22px; border-top: 1px solid #f0f3f7;
  display: flex; justify-content: flex-end; gap: 10px;
}
.close-x { background: none; border: none; font-size: 20px; color: #98a2b3; cursor: pointer; line-height: 1; }

/* ---------- 剧集卡片 ---------- */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ep-card {
  border: 1px solid #edf0f5; border-radius: 8px; padding: 9px 11px; background: #fff;
  font-size: 12.5px; min-height: 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ep-card:hover { border-color: #ff6a00; box-shadow: 0 3px 12px rgba(255,106,0,.14); transform: translateY(-1px); }
.ep-card .no { font-weight: 600; color: #1f2430; font-size: 12.5px; }
.ep-card .free { color: #ff6a00; margin-left: 7px; font-size: 11.5px; }
.ep-card .paid { color: #98a2b3; margin-left: 7px; font-size: 11.5px; }
.ep-card .audit { margin-top: 4px; color: #16a34a; font-size: 11.5px; }

.tier-row { display: grid; grid-template-columns: 70px 1fr 1fr 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #edf0f5; font-size: 12.5px; }
.tier-row b { color: #1f2430; font-weight: 600; }
.tier-head { color: #98a2b3; font-size: 12px; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f2937, #38435a);
}
.login-card {
  width: 348px; background: #fff; border-radius: 12px; padding: 30px 28px 26px;
  box-shadow: 0 14px 44px rgba(0,0,0,.28);
}
.login-card h1 { font-size: 19px; margin: 0 0 4px; }
.login-card p { font-size: 12.5px; color: #98a2b3; margin: 0 0 22px; }
.login-card .btn { width: 100%; padding: 11px; font-size: 14px; }

code {
  background: #f2f4f8; border-radius: 4px; padding: 1px 5px;
  font-family: Consolas, monospace; font-size: 12px;
}

/* ---------- 帮助中心 ---------- */
.help-list { display: grid; gap: 12px; margin-top: 10px; }
.help-list > div { font-size: 13px; color: #3d4757; line-height: 1.9; padding-left: 12px; border-left: 2px solid #ffe0c7; }
.help-list b { color: #ff6a00; }

/* ---------- 充值模板：商品卡片 ---------- */
.seg-tabs { display: inline-flex; background: #fff; border: 1px solid #e6e9ef; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.seg-tabs a { padding: 9px 22px; font-size: 13px; color: #4a5261; background: #f7f8fa; text-decoration: none; cursor: pointer; border-right: 1px solid #e6e9ef; }
.seg-tabs a:last-child { border-right: 0; }
.seg-tabs a.on { background: #fff; color: #ff6a00; font-weight: 600; box-shadow: inset 0 -2px 0 #ff6a00; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.oc-item { display: flex; flex-direction: column; gap: 8px; }

/* 卡面 —— 还原小程序付费弹窗的商品卡 */
.oc-stage { position: relative; height: 170px; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.oc-stage .oc-main { flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 14px 20px 0; min-width: 0; }
.oc-stage .oc-price { display: flex; align-items: baseline; line-height: 1; }
.oc-stage .oc-price span { font-size: 20px; font-weight: 700; margin-right: 1px; }
.oc-stage .oc-amt { width: 150px; height: 44px; font-size: 34px; font-weight: 700; letter-spacing: -.5px;
  background: transparent; border: 0; padding: 0; color: inherit; }
.oc-stage .oc-amt:focus { outline: none; border-bottom: 1px dashed rgba(0,0,0,.18); }
.oc-stage .oc-title { width: 100%; height: 24px; margin-top: 6px; background: transparent; border: 0; padding: 0;
  font-size: 14px; font-weight: 500; }
.oc-stage .oc-sub { width: 100%; height: 24px; margin-top: 1px; background: transparent; border: 0; padding: 0; font-size: 15px; }
.oc-stage .oc-notein { width: 100%; height: 22px; margin-top: 2px; background: transparent; border: 0; padding: 0;
  font-size: 13px; color: #ff5a5a; }
.oc-stage .oc-title:focus, .oc-stage .oc-sub:focus, .oc-stage .oc-notein:focus { outline: none;
  border-bottom: 1px dashed rgba(255,255,255,.35); }
.oc-stage .oc-band { height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.oc-stage .oc-footerin { width: 92%; height: 100%; background: transparent; border: 0; text-align: center;
  font-size: 14px; font-weight: 600; padding: 0 10px; }
.oc-stage .oc-footerin:focus { outline: none; }
.oc-stage .oc-tag { position: absolute; left: 0; top: 0; width: 132px; height: 30px; border: 0;
  border-radius: 0 0 10px 0; padding: 0 10px; font-size: 13px; font-weight: 700; }
.oc-stage .oc-tag:focus { outline: none; opacity: .9; }
.oc-stage .oc-aud { position: absolute; right: 10px; bottom: 50px; font-size: 11px; padding: 2px 7px;
  border-radius: 3px; }

/* 亮色卡 */
.oc-item.light .oc-stage { background: linear-gradient(155deg, #fff7e6 0%, #ffe9c2 52%, #ffe0b8 100%);
  border: 1.5px solid #f2d49a; color: #3a2a12; }
.oc-item.light .oc-band { background: linear-gradient(90deg, #ff6f6f 0%, #ffab8a 100%); }
.oc-item.light .oc-band .oc-footerin { color: #fff; }
.oc-item.light .oc-tag { background: #ff5a8a; color: #fff; }
.oc-item.light .oc-tag::placeholder { color: rgba(255,255,255,.72); font-weight: 500; }
.oc-item.light .oc-aud { background: rgba(90,60,20,.10); color: #7a5a28; }
.oc-item.light .oc-title::placeholder, .oc-item.light .oc-sub::placeholder { color: #b39a71; }
.oc-item.light .oc-notein::placeholder { color: #e7a9a9; }

/* 暗色卡 */
.oc-item.dark .oc-stage { background: linear-gradient(150deg, #4b4568 0%, #2b2a3d 58%, #3d3556 100%);
  border: 1.5px solid #2b2a3d; color: #fff; }
.oc-item.dark .oc-band { background: #ffe6ab; }
.oc-item.dark .oc-band .oc-footerin { color: #6b4a12; }
.oc-item.dark .oc-tag { background: #ffc440; color: #6b4a00; }
.oc-item.dark .oc-tag::placeholder { color: rgba(107,74,0,.6); font-weight: 500; }
.oc-item.dark .oc-aud { background: rgba(255,255,255,.14); color: #e6e3f2; }
.oc-item.dark .oc-title::placeholder, .oc-item.dark .oc-sub::placeholder { color: #a09cb8; }
.oc-item.dark .oc-notein::placeholder { color: #eda3a3; }

/* 卡下编辑条：默认 / 商品ID / 集数 / 折扣 / 赠送 / 到账 / 亮暗 / 删除 */
.oc-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 2px 6px;
  font-size: 12px; color: #6b7684; }
.oc-bar label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.oc-bar input[type="text"], .oc-bar input[type="number"] { width: 66px; height: 26px; font-size: 12px; padding: 0 6px; }
.oc-bar .oc-pid input { width: 82px; }
.oc-bar .oc-kc b { color: #ff6a00; font-size: 13px; }
.oc-bar .oc-theme { width: 84px; height: 26px; font-size: 12px; padding: 0 4px 0 8px; }
.oc-bar .del { margin-left: auto; color: #f04452; background: none; border: 0; font-size: 12px; cursor: pointer; }


.pk-mask { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 90; display: none; }
.pk-mask.open { display: block; }
.pk-modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1180px; max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px); background: #fff; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; }
.pk-head { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px;
  background: #2f3b52; color: #fff; font-size: 14px; border-radius: 4px 4px 0 0; }
.pk-head .pk-x { background: none; border: 0; color: #cfd6e3; font-size: 20px; cursor: pointer; line-height: 1; }
.pk-filter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; padding: 18px 22px 6px; }
.pk-filter .pk-f { display: flex; align-items: center; gap: 10px; }
.pk-filter .pk-f label { width: 84px; flex: none; font-size: 13px; color: #4a5261; text-align: right; }
.pk-filter .pk-f input, .pk-filter .pk-f select { flex: 1; height: 34px; min-width: 0; }
.pk-btns { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.pk-tablewrap { flex: 1; overflow: auto; margin: 10px 22px 0; border: 1px solid #eceef2; }
.pk-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pk-table thead th { position: sticky; top: 0; background: #fafbfc; color: #3d4757; font-weight: 600; padding: 10px 8px;
  border-bottom: 1px solid #eceef2; white-space: nowrap; }
.pk-table tbody td { padding: 9px 8px; border-bottom: 1px solid #f2f4f8; color: #2b3242; white-space: nowrap; }
.pk-table tbody tr:hover { background: #fffaf5; }
.pk-pick { background: #ff5a5f; color: #fff; border: 0; border-radius: 3px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.pk-pager { display: flex; align-items: center; gap: 14px; padding: 12px 22px 16px; font-size: 12px; color: #6b7684; flex-wrap: wrap; }
.pk-pager select { height: 28px; display: inline-block; width: 66px; }
.pk-pager .pk-go { width: 52px; height: 28px; display: inline-block; }
.pk-pager .pk-pages { display: inline-flex; gap: 4px; }
.pk-pager .pk-pages a { display: inline-block; min-width: 30px; height: 28px; line-height: 28px; text-align: center;
  border: 1px solid #dfe4ea; border-radius: 3px; color: #4a5261; text-decoration: none; padding: 0 6px; }
.pk-pager .pk-pages a.on { background: #2f3b52; border-color: #2f3b52; color: #fff; }
.pk-pager .pk-pages a.off { color: #b6bcc7; }
.pk-pager > span { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pk-pager select { flex: 0 0 auto; width: 66px; min-width: 66px; }
.pk-pager .pk-pages { flex-wrap: wrap; }
.pk-pager select { width: 80px; min-width: 80px; padding: 0 4px 0 8px; }
.pk-pager .pk-pages { display: inline-flex; }
/* 卡面细节微调：让价格行避开左上角标、数字垂直居中 */
.oc-stage { height: 186px; }
.oc-stage .oc-main { padding: 34px 20px 4px; justify-content: center; }
.oc-stage .oc-price { align-items: center; }
.oc-stage .oc-price span { font-size: 21px; line-height: 1; }
.oc-stage .oc-amt { height: 46px; line-height: 46px; font-size: 36px; }
.oc-stage .oc-tag { height: 30px; line-height: 30px; }
.oc-stage .oc-aud { bottom: 56px; }
.oc-stage .oc-band { height: 46px; }
/* 卡面高度与底栏比例，向手机端卡片看齐 */
.oc-stage { height: 252px; }
.oc-stage .oc-main { padding: 36px 20px 10px; }
.oc-stage .oc-band { height: 54px; }
.oc-stage .oc-aud { bottom: 64px; }
.oc-stage .oc-title { margin-top: 10px; }
.oc-stage .oc-tag { width: 136px; }
/* 卡片尺寸对齐手机弹窗：宽高比约 1.38:1，每列不超过 400px，超宽屏也不拉长 */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 400px)); gap: 22px 18px; }
.oc-stage { height: auto; aspect-ratio: 1.38; }
.oc-stage .oc-main { padding: 30px 16px 8px; }
.oc-stage .oc-price span { font-size: 19px; }
.oc-stage .oc-amt { width: 132px; height: 42px; line-height: 42px; font-size: 31px; }
.oc-stage .oc-title { height: 22px; font-size: 13.5px; margin-top: 8px; }
.oc-stage .oc-sub { height: 22px; font-size: 14px; }
.oc-stage .oc-notein { height: 20px; font-size: 12.5px; }
.oc-stage .oc-band { height: 46px; }
.oc-stage .oc-footerin { font-size: 13.5px; }
.oc-stage .oc-tag { width: 120px; height: 28px; font-size: 12.5px; }
.oc-stage .oc-aud { bottom: 54px; right: 9px; font-size: 11px; padding: 2px 6px; }
.oc-bar { gap: 6px 12px; font-size: 11.5px; padding: 0 4px; }
.oc-bar input[type="text"], .oc-bar input[type="number"] { width: 58px; height: 25px; }
.oc-bar .oc-pid input { width: 74px; }
.oc-bar .oc-theme { width: 78px; height: 25px; }
/* 卡内文案靠上排布，贴近手机卡的上下比例 */
.oc-stage .oc-main { justify-content: flex-start; padding: 44px 16px 0; }
.oc-stage .oc-price { margin-top: 2px; }
/* 用户指定：每张卡 200px 宽、100px 高 */
.offer-grid { grid-template-columns: repeat(auto-fill, 200px); gap: 16px 14px; }
.oc-stage { height: 100px; aspect-ratio: auto; border-radius: 8px; }
.oc-stage .oc-main { padding: 22px 10px 0; }
.oc-stage .oc-price span { font-size: 11px; margin-right: 0; }
.oc-stage .oc-amt { width: 76px; height: 24px; line-height: 24px; font-size: 19px; letter-spacing: 0; }
.oc-stage .oc-title { height: 13px; font-size: 9.5px; margin-top: 4px; }
.oc-stage .oc-sub { height: 13px; font-size: 10px; }
.oc-stage .oc-notein { height: 12px; font-size: 9px; }
.oc-stage .oc-band { height: 26px; }
.oc-stage .oc-footerin { font-size: 10px; padding: 0 4px; }
.oc-stage .oc-tag { width: 76px; height: 17px; line-height: 17px; font-size: 9px; padding: 0 6px; border-radius: 0 0 6px 0; }
.oc-stage .oc-aud { display: none; }
.oc-bar { font-size: 9.5px; gap: 4px 8px; padding: 0 2px; }
.oc-bar label { gap: 3px; }
.oc-bar input[type="text"], .oc-bar input[type="number"] { width: 40px; height: 20px; font-size: 9.5px; padding: 0 4px; }
.oc-bar .oc-pid input { width: 52px; }
.oc-bar .oc-theme { width: 56px; height: 20px; font-size: 9.5px; padding: 0 2px 0 4px; }
.oc-bar .oc-kc b { font-size: 10px; }
/* 100px 高卡面：只留 价格 + 副文案 + 底栏，其余字段挪到卡下 */
.oc-stage .oc-main { padding: 20px 10px 0; }
.oc-stage .oc-sub { height: 14px; font-size: 10px; margin-top: 2px; }
.oc-stage .oc-pid input, .oc-bar label.w input { width: 62px; }
.oc-bar label.w { flex: 1 1 62px; }
.oc-bar { gap: 5px 8px; line-height: 1.2; }
/* 100px 高卡面：只留 价格 + 副文案 + 底栏，其余字段挪到卡下 */
.oc-stage .oc-main { padding: 20px 10px 0; }
.oc-stage .oc-sub { height: 14px; font-size: 10px; margin-top: 2px; }
.oc-stage .oc-pid input, .oc-bar label.w input { width: 62px; }
.oc-bar label.w { flex: 1 1 62px; }
.oc-bar { gap: 5px 8px; line-height: 1.25; }
.oc-bar .oc-pid, .oc-bar .oc-kc, .oc-bar .oc-theme { flex: 0 0 auto; }

/* 新建推广链成功后的轻提示：白色小卡片，1.5 秒自动消失 */
.chain-toast{position:fixed;left:50%;top:84px;transform:translateX(-50%);background:#fff;border:1px solid #ffe1c7;box-shadow:0 12px 28px rgba(0,0,0,.12);border-radius:12px;padding:12px 22px;font-size:13.5px;color:#1f2430;z-index:3000;opacity:1;transition:opacity .45s ease,transform .45s ease;pointer-events:none}
.chain-toast.out{opacity:0;transform:translateX(-50%) translateY(-6px)}
/* 失败提示：同一张白色小卡片，图标和描边换成红色 */
.toast-ico.err{background:linear-gradient(180deg,#f87171,#dc2626);box-shadow:0 2px 8px rgba(220,38,38,.30)}

/* 危险操作确认卡：替代浏览器原生 confirm */
.confirm{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;background:rgba(16,24,40,.42);opacity:0;pointer-events:none;transition:opacity .18s ease}
.confirm.open{opacity:1;pointer-events:auto}
.confirm-card{background:#fff;border-radius:14px;padding:26px 26px 20px;min-width:300px;max-width:420px;border:1px solid rgba(16,24,40,.05);box-shadow:0 24px 60px -18px rgba(16,24,40,.40);transform:scale(.96);transition:transform .18s cubic-bezier(.2,.9,.3,1.1)}
.confirm.open .confirm-card{transform:scale(1)}
.confirm-text{font-size:15px;line-height:1.7;color:#1b2233;margin-bottom:22px}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px}
.confirm-actions .btn{padding:8px 18px;font-size:13px}

/* 页面里的标记型提示：只负责触发卡片，本身不占位 */
.auto-toast{display:none}