@charset "utf-8";
/* ============================================================
   线报酷 · 统一组件层 v1.1（2026-10-04 初版 / 2026-11-25 增补）
   依赖：/design/tokens.css（必须先加载）。框架无关，前台 / 用户中心通用，
   用于：新视图、JS 注入 DOM、弹层内容、跨端复用的界面块。
   命名：c- 前缀（component），避免与现役 .card/.btn/.layui-* 冲突。
   规则：禁止裸色值，一律 var(--token)；状态类用 .on / .fresh 等布尔语义。
   与现役实现的同构对照见 交付文档.md §10 组件映射表。
   20261125 增补（MW1-D）：§18 弹窗桌面档、§20 渠道/规则复合行 + 启停开关、
   §21 单行指标条。全部只增不改，消费端见 /design/push-rows-20261125/。
   ============================================================ */

/* ---------- 1. 布局容器 ---------- */
.c-container{max-width:var(--container);margin:0 auto;padding:0 24px}
@media (max-width:768px){.c-container{padding:0 16px}}

/* ---------- 2. 图标基座（内联 SVG 用） ---------- */
.c-ic{width:16px;height:16px;flex:none;stroke:currentColor;stroke-width:1.75;fill:none;
  stroke-linecap:round;stroke-linejoin:round}
.c-ic-14{width:14px;height:14px}

/* ---------- 3. 卡片：白面 + 细环（≙ 前台 .card / UC .layui-card） ---------- */
.c-card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-ring-sm);
  transition:box-shadow var(--dur) var(--ease)}
.c-card-hover:hover{box-shadow:var(--shadow-ring-strong)}
.c-card-hd{display:flex;align-items:center;gap:var(--sp-2);padding:14px 20px;border-bottom:1px solid var(--border)}
.c-card-hd b,.c-card-hd h2,.c-card-hd h3{font-size:var(--fs-15);font-weight:var(--fw-600);color:var(--text);margin:0}
.c-card-hd .sub{font-size:var(--fs-12);color:var(--text-3);margin:0}
.c-card-hd .extra{margin-left:auto;display:flex;align-items:center;gap:4px}
.c-card-bd{padding:20px}
.c-card-bd.flush{padding:0}

/* ---------- 4. 按钮 ---------- */
.c-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;
  border-radius:var(--radius);font-size:13px;font-weight:var(--fw-500);white-space:nowrap;cursor:pointer;
  border:0;background:none;font-family:inherit;text-decoration:none;
  transition:background var(--dur-fast),color var(--dur-fast),box-shadow var(--dur-fast),transform .1s}
.c-btn:active{transform:translateY(1px)}
.c-btn:hover{text-decoration:none}
.c-btn[disabled],.c-btn.disabled{opacity:.45;cursor:not-allowed;transform:none}
.c-btn-primary{background:var(--primary);color:var(--on-primary)}
.c-btn-primary:hover{background:var(--primary-hover);color:var(--on-primary)}
.c-btn-outline{background:var(--surface);box-shadow:var(--shadow-ring-strong);color:var(--text-2)}
.c-btn-outline:hover{color:var(--text);box-shadow:var(--shadow-ring-pop)}
.c-btn-ghost{color:var(--text-2)}
.c-btn-ghost:hover{background:var(--surface-2);color:var(--text)}
.c-btn-danger{background:var(--surface);box-shadow:var(--shadow-ring-strong);color:var(--danger-text)}
.c-btn-danger:hover{background:var(--danger-bg);color:var(--danger-text)}
.c-btn-sm{height:30px;padding:0 10px;font-size:var(--fs-12);border-radius:7px}
.c-btn-xs{height:26px;padding:0 9px;font-size:var(--fs-12);border-radius:var(--radius-sm)}
/* 图标方块钮（32px，顶栏/工具行用） */
.c-btn-icon{width:32px;height:32px;padding:0;display:grid;place-items:center;border-radius:var(--radius);color:var(--text-2)}
.c-btn-icon:hover{background:var(--surface-2);color:var(--text)}

