/* ===========================================================
 *  套餐 / 功能点相关样式（平台后台与企业端共用）
 * =========================================================== */

/* ---------- 功能点勾选框（平台编辑套餐） ---------- */
.feat-picker {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  max-height: 300px;
  overflow: auto;
  background: #FBFCFE;
}
.feat-group + .feat-group { margin-top: 12px; }
.feat-group-t {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 6px;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  transition: .15s;
}
.feat-item:hover { border-color: #BFD3F7; background: var(--primary-soft); }
.feat-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.feat-item.core { background: #F7F9FD; }
.feat-item input { accent-color: var(--primary); }
.feat-ico { font-size: 14px; line-height: 1; }
.feat-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-name i {
  font-style: normal;
  font-size: 10px;
  color: var(--primary);
  background: #E7EFFE;
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 4px;
}

/* ---------- 套餐卡片（企业端选套餐 / 平台概览） ---------- */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.plan-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  transition: .16s;
}
.plan-card:hover { border-color: #BFD3F7; box-shadow: 0 10px 24px -16px rgba(16, 24, 40, .28); }
.plan-card.on { border-color: var(--primary); background: linear-gradient(180deg, #F7FAFF, #fff); }
.plan-card .pc-hd { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.plan-card .pc-name { font-weight: 700; font-size: 14.5px; }
.plan-card .pc-price { font-size: 24px; font-weight: 700; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.plan-card .pc-price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan-card .pc-desc { font-size: 12px; color: var(--muted); min-height: 32px; }
.plan-card .pc-meta { font-size: 12px; color: var(--ink2); margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.plan-card .pc-cur {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 0 13px 0 10px;
}
.plan-feat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  max-height: 76px;
  overflow: hidden;
}
.plan-feat-list span {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #F1F5FC;
  color: var(--ink2);
}
.plan-feat-list span.off { background: #F7F7F9; color: #B6BFCE; text-decoration: line-through; }

/* ---------- 升级入口横幅 ---------- */
.plan-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #F3DDBB;
  background: linear-gradient(90deg, #FFF9EE, #FFFDF8);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #7A4A05;
}
.plan-banner .pb-ico { font-size: 18px; }
.plan-banner b { color: #6B3D00; }
.plan-banner.trial { border-color: #CFE3FF; background: linear-gradient(90deg, #F2F8FF, #FBFDFF); color: #1E4B8F; }

/* ---------- 未开通模块的引导页 ---------- */
.feature-lock {
  max-width: 560px;
  margin: 8vh auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.feature-lock .fl-ico { font-size: 46px; }
.feature-lock h3 { font-size: 18px; margin: 12px 0 6px; }
.feature-lock p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.feature-lock .fl-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; }

/* ---------- 套餐差异对比 ---------- */
.plan-diff { display: grid; gap: 6px; margin-top: 12px; }
.plan-diff .pd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 5px 8px;
  border-radius: 7px;
}
.plan-diff .pd-row.gain { background: var(--green-soft); color: #0B6B4B; }
.plan-diff .pd-row.lose { background: var(--red-soft); color: #9B1C1C; }

/* ---------- 促销推送条（工作台） ---------- */
.promo-bar{
  display:flex; align-items:center; gap:12px;
  border:1px solid #F6D5C0; background:linear-gradient(90deg,#FFF6F0,#FFFCF9);
  border-radius:12px; padding:10px 14px; margin-bottom:14px;
  font-size:13px; color:#8A3B12;
}
.promo-bar.coupon{ border-color:#CBDDFB; background:linear-gradient(90deg,#F3F8FF,#FBFDFF); color:#1E4B8F; }
.promo-bar .promo-ico{ font-size:18px; }
.promo-bar b{ color:#7A2E0C; }
.promo-bar.coupon b{ color:#173F7A; }
.promo-bar .promo-tag{
  display:inline-block; margin-left:8px; padding:1px 8px; border-radius:20px;
  background:#FFE8D8; color:#B4420B; font-size:11.5px; font-weight:600; vertical-align:1px;
}
.promo-bar.coupon .promo-tag{ background:#DCEAFF; color:#1B4C99; }
.promo-bar .promo-sub{ font-size:12px; color:#9A6440; margin-top:2px; line-height:1.6; }
.promo-bar.coupon .promo-sub{ color:#4C6E9E; }
.promo-bar .icon-btn{ flex:none; color:inherit; opacity:.7; }
.promo-bar .icon-btn:hover{ opacity:1; }

/* ---------- 计费明细 ---------- */
.plan-quote{ margin-top:14px; }
.plan-quote-box{
  border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff;
}
.pq-hd{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  padding:9px 14px; background:#F7FAFF; border-bottom:1px solid var(--line);
  font-size:12.5px; font-weight:600; color:var(--ink);
}
.pq-hd span{ font-weight:400; color:var(--muted); font-size:11.5px; }
.pq-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:7px 14px; font-size:12.5px; color:var(--ink2);
  border-bottom:1px dashed #F0F3F9;
}
.pq-row:last-of-type{ border-bottom:none; }
.pq-row > span{ color:var(--muted); }
.pq-row > b{ font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink); }
.pq-row.sub > b{ color:var(--ink); }
.pq-row.up > b{ color:var(--red,#DC2626); }
.pq-row.down > b{ color:var(--green,#0E9F6E); }
.pq-row.total{
  padding:11px 14px; background:#F9FBFF; border-top:1px solid var(--line);
}
.pq-row.total > span{ color:var(--ink); font-weight:600; font-size:13px; }
.pq-row.total > span i{
  font-style:normal; font-weight:500; font-size:11.5px; color:var(--green,#0E9F6E);
  background:var(--green-soft,#E8F8F2); border-radius:20px; padding:1px 8px; margin-left:8px;
}
.pq-row.total > b{ font-size:19px; color:var(--primary); letter-spacing:-.01em; }
.pq-foot{ padding:8px 14px 11px; font-size:11.5px; color:var(--muted); background:#F9FBFF; line-height:1.6; }

/* ---------- 企业设置里的促销 / 券 ---------- */
.billing-extra{
  margin-top:14px; padding-top:12px; border-top:1px dashed var(--line);
  display:grid; gap:10px;
}
.bx-promo{
  font-size:12.5px; color:#8A3B12; background:linear-gradient(90deg,#FFF6F0,#FFFCF9);
  border:1px solid #F6D5C0; border-radius:10px; padding:8px 11px; line-height:1.7;
}
.bx-promo b{ color:#7A2E0C; }
.bx-promo span{ display:block; font-size:11.5px; color:#9A6440; margin-top:2px; }
.bx-t{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  font-size:12.5px; font-weight:600; color:var(--ink); margin-bottom:7px;
}
.bx-t span{ font-weight:400; font-size:11.5px; color:var(--muted); }
.bx-coupons{ display:grid; gap:6px; }
.bx-coupon{
  display:grid; grid-template-columns:auto 1fr auto; grid-template-areas:"code name val" "exp exp exp";
  gap:2px 9px; align-items:center;
  border:1px dashed #D8E2F2; border-radius:10px; padding:7px 10px; background:#FCFDFF;
}
.bx-coupon.off{ opacity:.55; background:#FAFBFC; }
.bx-code{
  grid-area:code; font-family:ui-monospace,Menlo,monospace; font-size:11px;
  background:#EEF4FF; color:#2456A6; border-radius:5px; padding:1px 6px;
}
.bx-name{ grid-area:name; font-size:12.5px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bx-val{ grid-area:val; font-size:13px; font-weight:700; color:var(--red,#DC2626); font-variant-numeric:tabular-nums; }
.bx-coupon.off .bx-val{ color:var(--muted); }
.bx-exp{ grid-area:exp; font-size:11px; color:var(--muted); }

@media (max-width:760px){
  .promo-bar{ align-items:flex-start; flex-wrap:wrap; font-size:12.5px; }
  .pq-row{ font-size:12px; }
  .pq-row.total > b{ font-size:17px; }
}

/* ===========================================================
 *  账单与发票
 * =========================================================== */

/* ---------- 平台端：资金概览 ---------- */
.fin-stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border-bottom:1px solid var(--line);
}
.fin-stats > div{
  background:#fff; padding:12px 16px; display:flex; flex-direction:column; gap:2px;
}
.fin-stats span{ font-size:11.5px; color:var(--muted); }
.fin-stats b{
  font-size:19px; font-weight:700; font-variant-numeric:tabular-nums;
  color:var(--ink); letter-spacing:-.01em;
}
.fin-stats b.ok{ color:var(--green,#0E9F6E); }
.fin-stats b.bad{ color:var(--red,#DC2626); }
.fin-stats em{ font-style:normal; font-size:11px; color:var(--muted); }

/* ---------- 弹窗里的账单摘要与明细 ---------- */
.fin-summary{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
  background:#F7FAFF; border:1px solid #E3EBF7; border-radius:11px;
  padding:11px 14px; margin-bottom:12px;
}
.fin-summary > div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.fin-summary span{ font-size:11.5px; color:var(--muted); }
.fin-summary b{ font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink); }

.fin-lines{ border:1px solid var(--line); border-radius:11px; overflow:hidden; }
.fin-lines > div{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding:8px 13px; font-size:12.5px; color:var(--ink2);
  border-bottom:1px dashed #F0F3F9; background:#fff;
}
.fin-lines > div:last-child{ border-bottom:none; }
.fin-lines > div > span{ min-width:0; }
.fin-lines > div em{
  display:block; font-style:normal; font-size:11px; color:var(--muted); margin-top:1px;
}
.fin-lines > div > b{
  flex:none; font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink);
}
.fin-lines > div.down > b,
.fin-lines > div > b.down{ color:var(--green,#0E9F6E); }
.fin-lines > div.tot{
  background:#F9FBFF; border-top:1px solid var(--line); padding:11px 13px;
}
.fin-lines > div.tot > span{ font-weight:600; color:var(--ink); }
.fin-lines > div.tot > b{ font-size:17px; color:var(--primary); }

/* ---------- 企业端：账单列表 ---------- */
.fin-bills{ display:grid; gap:8px; margin-top:12px; }
.fin-bill{
  display:grid; grid-template-columns:1fr auto auto; grid-template-areas:"main amt st" "acts acts acts";
  align-items:center; gap:3px 12px;
  border:1px solid var(--line); border-radius:11px; padding:9px 12px; background:#fff;
}
.fin-bill.overdue{ border-color:#F6C9C9; background:linear-gradient(90deg,#FFF7F7,#FFFDFD); }
.fin-bill.paid{ background:#FBFDFC; }
.fin-bill-main{ grid-area:main; min-width:0; }
.fin-bill-no{
  font-family:ui-monospace,Menlo,monospace; font-size:11px; color:var(--muted);
}
.fin-bill-name{ font-size:13px; color:var(--ink); font-weight:500; }
.fin-bill-name small{ font-weight:400; color:var(--muted); font-size:11.5px; margin-left:6px; }
.fin-bill-amt{
  grid-area:amt; text-align:right; font-size:15px; font-weight:700;
  font-variant-numeric:tabular-nums; color:var(--ink); white-space:nowrap;
}
.fin-bill.overdue .fin-bill-amt{ color:var(--red,#DC2626); }
.fin-bill-st{ grid-area:st; }
.fin-bill-acts{ grid-area:acts; display:flex; gap:6px; flex-wrap:wrap; padding-top:2px; }
.fin-bill-acts:empty{ display:none; }

/* ---------- 企业端：开票 ---------- */
.fin-inv{ display:grid; gap:6px; margin-top:8px; }
.fin-inv-row{
  display:flex; align-items:baseline; gap:8px; font-size:12px; color:var(--muted);
  padding:6px 9px; border-radius:8px; background:#FAFBFD; line-height:1.7;
}
.fin-inv-row .no{ font-family:ui-monospace,Menlo,monospace; font-size:11px; color:var(--ink2); flex:none; }
.fin-inv-row .grow{ flex:1; min-width:0; }
.fin-inv-row b{ color:var(--ink); font-weight:600; }

/* ---------- 开票：账单勾选器 ---------- */
.inv-pick{
  display:grid; gap:6px; max-height:220px; overflow:auto;
  border:1px solid var(--line); border-radius:10px; padding:8px; background:#FCFDFF;
}
.inv-row{
  display:flex; align-items:center; gap:9px; cursor:pointer;
  padding:7px 9px; border-radius:8px; background:#fff; border:1px solid transparent;
  font-size:12.5px; color:var(--ink2);
}
.inv-row:hover{ border-color:#DBE6F7; }
.inv-row:has(input:checked){ border-color:#BFD6F8; background:#F4F9FF; }
.inv-row input{ flex:none; margin:0; }
.inv-no{ font-family:ui-monospace,Menlo,monospace; font-size:11px; color:var(--muted); flex:none; }
.inv-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inv-row > b{ flex:none; font-variant-numeric:tabular-nums; color:var(--ink); }

/* ---------- 工作台待付提醒 ---------- */
.fin-alert{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  border:1px solid #F6D5C0; background:linear-gradient(90deg,#FFF7F2,#FFFCFA);
  border-radius:12px; padding:10px 14px; margin-bottom:14px;
  font-size:13px; color:#8A3B12;
}
.fin-alert.overdue{ border-color:#F3C4C4; background:linear-gradient(90deg,#FFF5F5,#FFFCFC); color:#9B1C1C; }
.fin-alert .fa-ico{ font-size:18px; }
.fin-alert b{ color:#7A2E0C; }
.fin-alert.overdue b{ color:#8C1616; }
.fin-alert .fa-sub{ font-size:12px; opacity:.8; }
.fin-alert .fa-acts{ margin-left:auto; display:flex; gap:8px; }

@media (max-width:760px){
  .fin-stats{ grid-template-columns:repeat(2,1fr); }
  .fin-stats b{ font-size:16px; }
  .fin-summary{ grid-template-columns:repeat(2,1fr); }
  .fin-bill{ grid-template-columns:1fr auto; grid-template-areas:"main amt" "st st" "acts acts"; }
  .fin-alert{ align-items:flex-start; }
  .fin-alert .fa-acts{ margin-left:0; width:100%; }
}


/* ---------- 推送条收起到屏幕右缘 ---------- */
.promo-dock{
  position: fixed; right: 0; top: 42%; z-index: 70;
  writing-mode: vertical-rl; letter-spacing: 3px;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #F6D5C0; border-right: 0; border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg,#FFF6F0,#FFFCF9); color: #8A3B12;
  font-size: 12px; font-weight: 600; padding: 12px 7px; cursor: pointer;
  box-shadow: -2px 2px 10px rgba(0,0,0,.07);
}
.promo-dock:hover{ color: #7A2E0C; background: #FFF1E4; }
.promo-dock .pd-ico{ writing-mode: horizontal-tb; font-size: 15px; }

/* ---------- 自定义菜单弹窗（组可改名 / 移动 / 增删） ---------- */
.mc-group{ margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: #FBFCFE; padding: 10px 12px; }
.mc-hd{ display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mc-name{ width: 160px; font-weight: 700; }
.mc-items{ display: flex; flex-direction: column; gap: 5px; }
.mc-row{
  display: flex; align-items: center; gap: 9px;
  padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; color: var(--ink);
  background: #fff;
}
.mc-row:hover{ border-color: var(--primary); }
.mc-row input{ accent-color: var(--primary); }
.mc-row .ico{ font-size: 15px; width: 20px; text-align: center; }
.mc-ops{ margin-left: auto; display: flex; gap: 4px; }
.mc-btn{
  width: 26px; height: 24px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink2); font-size: 12px; cursor: pointer; line-height: 1;
}
.mc-btn:hover{ border-color: var(--primary); color: var(--primary); }
.mc-btn.mc-del:hover{ border-color: var(--red); color: var(--red); }
.mc-empty{ font-size: 12px; color: var(--muted); text-align: center; padding: 6px 0; }

/* ---------- 工作台：公告通知板块 ---------- */
.ann-board{ padding: 14px 16px 6px; }
.ann-hd{ display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ann-tt{ display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ann-ico{
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg,#FFF3E6,#FFE8D2); font-size: 19px; flex: 0 0 38px;
}
.ann-tt b{ font-size: 14.5px; font-weight: 700; display: block; }
.ann-tt i{ font-size: 11.5px; color: var(--muted); font-style: normal; }
.ann-list{ margin-top: 4px; }
.ann-row{
  display: flex; align-items: center; gap: 11px; padding: 10px 2px;
  border-top: 1px dashed var(--line); cursor: pointer;
}
.ann-row:hover .ann-title{ color: var(--primary); }
.ann-mark{
  flex: 0 0 auto; font-size: 10.5px; padding: 2px 7px; border-radius: 6px;
  background: #F1F5FB; color: #64748B; letter-spacing: .5px;
}
.ann-row:first-child .ann-mark{ background: #FFF1E4; color: #B45309; }
.ann-mid{ min-width: 0; flex: 1; }
.ann-title{ font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: .15s; }
.ann-sub{ font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ann-go{ color: #B6C2D4; font-size: 16px; }
