/* 模块授权未就绪前，先兜底隐藏所有 [data-module]（侧栏与弹窗里的模块入口），避免未授权模块"先闪一下再消失"；app.js 拿到权限后移除 html.perm-pending */
html.perm-pending [data-module]{display:none!important}
.trans-bar-pulse{animation:transPulse 2s ease-in-out infinite}
.ai-tag{display:inline-flex;align-items:center;gap:2px;padding:1px 6px;border-radius:999px;background:rgba(74,158,255,.12);color:#2563eb;font-size:10px;line-height:16px;font-weight:600;margin-left:6px;vertical-align:middle;white-space:nowrap}
@keyframes transPulse{0%,100%{opacity:1}50%{opacity:.6}}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","MiSans","Helvetica Neue",sans-serif;background:#f5f5f7;color:#1a1a2e;height:100vh;display:flex;overflow:hidden;-webkit-font-smoothing:antialiased;position:relative}
:root{--pri:#4A9EFF;--pri2:#3B82F6;--pri3:#7BB8FF;--bg:#f5f5f7;--bg2:#f5f5f7;--card:#ffffff;--txt:#1d1d1f;--t2:#86868b;--bd:rgba(0,0,0,.08);--hv:#f0f0f5;--err:#ff3b30;--ok:#34c759;--warn:#ff9500;--sidebar-w:248px;--cya:#A0D8FF;--rose:#ff2d55}

/* ====== 背景光斑 ====== */
.bg-orb{position:fixed;border-radius:50%;filter:blur(140px);opacity:.15;z-index:0;pointer-events:none;animation:orbFloat 14s ease-in-out infinite}
.bg-orb.a{width:500px;height:500px;background:radial-gradient(circle,rgba(74,158,255,.12),transparent);top:-120px;left:-80px}
.bg-orb.b{width:400px;height:400px;background:radial-gradient(circle,rgba(90,200,250,.1),transparent);bottom:-100px;right:-60px;animation-delay:-7s}
.bg-orb.c{width:300px;height:300px;background:radial-gradient(circle,rgba(255,45,85,.08),transparent);top:40%;left:55%;animation-delay:-3s}
@keyframes orbFloat{0%,100%{transform:translate(0,0) scale(1)}25%{transform:translate(30px,-20px) scale(1.06)}50%{transform:translate(-15px,-45px) scale(.94)}75%{transform:translate(-35px,15px) scale(1.04)}}

/* ====== 网格线 ====== */
.grid-overlay{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.025;background-image:linear-gradient(rgba(0,0,0,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(74,158,255,.25) 1px,transparent 1px);background-size:64px 64px}

/* ====== SIDEBAR ====== */
.sidebar{width:var(--sidebar-w);min-width:var(--sidebar-w);background:rgba(250,250,252,.92);backdrop-filter:saturate(1.8) blur(30px);-webkit-backdrop-filter:saturate(1.8) blur(30px);display:flex;flex-direction:column;overflow-y:auto;z-index:100;box-shadow:1px 0 0 rgba(0,0,0,.04)}
.sidebar-logo{display:flex;align-items:center;cursor:pointer;gap:10px;padding:20px 18px;border-bottom:1px solid rgba(255,255,255,.05);margin-bottom:6px}
.sidebar-logo .logo-icon{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#4A9EFF,#A0D8FF);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 4px 12px rgba(74,158,255,.25);flex-shrink:0}
.sidebar-logo .logo-text{font-size:17px;font-weight:600;color:#1d1d1f;letter-spacing:-0.3px;white-space:nowrap;line-height:1.2}
.sidebar-logo .logo-sub{font-size:10px;color:var(--c-text-3, #86868b);font-weight:400}
/* 品牌图标（授权后台可上传，留空则用默认「龙」字底）：图片模式去掉渐变底，按容器缩放 */
.sidebar-logo .logo-copy{min-width:0;overflow:hidden}
.sidebar-logo .logo-text,.sidebar-logo .logo-sub{overflow:hidden;text-overflow:ellipsis}
.sidebar-logo .logo-icon.has-img{background:none;box-shadow:none;border-radius:0;width:auto;height:40px;flex:0 0 auto;min-width:40px;max-width:150px}
.sidebar-logo .logo-icon.has-img img{height:40px;width:auto;max-width:150px;display:block;object-fit:contain;border-radius:6px}
/* 横版 logo（宽高比≥1.5，本身就是文字标）→ 自动加宽图标区并隐藏右侧文字，避免与名称重复、避免溢出 */
.sidebar-logo.has-wide-logo .logo-copy{display:none}
.sidebar-section-header{display:flex;align-items:center;gap:8px;padding:16px 20px 8px;font-size:18px;font-weight:700;color:#1d1d1f;text-transform:none;letter-spacing:.2px;cursor:pointer;user-select:none;transition:color .2s}
.sidebar-item{display:flex;align-items:center;gap:12px;padding:10px 16px 10px 28px;margin:1px 10px;font-size:16px;color:#1d1d1f;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);border-radius:12px;font-weight:400;position:relative}
.sidebar-item .si-icon{font-size:17px;width:24px;text-align:center;flex-shrink:0;opacity:.85}
.sidebar-item .si-badge{font-size:10px;background:rgba(74,158,255,.1);color:var(--c-brand-ink, #4A9EFF);border-radius:10px;padding:1px 7px;min-width:20px;text-align:center;margin-left:auto;font-weight:600}
.sidebar-item.act .si-icon{opacity:1}
.sidebar-item.sidebar-sub{padding-left:56px;font-size:15px}
.sidebar-item.sidebar-sub .si-icon{font-size:14px;width:20px}
/* 代理商专属入口（agent.lbzbzbzb.cn）· C 轻量版：只显示代理商要用的菜单，隐藏创作类入口（仅不显示，功能与数据都在，回主站照常使用） */
body.agent-console .si-agent-hide{display:none!important}
.agent-do-content{display:none;align-items:center;gap:8px;justify-content:center;margin:2px 12px 8px;padding:9px 14px;border-radius:10px;background:linear-gradient(135deg,#4A9EFF,#7FBFFF);color:#fff;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;box-shadow:0 4px 12px rgba(74,158,255,.25)}
body.agent-console .agent-do-content{display:flex!important}
.agent-do-content:hover{filter:brightness(1.05)}
.agent-host-notice{display:none;position:fixed;right:18px;bottom:18px;z-index:9999;align-items:center;gap:10px;max-width:400px;padding:12px 14px;border-radius:12px;background:#1d1d1f;color:#fff;font-size:12.5px;line-height:1.5;box-shadow:0 12px 32px rgba(0,0,0,.28)}
body.agent-nonagent .agent-host-notice{display:flex!important}
.agent-host-notice a{color:#7FBFFF;font-weight:600}
.agent-host-notice .an-x{margin-left:6px;cursor:pointer;opacity:.7;font-size:14px}
/* 代理商专属板块「客户管理」：代理商后台(agent 站) 与 主站代理商登录时都显示；
   其它端（商户/管理员/普通用户）不显示 */
.si-agent-only{display:none!important}
body.agent-console .si-agent-only{display:block!important}
body.agent-on-main .si-agent-only{display:block!important}
/* 代理商后台：品牌区下方「代理商后台」标识 */
.agent-console-badge{display:none;align-self:flex-start;margin:0 12px 8px;padding:4px 11px;border-radius:999px;background:#2563eb;color:#fff;border:1px solid #2563eb;font-size:12px;font-weight:800;letter-spacing:.4px;box-shadow:0 1px 2px rgba(37,99,235,.28)}
body.agent-console .agent-console-badge{display:inline-block!important}
/* ===== 授权管理列表：卡片式（客户 / 员工），替代原来挤在一行的布局 ===== */
.auth-sum{display:flex;gap:10px;margin:0 0 16px}
.auth-sum .k{flex:1;min-width:0;background:#f8fafc;border:1px solid #eef2f7;border-radius:12px;padding:10px 12px}
.auth-sum .k b{display:block;font-size:20px;line-height:1.25;color:#1d1d1f;font-weight:700}
.auth-sum .k span{font-size:12px;color:#64748b}
.auth-sec{margin:18px 0 10px;font-weight:700;font-size:14px;color:#1d1d1f;display:flex;align-items:center;gap:8px}
.auth-sec .n{font-size:12px;font-weight:600;color:#4A9EFF;background:rgba(74,158,255,.12);border-radius:999px;padding:1px 9px}
.auth-empty{font-size:13px;color:#94a3b8;padding:4px 2px 10px}
.auth-card{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #eef2f7;border-radius:14px;padding:14px 16px;margin-bottom:10px;box-shadow:0 1px 2px rgba(16,24,40,.04);position:relative;overflow:hidden}
.auth-card.client::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#7c3aed,#4A9EFF)}
.auth-card.emp{margin-left:28px;background:#fbfcfe;border-style:dashed;padding:11px 14px}
.auth-ava{width:40px;height:40px;border-radius:12px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:#fff;background:linear-gradient(135deg,#7c3aed,#a78bfa);overflow:hidden}
.auth-ava.emp{width:32px;height:32px;border-radius:10px;font-size:13px;background:linear-gradient(135deg,#15803d,#4ade80)}
.auth-body{flex:1;min-width:0}
.auth-l1{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.auth-name{font-size:15px;font-weight:700;color:#1d1d1f}
.auth-card.emp .auth-name{font-size:14px}
.auth-sub{font-size:11px;color:#94a3b8}
.auth-tag{font-size:10px;padding:2px 8px;border-radius:999px;font-weight:600;white-space:nowrap}
.auth-tag.client{background:rgba(124,58,237,.1);color:#6d28d9}
.auth-tag.agent{background:rgba(14,165,233,.12);color:#0369a1}
.auth-tag.emp{background:rgba(21,128,61,.1);color:#15803d}
.auth-tag.quota{background:#fef3c7;color:#92400e}
.auth-tag.exp-ok{background:rgba(21,128,61,.1);color:#15803d}
.auth-tag.exp-warn{background:#fff7ed;color:#c2410c}
.auth-tag.exp-bad{background:#fef2f2;color:#b91c1c}
.auth-meta{margin-top:7px;font-size:12px;color:#64748b;display:flex;gap:14px;flex-wrap:wrap}
.auth-meta em{font-style:normal;color:#94a3b8}
.auth-mods{margin-top:9px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.auth-mods .lbl{font-size:11px;color:#94a3b8}
.auth-mods .m{font-size:11px;color:#475569;background:#f1f5f9;border:1px solid #e9eef5;border-radius:8px;padding:2px 8px}
.auth-mods .m.none{color:#94a3b8;background:#fafbfc}
.auth-acts{display:flex;flex-direction:column;gap:6px;flex:0 0 auto}
.auth-acts button{white-space:nowrap;font-size:12px;line-height:1.2;padding:6px 10px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;color:#1d1d1f;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:4px}
.auth-acts button:hover{background:#f8fafc}
.auth-acts button.pri{border-color:rgba(74,158,255,.35);color:#2563eb;background:rgba(74,158,255,.06)}
.auth-acts button.danger{border-color:rgba(255,59,48,.25);color:#d92d20}
.auth-acts button.danger:hover{background:rgba(255,59,48,.05)}
.sidebar-footer{padding:16px 20px;border-top:1px solid rgba(0,0,0,.04);margin-top:auto;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--c-text-3, #86868b)}
.sidebar-footer span{color:#1d1d1f;cursor:default}
.sidebar-footer .logout-btn{color:#ff3b30;cursor:pointer;padding:5px 12px;border:1px solid rgba(255,59,48,.15);border-radius:8px;font-size:12px;transition:all .2s;font-weight:500}

/* ====== MAIN CONTENT ====== */
.main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.main-header{display:flex;align-items:center;justify-content:space-between;padding:16px 36px;background:rgba(245,245,247,.85);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid rgba(0,0,0,.06);min-height:56px;z-index:50;position:sticky;top:0}
.main-header .breadcrumb{font-size:14px;color:var(--c-text-3, #86868b);font-weight:500}
.main-header .breadcrumb strong{color:#1d1d1f}
.main-header .header-actions{display:flex;align-items:center;gap:8px;font-size:12px}
.main-header .header-entry{height:38px;padding:0 12px;border:1px solid rgba(0,0,0,.08);border-radius:10px;background:#fff;color:#1d1d1f;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap;transition:all .18s}
.main-header .header-entry:hover{border-color:rgba(37,99,235,.35);color:#1d4ed8;background:#f8faff}
.main-header .header-entry .ic{width:16px;height:16px}
@media(max-width:760px){.main-header .header-entry{width:38px;padding:0;justify-content:center}.main-header .header-entry span{display:none}}
.main-content{flex:1;overflow-y:auto;overflow-x:hidden;padding:32px 40px 48px}
.main-content::-webkit-scrollbar{width:6px}
.main-content::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12);border-radius:4px;border:2px solid transparent;background-clip:content-box}
.main-content::-webkit-scrollbar-track{background:transparent;margin:4px 0}

/* ====== PANELS ====== */
.panel{display:none;animation:fadeIn .35s ease}
.panel.act{display:block}
@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

/* ====== STATS BAR ====== */
.stats-bar{display:flex;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.stats-bar .stat-card{flex:1;min-width:130px;display:flex;align-items:center;gap:12px;padding:16px 18px;background:#fff;border-radius:12px;border:1px solid rgba(0,0,0,.04);transition:all .2s;cursor:pointer}
.stats-bar .stat-card:hover{box-shadow:0 2px 8px rgba(0,0,0,.04);transform:translateY(-1px)}
.stats-bar .stat-card .st-icon{font-size:28px;width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.stats-bar .stat-card .st-info .st-num{font-size:26px;font-weight:700;color:#1d1d1f;line-height:1.15}
.stats-bar .stat-card .st-info .st-label{font-size:11px;color:var(--c-text-3, #94a3b8);margin-top:1px}

/* ====== 首页(#p2s0)布局：统计卡压缩 + 主列表/今日统计双栏（右栏吸附） ====== */
#p2s0{grid-template-columns:minmax(0,1fr) 336px;column-gap:14px;row-gap:14px;align-items:start}
#p2s0.act{display:grid}
#p2s0>.stats-bar{grid-column:1/-1;grid-row:1;margin-bottom:0}
#p2s0>.section{grid-column:1;grid-row:2;min-width:0;margin-bottom:0!important}
#p2s0>.home-side{grid-column:2;grid-row:2;min-width:0;position:sticky;top:12px;display:flex;flex-direction:column;gap:12px}
#p2s0>.home-side>.section{margin-bottom:0!important}
#p2s0 .stats-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:8px}
#p2s0 .stats-bar .stat-card{min-width:0;padding:9px 11px;gap:9px;border-radius:11px}
#p2s0 .stats-bar .stat-card .st-icon{width:34px;height:34px;border-radius:10px;font-size:19px}
#p2s0 .stats-bar .stat-card .st-info .st-num{font-size:19px}
#p2s0 .stats-bar .stat-card .st-info .st-label{font-size:10.5px}
@media (max-width:1200px){#p2s0{grid-template-columns:minmax(0,1fr)}#p2s0>.section,#p2s0>.home-side{grid-column:1;grid-row:auto}#p2s0>.home-side{position:static}}
/* ====== 首页 v2：AI 搭子改写（左主区）+ 今日统计/数据概览（右栏） ====== */
#p2s0.act{display:block}
.home2-grid{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:16px;align-items:start}
.home2-main{min-width:0}
.home2-rail{min-width:0;display:flex;flex-direction:column;gap:14px;position:sticky;top:12px}
.home2-rail>.section{margin-bottom:0!important}
.home2-overview .stats-bar{display:grid;grid-template-columns:1fr;gap:8px;margin:0}
.home2-overview.is-collapsed .stats-bar{display:none}
.home2-overview .stats-bar .stat-card{width:100%;padding:10px 12px}
.home2-overview .stats-bar .stat-card .st-num{font-size:18px}
@media (max-width:1200px){.home2-grid{grid-template-columns:minmax(0,1fr)}.home2-rail{position:static}}
/* ===== 行业起号参谋（主页通栏置顶） ===== */
.ip-section{margin-bottom:16px}
.ip-section .section-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ip-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ip-select{padding:7px 12px;border:1px solid var(--border,#e6e8ee);border-radius:10px;font-size:14px;background:#fff;color:#1d1d1f;cursor:pointer;min-width:190px;font-family:inherit}
.ip-sub{margin:2px 0 12px;font-size:12.5px;color:var(--c-text-3,#86868b)}
.ip-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.ip-card{border:1px solid var(--border,#eceef3);border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px;transition:box-shadow .2s,transform .2s}
.ip-card:hover{box-shadow:0 8px 22px rgba(15,23,42,.08);transform:translateY(-1px)}
.ip-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ip-card-title{font-size:15px;font-weight:700;color:#1d1d1f;line-height:1.35}
.ip-badge{font-size:11px;font-weight:700;color:#3b82f6;background:rgba(74,158,255,.12);border-radius:999px;padding:2px 9px;white-space:nowrap;flex:0 0 auto}
.ip-card-reason{font-size:12.5px;color:#6b7280;line-height:1.5}
.ip-card-hook{position:relative;font-size:13px;color:#1d1d1f;background:#f7f8fb;border-radius:9px;padding:9px 46px 9px 11px;line-height:1.5}
.ip-copy{position:absolute;top:50%;right:8px;transform:translateY(-50%);border:0;background:#eef1f7;color:#3b82f6;font-size:11px;font-weight:700;border-radius:7px;padding:3px 8px;cursor:pointer}
.ip-copy:hover{background:#e2e8f5}
.ip-card-script{font-size:12px;color:#475569;background:#fffdf5;border:1px solid #fde9b8;border-radius:9px;padding:8px 10px;line-height:1.5}
.ip-script-tag{display:inline-block;font-size:10px;font-weight:700;color:#b45309;background:#fef3c7;border-radius:5px;padding:1px 6px;margin-right:6px}
.sm-lyr.sm-lyr-must summary{color:#d97706;font-weight:700;font-size:12px}
.sm-lyr.sm-lyr-must textarea{height:96px}
.ip-card-acts{margin-top:auto;display:flex;gap:8px}
.ip-empty{grid-column:1/-1;text-align:center;color:var(--c-text-3,#86868b);font-size:13px;padding:22px 10px;border:1px dashed var(--border,#e6e8ee);border-radius:12px}
/* 搭子卡 */
.buddy-card{position:relative;background:var(--surface,#fff);border:1px solid var(--border,#e6e8ee);border-radius:16px;box-shadow:var(--shadow-xs,0 1px 2px rgba(15,23,42,.05));overflow:hidden;display:flex;flex-direction:column;min-height:664px}
.buddy-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border,#eef0f4)}
.buddy-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#6366f1,#38bdf8);color:#fff;flex:0 0 auto}
.buddy-ic .ic{width:20px;height:20px}
.buddy-title{font-size:16px;font-weight:700;color:var(--text,#0f172a);line-height:1.2}
.buddy-sub{font-size:12px;color:var(--text-3,#94a3b8);margin-top:3px}
.buddy-head-acts{margin-left:auto;display:flex;gap:8px;flex:0 0 auto;align-items:center}
.buddy-hist-pop{position:absolute;top:68px;right:16px;width:312px;max-height:360px;overflow-y:auto;background:#fff;border:1px solid var(--border,#e6e8ee);border-radius:14px;box-shadow:0 12px 34px rgba(15,23,42,.18);padding:8px;z-index:40}
.buddy-hist-item{position:relative;padding-right:54px}
.buddy-hist-item.is-cur{background:#f4f6ff}
.buddy-hist-del{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:11px;color:#b6bdc9;font-style:normal;cursor:pointer}
.buddy-hist-del:hover{color:#ef4444}
.buddy-cta{font-weight:650}
.buddy-msgs{flex:1;overflow-y:auto;padding:18px 20px;display:flex;flex-direction:column;gap:14px;background:linear-gradient(180deg,#fafbff,#fff);min-height:400px}
.buddy-row{display:flex;gap:10px;max-width:90%}
.buddy-row.me{align-self:flex-end;flex-direction:row-reverse}
.buddy-av{width:32px;height:32px;border-radius:9px;flex:0 0 auto;display:grid;place-items:center;font-size:11px;font-weight:700}
.buddy-av.ai{background:#eef2ff;color:#4f46e5}
.buddy-av.me{background:#fff;border:1px solid var(--border,#e6e8ee);color:#475569}
.buddy-bub{padding:12px 15px;border-radius:14px;font-size:13px;line-height:1.75;color:var(--text,#0f172a);white-space:pre-wrap;word-break:break-word}
.buddy-bub.ai{background:#fff;border:1px solid var(--border,#e6e8ee);border-top-left-radius:4px}
.buddy-bub.me{background:#eef2ff;border:1px solid #e0e7ff;border-top-right-radius:4px}
.buddy-meta{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.buddy-tag{font-size:10.5px;padding:2px 8px;border-radius:10px;font-weight:600;display:inline-flex;align-items:center;gap:3px}
.buddy-tag.st{background:#f5f3ff;color:#7c3aed;border:1px solid rgba(124,58,237,.18)}
.buddy-tag.du{background:#ecfeff;color:#0891b2;border:1px solid rgba(8,145,178,.18)}
.buddy-acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px dashed var(--border,#eef0f4)}
.buddy-mini{font-size:11.5px;padding:5px 10px;border-radius:9px;border:1px solid var(--border,#e2e8f0);background:#fff;color:#475569;cursor:pointer;transition:all .16s}
.buddy-mini:hover{border-color:var(--c-brand-ink,#4A9EFF);color:var(--c-brand-ink,#4A9EFF)}
.buddy-mini.ok{background:var(--c-ok,#0F7B43);border-color:var(--c-ok,#0F7B43);color:#fff}
.buddy-mini.ok:hover{opacity:.92;color:#fff}
.buddy-typing{display:inline-flex;gap:4px;align-items:center;color:var(--text-3,#94a3b8);font-size:12px}
.buddy-err{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}
.buddy-dot{width:6px;height:6px;border-radius:50%;background:#c7d2fe;animation:buddyBlink 1s infinite}
.buddy-dot:nth-child(2){animation-delay:.2s}.buddy-dot:nth-child(3){animation-delay:.4s}
@keyframes buddyBlink{0%,80%,100%{opacity:.3}40%{opacity:1}}
.buddy-compose{border-top:1px solid var(--border,#eef0f4);padding:12px 16px 14px;position:relative;background:#fff}
.buddy-at-pop{position:absolute;left:16px;right:16px;bottom:calc(100% - 4px);max-height:280px;overflow-y:auto;background:#fff;border:1px solid var(--border,#e6e8ee);border-radius:14px;box-shadow:0 12px 32px rgba(15,23,42,.14);padding:8px;z-index:30}
.buddy-at-hd{font-size:11px;color:var(--text-3,#94a3b8);padding:6px 8px 8px}
.buddy-at-hd-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.buddy-hist-clr{font-size:11px;color:#b6bdc9;font-style:normal;cursor:pointer}
.buddy-hist-clr:hover{color:#ef4444}
.buddy-at-item{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-radius:10px;cursor:pointer}
.buddy-at-item:hover{background:#f5f8ff}
.buddy-at-item b{font-size:12.5px;color:var(--text,#0f172a);font-weight:650}
.buddy-at-item span{font-size:11px;color:var(--text-3,#94a3b8);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.buddy-at-empty{font-size:12px;color:var(--text-3,#94a3b8);padding:10px}
.buddy-box{border:1px solid var(--border,#e2e8f0);border-radius:14px;padding:10px 12px;transition:border-color .2s,box-shadow .2s}
.buddy-box:focus-within{border-color:var(--c-brand-ink,#4A9EFF);box-shadow:0 0 0 3px rgba(74,158,255,.10)}
.buddy-ta{width:100%;box-sizing:border-box;border:0;outline:none;resize:none;font-size:13px;line-height:1.7;font-family:inherit;min-height:132px;max-height:264px;overflow-y:auto;color:var(--text,#0f172a);background:transparent}
.buddy-tools{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.buddy-tools-l{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1;min-width:0}
.buddy-chip{font-size:11.5px;padding:5px 10px;border-radius:9px;border:1px solid var(--border,#e2e8f0);background:#fff;color:#475569;cursor:pointer;display:inline-flex;align-items:center;gap:4px;transition:all .16s;white-space:nowrap}
.buddy-chip:hover{border-color:var(--c-brand-ink,#4A9EFF);color:var(--c-brand-ink,#4A9EFF)}
.buddy-chip.on{background:#eef2ff;border-color:#c7d2fe;color:#4f46e5;font-weight:650}
.buddy-chip .ic{width:13px;height:13px}
.buddy-sep{width:1px;height:16px;background:var(--border,#e6e8ee)}
.buddy-lbl{font-size:11px;color:var(--text-3,#94a3b8)}
.buddy-secinput{width:58px;font-size:11.5px;padding:5px 8px;border-radius:9px;border:1px solid var(--border,#e2e8f0);outline:none}
.buddy-send{flex:0 0 auto}
.buddy-hint{font-size:10.5px;color:var(--text-3,#b6bdc9);margin-top:8px}
@media (max-width:1200px){.buddy-row{max-width:100%}}

.stats-bar .st-acct .st-icon{background:#e8f1fd;color:var(--c-brand-ink, #4A9EFF)}
.stats-bar .st-copy .st-icon{background:#fff7ed;color:var(--c-orange, #ea580c)}
.stats-bar .st-done .st-icon{background:#ecfdf5;color:#10b981}
.stats-bar .st-boom .st-icon{background:#fef3c7;color:#d97706}
.stats-bar .st-article .st-icon{background:#f0f9ff;color:#0ea5e9}
.stats-bar .st-trans .st-icon{background:#fefce8;color:#eab308}

/* ====== CARDS ====== */
.card{background:rgba(255,255,255,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:16px;box-shadow:0 2px 16px rgba(0,0,0,.03),0 8px 32px rgba(74,158,255,.04);overflow:hidden;transition:all .3s cubic-bezier(.4,0,.2,1);border:1px solid rgba(226,232,240,.5)}
.card:hover{box-shadow:0 8px 30px rgba(0,0,0,.06),0 2px 4px rgba(0,0,0,.03);border-color:#e2e8f0}
/* ===== 首页单条克隆网格 ===== */
.single-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px;padding:4px 0}
.single-grid .sg-card{background:#fff;border-radius:14px;overflow:hidden;border:1px solid rgba(0,0,0,.04);transition:all .25s;cursor:pointer;display:flex;flex-direction:column}
.single-grid .sg-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.08);border-color:#e2e8f0}
.single-grid .sg-cover{width:100%;aspect-ratio:9/16;object-fit:cover;background:#f1f5f9;display:block}
.single-grid .sg-cover-placeholder{width:100%;aspect-ratio:9/16;background:linear-gradient(135deg,#e8f1fd,#e0e7ff);display:flex;align-items:center;justify-content:center;font-size:32px;color:#B0CCFF}
.single-grid .sg-body{padding:12px 14px;flex:1;display:flex;flex-direction:column;gap:6px}
.single-grid .sg-title{font-size:14px;font-weight:600;color:#1d1d1f;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.single-grid .sg-meta{display:flex;gap:12px;font-size:11px;color:var(--c-text-3, #94a3b8);margin-top:auto}
.single-grid .sg-meta span b{color:var(--c-text-3, #86868b);font-weight:600}
.single-grid .sg-actions{display:flex;gap:6px;padding:8px 14px 12px}
.single-grid .sg-actions .btn{flex:1;font-size:11px;padding:6px 8px;border-radius:8px;text-align:center}
.card-row{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #f8fafc;cursor:pointer;transition:.15s;font-size:14px}
.card-row:last-child{border-bottom:none}
.card-row:hover{background:#fafbff}
.card-row .cover{width:56px;height:74px;border-radius:8px;object-fit:cover;flex-shrink:0;background:#f1f5f9;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.card-row .info{flex:1;min-width:0}
.card-row .info .t{font-weight:600;font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:4px;color:#1d1d1f}
.card-row .info .meta{font-size:11px;color:var(--c-text-3, #94a3b8);display:flex;gap:12px;align-items:center}
.card-row .actions{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;align-items:center}

/* ====== BUTTONS ====== */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 18px;border-radius:8px;border:none;font-size:14px;cursor:pointer;font-weight:500;transition:all .2s;line-height:1.4;letter-spacing:0.1px;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-pri{background:linear-gradient(135deg,var(--pri),var(--pri2));color:#1d1d1f;box-shadow:0 2px 8px rgba(74,158,255,.25)}
.btn-pri:hover{box-shadow:0 4px 20px rgba(74,158,255,.35),0 0 40px rgba(74,158,255,.1);transform:translateY(-1.5px)}
.btn-out{background:#fff;color:#475569;border:1px solid #cbd5e1}
.btn-out:hover{background:#f8fafc;color:#1d1d1f;border-color:#94a3b8}
.btn-sm{padding:5px 10px;font-size:11px;border-radius:6px}
.btn-ok{background:#ecfdf5;color:#059669;border:1px solid rgba(16,185,129,.2)}
.btn-ok:hover{background:#d1fae5}
.btn-err{background:#fef2f2;color:#dc2626;border:1px solid rgba(239,68,68,.2)}
.btn-err:hover{background:#fee2e2}

/* ===== 分类标签栏 ===== */
#catBar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-bottom:14px;padding:2px 0}
.cat-tag{display:inline-flex;align-items:center;gap:5px;padding:6px 14px;font-size:12px;font-weight:500;border-radius:20px;cursor:pointer;transition:all .2s ease;border:1px solid #e2e8f0;background:#fff;color:var(--c-text-3, #86868b);user-select:none;white-space:nowrap}
.cat-tag:hover{border-color:#B0CCFF;color:#3B82F6;background:#e8f1fd;transform:translateY(-1px);box-shadow:0 2px 6px rgba(74,158,255,.1)}
.cat-tag.active{background:linear-gradient(135deg,#4A9EFF,#A0D8FF);color:#1d1d1f;border-color:transparent;box-shadow:0 2px 10px rgba(74,158,255,.25)}
.cat-tag.active:hover{box-shadow:0 4px 14px rgba(74,158,255,.35);transform:translateY(-1px)}
.cat-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;font-size:10px;font-weight:600;border-radius:9px;background:rgba(0,0,0,.08);color:inherit;transition:all .2s}
.cat-tag.active .cat-count{background:rgba(255,255,255,.25)}
.cat-mgmt-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1.5px dashed #cbd5e1;background:transparent;color:var(--c-text-3, #94a3b8);cursor:pointer;transition:all .2s;font-size:14px;margin-left:2px}
.cat-mgmt-btn:hover{border-color:#A0D8FF;color:var(--c-brand-ink, #4A9EFF);background:#f0f5ff;transform:scale(1.05)}
.btn-purple{background:#f5f3ff;color:#7c3aed;border:1px solid rgba(124,58,237,.2)}
.btn-purple:hover{background:#ede9fe}
.btn-green{background:#ecfdf5;color:#059669;border:1px solid rgba(16,185,129,.2)}
.btn-green:hover{background:#d1fae5}
.btn-orange{background:#fff7ed;color:var(--c-orange, #ea580c);border:1px solid rgba(234,88,12,.2)}
.btn-orange:hover{background:#ffedd5}

.btn.eh-pick{background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;border:1px solid #ea580c;box-shadow:0 4px 12px rgba(234,88,12,.28);font-weight:600}
.btn.eh-pick:hover{background:linear-gradient(135deg,#fb923c,#ea580c);box-shadow:0 6px 18px rgba(234,88,12,.35);transform:translateY(-1px)}
.btn.eh-pick:disabled{background:#fff7ed;color:#c2410c;border-color:#fdba74;box-shadow:none;cursor:default;transform:none;opacity:1}

input,select,textarea{width:100%;padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;background:#fff;color:#1d1d1f;outline:none;transition:all .2s}
input:hover,select:hover,textarea:hover{border-color:#cbd5e1}
input:focus,select:focus,textarea:focus{border-color:var(--c-brand-ink, var(--pri));box-shadow:0 0 0 4px rgba(74,158,255,.08),0 0 12px rgba(74,158,255,.08)}

.modal-overlay{display:none;position:fixed;inset:0;z-index:200;background:rgba(15,23,42,.5);align-items:center;justify-content:center;backdrop-filter:blur(4px)}
.modal-overlay.show{display:flex}
.modal{background:rgba(255,255,255,.95);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-radius:24px;width:90%;max-width:640px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 80px rgba(0,0,0,.12),0 0 80px rgba(74,158,255,.08);animation:slideUp .3s cubic-bezier(.22,1,.36,1)}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #f1f5f9;position:sticky;top:0;background:#fff;z-index:2;border-radius:16px 16px 0 0}
.modal-header h3{font-size:18px;font-weight:700;color:#1d1d1f}
.modal-close{width:32px;height:32px;border-radius:8px;border:none;background:#f1f5f9;color:var(--c-text-3, #86868b);font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}
.modal-close:hover{background:#e2e8f0;color:#1d1d1f}
.modal-body{padding:20px 24px;overflow-y:auto;flex:1 1 auto;min-height:0}
.modal-footer{padding:12px 24px;border-top:1px solid #f1f5f9;display:flex;gap:8px;justify-content:flex-end}

@keyframes slideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeSlide{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

.spinner{--sw:3px;display:inline-block;position:relative;width:22px;height:22px;border:none;border-radius:50%;vertical-align:middle;margin-right:8px;flex-shrink:0}
.spinner::before{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,rgba(37,99,235,0) 0%,rgba(79,70,229,.55) 45%,#2563EB 100%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - var(--sw)),#000 calc(100% - var(--sw)));mask:radial-gradient(farthest-side,transparent calc(100% - var(--sw)),#000 calc(100% - var(--sw)));animation:spin .85s linear infinite}
.spinner::after{content:'';position:absolute;left:50%;top:50%;width:34%;height:34%;margin:-17% 0 0 -17%;border-radius:50%;background:radial-gradient(circle,#4F46E5 0%,rgba(79,70,229,.35) 55%,rgba(79,70,229,0) 72%);animation:spinner-pulse 1.25s ease-in-out infinite}
@keyframes spinner-pulse{0%,100%{transform:scale(.72);opacity:.55}50%{transform:scale(1.12);opacity:1}}
.spinner.lg{--sw:4px;width:36px;height:36px;margin-right:0}
@supports not ((mask:radial-gradient(#000,#000)) or (-webkit-mask:radial-gradient(#000,#000))){
  .spinner{background:none;border:3px solid #dbe3f0;border-top-color:#2563EB;animation:spin .7s linear infinite;width:22px;height:22px}
  .spinner.lg{width:36px;height:36px;border-width:4px}
  .spinner::before,.spinner::after{display:none}
}
@media (prefers-reduced-motion:reduce){.spinner::before{animation-duration:1.6s}.spinner::after{animation:none;opacity:.9}}

.section{margin-bottom:16px}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-header h2{font-size:15px;font-weight:600;color:#1d1d1f}
.section-divider{height:1px;background:#e8ecf1;margin:20px 0}

/* 轻提示：屏幕正中的弹窗（白底卡片 + 彩色图标 + 半透明遮罩），点击/按 Esc/自动 关闭 */
.toast-mask{position:fixed;inset:0;z-index:1000;background:rgba(15,23,42,.34);
 backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
 opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
.toast-mask.is-on{opacity:1;visibility:visible}
.toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001;
 display:flex;align-items:center;justify-content:center;text-align:center;
 width:max-content;max-width:min(88vw,460px);box-sizing:border-box;
 background:#fff;color:#0f172a;padding:24px 32px;border-radius:18px;
 border:1px solid var(--border,#e6e8ee);
 font-size:16px;font-weight:600;line-height:1.7;letter-spacing:.2px;
 box-shadow:0 28px 64px rgba(15,23,42,.30),0 2px 8px rgba(15,23,42,.08);
 opacity:0;pointer-events:none;cursor:pointer;
 animation:toastIn .22s cubic-bezier(.2,.9,.3,1.12)}
.toast.is-ok .toast-msg>.ic{color:#16a34a;background:#ecfdf5}
.toast.is-warn .toast-msg>.ic{color:#d97706;background:#fffbeb}
.toast.is-err .toast-msg>.ic{color:#dc2626;background:#fef2f2}
.toast.is-info .toast-msg>.ic{color:#2563eb;background:#eff6ff}
.toast .toast-msg{display:flex;flex-direction:column;align-items:center;gap:14px;word-break:break-word}
.toast .toast-msg>.ic{flex:0 0 auto;box-sizing:border-box;width:38px;height:38px;padding:8px;border-radius:50%;stroke-width:2}
.bg-notice .ic{flex:0 0 auto;width:18px;height:18px;stroke-width:2}
#bgNoticeIc{flex:0 0 auto;box-sizing:border-box;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:#d97706;background:#fffbeb;border:1px solid #fde68a}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,-50%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
/* 图文文案智能改写弹窗：两个方案（一排 / 多排）并排卡片 */
.tw-opt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
@media(max-width:640px){.tw-opt-grid{grid-template-columns:1fr}}
.tw-opt-card{border:1px solid var(--border,#e6e8ee);border-radius:14px;padding:12px;background:#fff;
 display:flex;flex-direction:column;gap:8px}
.tw-opt-card:focus-within{border-color:var(--brand-300,#93c5fd);box-shadow:0 6px 18px rgba(15,23,42,.06)}
.tw-opt-h{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--t1,#1d1d1f)}
.tw-opt-no{flex:0 0 auto;font-size:11px;font-weight:700;color:#2563eb;background:#eff6ff;
 border:1px solid #bfdbfe;border-radius:999px;padding:1px 8px;line-height:16px}
.tw-opt-sub{font-size:12px;line-height:1.6;color:var(--t2,#6b7280)}
.tw-opt-card textarea{flex:1;min-height:96px;resize:vertical}
/* 今日作品统计卡片：可点进对应作品库 + 新作品红点气泡 */
.today-stat{background:var(--panel);border:1px solid rgba(0,0,0,.06);border-radius:12px;padding:12px 12px 11px;
 display:flex;flex-direction:column;gap:6px;position:relative;cursor:pointer;
 transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.today-stat:hover{transform:translateY(-2px);border-color:var(--brand-300,#93c5fd);box-shadow:0 8px 20px rgba(15,23,42,.08)}
.today-stat:focus-visible{outline:2px solid var(--pri,#2563eb);outline-offset:2px}
.today-stat-go{position:absolute;right:10px;bottom:10px;font-size:11px;color:var(--t2,#6b7280);opacity:0;transition:opacity .15s ease}
.today-stat:hover .today-stat-go{opacity:1}
.work-badge{position:absolute;top:8px;right:8px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;
 border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;
 box-shadow:0 2px 6px rgba(239,68,68,.4)}
.work-badge.inline{position:static;display:inline-block;margin-left:2px;vertical-align:1px}
/* 后台任务提醒：和新轻提示（.toast）同一套观感 —— 白底卡片 + 彩色圆形图标 + 同款圆角/阴影 */
.bg-notice{position:fixed;bottom:24px;left:0;right:0;margin:0 auto;z-index:1200;display:none;box-sizing:border-box;width:max-content;max-width:min(calc(100vw - 48px),720px);align-items:center;gap:14px;background:#fff;color:#0f172a;border:1px solid var(--border,#e6e8ee);padding:16px 16px 16px 18px;border-radius:18px;font-size:14px;line-height:1.6;box-shadow:0 24px 56px rgba(15,23,42,.24),0 2px 8px rgba(15,23,42,.06);transition:opacity .25s ease}
.bg-notice span{flex:1}
.bg-notice button{margin-left:auto;flex:0 0 auto;border:1px solid var(--border,#e6e8ee);background:#f8fafc;color:#64748b;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1;transition:background .15s ease,color .15s ease}
.bg-notice button:hover{background:#eef2f7;color:#0f172a}

/* ====== RESPONSIVE ====== */
@media(max-width:768px){
  /* Sidebar overlay mode */
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;min-width:260px;z-index:200;transform:translateX(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}
  .sidebar.open{transform:translateX(0);box-shadow:8px 0 32px rgba(0,0,0,.12)}
  .sidebar-overlay{position:fixed;inset:0;z-index:199;background:rgba(0,0,0,.3);opacity:0;pointer-events:none;transition:opacity .3s}
  .sidebar-overlay.show{opacity:1;pointer-events:auto}
  
  /* Hamburger button */
  .mobile-toggle{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:none;cursor:pointer;border-radius:8px;font-size:18px;color:#1d1d1f;flex-shrink:0}
  .mobile-toggle:hover{background:rgba(0,0,0,.04)}
  
  /* Logo in mobile header */
  .mobile-logo{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;color:#1d1d1f}
  
  /* Main header compact */
  .main-header{padding:10px 16px;min-height:44px;gap:10px}
  .main-header .breadcrumb{font-size:13px}
  
  /* Main content tight */
  .main-content{padding:16px 16px 32px}
  
  /* Stats bar stack */
  .stats-bar{flex-direction:column;gap:8px;margin-bottom:20px}
  .stats-bar .stat-card{flex:none;padding:14px 16px;border-radius:14px;min-width:0}
  .stats-bar .stat-card .st-icon{width:36px;height:36px;border-radius:10px;font-size:20px}
  .stats-bar .stat-card .st-info .st-num{font-size:20px}
  
  /* Cards */
  .card{padding:16px;margin-bottom:12px;border-radius:16px}
  .card-sm{padding:12px;border-radius:12px}
  
  /* Modal full-screen on mobile */
  .modal{width:100%;max-width:100%;border-radius:20px 20px 0 0;max-height:92vh;position:fixed;bottom:0;left:0;right:0;animation:slideUp .3s cubic-bezier(.22,1,.36,1)}
  @keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
  
  /* Section header */
  .section-header h2{font-size:18px}
  
  /* Platform tabs */
  .plat-tab{font-size:12px;padding:8px 6px}
  
  /* Empty state */
  .empty{padding:48px 16px;font-size:13px}
  
  /* Thumbnails smaller */
  .thumb-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px}
  
  /* Category tags */
  .cat-tag{font-size:11px;padding:4px 10px}
  
  /* Placeholder panels */
  .sidebar-logo .logo-text,.sidebar-logo .logo-sub,.sidebar-item span:not(.si-icon):not(.si-badge),.sidebar-section-header span:not(.arrow),.sidebar-footer{display:block}
  .sidebar-item{padding:10px 16px 10px 28px;justify-content:flex-start;margin:1px 10px;border-radius:12px}
  .sidebar-item .si-badge{position:static;font-size:10px}
  .sidebar-section-header{padding:16px 20px 8px;justify-content:flex-start}
  .sidebar-logo{padding:24px 20px;justify-content:flex-start}
  
  /* Hide desktop-only elements */
  .desktop-only{display:none!important}
  
  /* Hide sidebar footer on mobile */
  .sidebar-footer{display:none}
  
  /* Transcript panel fix */
  #rewriteResult{font-size:13px}
  #rewriteResult textarea{font-size:14px}
  
  /* Buttons */
  .btn{font-size:13px;padding:8px 14px}
  
  /* Search bar */
  input[type="text"],input[type="search"],input[type="password"]{font-size:15px}
  
  /* Row layouts wrap */
  .card-row{flex-direction:column;gap:8px}
  
  /* Spinner */
  .spinner{width:16px;height:16px}
}

/* ====== 加载动画 ====== */
.loading-overlay{position:fixed;inset:0;z-index:9999;background:linear-gradient(135deg,#f5f5f7 0%,#e8e8ed 50%,#f5f5f7 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity .5s ease,visibility .5s ease}
.loading-overlay.hide{opacity:0;visibility:hidden;pointer-events:none}
.loading-scene{position:relative;width:320px;height:200px;margin-bottom:24px}
/* road */
.loading-road{position:absolute;bottom:30px;left:0;right:0;height:4px;background:rgba(0,0,0,.08);border-radius:2px;overflow:hidden}
.loading-road::after{content:'';position:absolute;top:0;left:0;width:200%;height:100%;background:repeating-linear-gradient(90deg,rgba(0,0,0,.15) 0,rgba(0,0,0,.15) 20px,transparent 20px,transparent 40px);animation:roadScroll .6s linear infinite}
@keyframes roadScroll{to{transform:translateX(-40px)}}
/* runner */
.loading-runner{position:absolute;bottom:34px;left:50%;transform:translateX(-50%);animation:runBounce .4s ease-in-out infinite;font-size:48px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.4))}
@keyframes runBounce{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-12px)}}
/* particles */
.loading-particle{position:absolute;bottom:38px;width:6px;height:6px;background:rgba(74,158,255,.5);border-radius:50%;animation:particleFly 1.2s linear infinite}
.loading-particle:nth-child(1){left:20%;animation-delay:0s}
.loading-particle:nth-child(2){left:35%;animation-delay:.3s}
.loading-particle:nth-child(3){left:50%;animation-delay:.6s}
.loading-particle:nth-child(4){left:65%;animation-delay:.9s}
.loading-particle:nth-child(5){left:80%;animation-delay:.15s}
@keyframes particleFly{0%{opacity:0;transform:translateY(0) scale(1)}30%{opacity:.8}100%{opacity:0;transform:translateY(-60px) scale(0)}}
/* floating icons */
.loading-icons{position:absolute;font-size:20px;animation:floatUp 3s ease-in-out infinite;opacity:.3}
.loading-icons:nth-child(6){left:10%;top:60%;animation-delay:0s}
.loading-icons:nth-child(7){left:30%;top:45%;animation-delay:.8s}
.loading-icons:nth-child(8){left:55%;top:55%;animation-delay:1.6s}
.loading-icons:nth-child(9){left:80%;top:40%;animation-delay:2.4s}
@keyframes floatUp{0%,100%{opacity:.1;transform:translateY(0)}50%{opacity:.4;transform:translateY(-20px)}}
/* text */
.loading-text{font-size:15px;font-weight:600;color:rgba(0,0,0,.7);letter-spacing:1px;margin-bottom:8px;animation:textPulse 2s ease-in-out infinite}
@keyframes textPulse{0%,100%{opacity:.6}50%{opacity:1}}
.loading-subtext{font-size:12px;color:var(--c-text-3, #86868b);letter-spacing:2px}
/* progress dots */
.loading-dots{display:flex;gap:6px;margin-top:16px}
.loading-dots span{width:6px;height:6px;border-radius:50%;background:var(--pri3);animation:dotBounce 1.4s ease-in-out infinite}
.loading-dots span:nth-child(2){animation-delay:.2s}
.loading-dots span:nth-child(3){animation-delay:.4s}
@keyframes dotBounce{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}


/* ====== 标签选择器（人工改写） ====== */
.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.tag{display:inline-block;padding:6px 14px;border-radius:20px;border:1px solid #e2e8f0;background:#fff;font-size:12px;color:#475569;cursor:pointer;transition:all .2s;user-select:none;font-weight:400}
.tag:hover{border-color:#4A9EFF;color:var(--c-brand-ink, #4A9EFF);background:#e8f1fd}
.tag.sel{background:linear-gradient(135deg,#4A9EFF,#A0D8FF);color:#fff;border-color:transparent;font-weight:600;box-shadow:0 2px 8px rgba(74,158,255,.25)}


/* ====== vlog 进度条 ====== */
.vv-progress-wrap{background:#f1f5f9;border-radius:12px;padding:16px;margin-top:10px}
.vv-progress-bar{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden;margin-bottom:12px}
.vv-progress-fill{height:100%;background:linear-gradient(90deg,#4A9EFF,#A0D8FF,#A0D8FF);border-radius:3px;width:0%;transition:width .4s ease;position:relative;overflow:hidden}
.vv-progress-fill::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);animation:vvShimmer 1.5s infinite}
@keyframes vvShimmer{0%{left:-100%}100%{left:200%}}
.vv-steps{display:flex;justify-content:space-between;gap:4px}
.vv-step{flex:1;text-align:center;font-size:11px;color:var(--c-text-3, #94a3b8);position:relative;padding-top:10px}
.vv-step::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:8px;height:8px;border-radius:50%;background:#e2e8f0;transition:all .3s}
.vv-step.done{color:var(--ok);font-weight:600}
.vv-step.done::before{background:#22c55e;box-shadow:0 0 6px rgba(34,197,94,.5)}
.vv-step.active{color:var(--c-brand-ink, #4A9EFF);font-weight:600}
.vv-step.active::before{background:#4A9EFF;box-shadow:0 0 8px rgba(74,158,255,.5);animation:vvPulse 1s infinite}
@keyframes vvPulse{0%,100%{box-shadow:0 0 4px rgba(74,158,255,.35)}50%{box-shadow:0 0 12px rgba(74,158,255,.6)}}
.vv-done-badge{display:inline-flex;align-items:center;gap:4px;background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600}

/* ====== vlog 面板优化 ====== */
.vv-layout{display:grid;grid-template-columns:1fr;gap:16px;min-width:0;overflow:hidden}
.vv-layout>*{min-width:0;max-width:100%}
@media (max-width:900px){.vv-layout{grid-template-columns:1fr}}


/* ====== vlog 缩略图成品库 ====== */
.vv-result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;overflow-y:auto;grid-auto-rows:min-content;align-content:start}
.vv-thumb{position:relative;border-radius:8px;overflow:hidden;cursor:pointer;background:#f1f5f9;border:2px solid transparent;transition:all .15s}
.vv-thumb:hover{border-color:#4A9EFF;transform:translateY(-1px);box-shadow:0 6px 16px rgba(74,158,255,.12)}
.vv-thumb img{width:100%;aspect-ratio:9/16;object-fit:cover;display:block;background:#1e293b}
.vv-thumb-info{padding:8px 10px;background:#fff;line-height:1.35}
.vv-thumb-name{font-size:12px;font-weight:600;color:#1d1d1f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vv-thumb-meta{font-size:11px;color:var(--c-text-3, #94a3b8);display:flex;align-items:center;gap:4px}
.vv-thumb-del{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;border:none;cursor:pointer;font-size:14px;line-height:24px;text-align:center;opacity:0;transition:opacity .2s;z-index:2}
.vv-thumb:hover .vv-thumb-del{opacity:1}
.vv-thumb-del:hover{background:#dc2626}
.vv-thumb-email{position:absolute;top:6px;right:34px;height:24px;padding:0 8px;border-radius:12px;background:rgba(74,158,255,.92);color:#fff;border:none;cursor:pointer;font-size:11px;line-height:24px;text-align:center;opacity:0;transition:opacity .2s;z-index:2;white-space:nowrap}
.vv-thumb:hover .vv-thumb-email{opacity:1}
.vv-thumb-email:hover{background:#2563eb}
.vv-thumb-share{position:absolute;top:34px;right:34px;height:24px;padding:0 8px;border-radius:12px;background:rgba(16,185,129,.92);color:#fff;border:none;cursor:pointer;font-size:11px;line-height:24px;text-align:center;opacity:0;transition:opacity .2s;z-index:2;white-space:nowrap}
.vv-thumb:hover .vv-thumb-share{opacity:1}
.vv-thumb-share:hover{background:#059669}
.vv-thumb-actions{display:flex;gap:6px;padding:8px 8px 0;background:#fff}
.vv-thumb-act{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:1;min-width:0;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;color:#475569;font-size:11px;padding:6px 4px;cursor:pointer;white-space:nowrap}
.vv-thumb-act:hover{background:#eff6ff;color:#2563eb;border-color:#bfdbfe}
/* 新闻素材卡操作区：两列网格；3 个按钮时「删除」独占一行，避免被卡片 overflow:hidden 裁掉 */
.news-mat-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px}
.news-mat-acts>.btn{min-width:0;padding:0 8px;gap:5px}
.news-mat-acts>.btn-full{grid-column:1 / -1}

/* 浮动预览弹窗 */
.vv-preview-overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:9999;display:none;align-items:center;justify-content:center;animation:vvFadeIn .2s}
@keyframes vvFadeIn{from{opacity:0}to{opacity:1}}
.vv-preview-box{background:#fff;border-radius:16px;overflow:hidden;width:90%;max-width:720px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 25px 60px rgba(0,0,0,.4);animation:vvSlideUp .25s}
@keyframes vvSlideUp{from{transform:translateY(40px);opacity:0}to{transform:translateY(0);opacity:1}}
.vv-preview-hd{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.vv-preview-title{font-weight:600;font-size:14px;color:#1d1d1f}
.vv-preview-close{width:32px;height:32px;border-radius:50%;border:none;background:#e2e8f0;color:#475569;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:all .2s}
.vv-preview-close:hover{background:#dc2626;color:#fff}
.vv-preview-body{flex:1;background:#000;display:flex;align-items:center;justify-content:center;min-height:300px}
.vv-preview-body video{max-width:100%;max-height:60vh;width:auto;height:auto;display:block;margin:0 auto}
.vv-preview-card{background:#0b0f19;border-radius:16px;overflow:hidden;max-width:92vw;max-height:92vh;display:flex;flex-direction:column;box-shadow:0 25px 60px rgba(0,0,0,.55);animation:vvSlideUp .25s}
.vv-preview-header{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:#111827;border-bottom:1px solid #1f2937;color:#fff;font-weight:600;font-size:14px}
.vv-preview-card video{max-width:100%;max-height:70vh;width:auto;height:auto;display:block;margin:0 auto;background:#000}
.vv-preview-actions{display:flex;gap:8px;padding:12px 18px;background:#111827;border-top:1px solid #1f2937}
.vv-preview-actions .btn{flex:1;text-align:center}
.vv-preview-card .vv-preview-close{background:#1f2937;color:#e5e7eb}
.vv-preview-ft{display:flex;gap:8px;padding:12px 18px;background:#f8fafc;border-top:1px solid #e2e8f0}
.vv-preview-ft .btn{flex:1;text-align:center}

/* Desktop: hide mobile elements */
@media(min-width:769px){.mobile-toggle{display:none!important}.sidebar-overlay{display:none!important}}

/* ====== 数字人独立工作台页 ====== */
body.dh-page{background:#fff}
body.dh-page #sidebar,body.dh-page .main{display:none!important}
body.dh-page .modal-overlay{background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important}
body.dh-page .modal{width:100%!important;max-width:1280px!important;height:100%!important;max-height:100vh!important;border-radius:0!important;box-shadow:none!important}
body.dh-page .modal-header{padding:20px 32px!important}
body.dh-page .modal-body{padding:24px 32px!important}
body.dh-page .dh-workbench-grid{max-height:none!important;overflow:visible!important;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);gap:18px;align-items:start}
body.dh-page .dh-cell{min-width:0}
body.dh-page .dh-full{grid-column:1/-1}
body.dh-page #dhVoiceList{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
body.dh-page #dhTplSelect{flex-wrap:nowrap!important;overflow-x:auto!important}
.dh-mode-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;background:#eef2f7;border:1px solid #e2e8f0;border-radius:12px;margin:0 0 14px;max-width:100%;box-sizing:border-box}
.dh-mode-tab{appearance:none;border:0;background:transparent;color:#64748b;font-size:13px;font-weight:650;line-height:1;padding:9px 14px;border-radius:9px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.dh-mode-tab:hover{color:#2563eb;background:rgba(255,255,255,.65)}
.dh-mode-tab.active{background:#fff;color:#1d4ed8;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.dh-mode-tab .ic{width:14px;height:14px}
.dh-mode-badge{font-size:9px;font-weight:700;color:#7c3aed;background:#f3e8ff;border-radius:999px;padding:2px 5px;line-height:1.2}
.dh-mode-title-badge{display:inline-flex;align-items:center;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:600;vertical-align:middle;margin-left:6px}
@media(max-width:640px){.dh-mode-switch{display:flex;width:100%}.dh-mode-tab{flex:1;justify-content:center;padding:9px 6px;font-size:12px}.dh-mode-badge{display:none}.dh-mode-title-badge{margin-left:4px;font-size:10px}}
.dh-card-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
.dh-step{flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#4A9EFF,#7BC4FF);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.dh-card-title{font-weight:700;font-size:15px;color:#18181b;line-height:1.2}
.dh-card-sub{font-size:12px;color:#71717a;margin-top:3px;line-height:1.4}
.dh-label{display:block;font-size:12px;color:#52525b;font-weight:600;margin:0 0 6px}
.dh-input{width:100%;box-sizing:border-box;border:1px solid #e4e4e7!important;border-radius:10px!important;padding:10px 12px!important;font-size:13px!important;background:#fff}
.dh-input:focus{outline:none;border-color:#4A9EFF!important;box-shadow:0 0 0 3px rgba(74,158,255,.12)}
.dh-section-label{font-size:12px;color:#52525b;font-weight:600;margin:0 0 8px}
.dh-h-scroll{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;align-items:flex-start;scrollbar-width:thin}
#brollTemplateList,#brollBGMList{scrollbar-width:none;-ms-overflow-style:none;padding-bottom:8px}
#brollTemplateList::-webkit-scrollbar,#brollBGMList::-webkit-scrollbar{display:none}
.broll-dragbar{display:none;position:relative;height:12px;margin:0 2px 2px;border-radius:999px;background:#e2e8f0;cursor:pointer;touch-action:none;user-select:none}
.broll-dragbar-thumb{position:absolute;top:0;left:0;height:12px;min-width:42px;border-radius:999px;background:#94a3b8;cursor:grab;transition:background .15s}
.broll-dragbar-thumb:hover{background:#64748b}
.broll-dragbar.dragging .broll-dragbar-thumb{background:#475569;cursor:grabbing}
.dh-char-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.dh-avatar-item{flex:0 0 auto;width:64px;height:88px;border-radius:12px;overflow:hidden;cursor:pointer;border:2px solid #e5e7eb;position:relative;background:#fff;transition:all .15s}
.dh-avatar-item.active{border-color:#4A9EFF!important;box-shadow:0 6px 14px rgba(74,158,255,.18)}
.dh-avatar-item img{width:100%;height:100%;object-fit:cover;display:block}
.dh-avatar-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:22px;background:linear-gradient(180deg,#f8fafc,#eef2f7)}
.dh-avatar-name{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.58);color:#fff;font-size:9px;padding:3px 4px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.dh-page .dh-col-side{position:sticky;top:24px}
@media(max-width:900px){body.dh-page .dh-workbench-grid{grid-template-columns:1fr}}
.dh-workbench-inline .dh-workbench-grid{display:grid;grid-template-columns:1fr;gap:18px;align-items:start;max-height:none!important;overflow:visible!important}
.dh-workbench-inline .dh-cell{min-width:0}
.dh-workbench-inline .dh-full{grid-column:1/-1}
.dh-workbench-inline .dh-col-side{position:static}
.dh-workbench-inline #dhVoiceList{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
.dh-workbench-inline #dhTplSelect{flex-wrap:nowrap!important;overflow-x:auto!important}
@media(max-width:900px){.dh-workbench-inline .dh-workbench-grid{grid-template-columns:1fr}}
.cc-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px;border-radius:18px;background:linear-gradient(135deg,#ffffff 0%,#f4f8ff 100%);border:1px solid #e8eef8;box-shadow:0 10px 30px rgba(15,23,42,.05);margin-bottom:16px}
.cc-kicker{font-size:10px;letter-spacing:2px;color:#7c8ba1;font-weight:700;margin-bottom:5px}
.cc-hero h2{margin:0 0 6px;font-size:24px;font-weight:750;color:#18181b}
.cc-hero h2 span{font-size:14px;color:#71717a;font-weight:500;margin-left:4px}
.cc-hero p{margin:0;font-size:13px;color:#71717a}
.cc-search{display:flex;align-items:center;gap:8px;min-width:300px;padding:10px 14px;background:#fff;border:1px solid #e4e4e7;border-radius:12px;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.cc-search span{font-size:15px}
.cc-search input{flex:1;border:none;outline:none;font-size:13px;color:#18181b;background:transparent}
.cc-tabs{display:inline-flex;gap:4px;padding:5px;background:#f1f5f9;border-radius:12px;margin-bottom:14px}
.cc-tabs button{border:none;background:transparent;padding:8px 14px;border-radius:9px;font-size:12px;font-weight:600;color:var(--c-slate, #64748b);cursor:pointer;transition:all .15s}
.cc-tabs button.active{background:#fff;color:#2563eb;box-shadow:0 4px 12px rgba(15,23,42,.08)}
.cc-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.cc-filters{display:flex;flex-wrap:wrap;gap:6px}
.cc-actions{display:flex;align-items:center;gap:6px}
.cc-done-list{display:flex;flex-direction:column;gap:12px}
.cc-done-card{margin:0;overflow:visible;border:1px solid #e7ebf1;border-left:4px solid var(--pri);border-radius:14px;box-shadow:0 4px 14px rgba(15,23,42,.04);transition:box-shadow .15s,border-color .15s}
.cc-done-card:hover{box-shadow:0 10px 24px rgba(15,23,42,.08);border-color:#d5dce6}
@media(max-width:720px){.cc-hero{flex-direction:column;align-items:stretch}.cc-search{min-width:0}}
.ks-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:20px 22px;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#f4f8ff 100%);border:1px solid #e8eef8;box-shadow:0 8px 24px rgba(15,23,42,.04);margin-bottom:16px}
.ks-hero h2{margin:0 0 6px;font-size:20px;font-weight:750;color:#18181b}
.ks-hero p{margin:0;font-size:13px;color:#71717a}
.ks-workflow{display:flex;flex-direction:column;gap:16px}
.ks-flow-section{padding:20px;border:1px solid #e7ebf1;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.04)}
.ks-flow-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.ks-step{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#4A9EFF,#2563eb);color:#fff;font-size:14px;font-weight:700;flex:0 0 auto}
.ks-flow-title{margin:0;font-size:16px;font-weight:700;color:#18181b}
.ks-flow-sub{margin:3px 0 0;font-size:12px;color:var(--c-text-3, #86868b)}
.ks-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#p18s1 .ks-grid-2{grid-template-columns:minmax(0,1fr)}
.ks-label{display:block;font-size:12px;font-weight:650;color:#1d1d1f;margin-bottom:7px}
.ks-input{width:100%;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;font-size:14px;background:#fff;transition:border-color .15s,box-shadow .15s}
.ks-input:focus{border-color:#4A9EFF;box-shadow:0 0 0 3px rgba(74,158,255,.14);outline:none}
.ks-textarea{width:100%;height:150px;border:1px solid #e2e8f0;border-radius:10px;padding:12px;line-height:1.7;resize:vertical;font-family:inherit;font-size:14px;background:#fff;transition:border-color .15s,box-shadow .15s}
.ks-textarea:focus{border-color:#4A9EFF;box-shadow:0 0 0 3px rgba(74,158,255,.14);outline:none}
.ks-custom-title{margin-top:14px;padding:14px;background:#f8fafc;border:1px solid #e8eef8;border-radius:12px}
.ks-hscroll{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;margin-top:8px;padding-bottom:12px;align-items:flex-start}
.ks-action-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.ks-status{font-size:12px;color:var(--c-brand-ink, #4A9EFF);min-height:18px}
.ks-video-note{margin-left:8px;font-size:12px;color:#b45309}
.ks-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:4px}
.ks-template-card{position:relative;display:flex;flex-direction:column;border:1px solid #e7ebf1;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 4px 14px rgba(15,23,42,.04);transition:border-color .15s,box-shadow .15s;cursor:pointer}
.ks-template-card:hover{border-color:#d5dce6;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.ks-template-card.active{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.13)}
.ks-template-grid.locked{opacity:.62;pointer-events:none}
.ks-template-thumb{height:112px;background:#eef2f7;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;color:var(--c-text-3, #86868b);font-size:12px}
.ks-template-thumb img{width:100%;height:100%;object-fit:cover}
.ks-template-body{padding:10px 12px;display:flex;flex-direction:column;align-items:stretch;gap:8px}
.ks-template-name{font-size:13px;font-weight:650;color:#1d1d1f;min-width:0;line-height:1.35;word-break:break-word;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ks-template-actions{display:flex;gap:6px;flex:0 0 auto}
.ks-template-mini-btn{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#2563eb;font-size:12px;cursor:pointer}
.ks-template-mini-btn:hover{border-color:#bfdbfe;background:#f8fbff}
.ks-material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.ks-material-card{border:1px solid #e7ebf1;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 4px 14px rgba(15,23,42,.04)}
.ks-material-thumb{position:relative;height:124px;background:#eef2f7;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;color:var(--c-text-3, #86868b);font-size:12px;cursor:pointer}
.ks-material-body{padding:12px}
@media(max-width:720px){.ks-hero{flex-direction:column;align-items:stretch}.ks-grid-2{grid-template-columns:1fr}}
.song-step-title{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:750;color:#1d1d1f;margin-bottom:10px}
.song-mode-tabs{display:inline-flex;gap:4px;padding:5px;background:#f1f5f9;border-radius:12px;margin-bottom:10px;flex-wrap:wrap}
.song-mode-tabs button{border:none;background:transparent;padding:8px 12px;border-radius:9px;font-size:12px;font-weight:600;color:var(--c-slate, #64748b);cursor:pointer;transition:all .15s}
.song-mode-tabs button.active{background:#fff;color:#2563eb;box-shadow:0 4px 12px rgba(15,23,42,.08)}
.song-mode-tabs button:disabled{opacity:.45;cursor:not-allowed}
.song-card-check{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border-radius:999px;background:#2563eb;color:#fff;font-size:11px;font-weight:650;box-shadow:0 4px 10px rgba(37,99,235,.22)}

/* ====== 作品库统一头部 / 等高卡片 / 空态 / 骨架（A+B · 2026-09-29）====== */
.lib-head{position:relative;margin:0 0 14px;padding:14px 16px 12px;border:1px solid #e5e7eb;border-radius:12px;background:linear-gradient(180deg,#fbfcff 0%,#fff 62%);box-shadow:0 1px 2px rgba(15,23,42,.04)}
.lib-head-top{position:absolute;left:0;right:0;top:0;height:2px;border-radius:12px 12px 0 0;background:linear-gradient(90deg,#4F46E5,#2563EB 55%,rgba(37,99,235,0))}
.lib-head-row{display:flex;align-items:center;gap:12px;min-width:0}
.lib-head-ic{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:#3730a3;border:1px solid #e0e7ff}
.lib-head-ic .ic{width:18px;height:18px}
.lib-head-tx{flex:1 1 auto;min-width:0}
.lib-head-name{font-size:15px;font-weight:600;color:#1d1d1f;line-height:1.3}
.lib-head-desc{font-size:12px;color:var(--c-text-3,#86868b);margin-top:3px;line-height:1.5}
.lib-head-act{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.lib-count{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:13px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:600;white-space:nowrap}
.lib-sort{height:28px;padding:0 8px;border:1px solid #d2d2d7;border-radius:8px;background:#fff;font-size:12px;color:#1d1d1f;cursor:pointer}
.lib-sort:focus{outline:2px solid #c7d2fe;outline-offset:1px}
.vv-result-grid[data-ar]{grid-auto-rows:1fr}
.vv-result-grid[data-ar]>.vv-thumb{height:100%;display:flex;flex-direction:column}
.vv-result-grid[data-ar]>.vv-thumb .vv-thumb-info{flex:1 1 auto}
.vv-result-grid[data-ar]>a.vv-thumb{height:100%;display:flex;flex-direction:column}
.vv-result-grid .vv-thumb video{width:100%;display:block;object-fit:cover;background:#1e293b}
.vv-result-grid[data-ar="9/16"] .vv-thumb img,.vv-result-grid[data-ar="9/16"] .vv-thumb video{aspect-ratio:9/16}
.vv-result-grid[data-ar="16/9"] .vv-thumb img,.vv-result-grid[data-ar="16/9"] .vv-thumb video{aspect-ratio:16/9}
.lib-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:34px 20px;border:1px dashed #d8def0;border-radius:12px;background:linear-gradient(180deg,#fbfcff,#fff);text-align:center}
.lib-empty-ic{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:#4f46e5;border:1px solid #e0e7ff;margin-bottom:4px}
.lib-empty-ic .ic{width:22px;height:22px}
.lib-empty-t{font-size:14px;font-weight:600;color:#1d1d1f}
.lib-empty-d{font-size:12px;color:var(--c-text-3,#86868b);max-width:560px;line-height:1.6}
.lib-empty .btn{margin-top:10px}
.lib-skel{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.lib-skel-i{position:relative;overflow:hidden;border-radius:8px;background:#eef1f7}
.lib-skel-i::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.72) 50%,rgba(255,255,255,0) 100%);animation:libSkel 1.35s infinite}
@keyframes libSkel{100%{transform:translateX(100%)}}

/* ====== 新闻素材分类：可管理词表 + 色标 + 素材来源（2026-09-30）====== */
.news-cat-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.news-cat-label{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:#334155}
.news-cat-sel{min-width:180px;height:32px;padding:0 8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-size:13px;color:#1d1d1f;cursor:pointer}
.news-cat-sel.need{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.news-cat-chip{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px;border-radius:10px;font-size:11px;font-weight:600;white-space:nowrap;border:1px solid transparent}
.news-src-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.news-src-label{font-size:12px;font-weight:600;color:#334155}
.news-src-seg{display:inline-flex;gap:3px;padding:3px;background:#f1f5f9;border-radius:999px}
.news-src-seg button{border:none;background:transparent;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:600;color:#64748b;cursor:pointer}
.news-src-seg button.active{background:#fff;color:#2563eb;box-shadow:0 2px 6px rgba(15,23,42,.08)}
.news-src-preview{font-size:12px;color:#3730a3;background:#eef2ff;border:1px solid #e0e7ff;border-radius:10px;padding:8px 10px;margin-bottom:10px;line-height:1.5}
.ncm-new{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;margin-bottom:12px}
.ncm-new input[type=text]{flex:1 1 180px;min-width:140px;height:32px;padding:0 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:13px}
.ncm-color{width:40px;height:32px;padding:2px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer}
.ncm-row{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid #eef2f7;border-radius:10px;margin-bottom:8px;background:#fff}
.ncm-name{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#1d1d1f}
.ncm-cnt{font-size:11px;color:#64748b;font-weight:500}
.ncm-act{display:flex;gap:6px;flex:0 0 auto}
.ncm-empty{font-size:12px;color:#94a3b8;padding:6px 2px}

/* ====== AI剧情数字人素材选择弹窗（2026-10-25）====== */
.slp{display:flex;flex-direction:column;gap:14px}
.slp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.slp-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.slp-pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:999px;background:var(--c-brand-soft,#e8f0fe);color:var(--c-brand-ink,#2563eb);font-size:12px;font-weight:650;white-space:nowrap}
.slp-pill .ic{width:13px;height:13px}
.slp-count{font-size:12px;color:var(--c-text-3,#5a6675)}
.slp-search{position:relative;flex:1 1 220px;max-width:300px;min-width:180px;margin:0}
.slp-search .ic{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:#94a3b8;pointer-events:none}
.slp-search input{width:100%;height:36px;padding:0 12px 0 34px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;font-size:13px;color:#1d1d1f;outline:none;box-sizing:border-box;transition:border-color .18s var(--ease,cubic-bezier(.4,0,.2,1)),box-shadow .18s var(--ease,cubic-bezier(.4,0,.2,1)),background .18s}
.slp-search input:focus{border-color:var(--c-brand,#4a9eff);background:#fff;box-shadow:0 0 0 3px rgba(74,158,255,.14)}
.slp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px;padding:2px}
.slp-card{border:1px solid #eef2f7;border-radius:14px;background:#fff;overflow:hidden;cursor:pointer;display:flex;flex-direction:column;transition:transform .2s var(--ease,cubic-bezier(.4,0,.2,1)),box-shadow .2s,border-color .2s}
.slp-card:hover{transform:translateY(-2px);border-color:rgba(74,158,255,.45);box-shadow:0 10px 24px rgba(15,23,42,.10)}
.slp-thumb{position:relative;aspect-ratio:1/1;overflow:hidden;background:#f1f5f9}
.slp-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s var(--ease,cubic-bezier(.4,0,.2,1))}
.slp-card:hover .slp-thumb img{transform:scale(1.04)}
.slp-pick{position:absolute;right:8px;bottom:8px;display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:999px;background:rgba(15,23,42,.78);color:#fff;font-size:11px;font-weight:600;opacity:0;transform:translateY(4px);transition:opacity .18s,transform .18s}
.slp-card:hover .slp-pick{opacity:1;transform:none}
.slp-pick .ic{width:12px;height:12px}
.slp-name{padding:9px 10px 2px;font-size:12px;font-weight:600;color:#1d1d1f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slp-time{padding:0 10px 10px;font-size:11px;color:#94a3b8}
.slp-tip{display:flex;align-items:center;gap:6px;font-size:11px;color:#94a3b8}
.slp-tip .ic{width:13px;height:13px;color:var(--c-ok,#0f7b43)}
.slp-empty{padding:38px 16px;border:1px dashed #dbe3ee;border-radius:16px;background:linear-gradient(180deg,#fbfdff,#f6f9fe);text-align:center}
.slp-empty-ic{width:48px;height:48px;border-radius:16px;background:#e8f0fe;color:var(--c-brand-ink,#2563eb);display:grid;place-items:center;margin:0 auto 12px}
.slp-empty-ic .ic{width:22px;height:22px}
.slp-empty-t{font-size:14px;font-weight:650;color:#1d1d1f;margin-bottom:4px}
.slp-empty-s{font-size:12px;color:var(--c-text-3,#5a6675);margin-bottom:14px}
@media(max-width:560px){
  .slp-head{align-items:stretch}
  .slp-search{max-width:none;flex-basis:100%}
  .slp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .slp-name{font-size:11px}
  .slp-time{padding-bottom:8px}
}