/* ---------- 5. 输入（细环语言，边框 0） ---------- */
.c-input{height:36px;padding:0 12px;border:0;border-radius:var(--radius);
  background:var(--surface);box-shadow:var(--shadow-ring-strong);font-size:13px;color:var(--text);
  font-family:inherit;transition:box-shadow var(--dur-fast);width:100%;box-sizing:border-box}
.c-input::placeholder{color:var(--text-3)}
.c-input:focus{outline:none;box-shadow:0 0 0 1px var(--focus-ring),0 0 0 4px var(--focus-halo)}
textarea.c-input{height:auto;min-height:90px;padding:10px 12px;line-height:1.7;resize:vertical}
/* 移动端 16px 输入防 iOS 聚焦缩放 */
@media (max-width:768px){.c-input{font-size:16px}}

/* ---------- 6. 徽章 / 圆点 ---------- */
.c-badge{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;
  border-radius:var(--radius-pill);font-size:var(--fs-12);background:var(--surface-2);color:var(--text-2);white-space:nowrap}
.c-badge .dot{width:6px;height:6px;border-radius:50%;flex:none}
.c-badge .dot-success{background:var(--success)}
.c-badge .dot-warning{background:var(--warning)}
.c-badge .dot-danger{background:var(--danger)}
.c-badge-solid{background:var(--primary);color:var(--on-primary);font-weight:var(--fw-500)}
.c-badge-vip{height:18px;padding:0 7px;font-size:11px;background:var(--warning-bg);color:var(--warning-text)}
.c-badge-cat{height:18px;padding:0 7px;font-size:11px;background:var(--surface-2);color:var(--text-2)}
.c-badge-count{height:20px;padding:0 8px;font-size:var(--fs-12)}

/* ---------- 7. 分段控件（灰轨道 + 激活白钮；≙ 前台 .rt-tabs / UC 侧栏 tab） ---------- */
.c-seg{display:flex;gap:2px;padding:3px;background:var(--surface-2);border-radius:10px;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.c-seg::-webkit-scrollbar{display:none}
.c-seg-item{flex:1;display:grid;place-items:center;height:28px;padding:0 8px;border-radius:7px;
  font-size:var(--fs-12);color:var(--text-2);cursor:pointer;white-space:nowrap;
  transition:background var(--dur-fast),color var(--dur-fast),box-shadow var(--dur-fast)}
.c-seg-item:hover{color:var(--text)}
.c-seg-item.on{background:var(--surface);box-shadow:var(--shadow-ring-sm);color:var(--text);font-weight:var(--fw-500)}

/* ---------- 8. 下划线页签（≙ UC layui-tab-brief） ---------- */
.c-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border)}
.c-tab{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;font-size:13px;color:var(--text-2);
  border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;transition:color var(--dur-fast)}
.c-tab:hover{color:var(--text)}
.c-tab.on{color:var(--text);font-weight:var(--fw-500);border-bottom-color:var(--primary)}

/* ---------- 9. 线报/通用列表行（≙ 前台 .feed） ---------- */
.c-feed{list-style:none;margin:0;padding:0}
.c-feed li{display:flex;align-items:center;gap:12px;padding:11px 20px}
.c-feed li+li{border-top:1px solid var(--border)}
.c-feed li:hover{background:var(--surface-3)}
.c-time{flex:none;font-size:12.5px;color:var(--text-3);white-space:nowrap}
.c-time.fresh{padding:1px 8px;border-radius:var(--radius-pill);
  background:var(--danger-bg);color:var(--danger-text);font-weight:var(--fw-500)}
.c-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:var(--fs-14);font-weight:var(--fw-500);color:var(--text);text-decoration:none}
.c-title:hover{color:var(--link-hover);text-decoration:underline;text-underline-offset:3px}
/* 两行截断变体（侧栏关注列表用） */
.c-title.clamp2{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5}
.c-meta{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:var(--fs-12);color:var(--text-3)}
.c-top{flex:none;height:20px;padding:0 8px;border-radius:var(--radius-sm);background:var(--primary);color:var(--on-primary);
  font-size:11px;font-weight:var(--fw-500);display:inline-flex;align-items:center}
/* 排行榜序号 */
.c-rk{flex:none;width:20px;height:20px;border-radius:var(--radius-sm);display:grid;place-items:center;
  font-size:var(--fs-12);font-weight:var(--fw-500);background:var(--surface-2);color:var(--text-2)}
.c-rk.r1,.c-rk.r2,.c-rk.r3{background:var(--primary);color:var(--on-primary)}
@media (max-width:768px){.c-feed li{padding:11px 16px;gap:10px}.c-meta{display:none}}

/* ---------- 10. 分页 / 加载更多 ---------- */
.c-pager{display:flex;align-items:center;justify-content:center;gap:6px;padding:16px 20px;
  border-top:1px solid var(--border);flex-wrap:wrap}
.c-pg{min-width:32px;height:32px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--radius);font-size:13px;color:var(--text-2);text-decoration:none;cursor:pointer;
  transition:background var(--dur-fast),color var(--dur-fast)}
.c-pg:hover{background:var(--surface-2);color:var(--text)}
.c-pg.on{background:var(--primary);color:var(--on-primary);font-weight:var(--fw-500)}
.c-pg-input{width:56px;height:32px;text-align:center;font-size:13px;border:0;border-radius:var(--radius);
  background:var(--surface);box-shadow:var(--shadow-ring-strong);color:var(--text)}
.c-pg-input:focus{outline:none;box-shadow:0 0 0 1px var(--focus-ring),0 0 0 4px var(--focus-halo)}
.c-load-more{display:flex;justify-content:center;padding:16px 20px;border-top:1px solid var(--border)}

/* ---------- 11. 面包屑 ---------- */
.c-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--text-3);margin-bottom:14px}
.c-crumb a{color:var(--text-2);text-decoration:none}
.c-crumb a:hover{color:var(--link-hover)}
.c-crumb .cur{color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:420px}

/* ---------- 12. 空态（≙ 前台 .xb-empty 统一组件） ---------- */
.c-empty{display:flex;flex-direction:column;align-items:center;gap:7px;padding:30px 16px;
  text-align:center;color:var(--text-3)}
.c-empty .c-ic{width:34px;height:34px;color:var(--border-strong);margin-bottom:2px}
.c-empty b{font-size:13px;font-weight:var(--fw-500);color:var(--text-2);line-height:1.5}
.c-empty p{margin:0;font-size:var(--fs-12);line-height:1.6}
.c-empty p a{color:var(--text-2);text-decoration:underline;text-underline-offset:3px}
.c-empty p a:hover{color:var(--link-hover)}

/* ---------- 13. 提示条（≙ UC .uf-hint / .art-copyright 淡底信息块） ---------- */
.c-note{margin-bottom:var(--sp-3);padding:var(--sp-2) var(--sp-3);background:var(--surface-2);
  border-radius:var(--radius);font-size:var(--fs-12);line-height:1.9;word-break:break-all;color:var(--text-2)}
.c-note b{font-weight:var(--fw-600)}

/* ---------- 14. 标签 chips（≙ UC .uf-chips） ---------- */
.c-chips{display:flex;flex-wrap:wrap}
.c-chips a,.c-chips span{display:inline-block;padding:1px 8px;margin:2px 4px 2px 0;
  border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);
  font-size:var(--fs-12);color:var(--text-2);cursor:pointer;text-decoration:none;
  transition:color var(--dur-fast),box-shadow var(--dur-fast)}
.c-chips a:hover,.c-chips span:hover{color:var(--text);box-shadow:var(--shadow-ring)}
.c-chips .on{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}

/* ---------- 15. 键值行（UC 用户卡/明细同构） ---------- */
.c-kv{display:flex;align-items:baseline;gap:var(--sp-3);padding:8px 0;font-size:var(--fs-13)}
.c-kv+.c-kv{border-top:1px dashed var(--border)}
.c-kv dt{flex:none;width:88px;color:var(--text-2)}
.c-kv dd{margin:0;color:var(--text);word-break:break-all}
.c-kv dd .num{font-variant-numeric:tabular-nums}

/* ---------- 16. 统计卡（设计稿数据卡；数字 tabular-nums） ---------- */
.c-stat{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-ring-sm);
  padding:var(--sp-4) var(--sp-5)}
.c-stat .label{font-size:var(--fs-12);color:var(--text-2)}
.c-stat .value{font-size:var(--fs-28);font-weight:var(--fw-700);line-height:1.3;margin-top:2px;
  font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.c-stat .sub{font-size:var(--fs-12);color:var(--text-3);margin:2px 0 0}

/* ---------- 17. 表格（≙ UC .layui-table：白面细环，悬停灰染） ---------- */
.c-table-wrap{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-ring-sm);overflow:hidden}
.c-table{width:100%;border-collapse:collapse;background:var(--surface);color:var(--text);font-size:var(--fs-13)}
.c-table thead th{background:var(--surface-3);color:var(--text-2);font-size:var(--fs-12);
  font-weight:var(--fw-600);text-align:left;padding:10px 14px;border-bottom:1px solid var(--border);white-space:nowrap}
.c-table tbody td{padding:10px 14px;border-bottom:1px solid var(--border)}
.c-table tbody tr:last-child td{border-bottom:0}
.c-table tbody tr:hover{background:var(--surface-2)}
.c-table a{color:var(--text);text-decoration:none}
.c-table a:hover{color:var(--link-hover);text-decoration:underline;text-underline-offset:3px}
@media (max-width:768px){.c-table-wrap{overflow-x:auto}.c-table{min-width:560px}}

/* ---------- 18. 弹窗壳（≙ UC .editdivs.uf-modal；配 .c-mask 使用） ---------- */
.c-mask{position:fixed;inset:0;background:rgba(9,9,11,.4);z-index:9998}
.c-modal{position:fixed;width:100%;max-width:720px;max-height:90vh;top:50%;left:50%;
  transform:translate(-50%,-50%);z-index:9999;display:flex;flex-direction:column;overflow:hidden;
  background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop)}
.c-modal-hd{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);
  padding:14px 20px;border-bottom:1px solid var(--border);
  font-size:var(--fs-15);font-weight:var(--fw-600);color:var(--text)}
.c-modal-hd .close{cursor:pointer;color:var(--text-3);background:none;border:0;font-size:18px;line-height:1;font-family:inherit}
.c-modal-bd{padding:var(--sp-5);overflow-y:auto;color:var(--text)}
.c-modal-ft{display:flex;justify-content:flex-end;gap:var(--sp-2);padding:12px 20px;border-top:1px solid var(--border)}
@media (max-width:768px){
  .c-modal{max-width:100%;border-radius:0;top:0;left:0;transform:none;height:100%;max-height:100%;overflow:auto}
}
/* 桌面档（20261125 增补）：实测 900×720 设置窗、1280 主窗下 720px 弹窗均不溢出；
   补两侧安全边距，宿主窗再窄（769~720px 区间）时也不贴边。≤768px 仍走上面全屏档。 */
@media (min-width:769px){
  .c-modal{width:calc(100% - 48px)}
}

/* ---------- 19. 头像 ---------- */
.c-avatar{flex:none;width:36px;height:36px;border-radius:50%;background:var(--surface-2);
  display:grid;place-items:center;font-size:13px;font-weight:var(--fw-600);color:var(--text-2);overflow:hidden}
.c-avatar img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- 20. 复合行：推送渠道 / 推送规则 + 启停开关（20261125 增补） ----------
   .c-row-chan  渠道行：状态点(.st) + 名称 + 模式 + 24h 数字 + 操作
   .c-row-rule  规则行：来源(.src) + 条件句(.cond) + 渠道 chip + 统计 + 启停(.c-sw)
   状态点布尔语义：.ok / .warn / .bad（默认灰=未接入）；整行 .off = 已停用置灰。
   数字 tabular-nums；圆角只用既有档位；阴影只用 --shadow-ring 族。
   行内状态点用 .st（不复用 .c-badge .dot 命名，避免后代选择器互相覆盖）。 */
.c-row-chan,.c-row-rule{display:flex;align-items:center;gap:var(--sp-3);padding:12px 20px;
  font-size:var(--fs-13);color:var(--text)}
.c-row-chan+.c-row-chan,.c-row-rule+.c-row-rule,.c-row-chan+.c-row-rule,.c-row-rule+.c-row-chan{
  border-top:1px solid var(--border)}
.c-row-chan .st,.c-row-rule .st{flex:none;width:8px;height:8px;border-radius:50%;background:var(--border-strong)}
.c-row-chan .st.ok,.c-row-rule .st.ok{background:var(--success)}
.c-row-chan .st.warn,.c-row-rule .st.warn{background:var(--warning)}
.c-row-chan .st.bad,.c-row-rule .st.bad{background:var(--danger)}
.c-row-chan .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-weight:var(--fw-500);color:var(--text)}
.c-row-chan.off .name,.c-row-rule.off .cond{color:var(--text-read)}
.c-row-chan .mode,.c-row-rule .src{flex:none;height:20px;padding:0 8px;display:inline-flex;align-items:center;
  border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text-2);
  font-size:var(--fs-12);white-space:nowrap}
.c-row-rule .cond{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--text-body)}
.c-row-rule .cond b{color:var(--text);font-weight:var(--fw-500)}
.c-row-chan .num,.c-row-rule .num{flex:none;text-align:right;
  font-variant-numeric:tabular-nums;font-weight:var(--fw-600);color:var(--text-2);white-space:nowrap}
.c-row-chan .num small,.c-row-rule .num small{font-size:var(--fs-12);font-weight:var(--fw-400);
  color:var(--text-3);margin-left:4px}
.c-row-chan .ops{flex:none;display:flex;gap:var(--sp-2)}
.c-sw{position:relative;flex:none;display:inline-block;width:36px;height:20px;padding:0;border:0;cursor:pointer;
  border-radius:var(--radius-pill);background:var(--surface-hover);box-shadow:var(--shadow-ring);
  appearance:none;-webkit-appearance:none;transition:background var(--dur-fast)}
.c-sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;
  background:var(--surface);box-shadow:var(--shadow-ring-sm);transition:transform var(--dur-fast) var(--ease)}
.c-sw:hover{background:var(--border-strong)}
.c-sw.on{background:var(--primary)}
.c-sw.on::after{transform:translateX(16px)}
.c-sw[disabled],.c-sw.disabled{opacity:.45;cursor:not-allowed}
@media (max-width:768px){
  .c-row-chan{display:grid;grid-template-columns:auto 1fr auto;column-gap:var(--sp-2);row-gap:6px;
    grid-template-areas:"st name ops" "mode num ops";padding:12px 16px}
  .c-row-chan .st{grid-area:st}
  .c-row-chan .name{grid-area:name}
  .c-row-chan .mode{grid-area:mode}
  .c-row-chan .num{grid-area:num;text-align:left}
  .c-row-chan .ops{grid-area:ops;align-self:center}
  .c-row-rule{display:grid;grid-template-columns:auto 1fr auto;column-gap:var(--sp-2);row-gap:6px;
    grid-template-areas:"cond cond sw" "src badge num";padding:12px 16px}
  .c-row-rule .cond{grid-area:cond}
  .c-row-rule .src{grid-area:src}
  .c-row-rule .c-badge{grid-area:badge;justify-self:start}
  .c-row-rule .num{grid-area:num;text-align:right}
  .c-row-rule .c-sw{grid-area:sw;align-self:center}
}

/* ---------- 21. 指标条：单行 KPI（20261125 增补，替代四宫格） ----------
   一维指标并一行，竖线分隔；≤768px 折 2×2。数字 tabular-nums，单位/标签 12px。 */
.c-statbar{display:flex;align-items:stretch;background:var(--surface);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-ring-sm);overflow:hidden}
.c-statbar>*{flex:1 1 0;min-width:0;padding:12px var(--sp-4)}
.c-statbar>*+*{border-left:1px solid var(--border)}
.c-statbar .label{display:flex;align-items:center;gap:4px;font-size:var(--fs-12);color:var(--text-3);white-space:nowrap}
.c-statbar .label .c-ic{width:14px;height:14px}
.c-statbar .value{margin-top:2px;font-size:var(--fs-18);font-weight:var(--fw-600);line-height:1.4;
  font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap}
.c-statbar .value small{font-size:var(--fs-12);font-weight:var(--fw-400);color:var(--text-3);margin-left:2px}
@media (max-width:768px){
  .c-statbar{flex-wrap:wrap}
  .c-statbar>*{flex:1 1 40%}
  .c-statbar>*:nth-child(odd){border-left:0}
  .c-statbar>*:nth-child(n+3){border-top:1px solid var(--border)}
}

/* ===== Apple 接线 apple-layer-20261127 r2（2026-11-29，纯增可整块回退）===== */
/* 选型真源：/design/rounds.json apple-layer-20261127 chosen=a-1+a-4；本轮=组件接线（只接实存 c-* 类）。
   零新令牌零裸色（全 var()）；c-btn/c-input/c-seg 轨道等"控件"圆角一个不动；
   c-feed 行 / c-sw 开关本轮未接（样张未点名，宁少勿错）。
   回退：整块删除本块 -> 版本戳再递增 -> 清 fastcgi 缓存 + nginx -s reload。 */

/* ① 紧凑控件按压回弹（c-btn 八变体共享基类故只接基类；disabled 不缩放） */
.c-btn,.c-seg-item{transition:transform var(--dur-micro) var(--ease-spring),background var(--dur-fast) var(--ease),color var(--dur-fast) var(--ease),border-color var(--dur-fast) var(--ease),box-shadow var(--dur-fast) var(--ease)}
.c-btn:active:not([disabled]):not(.disabled),.c-seg-item:active{transform:scale(.93)}

/* ② 容器外壳 16px（卡片/统计卡/指标条/表格壳；原 --radius-lg 12px 档升容器档） */
.c-card,.c-stat,.c-statbar,.c-table-wrap{border-radius:var(--radius-container)}

/* ③ modal 壳 24px（仅桌面 >768px；≤768px 全屏档 radius:0 既有语义保留） */
@media (min-width:769px){
  .c-modal{border-radius:var(--radius-container-lg)}
}

/* ④ chip 类触控命中面（c-chips 标签 chips；触屏 44 / 桌面指针 28；不放大文字） */
.c-chips a,.c-chips span{min-height:var(--tap-min)}
@media (pointer:fine){
  .c-chips a,.c-chips span{min-height:28px}
}

/* ⑤ squircle 渐进增强（仅容器档） */
@supports (corner-shape: squircle){
  .c-card,.c-stat,.c-statbar,.c-table-wrap,.c-modal{corner-shape:squircle}
}

/* ⑥ prefers-reduced-motion：本轮新增 transform/transition 显式失效 */
@media (prefers-reduced-motion: reduce){
  .c-btn,.c-btn:active,.c-seg-item,.c-seg-item:active,
  .c-chips a,.c-chips span{transition:none;transform:none}
}
