/* =========================================================
   深色主题层 v7.0 —— 覆盖在原 admin_v3.css 之上
   目标：深色底 + 柔和蓝主色 + 折叠卡片 + 紧凑条目
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root{
  --bg:#0e1116;
  --card:#171b22;
  --card-2:#1c2129;
  --ink:#e6eaf2;
  --ink-2:#a2acbd;
  --ink-3:#6f7a8d;
  --line:#252b35;
  --line-2:#1f242d;

  --acc:#5b8def;
  --acc-d:#4478d4;
  --acc-lt:rgba(91,141,239,.14);

  --ok:#3fbf8f;
  --ok-lt:rgba(63,191,143,.14);
  --warn:#e0a355;
  --warn-lt:rgba(224,163,85,.14);
  --danger:#e5646a;
  --danger-lt:rgba(229,100,106,.14);

  --r-s:8px;
  --r-m:12px;
  --r-l:16px;

  --sh-1:0 1px 2px rgba(0,0,0,.35);
  --sh-2:0 2px 10px rgba(0,0,0,.4);
  --sh-3:0 10px 30px rgba(0,0,0,.5);
}

/* ---------- 2. 基础 ---------- */
html,body{background:var(--bg)}
body{
  background:var(--bg);
  color:var(--ink);
}
::selection{background:rgba(91,141,239,.35);color:#fff}

/* ---------- 3. 顶栏 ---------- */
.ad-top{
  background:#141820;
  border-bottom:1px solid var(--line);
}
.brand-txt b{color:var(--ink)}
.brand-txt i{background:var(--line)}
.brand-txt em{color:var(--ink-3)}
.who{
  color:var(--acc);
  background:var(--acc-lt);
}
.act-front,
.act-ico{
  background:var(--acc-lt)!important;
  border-color:transparent!important;
  color:var(--acc)!important;
}

/* ---------- 4. 标签栏 ---------- */
.tabs{
  background:rgba(14,17,22,.94);
  border-bottom:1px solid var(--line);
}
.tab{color:var(--ink-3)}
.tab:active{color:var(--acc)}
.tab.on{color:var(--acc)}
.tab.on::after{background:var(--acc);height:2.5px}
.tab.on em{opacity:1}

/* ---------- 5. 页头 ---------- */
.pane-hd h3{color:var(--ink)}
.tip-chip{
  background:var(--card-2);
  border-color:var(--line);
  color:var(--ink-3);
}
.btn-primary{
  background:var(--acc);
  color:#fff;
  border:0;
  box-shadow:0 4px 14px -6px rgba(91,141,239,.7);
}
.btn-primary:active{background:var(--acc-d)}
.btn-line{
  background:var(--card-2);
  border:1px solid var(--line);
  color:var(--ink-2);
}
.hd-btns{gap:8px!important}

/* ---------- 6. 分组卡（折叠） ---------- */
.gcard{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:none;
  margin-bottom:12px;
}
.gcard::before{display:none}
.gcard.ghost{background:var(--card-2);border-style:dashed}

.gcard-hd{
  padding:14px 14px 6px;
  gap:9px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.gcard-hd .drag-h{color:#3d4553;margin-top:5px}
.gcard-hd .drag-h:active{color:var(--acc)}

/* 折叠箭头：CSS 三角形，收起时旋转 */
.fold{
  flex:0 0 auto;
  display:grid;place-items:center;
  width:22px;height:22px;margin-top:2px;
  border-radius:6px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.fold i{
  display:block;width:0;height:0;
  border-left:5px solid var(--ink-3);
  border-top:4.5px solid transparent;
  border-bottom:4.5px solid transparent;
  transform:rotate(90deg);
  transition:transform .2s ease;
}
.fold[aria-expanded="0"] i{transform:rotate(0)}

.g-ico{
  width:34px;height:34px;border-radius:10px;
  font-size:13px;font-weight:700;
}
.gcard.t-link  .g-ico{background:var(--acc-lt);color:var(--acc)}
.gcard.t-video .g-ico{background:var(--warn-lt);color:var(--warn)}
.gcard.t-mixed .g-ico{background:rgba(139,124,246,.16);color:#a294f5}

.g-hd-main{
  flex:1 1 auto;min-width:0;
  display:flex;flex-direction:column;gap:4px;
}
.g-name{
  font-size:15px;font-weight:650;
  color:var(--ink);
  line-height:1.35;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.g-sub{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  font-size:11.5px;
}
.g-cnt{font-size:11.5px;color:var(--ink-3)}
.g-hint{
  font-size:10.5px;color:#4d5666;
  letter-spacing:.2px;
}

.tp{
  padding:1px 6px;border-radius:4px;
  font-size:10.5px;font-weight:600;
  background:var(--card-2);color:var(--ink-3);
  border:1px solid var(--line);
}

/* 分组操作条：右对齐小按钮 */
.gcard-bar{
  display:flex;align-items:center;gap:5px;
  padding:0 14px 11px;
  border-bottom:1px solid var(--line-2);
}
.bar-sp{flex:1 1 auto}
.gcard-bar .mv-group{display:flex;gap:3px;margin-right:2px}
.gcard-bar .op-btn.sm{
  height:26px;min-width:0;padding:0 9px;
  font-size:11.5px;border-radius:6px;
  background:var(--card-2);
  border:1px solid var(--line);
  color:var(--ink-2);
}
.gcard-bar .op-btn.sm.danger{color:var(--danger)}
.gcard-bar .op-btn.sm:active{background:#232935}

/* 折叠区 */
.gcard-body{overflow:hidden}
.gcard-body[hidden]{display:none}

/* ---------- 7. 条目 ---------- */
.gcard-bd{padding:8px 12px 0}
.sub-hd{padding:4px 2px 7px}
.sub-t{color:#5d6879;font-size:11px;letter-spacing:.4px}
.sub-n{background:var(--card-2);color:var(--ink-3)}

.item-list{display:flex;flex-direction:column;gap:6px}

.irow{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  background:var(--card-2);
  border:1px solid transparent;
  border-radius:10px;
}
.irow.apk{background:#1b2028}
.irow:active{background:#232935}

.irow .drag-h.sm{color:#3a424f;gap:2px}
.i-ico{
  width:30px;height:30px;border-radius:9px;
  font-size:12px;font-weight:700;
  background:#232935;color:var(--ink-3);
}
.i-ico.vid{background:rgba(139,124,246,.16);color:#a294f5}
.i-ico.apk{background:rgba(224,163,85,.16);color:var(--warn)}
.i-ico.lnk{background:var(--acc-lt);color:var(--acc)}

.i-main{
  flex:1 1 auto;min-width:0;
  display:flex;flex-direction:column;gap:3px;
}
.i-top{
  display:flex;align-items:center;gap:6px;
  min-width:0;
}
.i-title{
  font-size:13.5px;font-weight:560;
  color:var(--ink);
  min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  line-height:1.35;
}
/* 类型标签：三色区分 */
.tag{
  flex:0 0 auto;
  padding:1px 6px;
  border-radius:4px;
  font-size:10px;font-weight:650;
  font-style:normal;
  letter-spacing:.2px;
  line-height:1.5;
}
.tag.t-lnk{background:rgba(91,141,239,.16);color:#7ea9f7}
.tag.t-vid{background:rgba(139,124,246,.16);color:#a294f5}
.tag.t-apk{background:rgba(224,163,85,.16);color:#e0a355}

/* 链接地址：弱化 */
.i-url,
.i-meta{
  font-size:11px;
  color:#5d6879;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  line-height:1.4;
  max-width:100%;
}
.i-clicks{display:none}

/* ---------- 8. 条目右侧小按钮 ---------- */
.i-ops{
  flex:0 0 auto!important;
  display:flex;
  align-items:center;
  gap:4px;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.mini{
  display:grid;place-items:center;
  width:26px;height:26px;
  padding:0;
  border:1px solid var(--line);
  border-radius:7px;
  background:#222834;
  color:var(--ink-2);
  font-size:11px;font-weight:500;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .14s,color .14s,border-color .14s;
  text-decoration:none;
}
.mini:active{background:#2a3140;color:var(--ink)}
.mini.danger{color:#c9737a;border-color:#33262a;background:#241e21}
.mini.danger:active{background:#332428}
.mini.stat{
  width:auto;min-width:24px;padding:0 5px;
  border-color:transparent;background:transparent;
  color:#4d5666;font-size:10.5px;
}

/* ---------- 9. 分组底部三个小操作 ---------- */
.gcard-ft{
  display:flex;gap:6px;
  padding:10px 12px 12px;
  margin-top:2px;
}
.add-btn{
  flex:1 1 0;
  height:32px;
  border:1px dashed var(--line);
  border-radius:8px;
  background:transparent;
  color:var(--ink-3);
  font-size:11.5px;font-weight:500;
  gap:3px;
}
.add-btn em{font-style:normal;color:var(--acc);font-size:12px}
.add-btn:active{background:var(--acc-lt);color:var(--acc);border-color:rgba(91,141,239,.4)}

/* ---------- 10. 空态 / 弹窗 / 表单 ---------- */
.lk-empty{
  padding:18px 12px;
  color:#556071;
  font-size:12px;
  text-align:center;
}
.alert{
  background:var(--warn-lt);
  border:1px solid rgba(224,163,85,.28);
  color:#d8a463;
  border-radius:10px;
  padding:11px 13px;
  font-size:12.5px;
}
.modal-bd,.modal{
  background:var(--card)!important;
  border-color:var(--line)!important;
  color:var(--ink);
}
.modal-hd{border-bottom:1px solid var(--line)!important}
.modal-hd h4,.modal-hd b{color:var(--ink)!important}
.modal-x{
  background:var(--card-2)!important;
  border:1px solid var(--line)!important;
  color:var(--ink-2)!important;
}
.modal input[type=text],.modal input[type=password],.modal input[type=url],
.modal select,.modal textarea,
input[type=text],input[type=password],input[type=url],select,textarea{
  background:var(--card-2)!important;
  border:1px solid var(--line)!important;
  color:var(--ink)!important;
  border-radius:9px;
}
.modal label,.login-box label{color:var(--ink-2)}
.dropzone{
  background:var(--card-2)!important;
  border:1px dashed var(--line)!important;
}
.dz-ico{background:var(--acc-lt)!important;color:var(--acc)!important}
.dz-txt{color:var(--ink-2)!important}
.dz-txt b{color:var(--ink)!important}
.dz-sub{color:var(--ink-3)!important}
.fileinfo,.fi-row{background:var(--card-2)!important;border-color:var(--line)!important}

/* 卡片式区块（站点设置 / 统计） */
.card-block,.stat-sec,.res-item,.hs-card{
  background:var(--card)!important;
  border:1px solid var(--line)!important;
}
.card-block h4,.stat-sec h4,.hs-card h4{color:var(--ink)!important}
.stat-num,.hs-num{color:var(--ink)!important}
.t2-row{border-color:var(--line-2)!important}
.bar-track,.tbar-track{background:#232935!important}

/* 登录页 */
.login-body{background:var(--bg)!important}
.login-box{
  background:var(--card)!important;
  border:1px solid var(--line);
  box-shadow:var(--sh-3)!important;
}
.login-box h2{color:var(--ink)!important}
.tip.err{background:var(--danger-lt);color:#e08b90;border-color:#3a2529}
.tip.warn{background:var(--warn-lt);color:#d8a463;border-color:#3a3025}

/* 底部保存栏 */
.save-bar,.ad-foot{
  background:rgba(14,17,22,.92);
  border-top:1px solid var(--line);
}

/* ---------- 11. 移动端 ---------- */
@media (max-width:640px){
  .ad-wrap{padding:0 12px 84px}
  .pane-hd{flex-wrap:wrap;gap:10px}
  .pane-hd h3{font-size:20px}
  .hd-btns{width:100%}
  .hd-btns .btn-primary,
  .hd-btns .btn-line{
    flex:1 1 0;
    height:36px;
    font-size:12.5px;
  }

  .gcard-hd{padding:12px 12px 5px;gap:8px}
  .g-name{font-size:14.5px}
  .g-hint{font-size:10px}
  .gcard-bar{padding:0 12px 10px}
  .gcard-bd{padding:6px 10px 0}
  .gcard-ft{padding:9px 10px 11px;gap:5px}
  .add-btn{height:30px;font-size:11px}

  .irow{padding:8px 9px;gap:8px}
  .i-ico{width:28px;height:28px;border-radius:8px}
  .i-title{font-size:13px}
  .i-url,.i-meta{font-size:10.5px}
  .mini{width:25px;height:25px;font-size:10.5px}
  .mini.stat{min-width:22px;padding:0 4px}
  .i-ops{gap:3px}
}

@media (max-width:390px){
  .tag{font-size:9.5px;padding:1px 5px}
  .mini{width:24px;height:24px}
  .irow .drag-h.sm{display:none}
}

/* =========================================================
   v7.1 追加：Tab 图标 / 折线图 / 折叠说明 / 分块表单
   ========================================================= */

/* ---------- Tab 纯 CSS 图标 ---------- */
.tab{
  position:relative;
  padding-left:29px!important;
  gap:0;
}
.tab::before{
  content:"";
  position:absolute;left:12px;top:50%;
  width:13px;height:13px;
  margin-top:-6.5px;
  border:1.6px solid currentColor;
  border-radius:3.5px;
  opacity:.55;
  transition:opacity .16s;
}
.tab.on::before{opacity:1}

/* 分组：三横线 */
.tab[data-tab="groups"]::before{
  border:0;
  background:currentColor;
  height:1.6px;
  border-radius:2px;
  box-shadow:0 4px 0 currentColor,0 -4px 0 currentColor;
  width:12px;
}
/* 视频：播放三角 */
.tab[data-tab="media"]::before{
  border:0;
  width:0;height:0;
  border-left:10px solid currentColor;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  border-radius:1px;
  margin-top:-6px;
  margin-left:2px;
}
/* 站点设置：齿轮简化环 */
.tab[data-tab="site"]::before{
  border-radius:50%;
  width:12px;height:12px;
  border-width:1.7px;
}
/* 数据统计：柱状 */
.tab[data-tab="stats"]::before{
  border:0;
  width:12px;height:12px;
  background:linear-gradient(to top,currentColor 0 100%) no-repeat left bottom/3px 6px,
             linear-gradient(to top,currentColor 0 100%) no-repeat center bottom/3px 11px,
             linear-gradient(to top,currentColor 0 100%) no-repeat right bottom/3px 8px;
  border-radius:0;
}
/* 修改密码：锁形 */
.tab[data-tab="pw"]::before{
  border-radius:3px;
  width:11px;height:11px;
  border-width:1.6px;
}

/* ---------- 折线趋势图 ---------- */
.lc-wrap{padding:2px 2px 0}
.lc{
  display:block;
  width:100%;
  height:118px;
  overflow:visible;
}
.lc-x{
  display:flex;
  justify-content:space-between;
  margin-top:4px;
  padding:0 1px;
}
.lc-x span{
  flex:1 1 0;
  display:flex;flex-direction:column;align-items:center;gap:1px;
  font-size:9.5px;
  color:#555f6f;
  white-space:nowrap;
}
.lc-x span em{
  font-style:normal;
  font-size:10.5px;
  font-weight:650;
  color:var(--ink-2);
}
.lc-x span.on{color:var(--acc)}
.lc-x span.on em{color:var(--acc)}

/* ---------- 上传说明（details 折叠） ---------- */
.note{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:14px;
  overflow:hidden;
}
.note summary{
  display:flex;align-items:center;gap:8px;
  padding:12px 14px;
  cursor:pointer;
  list-style:none;
  -webkit-tap-highlight-color:transparent;
  font-size:12.5px;
  color:var(--ink-2);
}
.note summary::-webkit-details-marker{display:none}
.note summary::marker{content:""}
.note-ico{
  flex:0 0 auto;
  display:block;width:14px;height:14px;
  border-radius:50%;
  border:1.6px solid var(--acc);
  position:relative;
  opacity:.8;
}
.note-ico::after{
  content:"i";
  position:absolute;inset:0;
  display:grid;place-items:center;
  font-size:9px;font-weight:700;font-style:italic;
  color:var(--acc);
  line-height:1;
}
.note-ar{
  flex:0 0 auto;
  margin-left:auto;
  display:block;width:0;height:0;
  border-top:4.5px solid var(--ink-3);
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  transition:transform .2s ease;
}
.note[open] .note-ar{transform:rotate(180deg)}
.note-bd{
  padding:0 14px 13px;
  border-top:1px solid var(--line-2);
  margin-top:0;
}
.note-bd p{
  display:flex;gap:10px;
  margin:9px 0 0;
  font-size:11.5px;
  color:var(--ink-3);
  line-height:1.55;
}
.note-bd p b{
  flex:0 0 68px;
  color:var(--ink-2);
  font-weight:600;
}

/* ---------- 站点设置分块表单 ---------- */
.form-sec h4{
  display:flex;align-items:center;gap:7px;
  flex-wrap:wrap;
}
.sec-bar{
  display:block;width:3px;height:13px;
  border-radius:2px;
  background:var(--acc);
  flex:0 0 auto;
}
.sec-tip{
  margin-left:auto;
  font-size:10.5px;font-weight:400;
  color:#556071;
}
.form-sec label{
  display:flex;flex-direction:column;gap:6px;
}
.f-label{
  font-size:11.5px;
  color:var(--ink-2);
  font-weight:500;
  letter-spacing:.2px;
}
.form-sec input,
.form-sec textarea{
  width:100%;
  box-sizing:border-box;
  padding:10px 12px;
  font-size:13px;
  line-height:1.5;
}
.form-sec textarea{resize:vertical;min-height:76px}
.form-actions{
  display:flex;
  margin-top:4px;
}
.form-actions .form-save{
  flex:1 1 auto;
  height:44px;
  border-radius:11px;
  font-size:14px;font-weight:600;
}

/* ---------- 媒体卡片微调 ---------- */
.mthumb .tag{
  position:absolute;left:7px;top:7px;
  backdrop-filter:blur(4px);
}
.mkind{display:none}
.btn-mini{
  border:1px solid var(--line)!important;
  background:var(--card-2)!important;
  color:var(--ink-2)!important;
  border-radius:7px!important;
}
.btn-mini:active{background:#2a3140!important}

/* ---------- 移动端补充 ---------- */
@media (max-width:640px){
  .tab{padding-left:26px!important;padding-right:10px!important}
  .tab::before{left:9px;width:12px;height:12px;margin-top:-6px}
  .lc{height:104px}
  .lc-x span{font-size:9px}
  .lc-x span em{font-size:10px}
  .note summary{padding:11px 12px;font-size:12px}
  .note-bd{padding:0 12px 11px}
  .note-bd p b{flex:0 0 62px}
  .form-actions .form-save{height:42px;font-size:13.5px}
}

/* ---------- 指标卡网格：明确移动端 2 列 ---------- */
.stat-cards{
  grid-template-columns:repeat(auto-fit,minmax(128px,1fr));
  gap:9px;
}
.stat-card{
  padding:13px 8px!important;
  border-radius:12px!important;
  box-shadow:none!important;
  background:var(--card)!important;
  border:1px solid var(--line)!important;
}
.stat-card span{
  font-size:10.5px!important;
  color:var(--ink-3)!important;
  letter-spacing:.2px;
}
.stat-card b{
  display:block;
  margin-top:5px;
  font-size:21px!important;
  font-weight:700!important;
  letter-spacing:-.6px;
  color:var(--ink)!important;
  line-height:1.2;
}
/* 强调色：首卡蓝、次卡绿、播放紫 */
.stat-card.acc b{color:#7ea9f7!important}
.stat-card.ok  b{color:#57c99a!important}
.stat-card.vi  b{color:#a294f5!important}

/* 卡片网格 */
.res-grid{gap:8px}
.res-item{
  padding:10px 11px!important;
  border-radius:11px!important;
  background:var(--card-2)!important;
  border:1px solid transparent!important;
}
.res-ico{
  width:30px!important;height:30px!important;
  border-radius:9px!important;
  font-size:12px!important;
}

/* 排行 */
.rank-row{
  padding:9px 0!important;
  border-bottom:1px solid var(--line-2)!important;
}
.rank-row:last-child{border-bottom:0!important}
.rank-no{
  width:19px!important;height:19px!important;
  font-size:10.5px!important;
  border-radius:6px!important;
  background:var(--card-2)!important;
  color:var(--ink-3)!important;
}
.rank-no.top{
  background:var(--acc)!important;
  color:#fff!important;
}
.rank-bar{
  height:4px!important;
  border-radius:2px!important;
  background:#232935!important;
}
.rank-bar i{background:var(--acc)!important;border-radius:2px}
.rank-name{font-size:12.5px!important;color:var(--ink-2)!important}
.rank-num{font-size:11.5px!important;color:var(--ink)!important;font-weight:650}

/* 周期区块标题 */
.stat-sec{
  padding:15px 14px!important;
  border-radius:14px!important;
  margin-bottom:12px!important;
}
.stat-sec h4{
  margin:0 0 12px!important;
  font-size:13px!important;
  font-weight:650!important;
  color:var(--ink)!important;
  letter-spacing:.1px;
}

@media (max-width:640px){
  .stat-cards{grid-template-columns:repeat(2,1fr);gap:8px}
  .stat-card b{font-size:19px!important}
  .stat-sec{padding:13px 12px!important}
  .res-grid{gap:7px}
  .res-item{padding:9px 10px!important}
}

/* =========================================================
   v7.2 分组与内容页 —— 统一规范重设计
   圆角统一 14/10/8  |  间距 8/12/16  |  三级文字 15/13/11
   ========================================================= */

/* ---------- 顶栏：深色导航 + 返回 ---------- */
.ad-top{
  background:#12161d;
  border-bottom:1px solid var(--line);
  padding:11px 14px;
}
.brand-back{
  display:grid;place-items:center;
  width:30px;height:30px;
  margin-right:2px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--card-2);
  color:var(--ink-2);
  cursor:pointer;
  flex:0 0 auto;
  -webkit-tap-highlight-color:transparent;
}
.brand-back:active{background:#2a3140}
.brand-back i{
  display:block;width:8px;height:8px;
  border-left:1.8px solid currentColor;
  border-bottom:1.8px solid currentColor;
  transform:rotate(45deg);
  margin-left:2px;
}

/* ---------- 页头：标题 + 两个等宽主操作 ---------- */
.pane-hd{
  display:block!important;
  margin:0 0 14px!important;
}
.pane-hd-txt{margin-bottom:12px}
.pane-hd h3{
  font-size:20px!important;
  font-weight:700!important;
  letter-spacing:-.4px;
  color:var(--ink)!important;
  margin:0!important;
}
.pane-sub{display:none!important}
.hd-btns{
  display:flex!important;
  gap:8px!important;
  width:100%;
}
.hd-btns .btn-primary,
.hd-btns .btn-line{
  flex:1 1 0!important;
  height:38px!important;
  border-radius:10px!important;
  font-size:13px!important;
  font-weight:600!important;
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
}
/* 两个都是蓝色填充，统一规格 */
.hd-btns .btn-line{
  background:rgba(91,141,239,.16)!important;
  border:1px solid rgba(91,141,239,.34)!important;
  color:#9dbcfa!important;
}
.hd-btns .btn-primary{
  background:var(--acc)!important;
  border:1px solid var(--acc)!important;
  color:#fff!important;
  box-shadow:none!important;
}
.hd-btns em{font-style:normal;font-size:14px;line-height:1;opacity:.9}

/* ---------- 分组卡片 ---------- */
.gcard{
  margin-bottom:14px!important;
  border-radius:14px!important;
  border:1px solid var(--line)!important;
  background:var(--card)!important;
  box-shadow:none!important;
}

.gcard-hd{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  padding:14px 14px 13px!important;
}
.gcard-hd .drag-h{
  flex:0 0 auto;
  margin:0!important;
  color:#39404d;
}
.g-ico{
  width:34px!important;height:34px!important;
  border-radius:10px!important;
  font-size:13px!important;font-weight:700!important;
  flex:0 0 auto;
}
.g-hd-main{
  flex:1 1 auto!important;
  min-width:0;
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
}
.g-name-row{
  display:flex;align-items:center;gap:6px;
  min-width:0;
}
.g-name{
  font-size:15px!important;
  font-weight:650!important;
  color:var(--ink)!important;
  line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  min-width:0;
}
/* 类型标签：低饱和三色 */
.tp{
  flex:0 0 auto;
  padding:1px 6px!important;
  border-radius:5px!important;
  font-size:10px!important;
  font-weight:600!important;
  border:0!important;
  line-height:1.6;
  letter-spacing:.2px;
}
.tp-link {background:rgba(91,141,239,.15)!important;color:#8ab0f5!important}
.tp-video{background:rgba(139,124,246,.15)!important;color:#a89cf6!important}
.tp-mixed{background:rgba(63,191,143,.15)!important;color:#5cc99b!important}

/* 拖动提示：小字+低透明 */
.g-hint{
  font-size:10.5px!important;
  color:#4a5361!important;
  opacity:1;
  letter-spacing:.1px;
  line-height:1.4;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

.g-hd-right{
  flex:0 0 auto;
  display:flex;align-items:center;gap:8px;
}
.g-cnt{
  font-size:11px!important;
  color:#66707f!important;
  white-space:nowrap;
}
.fold{
  width:24px!important;height:24px!important;
  margin:0!important;
  border-radius:7px;
}
.fold:active{background:var(--card-2)}
.fold i{
  border-left-width:4.5px!important;
  border-top-width:4px!important;
  border-bottom-width:4px!important;
}

/* 分组操作条：右对齐小按钮，去掉多余上边框 */
.gcard-bar{
  padding:0 14px 12px!important;
  gap:5px!important;
  border-bottom:0!important;
}
.gcard-bar .mv-group{gap:2px!important}
.gcard-bar .mv-btn{
  width:22px!important;height:22px!important;
  border-radius:6px!important;
  border:1px solid var(--line)!important;
  background:var(--card-2)!important;
}
.gcard-bar .op-btn.sm{
  height:24px!important;
  padding:0 9px!important;
  font-size:11px!important;
  border-radius:6px!important;
  background:transparent!important;
  border:1px solid var(--line)!important;
  color:#8b95a5!important;
}
.gcard-bar .op-btn.sm.danger{
  color:#d1737a!important;
  border-color:rgba(229,100,106,.3)!important;
}

/* 折叠区与内容区 */
.gcard-body{border-top:1px solid var(--line-2)}
.gcard-bd{padding:10px 12px 0!important}

/* 子区块标题：弱化 */
.sub-hd{
  display:none!important;
}

/* ---------- 条目卡片 ---------- */
.item-list{gap:7px!important}
.irow{
  position:relative;
  padding:9px 10px!important;
  gap:9px!important;
  border-radius:10px!important;
  background:var(--card-2)!important;
  border:1px solid transparent!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
}
.irow:active{background:#232935!important}
.irow.apk{background:#1b2028!important}

.irow .drag-h.sm{
  color:#39404d!important;
  gap:2px!important;
}

/* 线性图标容器 */
.i-ico{
  width:32px!important;height:32px!important;
  border-radius:9px!important;
  flex:0 0 auto;
  position:relative;
  overflow:hidden;
}
.i-ico img{width:100%;height:100%;object-fit:cover;display:block}
.i-ico.vid{background:rgba(139,124,246,.14)!important}
.i-ico.apk{background:rgba(224,163,85,.14)!important}
.i-ico.lnk{background:rgba(91,141,239,.14)!important}

/* 线性图标：纯 CSS 绘制 */
.ico{
  display:block;
  width:15px;height:15px;
  position:relative;
  box-sizing:border-box;
}
/* 链接：两个互扣圆环 */
.ico.ln-lnk{
  border:1.6px solid #7ea9f7;
  border-radius:4px;
  transform:rotate(-40deg);
  width:14px;height:10px;
}
.ico.ln-lnk::after{
  content:"";
  position:absolute;
  left:2.5px;top:1.2px;
  width:7px;height:4.4px;
  border:1.6px solid rgba(126,169,247,.55);
  border-radius:3px;
  border-left-color:transparent;
}
/* 视频：播放三角 + 方框 */
.ico.ln-vid{
  border:1.6px solid #a294f5;
  border-radius:4px;
  width:15px;height:12px;
}
.ico.ln-vid::after{
  content:"";
  position:absolute;
  left:4.5px;top:2.5px;
  width:0;height:0;
  border-left:5px solid #a294f5;
  border-top:3.2px solid transparent;
  border-bottom:3.2px solid transparent;
}
/* 安装包：盒子 + 横线 */
.ico.ln-apk{
  border:1.6px solid #e0a355;
  border-radius:4px;
  width:14px;height:13px;
}
.ico.ln-apk::after{
  content:"";
  position:absolute;
  left:2px;right:2px;top:4px;
  height:1.4px;
  background:#e0a355;
  box-shadow:0 3.2px 0 rgba(224,163,85,.55);
}

/* 条目文字：三级 */
.i-main{gap:3px!important}
.i-title{
  font-size:13px!important;
  font-weight:600!important;
  color:var(--ink)!important;
  line-height:1.35;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.i-sub{
  display:flex;align-items:center;flex-wrap:wrap;gap:0 3px;
  font-size:11px!important;
  color:#5f6a79!important;
  line-height:1.5;
  min-width:0;
}
.i-url,
.i-meta{
  font-size:11px!important;
  color:#5f6a79!important;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:100%;
  line-height:1.5;
}
.i-badge{
  align-self:flex-start;
  margin-top:1px;
  padding:0 5px;
  border-radius:4px;
  font-size:9.5px;
  font-weight:600;
  color:#8ab0f5;
  background:rgba(91,141,239,.14);
  line-height:1.7;
}

/* 查看完整链接 */
.see-full{
  flex:0 0 auto;
  padding:0;
  border:0;
  background:transparent;
  color:#7ea9f7;
  font-size:10.5px;
  font-family:inherit;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-color:rgba(126,169,247,.45);
  -webkit-tap-highlight-color:transparent;
}
.see-full:active{color:#a8c5f9}

/* ---------- 条目三按钮：紧凑统一 ---------- */
.i-ops{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center;
  gap:4px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.mini{
  height:26px!important;
  width:auto!important;
  min-width:34px;
  padding:0 7px!important;
  border-radius:7px!important;
  font-size:10.5px!important;
  font-weight:500!important;
  line-height:1;
  background:transparent!important;
  border:1px solid var(--line)!important;
  color:#8b95a5!important;
  display:inline-flex;align-items:center;justify-content:center;
}
.mini:active{background:#2a3140!important}
/* 隐藏=橙框 */
.mini.warn{
  color:#d9a464!important;
  border-color:rgba(224,163,85,.34)!important;
}
.mini.warn:active{background:rgba(224,163,85,.12)!important}
/* 删除=红框 */
.mini.danger{
  color:#d1737a!important;
  border-color:rgba(229,100,106,.34)!important;
  background:transparent!important;
}
.mini.danger:active{background:rgba(229,100,106,.12)!important}
/* 播放/下载=蓝字 */
.mini.act-play,.mini.act-dl{
  color:#8ab0f5!important;
  border-color:rgba(91,141,239,.3)!important;
}

/* ---------- 隐藏条目：遮罩 + 标签 ---------- */
.irow.is-hidden{opacity:.62}
.irow.is-hidden .i-title{color:#9aa3b2!important}
.hide-ov{
  position:absolute;
  right:8px;top:50%;
  transform:translateY(-50%);
  padding:2px 7px;
  border-radius:5px;
  background:rgba(14,17,22,.82);
  border:1px solid #3a4150;
  color:#9aa3b2;
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.3px;
  pointer-events:none;
  z-index:2;
}

/* ---------- 分组底部三个等宽小操作 ---------- */
.gcard-ft{
  padding:10px 12px 12px!important;
  gap:6px!important;
}
.add-btn{
  height:32px!important;
  border-radius:8px!important;
  border:1px solid var(--line)!important;
  background:transparent!important;
  color:#8b95a5!important;
  font-size:11.5px!important;
  font-weight:500!important;
  gap:2px!important;
}
.add-btn em{
  font-style:normal;
  color:#7ea9f7!important;
  font-size:12px!important;
  margin-right:1px;
}
.add-btn:active{
  background:rgba(91,141,239,.1)!important;
  border-color:rgba(91,141,239,.35)!important;
  color:#a8c5f9!important;
}

/* ---------- 移动端 ---------- */
@media (max-width:640px){
  .ad-top{padding:10px 12px}
  .pane-hd h3{font-size:19px!important}
  .hd-btns .btn-primary,.hd-btns .btn-line{height:36px!important;font-size:12.5px!important}
  .gcard-hd{padding:12px 12px 11px!important;gap:9px!important}
  .g-ico{width:32px!important;height:32px!important;border-radius:9px!important}
  .g-name{font-size:14.5px!important}
  .g-hint{font-size:10px!important}
  .g-cnt{font-size:10.5px!important}
  .gcard-bd{padding:9px 10px 0!important}
  .irow{padding:8px 9px!important;gap:8px!important}
  .i-ico{width:30px!important;height:30px!important}
  .i-title{font-size:12.5px!important}
  .i-sub,.i-url,.i-meta{font-size:10.5px!important}
  .mini{height:25px!important;min-width:32px;padding:0 6px!important;font-size:10px!important}
  .i-ops{gap:3px!important}
  .gcard-ft{padding:9px 10px 11px!important}
  .add-btn{height:30px!important;font-size:11px!important}
}

@media (max-width:390px){
  .irow .drag-h.sm{display:none}
  .mini{min-width:29px;padding:0 5px!important;font-size:9.5px!important}
  .g-hint{font-size:9.5px!important}
}

/* =========================================================
   v7.3 修复：分组名截断 / 一键前台按钮 / 顶栏拥挤
   ========================================================= */

/* ---------- 顶栏右侧动作区 ---------- */
.ad-actions{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex:0 0 auto;
}
/* 一键到前台：蓝色实心主按钮，最显眼 */
.act-front{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  height:32px!important;
  padding:0 13px!important;
  border-radius:9px!important;
  background:var(--acc)!important;
  border:1px solid var(--acc)!important;
  color:#fff!important;
  text-decoration:none!important;
  flex:0 0 auto;
  -webkit-tap-highlight-color:transparent;
  box-shadow:none!important;
}
.act-front:active{background:var(--acc-d)!important}
.act-front em{
  font-style:normal!important;
  font-size:12.5px!important;
  font-weight:600!important;
  color:#fff!important;
  line-height:1!important;
}
.act-front span{display:none!important}
/* 前台按钮内部小箭头（外跳） */
.af-ico{
  display:block;
  width:9px;height:9px;
  border-top:1.7px solid #fff;
  border-right:1.7px solid #fff;
  border-radius:1px;
  position:relative;
  flex:0 0 auto;
}
.af-ico::after{
  content:"";
  position:absolute;
  left:-2px;bottom:-2px;
  width:5.5px;height:1.7px;
  background:#fff;
  border-radius:1px;
  transform:rotate(-45deg);
  transform-origin:left center;
}

/* 头像 */
.who{
  width:30px!important;height:30px!important;
  border-radius:50%!important;
  font-size:12.5px!important;
  flex:0 0 auto;
}
/* 退出 */
.act-ico.danger{
  height:30px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  font-size:11.5px!important;
  background:transparent!important;
  border:1px solid rgba(229,100,106,.3)!important;
  color:#d1737a!important;
  display:inline-flex;align-items:center;
  text-decoration:none;
  flex:0 0 auto;
}

/* ---------- 返回按钮与品牌 ---------- */
.brand-back{width:28px!important;height:28px!important;border-radius:8px!important}
.brand-txt em{
  font-size:11.5px!important;
  color:#5a6473!important;
}

/* ---------- 分组名：不再截断 ---------- */
.g-hd-main{
  min-width:0;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}
.g-name-row{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0;
  flex-wrap:wrap;
}
.g-name{
  font-size:15px!important;
  font-weight:650!important;
  color:var(--ink)!important;
  line-height:1.35!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:break-word;
  min-width:0;
  flex:0 1 auto;
}

/* 统计 + 提示 同一行 */
.g-meta-row{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap;
  min-width:0;
}
.g-cnt{
  font-size:11px!important;
  color:#8b95a5!important;
  white-space:nowrap;
  flex:0 0 auto;
  font-weight:500;
}
.g-hint{
  font-size:10px!important;
  color:#4a5361!important;
  white-space:normal!important;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1 1 auto;
  min-width:0;
  line-height:1.4;
}

/* 折叠箭头靠最右 */
.gcard-hd > .fold{
  width:26px!important;
  height:26px!important;
  margin:0 0 0 2px!important;
  flex:0 0 auto;
  align-self:center;
}
.g-hd-right{display:none!important}

/* 分组头与下方操作条间距 */
.gcard-hd{padding:13px 14px 8px!important}
.gcard-bar{padding:0 14px 11px!important}

/* ---------- 移动端 ---------- */
@media (max-width:640px){
  .ad-top{padding:9px 11px}
  .ad-actions{gap:6px!important}
  .act-front{height:30px!important;padding:0 11px!important;border-radius:8px!important}
  .act-front em{font-size:12px!important}
  .who{width:28px!important;height:28px!important;font-size:12px!important}
  .act-ico.danger{height:28px!important;padding:0 9px!important;font-size:11px!important}
  .brand-txt b{font-size:14px!important}
  .brand-txt em{font-size:11px!important}
  .brand-back{width:26px!important;height:26px!important}

  .g-name{font-size:14.5px!important}
  .g-hint{font-size:9.5px!important}
  .g-cnt{font-size:10.5px!important}
  .gcard-hd{padding:12px 12px 7px!important;gap:9px!important}
  .gcard-bar{padding:0 12px 10px!important}
}

@media (max-width:390px){
  .brand-txt em{display:none!important}
  .brand-txt i{display:none!important}
  .g-hint{display:none!important}
  .g-meta-row{gap:0!important}
}

/* ---------- 条目图标按钮（替代文字按钮，省空间） ---------- */
.i-ops{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.mbtn{
  display:grid!important;place-items:center;
  width:28px!important;height:28px!important;
  padding:0!important;
  border-radius:8px!important;
  border:1px solid var(--line)!important;
  background:transparent!important;
  color:#7d8797!important;
  cursor:pointer;
  flex:0 0 auto;
  text-decoration:none!important;
  -webkit-tap-highlight-color:transparent;
  transition:background .14s,border-color .14s;
}
.mbtn:active{background:#2a3140!important}
.mbtn.warn{
  color:#d9a464!important;
  border-color:rgba(224,163,85,.32)!important;
}
.mbtn.warn:active{background:rgba(224,163,85,.12)!important}
.mbtn.danger{
  color:#d1737a!important;
  border-color:rgba(229,100,106,.32)!important;
}
.mbtn.danger:active{background:rgba(229,100,106,.12)!important}
.mbtn.blue{
  color:#8ab0f5!important;
  border-color:rgba(91,141,239,.3)!important;
}
.mbtn.blue:active{background:rgba(91,141,239,.12)!important}

/* 图标本体（纯 CSS） */
.mbtn i{
  display:block;position:relative;
  width:13px;height:13px;
  box-sizing:border-box;
  font-style:normal;
}
/* 编辑：铅笔形对角线 */
.mi-edit{
  border:1.5px solid currentColor;
  border-radius:2px;
  width:11px!important;height:11px!important;
  transform:rotate(-45deg);
  border-left-color:transparent!important;
  border-bottom-color:transparent!important;
}
.mi-edit::after{
  content:"";
  position:absolute;
  right:-2px;bottom:-2px;
  width:4px;height:4px;
  background:currentColor;
  border-radius:1px;
}
/* 眼睛：椭圆 + 瞳 */
.mi-eye{
  width:14px!important;height:9px!important;
  border:1.5px solid currentColor;
  border-radius:50% 50% 50% 50%/60% 60% 40% 40%;
}
.mi-eye::after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:4px;height:4px;
  margin:-2px 0 0 -2px;
  border-radius:50%;
  background:currentColor;
}
/* 闭眼（已隐藏） */
.mi-eye.off{
  height:1.5px!important;
  border:0;
  background:currentColor;
  border-radius:2px;
  margin-top:0;
}
.mi-eye.off::after{
  display:none;
}
/* 删除：垃圾桶 */
.mi-del{
  width:11px!important;height:12px!important;
  border:1.5px solid currentColor;
  border-radius:0 0 2.5px 2.5px;
  border-top:0;
  margin-top:1px;
}
.mi-del::before{
  content:"";
  position:absolute;
  left:-2px;top:-3px;
  width:15px;height:1.5px;
  background:currentColor;
  border-radius:1px;
}
.mi-del::after{
  content:"";
  position:absolute;
  left:50%;top:-5.5px;
  width:5px;height:2px;
  margin-left:-2.5px;
  border:1.5px solid currentColor;
  border-bottom:0;
  border-radius:2px 2px 0 0;
}
/* 播放三角 */
.mi-play{
  width:0!important;height:0!important;
  border-left:10px solid currentColor;
  border-top:6.5px solid transparent;
  border-bottom:6.5px solid transparent;
  border-radius:1px;
  margin-left:2px;
}
/* 下载：下箭头 + 托盘 */
.mi-dl{
  width:2px!important;
  height:9px!important;
  background:currentColor;
  margin-top:-2px;
}
.mi-dl::before{
  content:"";
  position:absolute;
  left:50%;bottom:0px;
  width:8px;height:8px;
  margin-left:-4px;
  border-left:1.8px solid currentColor;
  border-bottom:1.8px solid currentColor;
  transform:rotate(-45deg);
  transform-origin:center;
}
.mi-dl::after{
  content:"";
  position:absolute;
  left:50%;bottom:-3px;
  width:13px;height:1.8px;
  margin-left:-6.5px;
  background:currentColor;
  border-radius:1px;
}

/* 条目文字区让出空间 */
.i-main{flex:1 1 auto!important;min-width:0!important}

@media (max-width:640px){
  .i-ops{gap:4px!important}
  .mbtn{width:27px!important;height:27px!important;border-radius:7px!important}
}
@media (max-width:390px){
  .i-ops{gap:3px!important}
  .mbtn{width:25px!important;height:25px!important}
}

/* =========================================================
   v7.4 修复下拉框白字白底 / 顶部栏重排 / 整体收紧
   ========================================================= */

/* ---------- 下拉框：深底浅字，选项列表必须单独声明 ---------- */
select,
.modal select,
.form-sec select,
label select{
  background:#1c2129!important;
  color:#e6eaf2!important;
  border:1px solid #252b35!important;
  border-radius:9px!important;
  -webkit-appearance:none;
  appearance:none;
  padding-right:28px!important;
  background-image:
    linear-gradient(45deg,transparent 50%,#7d8797 50%),
    linear-gradient(135deg,#7d8797 50%,transparent 50%)!important;
  background-position:
    calc(100% - 15px) calc(50% - 2px),
    calc(100% - 10px) calc(50% - 2px)!important;
  background-size:5px 5px,5px 5px!important;
  background-repeat:no-repeat!important;
}
/* 关键：安卓弹出的原生列表 / 部分浏览器渲染 option 时"白底"，
   不写这条就会变成白底白字，完全看不见 */
select option,
select optgroup,
.modal select option,
.form-sec select option{
  background:#1c2129!important;
  color:#e6eaf2!important;
  font-size:13px;
}
select option:checked,
select option:hover,
.modal select option:checked{
  background:#2f6bff!important;
  color:#ffffff!important;
}
select:focus,
select:active{
  border-color:#5b8def!important;
  outline:none!important;
}
select:disabled{
  color:#6f7a8d!important;
  background:#171b22!important;
}

/* ---------- 顶部栏：更紧凑、前台按钮最显眼 ---------- */
.ad-top{
  padding:9px 12px!important;
  gap:8px!important;
  min-height:48px;
}
.ad-brand{flex:0 0 auto!important;min-width:0}
.brand-txt b{
  font-size:15px!important;
  font-weight:700!important;
  letter-spacing:-.3px!important;
  color:var(--ink)!important;
}
.brand-txt i,.brand-txt em{display:none!important}
.brand-back{display:none!important}

.ad-actions{
  margin-left:auto;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}
/* 前台按钮：更亮、更大、带箭头 */
.act-front{
  height:31px!important;
  padding:0 12px!important;
  border-radius:8px!important;
  background:#2f6bff!important;
  border:0!important;
  color:#fff!important;
  gap:5px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 2px 8px -3px rgba(47,107,255,.8)!important;
}
.act-front em{
  font-size:12.5px!important;
  font-weight:600!important;
  color:#fff!important;
}

/* ---------- 整体收紧：让首屏看到更多内容 ---------- */
/* Tab 栏：降低高度、默认隐藏密码页 */
.tabs{
  top:47px!important;
  margin:0 -12px 12px!important;
  padding:0 12px!important;
}
.tab{
  height:40px!important;
  padding:0 11px 0 25px!important;
  font-size:13px!important;
}
.tab::before{left:8px;width:12px;height:12px;margin-top:-6px}

/* 页头更紧凑：标题与操作按钮同行 */
.pane-hd{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  margin:0 0 12px!important;
}
.pane-hd-txt{margin:0!important;flex:0 0 auto}
.pane-hd h3{
  font-size:17px!important;
  white-space:nowrap;
}
.hd-btns{
  flex:1 1 auto!important;
  display:flex!important;
  justify-content:flex-end!important;
  gap:6px!important;
}
.hd-btns .btn-primary,
.hd-btns .btn-line{
  flex:0 1 auto!important;
  height:33px!important;
  padding:0 12px!important;
  font-size:12.5px!important;
  border-radius:8px!important;
  white-space:nowrap;
}

/* 分组卡更紧凑 */
.gcard{margin-bottom:11px!important;border-radius:13px!important}
.gcard-hd{
  padding:11px 12px 6px!important;
  gap:8px!important;
}
.g-ico{width:30px!important;height:30px!important;border-radius:9px!important;font-size:12px!important}
.g-name{font-size:14px!important;font-weight:650!important}
.g-hint{font-size:9.5px!important;color:#4a5361!important}
.g-cnt{font-size:10px!important}
.gcard-bar{padding:0 12px 9px!important;gap:4px!important}
.gcard-bar .op-btn.sm{height:22px!important;padding:0 8px!important;font-size:10.5px!important}
.gcard-bar .mv-btn{width:20px!important;height:20px!important}
.gcard-bd{padding:8px 10px 0!important}
.item-list{gap:6px!important}

/* 条目更紧凑 */
.irow{padding:7px 9px!important;gap:8px!important;border-radius:9px!important}
.i-ico{width:28px!important;height:28px!important;border-radius:8px!important}
.i-title{font-size:12.5px!important}
.i-sub,.i-url,.i-meta{font-size:10px!important;color:#5a646f!important}
.mbtn{width:26px!important;height:26px!important;border-radius:7px!important}
.i-ops{gap:4px!important}

/* 底部三按钮 */
.gcard-ft{padding:8px 10px 10px!important;gap:5px!important}
.add-btn{height:28px!important;font-size:10.5px!important;border-radius:7px!important}
.add-btn em{font-size:11px!important}

/* ---------- 弹窗里的表单也兼容深色 ---------- */
.modal select,
.modal input,
.modal textarea{
  font-size:13px!important;
}

/* ---------- 移动端 ---------- */
@media (max-width:640px){
  .ad-top{padding:8px 10px!important;min-height:46px}
  .brand-txt b{font-size:14px!important}
  .act-front{height:29px!important;padding:0 10px!important}
  .act-front em{font-size:12px!important}
  .who{width:27px!important;height:27px!important;font-size:11.5px!important}
  .act-ico.danger{height:27px!important;padding:0 8px!important;font-size:10.5px!important}

  .tabs{top:45px!important;margin:0 -10px 10px!important;padding:0 10px!important}
  .tab{height:38px!important;padding:0 9px 0 23px!important;font-size:12.5px!important}
  .tab::before{left:7px;width:11px;height:11px;margin-top:-5.5px}

  .pane-hd{gap:8px!important;margin-bottom:10px!important}
  .pane-hd h3{font-size:16px!important}
  .hd-btns .btn-primary,.hd-btns .btn-line{
    height:31px!important;padding:0 10px!important;font-size:12px!important;
  }

  .gcard-hd{padding:10px 11px 5px!important;gap:7px!important}
  .g-ico{width:28px!important;height:28px!important}
  .g-name{font-size:13.5px!important}
  .irow{padding:7px 8px!important}
  .i-ico{width:26px!important;height:26px!important}
  .i-title{font-size:12px!important}
  .mbtn{width:25px!important;height:25px!important}
  .gcard-ft{padding:7px 9px 9px!important}
  .add-btn{height:27px!important;font-size:10px!important}
}

@media (max-width:390px){
  .brand-txt b{font-size:13px!important}
  .hd-btns .btn-primary,.hd-btns .btn-line{padding:0 8px!important;font-size:11.5px!important}
  .g-hint{display:none!important}
}

/* =========================================================
   v7.5 终极修正：吸附位置 / 页头分层 / 留白节奏
   核心思路：不再硬编码顶栏高度，改用 CSS 变量一处改全局
   ========================================================= */

:root{
  --top-h:48px;      /* 顶栏实高 */
  --tab-h:40px;      /* Tab 栏实高 */
}

/* ---------- 顶栏：定高，避免内部撑变 ---------- */
.ad-top{
  height:var(--top-h)!important;
  min-height:var(--top-h)!important;
  padding:0 12px!important;
  box-sizing:border-box;
  gap:8px!important;
}
.brand-txt{
  display:flex!important;align-items:center!important;
  height:100%;
}
.brand-txt b{
  font-size:15px!important;font-weight:700!important;
  letter-spacing:-.3px!important;color:var(--ink)!important;
  line-height:1!important;
}
.ad-actions{height:100%!important;align-items:center!important}

/* ---------- Tab 栏：吸附位置用变量，永不错位 ---------- */
.tabs{
  top:var(--top-h)!important;
  height:var(--tab-h)!important;
  margin:0 -12px 14px!important;
  padding:0 12px!important;
  display:flex!important;
  align-items:stretch!important;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.tabs::-webkit-scrollbar{display:none}
.tab{
  height:var(--tab-h)!important;
  padding:0 12px 0 26px!important;
  font-size:12.5px!important;
  flex:0 0 auto;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.tab em{
  font-style:normal!important;
  font-size:12.5px!important;
  line-height:1!important;
  white-space:nowrap;
}
.tab::before{
  left:9px!important;
  width:11px!important;height:11px!important;
  margin-top:-5.5px!important;
}
.tab[data-tab="groups"]::before{width:10px!important}
.tab[data-tab="media"]::before{
  width:0!important;height:0!important;
  border-left:8px solid currentColor!important;
  border-top:5px solid transparent!important;
  border-bottom:5px solid transparent!important;
  margin-left:1px!important;
}
.tab[data-tab="stats"]::before{
  width:10px!important;height:10px!important;
  background-size:2.5px 5px,2.5px 9px,2.5px 7px!important;
}

/* ---------- 页头：标题 + 按钮分行，不再挤 ---------- */
.page-bar{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:0 0 13px;
}
.page-title{
  margin:0;
  font-size:17px;
  font-weight:700;
  letter-spacing:-.4px;
  color:var(--ink);
  line-height:1.3;
}
.page-ops{
  display:flex;
  gap:7px;
}
.op-add{
  flex:1 1 0;
  height:34px;
  border-radius:9px;
  font-size:12.5px;
  font-weight:600;
  font-family:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s,border-color .15s;
}
.op-add em{
  font-style:normal;
  font-size:13px;
  line-height:1;
  opacity:.9;
}
/* 主操作：蓝底白字 */
.op-add.primary{
  background:#2f6bff;
  border:0;
  color:#fff;
  box-shadow:0 3px 10px -4px rgba(47,107,255,.75);
}
.op-add.primary:active{background:#2559e0}
/* 次操作：深底描边 */
.op-add.ghost{
  background:#1c2129;
  border:1px solid #2b323d;
  color:#c3cbd8;
}
.op-add.ghost:active{background:#232935}

/* 只隐藏分组页的旧页头；其他页仍用 .pane-hd */
#pane-groups > .pane-hd{display:none!important}

/* 其他页的页头保持整洁体 */
#pane-media > .pane-hd,
#pane-site  > .pane-hd,
#pane-stats > .pane-hd,
#pane-pw    > .pane-hd{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 12px!important;
}
#pane-media > .pane-hd h3,
#pane-site  > .pane-hd h3,
#pane-stats > .pane-hd h3,
#pane-pw    > .pane-hd h3{
  font-size:17px!important;
  font-weight:700!important;
  color:var(--ink)!important;
  margin:0!important;
  letter-spacing:-.4px!important;
}
#pane-media > .pane-hd .pane-sub,
#pane-site  > .pane-hd .pane-sub,
#pane-stats > .pane-hd .pane-sub{
  display:flex!important;
  font-size:10.5px!important;
  color:#5a646f!important;
  margin-top:3px;
}
#pane-media > .pane-hd .pane-sub .tip-chip,
#pane-site  > .pane-hd .pane-sub .tip-chip,
#pane-stats > .pane-hd .pane-sub .tip-chip{
  background:transparent!important;
  border:0!important;
  padding:0!important;
  color:#5a646f!important;
  font-size:10.5px!important;
}
#pane-media > .pane-hd .hd-btns{
  flex:0 0 auto!important;
  width:auto!important;
}
#pane-media > .pane-hd .hd-btns .btn-primary,
#pane-media > .pane-hd .hd-btns .btn-line{
  flex:0 0 auto!important;
  height:32px!important;
  padding:0 11px!important;
  font-size:12px!important;
}

/* ---------- 分组卡：留白节奏 12 / 8 ---------- */
.gcard{
  margin-bottom:12px!important;
  border-radius:13px!important;
  overflow:hidden;
}
.gcard-hd{padding:12px 12px 7px!important;gap:9px!important}
.gcard-bar{padding:0 12px 10px!important}
.gcard-bd{padding:9px 10px 0!important}
.item-list{gap:6px!important}
.gcard-ft{padding:9px 10px 10px!important;gap:6px!important}

/* 分组头：名称与统计行距拉开一点 */
.g-hd-main{gap:5px!important}
.g-name{font-size:14px!important;line-height:1.4!important}
.g-meta-row{gap:7px!important}
.g-cnt{font-size:10px!important;color:#78828f!important}
.g-hint{font-size:9.5px!important;color:#454d5a!important}

/* 条目 */
.irow{padding:8px 9px!important;gap:8px!important;border-radius:9px!important}
.i-title{font-size:12.5px!important;font-weight:600!important}
.i-sub,.i-url,.i-meta{font-size:10px!important;color:#5a646f!important;line-height:1.5!important}

/* ---------- 展开时上下间距重置（首屏更紧） ---------- */
.ad-wrap{
  padding:12px 12px 84px!important;
}

/* ---------- 移动端 ---------- */
@media (max-width:640px){
  :root{--top-h:46px;--tab-h:38px}
  .ad-top{padding:0 10px!important}
  .brand-txt b{font-size:14px!important}
  .act-front{height:28px!important;padding:0 10px!important}
  .act-front em{font-size:11.5px!important}
  .who{width:27px!important;height:27px!important;font-size:11.5px!important}
  .act-ico.danger{height:27px!important;padding:0 8px!important;font-size:10.5px!important}
  .ad-actions{gap:5px!important}

  .tabs{margin:0 -10px 12px!important;padding:0 10px!important}
  .tab{padding:0 10px 0 23px!important;font-size:12px!important}
  .tab em{font-size:12px!important}
  .tab::before{left:7px!important;width:10px!important;height:10px!important;margin-top:-5px!important}

  .ad-wrap{padding:10px 10px 80px!important}
  .page-bar{gap:9px;margin-bottom:11px}
  .page-title{font-size:16px}
  .op-add{height:32px;font-size:12px;border-radius:8px}

  .gcard{margin-bottom:11px!important}
  .gcard-hd{padding:11px 11px 6px!important;gap:8px!important}
  .gcard-bar{padding:0 11px 9px!important}
  .gcard-bd{padding:8px 9px 0!important}
  .gcard-ft{padding:8px 9px 9px!important;gap:5px!important}
  .g-name{font-size:13.5px!important}
  .irow{padding:7px 8px!important}
  .i-title{font-size:12px!important}
  .add-btn{height:27px!important;font-size:10px!important}
}

@media (max-width:390px){
  .brand-txt b{font-size:13px!important}
  .tab{padding:0 8px 0 21px!important;font-size:11.5px!important}
  .tab em{font-size:11.5px!important}
  .tab::before{left:6px!important}
  .g-hint{display:none!important}
  .op-add{height:31px;font-size:11.5px}
}

/* =========================================================
   v7.6 Tab 栏重做：隐藏图标 + 等分铺满 + 选中清晰
   之前问题：5 个页签（含图标）总宽 > 屏宽，flex:0 0 auto
   不能收缩，文字被挤出切口 → “分组与...”看不清
   ========================================================= */

/* 1. 彻底去掉所有 Tab 图标 */
.tab::before{
  display:none!important;
  content:none!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
}

/* 2. 容器：等分铺满，可横向滚动兼容旧逻辑 */
.tabs{
  top:var(--top-h)!important;
  height:var(--tab-h)!important;
  display:flex!important;
  align-items:stretch!important;
  gap:0!important;
  margin:0 -12px 14px!important;
  padding:0!important;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  background:#12161d!important;
  border-bottom:1px solid var(--line)!important;
}
.tabs::-webkit-scrollbar{display:none}

/* 3. 页签：等分宽度，文字完整不被切 */
.tab{
  flex:1 1 0!important;
  min-width:0!important;
  height:var(--tab-h)!important;
  padding:0 2px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:12px!important;
  font-weight:500!important;
  color:#79838f!important;
  white-space:nowrap!important;
  position:relative;
  -webkit-tap-highlight-color:transparent;
}
.tab em{
  font-style:normal!important;
  font-size:12px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  letter-spacing:-.2px;
}

/* 4. 选中态：白字加粗 + 底部粗蓝线，对比度拉满 */
.tab.on{
  color:#ffffff!important;
  font-weight:700!important;
  background:rgba(47,107,255,.1)!important;
}
.tab.on em{
  color:#ffffff!important;
  font-weight:700!important;
}
.tab.on::after{
  content:""!important;
  position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;
  width:auto!important;
  height:2.5px!important;
  background:#2f6bff!important;
  border-radius:2px 2px 0 0!important;
  transform:none!important;
  transition:none!important;
}
.tab:not(.on):active{
  color:#c3cbd8!important;
  background:rgba(255,255,255,.04)!important;
}

/* 5. 移动端：字号微调，保证 5 个页签不换行 */
@media (max-width:640px){
  .tabs{margin:0 -10px 12px!important;padding:0!important}
  .tab{padding:0 1px!important;font-size:11.5px!important}
  .tab em{font-size:11.5px!important;letter-spacing:-.3px}
  .tab.on{background:rgba(47,107,255,.12)!important}
}

@media (max-width:360px){
  .tab em{font-size:11px!important;letter-spacing:-.4px}
}

/* 6. 若页面宽度足够（平板/桌面），恢复宽松间距 */
@media (min-width:641px){
  .tab{font-size:13px!important;padding:0 10px!important}
  .tab em{font-size:13px!important;letter-spacing:0}
}

/* =========================================================
   v7.6b Tab 宽度修正
   等分计算证明：「视频与安装包」6 字在 360px 屏上必超出 68px
   → 改为「内容自适应 + 时白不换行」，宁可横向滑动也不切字
   ========================================================= */

.tabs{
  display:flex!important;
  align-items:stretch!important;
  overflow-x:auto!important;
  gap:0!important;
}

/* 关键：flex:1 1 auto（能长能缩）而不是 1 1 0（只能等分） */
.tab{
  flex:1 1 auto!important;
  min-width:max-content!important;
  padding:0 10px!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.tab em{
  font-size:12px!important;
  white-space:nowrap!important;
  letter-spacing:0!important;
}

/* 选中态：白字 + 蓝底块 + 底部蓝线，三重对比 */
.tab.on{
  color:#ffffff!important;
  font-weight:700!important;
  background:rgba(47,107,255,.16)!important;
  border-radius:7px!important;
}
.tab.on em{
  color:#ffffff!important;
  font-weight:700!important;
}
.tab.on::after{
  content:""!important;
  position:absolute!important;
  left:8px!important;right:8px!important;bottom:3px!important;
  height:2.5px!important;
  background:#2f6bff!important;
  border-radius:2px!important;
  display:block!important;
}

/* 未选中：中灰，保证高对比 */
.tab:not(.on){
  color:#8b95a5!important;
}
.tab:not(.on) em{
  color:#8b95a5!important;
  font-weight:500!important;
}

/* 滚动空间：让最后一项不贴边 */
.tabs::after{
  content:"";
  flex:0 0 4px;
}

@media (max-width:640px){
  .tab{padding:0 9px!important;font-size:12px!important}
  .tab em{font-size:12px!important}
}

@media (max-width:360px){
  .tab{padding:0 7px!important;font-size:11.5px!important}
  .tab em{font-size:11.5px!important}
}

/* =========================================================
   v7.6c 最终定稿：手机端固定 11.5px / 7px 内边距
   实测测算：360px 屏可用 340px，5 页签总宽 334px → 刚好放下
   ========================================================= */
@media (max-width:640px){
  .tabs{
    margin:0 -10px 12px!important;
    padding:0!important;
  }
  .tab{
    flex:1 1 auto!important;
    min-width:max-content!important;
    padding:0 7px!important;
    font-size:11.5px!important;
    height:var(--tab-h)!important;
  }
  .tab em{
    font-size:11.5px!important;
    letter-spacing:-.1px!important;
    font-weight:inherit!important;
  }
  .tab.on{
    background:rgba(47,107,255,.18)!important;
    border-radius:6px!important;
  }
  .tab.on::after{
    left:6px!important;right:6px!important;bottom:2px!important;
    height:2.5px!important;
  }
}

@media (max-width:344px){
  .tab{padding:0 5px!important;font-size:11px!important}
  .tab em{font-size:11px!important;letter-spacing:-.3px!important}
}

/* v7.6d 保险行：用多个高优先级选择器彻底杀掉 Tab 图标
   （旧规则里写过 .tab[data-tab="xxx"]::before 各类图形，
    上面虽然写过 display:none，但属性选择器优先级更高，
    必须用同等或更高优先级覆盖）*/
.tabs .tab::before,
.tabs .tab[data-tab]::before,
.tabs .tab[data-tab="groups"]::before,
.tabs .tab[data-tab="media"]::before,
.tabs .tab[data-tab="site"]::before,
.tabs .tab[data-tab="stats"]::before,
.tabs .tab[data-tab="pw"]::before{
  display:none!important;
  content:none!important;
  width:0!important;
  height:0!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
  opacity:0!important;
}

/* =========================================================
   v7.7 B 端重设计：新配色 / 分组头三按钮 / 底部导航
   色卡：#121419 背景 · #1b1e27 卡片 · #3b82f6 主色
   ========================================================= */

:root{
  --bg:#121419;
  --card:#1b1e27;
  --card-2:#222632;
  --ink:#e8ecf3;        /* 标题：浅白 */
  --ink-2:#a8b0be;      /* 正文：浅灰 */
  --ink-3:#6d7686;      /* 辅助：淡灰 */
  --line:#262a35;
  --line-2:#1f232d;
  --acc:#3b82f6;
  --acc-d:#2f6fd8;
  --acc-lt:rgba(59,130,246,.14);
}
html,body{background:var(--bg)!important}
body{color:var(--ink-2)!important}

/* ---------- 顶栏 ---------- */
.ad-top{
  background:#121419!important;
  border-bottom:1px solid var(--line)!important;
  height:var(--top-h)!important;
  min-height:var(--top-h)!important;
  padding:0 12px!important;
}
.brand-txt b{
  font-size:15px!important;font-weight:700!important;
  color:var(--ink)!important;letter-spacing:-.2px!important;
}
/* 前台：蓝底实心圆角 */
.act-front{
  height:28px!important;
  padding:0 12px!important;
  border-radius:7px!important;
  background:var(--acc)!important;
  border:0!important;
  box-shadow:none!important;
}
.act-front em{font-size:12px!important;font-weight:600!important}
.af-ico{width:8px!important;height:8px!important}
/* 退出：红色描边 */
.act-ico.danger{
  height:28px!important;
  padding:0 11px!important;
  border-radius:7px!important;
  background:transparent!important;
  border:1px solid rgba(239,68,68,.45)!important;
  color:#e8757d!important;
  font-size:11.5px!important;
}
.who{
  background:var(--card-2)!important;
  color:var(--ink-2)!important;
  width:26px!important;height:26px!important;
  font-size:11px!important;
}

/* ---------- Tab 栏 ---------- */
.tabs{
  background:#121419!important;
  border-bottom:1px solid var(--line)!important;
}
.tab:not(.on){color:var(--ink-3)!important}
.tab:not(.on) em{color:var(--ink-3)!important}
.tab.on{color:#ffffff!important;background:rgba(59,130,246,.16)!important}
.tab.on em{color:#ffffff!important}
.tab.on::after{background:var(--acc)!important}

/* ---------- 页头 ---------- */
.page-title{color:var(--ink)!important}
.op-add.primary{background:var(--acc)!important;box-shadow:none!important}
.op-add.primary:active{background:var(--acc-d)!important}
.op-add.ghost{
  background:var(--card)!important;
  border:1px solid var(--line)!important;
  color:var(--ink-2)!important;
}

/* ---------- 分组卡 ---------- */
.gcard{
  background:var(--card)!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  margin-bottom:12px!important;
  box-shadow:none!important;
}
.gcard-hd{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:12px 12px 11px!important;
}
.gcard-hd .drag-h{color:#3a4150!important;margin:0!important}
.g-ico{
  width:30px!important;height:30px!important;
  border-radius:8px!important;
  font-size:12px!important;
  background:var(--card-2)!important;
  color:var(--ink-2)!important;
}
.g-hd-main{
  flex:1 1 auto!important;min-width:0;
  display:flex!important;flex-direction:column!important;gap:2px!important;
}
.g-name{
  font-size:14px!important;font-weight:650!important;
  color:var(--ink)!important;line-height:1.35!important;
}
.g-cnt{
  font-size:10.5px!important;
  color:var(--ink-3)!important;
  font-weight:400!important;
}
.g-hint{display:none!important}

/* 类型标签：右上悬浮 */
.g-tag{
  flex:0 0 auto;
  padding:1px 6px;
  border-radius:5px;
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.2px;
  line-height:1.7;
  align-self:flex-start;
  margin-top:2px;
}
.g-tag.tp-mixed{background:rgba(59,130,246,.14)!important;color:#7aa9f7!important}
.g-tag.tp-link {background:rgba(59,130,246,.14)!important;color:#7aa9f7!important}
.g-tag.tp-video{background:rgba(139,124,246,.14)!important;color:#a294f5!important}

/* 分组三按钮 */
.g-ops{
  flex:0 0 auto;
  display:flex;align-items:center;gap:4px;
}
.gbtn{
  height:23px;padding:0 8px;
  border-radius:6px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink-3);
  font-size:10.5px;font-weight:500;
  font-family:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  line-height:1;
  display:inline-flex;align-items:center;
}
.gbtn:active{background:var(--card-2)}
.gbtn.warn{color:#c99a63;border-color:rgba(201,154,99,.32)}
.gbtn.danger{color:#c97179;border-color:rgba(201,113,121,.32)}

.fold{
  width:22px!important;height:22px!important;
  flex:0 0 auto;margin:0!important;
}
.fold i{
  border-left-color:var(--ink-3)!important;
  border-left-width:4px!important;
  border-top-width:3.5px!important;
  border-bottom-width:3.5px!important;
}

/* 折叠区 */
.gcard-body{border-top:1px solid var(--line-2)}
.gcard-bd{padding:9px 10px 0!important}

/* ---------- 条目 ---------- */
.item-list{gap:5px!important}
.irow{
  background:var(--card-2)!important;
  border:0!important;
  border-radius:9px!important;
  padding:8px 9px!important;
  gap:8px!important;
}
.irow.apk{background:#242331!important}
.i-title{font-size:12.5px!important;font-weight:650!important;color:var(--ink)!important}
.i-sub,.i-url,.i-meta{font-size:10px!important;color:var(--ink-3)!important}

/* 线性图标配色 */
.i-ico{width:26px!important;height:26px!important;border-radius:7px!important}
.i-ico.lnk{background:rgba(59,130,246,.13)!important}
.i-ico.vid{background:rgba(139,124,246,.13)!important}
.i-ico.apk{background:rgba(201,154,99,.13)!important}

/* 查看完整链接：蓝色小字 */
.see-full{
  color:var(--acc)!important;
  font-size:10px!important;
  text-decoration:none!important;
  border-bottom:.5px solid rgba(59,130,246,.4);
  padding-bottom:.5px;
}
.see-full:active{color:#7aa9f7!important}

/* 条目右侧图标按钮：线框风格 */
.i-ops{gap:3px!important}
.mbtn{
  width:25px!important;height:25px!important;
  border-radius:6px!important;
  border:1px solid var(--line)!important;
  background:transparent!important;
  color:var(--ink-3)!important;
}
.mbtn:active{background:var(--card)!important;color:var(--ink-2)!important}
.mbtn.danger{color:#c97179!important;border-color:rgba(201,113,121,.28)!important}

/* 隐藏遮罩 */
.irow.is-hidden{opacity:.55}
.hide-ov{
  background:rgba(18,20,25,.88)!important;
  border:1px solid #333845!important;
  color:var(--ink-3)!important;
}

/* ---------- 分组底部三按钮 ---------- */
.gcard-ft{padding:8px 9px 9px!important;gap:5px!important}
.add-btn{
  height:28px!important;
  border-radius:7px!important;
  border:1px solid var(--line)!important;
  background:transparent!important;
  color:var(--ink-3)!important;
  font-size:10.5px!important;
}
.add-btn em{color:var(--acc)!important;font-size:11px!important}
.add-btn:active{background:var(--card-2)!important;color:var(--ink-2)!important}

/* ---------- 底部固定导航 ---------- */
.botbar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:70;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:52px;
  padding:0 16px;
  background:rgba(18,20,25,.97);
  border-top:1px solid var(--line);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.bb-btn{
  display:grid;place-items:center;
  width:34px;height:34px;
  border-radius:9px;
  border:0;background:transparent;
  color:var(--ink-3);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s,color .15s;
}
.bb-btn:active{background:var(--card-2);color:var(--ink)}
.bb-title{
  font-size:11.5px;
  font-weight:500;
  color:var(--ink-3);
  letter-spacing:.4px;
}
/* 网格图标 3x3 */
.bb-grid{
  display:block;width:14px;height:14px;
  background:
    linear-gradient(currentColor,currentColor) 0 0/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 5.25px 0/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 10.5px 0/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 0 5.25px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 5.25px 5.25px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 10.5px 5.25px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 0 10.5px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 5.25px 10.5px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 10.5px 10.5px/3.5px 3.5px no-repeat;
  border-radius:1.5px;
}
/* 刷新图标：圆弧 + 箭头 */
.bb-reload{
  display:block;width:14px;height:14px;
  border:1.8px solid currentColor;
  border-radius:50%;
  border-top-color:transparent;
  position:relative;
  box-sizing:border-box;
}
.bb-reload::after{
  content:"";
  position:absolute;
  right:-1.5px;top:-1.5px;
  width:0;height:0;
  border-left:4px solid currentColor;
  border-top:3.5px solid transparent;
  border-bottom:3.5px solid transparent;
  transform:rotate(-24deg);
}
.bb-btn.spin .bb-reload{animation:bbspin .5s linear infinite}
@keyframes bbspin{to{transform:rotate(360deg)}}

/* 内容底部留出导航栏高度 */
.ad-wrap{padding-bottom:70px!important}

/* ---------- 移动端 ---------- */
@media (max-width:640px){
  .ad-top{padding:0 10px!important}
  .brand-txt b{font-size:14px!important}
  .act-front{height:27px!important;padding:0 11px!important}
  .act-ico.danger{height:27px!important;padding:0 9px!important;font-size:11px!important}
  .gcard-hd{padding:11px 11px 10px!important;gap:7px!important}
  .g-card .g-ico,.g-ico{width:28px!important;height:28px!important}
  .g-name{font-size:13.5px!important}
  .gbtn{height:22px;padding:0 7px;font-size:10px}
  .gcard-bd{padding:8px 9px 0!important}
  .gcard-ft{padding:7px 8px 8px!important}
  .add-btn{height:27px!important;font-size:10px!important}
  .botbar{height:48px;padding:0 14px}
  .bb-btn{width:32px;height:32px}
  .ad-wrap{padding-bottom:66px!important}
}

@media (max-width:360px){
  .gbtn{padding:0 5px;font-size:9.5px;height:21px}
  .g-ops{gap:3px}
}

/* =========================================================
   v7.8 修复：编辑按钮回归 + 分组头重排 + 整体精修
   ========================================================= */

/* ---------- 分组头：两行（信息行 + 操作行） ---------- */
.gcard-hd{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:9px!important;
  padding:12px 12px 8px!important;
}
.gcard-hd .drag-h{flex:0 0 auto;margin:0!important}
.g-hd-main{flex:1 1 auto!important;min-width:0}
.g-name-row{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
  min-width:0;
}
.g-name{
  flex:0 1 auto!important;
  min-width:0;
  font-size:14px!important;font-weight:650!important;
  color:var(--ink)!important;line-height:1.35!important;
  white-space:normal!important;overflow:visible!important;
  text-overflow:clip!important;word-break:break-word;
}
/* 类型标签：紧跟名称，不换行 */
.g-tag{
  flex:0 0 auto!important;
  align-self:center!important;
  margin:0!important;
  padding:1px 5px!important;
  border-radius:4px!important;
  font-size:9px!important;
  font-weight:600!important;
  line-height:1.6!important;
  letter-spacing:.2px;
}
.g-meta-row{margin-top:3px!important}
.g-cnt{font-size:10.5px!important;color:var(--ink-3)!important}

/* 分组操作行：独立一行，靠右，不挤标题 */
.gcard-bar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  padding:0 12px 10px!important;
  border-bottom:0!important;
}
.gcard-bar .g-ops{
  display:flex!important;
  align-items:center;
  gap:5px!important;
  flex:0 0 auto;
}
.gbtn{
  height:24px!important;
  padding:0 10px!important;
  border-radius:6px!important;
  border:1px solid var(--line)!important;
  background:transparent!important;
  color:var(--ink-3)!important;
  font-size:10.5px!important;
  font-weight:500!important;
}
.gbtn.warn{color:#c99a63!important;border-color:rgba(201,154,99,.3)!important}
.gbtn.danger{color:#c97179!important;border-color:rgba(201,113,121,.3)!important}

/* 折叠箭头 */
.gcard-hd > .fold{
  flex:0 0 auto!important;
  width:24px!important;height:24px!important;
  margin:0!important;
}

/* ---------- 条目编辑按钮：中性蓝，与预览/删除区分 ---------- */
.mbtn.edit{
  color:#7aa9f7!important;
  border-color:rgba(59,130,246,.3)!important;
}
.mbtn.edit:active{background:rgba(59,130,246,.12)!important}

/* ---------- 条目精修 ---------- */
.irow{
  padding:9px 9px!important;
  gap:9px!important;
  border-radius:9px!important;
  background:var(--card-2)!important;
}
.i-title{
  font-size:12.5px!important;
  font-weight:650!important;
  color:var(--ink)!important;
  line-height:1.4!important;
}
.i-sub{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center;
  gap:0 4px!important;
  margin-top:2px;
}
.i-url,.i-meta{
  font-size:10px!important;
  color:var(--ink-3)!important;
  line-height:1.5!important;
}

/* 查看完整链接：蓝色小字，带下划线感 */
.see-full{
  margin-top:2px!important;
  color:#5c9bfa!important;
  font-size:10px!important;
  font-weight:500!important;
  text-decoration:none!important;
  border-bottom:1px solid rgba(92,155,250,.35);
  padding-bottom:1px;
  line-height:1.4;
}
.see-full:active{color:#8bb9fb!important;border-bottom-color:rgba(139,185,251,.6)}

/* 条目图标按钮尺寸统一 */
.mbtn{
  width:26px!important;height:26px!important;
  border-radius:7px!important;
}
.i-ops{gap:4px!important}

/* ---------- 分组底部三按钮：更明显一点 ---------- */
.gcard-ft{
  padding:9px 9px 10px!important;
  gap:6px!important;
}
.add-btn{
  height:30px!important;
  border-radius:7px!important;
  border:1px dashed rgba(38,42,53,1)!important;
  background:rgba(34,38,50,.5)!important;
  color:var(--ink-3)!important;
  font-size:10.5px!important;
}
.add-btn:active{
  background:rgba(59,130,246,.1)!important;
  border-color:rgba(59,130,246,.35)!important;
  color:#7aa9f7!important;
}
.add-btn em{color:#5c9bfa!important}

/* ---------- Tab 栏：保持清爽 ---------- */
.tab{padding:0 8px!important;font-size:12px!important}
.tab em{font-size:12px!important}

/* ---------- 移动端 ---------- */
@media (max-width:640px){
  .gcard-hd{padding:11px 11px 7px!important;gap:8px!important}
  .g-name{font-size:13.5px!important}
  .g-tag{font-size:8.5px!important;padding:1px 4px!important}
  .gcard-bar{padding:0 11px 9px!important}
  .gbtn{height:23px!important;padding:0 9px!important;font-size:10px!important}
  .irow{padding:8px 8px!important;gap:8px!important}
  .i-title{font-size:12px!important}
  .mbtn{width:25px!important;height:25px!important}
  .gcard-ft{padding:8px 8px 9px!important;gap:5px!important}
  .add-btn{height:28px!important;font-size:10px!important}
  .tab{padding:0 7px!important;font-size:11.5px!important}
  .tab em{font-size:11.5px!important}
}

@media (max-width:360px){
  .tab{padding:0 5px!important;font-size:11px!important}
  .tab em{font-size:11px!important}
  .gbtn{padding:0 7px!important;font-size:9.5px!important}
  .mbtn{width:24px!important;height:24px!important}
  .i-ops{gap:3px!important}
}

/* =========================================================
   v7.9 图标选择器可折叠（默认收起）
   之前：100+ emoji 直接铺在弹窗里，把表单撑到几屏高
   ========================================================= */

/* 折叠开关 */
.ip-toggle{
  display:flex;
  align-items:center;
  gap:7px;
  width:100%;
  height:36px;
  margin-top:8px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--card-2);
  color:var(--ink-2);
  font-size:12px;
  font-weight:500;
  font-family:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s,border-color .15s;
}
.ip-toggle:active{background:#2a2f3c}
.ip-toggle span{flex:1 1 auto;text-align:left}
/* 箭头：CSS 三角，收起时朝右，展开时朝下 */
.ipt-ar{
  display:block;
  width:0;height:0;
  flex:0 0 auto;
  border-left:4.5px solid var(--ink-3);
  border-top:4px solid transparent;
  border-bottom:4px solid transparent;
  transform:rotate(0deg);
  transition:transform .2s ease;
}
.ip-toggle[aria-expanded="1"] .ipt-ar{
  transform:rotate(90deg);
  border-left-color:var(--acc);
}
.ip-toggle[aria-expanded="1"]{
  border-color:rgba(59,130,246,.35);
  color:#8ab6f9;
  background:rgba(59,130,246,.08);
}

/* 展开区：限高可滚，不撑爆弹窗 */
.ip-body{
  margin-top:7px;
}
.ip-body[hidden]{display:none!important}

/* Tab 横滑 */
.ip-tabs{
  display:flex;
  gap:4px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.ip-tabs::-webkit-scrollbar{display:none}
.ip-tab{
  flex:0 0 auto;
  height:26px;
  padding:0 9px;
  border-radius:6px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink-3);
  font-size:11px;
  font-family:inherit;
  cursor:pointer;
  white-space:nowrap;
  -webkit-tap-highlight-color:transparent;
}
.ip-tab.on{
  background:rgba(59,130,246,.14);
  border-color:rgba(59,130,246,.35);
  color:#8ab6f9;
  font-weight:600;
}

/* 图标网格：限高 190px 滚动 */
.ip-panel{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(38px,1fr));
  gap:5px;
  max-height:190px;
  overflow-y:auto;
  margin-top:7px;
  padding:1px;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.ip-panel[hidden]{display:none!important}
.ip-cell{
  display:grid;place-items:center;
  height:38px;
  border-radius:7px;
  border:1px solid var(--line);
  background:var(--card-2);
  font-size:17px;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:border-color .12s,background .12s;
}
.ip-cell:active{background:#2a2f3c}
.ip-cell.on{
  border-color:var(--acc);
  background:rgba(59,130,246,.16);
}

/* 顶部预览行保持紧凑 */
.ip-top{
  display:flex;
  align-items:center;
  gap:7px;
}
.ip-cur{
  flex:0 0 auto;
  display:grid;place-items:center;
  width:34px;height:34px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--card-2);
  font-size:17px;
  line-height:1;
  overflow:hidden;
}
.ip-cur img{width:100%;height:100%;object-fit:cover}
.ip-input{
  flex:1 1 auto;
  min-width:0;
  height:34px;
  padding:0 10px;
  font-size:12px;
}
.ip-clear{
  flex:0 0 auto;
  width:30px;height:30px;
  border-radius:7px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink-3);
  font-size:13px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

@media (max-width:640px){
  .ip-toggle{height:34px;font-size:11.5px;margin-top:7px}
  .ip-panel{max-height:170px;grid-template-columns:repeat(auto-fill,minmax(36px,1fr))}
  .ip-cell{height:36px;font-size:16px}
  .ip-cur{width:32px;height:32px;font-size:16px}
  .ip-input{height:32px;font-size:11.5px}
}

/* =========================================================
   v8.0 图标渲染修复：全部改用纯 CSS 线性图标
   背景：数据库里存的是 emoji（📺📁🌐🎮🔗），
   安卓 WebView 字体库缺这些字符 → 显示方块 / 回退成「组」字
   方案：按分组类型/条目类型画纯 CSS 图形，不依赖任何字体
   ========================================================= */

/* ---------- 分组图标容器 ---------- */
.g-ico{
  position:relative;
  overflow:hidden;
  display:grid!important;
  place-items:center;
  flex:0 0 auto;
}
.g-ico img{width:100%;height:100%;object-fit:cover;display:block}
.g-ico .g-txt{
  font-style:normal!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1!important;
}

/* 分组图标配色：按类型给底色 */
.g-ico.gi-link{background:rgba(59,130,246,.14)!important}
.g-ico.gi-video{background:rgba(139,124,246,.14)!important}
.g-ico.gi-mixed{background:rgba(59,130,246,.1)!important}

/* 线性图形基类 */
.g-line{
  display:block;
  position:relative;
  box-sizing:border-box;
  width:14px;height:14px;
}

/* 链接分组：链条（两个相扣的环） */
.g-line.gi-link{
  width:13px;height:9px;
  border:1.7px solid #7aa9f7;
  border-radius:4px;
  transform:rotate(-40deg);
}
.g-line.gi-link::after{
  content:"";
  position:absolute;
  left:2px;top:1px;
  width:6.5px;height:3.6px;
  border:1.7px solid rgba(122,169,247,.55);
  border-radius:2.5px;
  border-left-color:transparent;
}

/* 视频分组：胶片方框 + 播放三角 */
.g-line.gi-video{
  width:15px;height:11px;
  border:1.7px solid #a294f5;
  border-radius:3.5px;
}
.g-line.gi-video::after{
  content:"";
  position:absolute;
  left:4.5px;top:2.2px;
  width:0;height:0;
  border-left:5px solid #a294f5;
  border-top:3.2px solid transparent;
  border-bottom:3.2px solid transparent;
}

/* 混合分组：2x2 小方块（表示多类型） */
.g-line.gi-mixed{
  width:13px;height:13px;
  background:
    linear-gradient(#7aa9f7,#7aa9f7) 0 0/5px 5px no-repeat,
    linear-gradient(rgba(122,169,247,.6),rgba(122,169,247,.6)) 8px 0/5px 5px no-repeat,
    linear-gradient(rgba(122,169,247,.6),rgba(122,169,247,.6)) 0 8px/5px 5px no-repeat,
    linear-gradient(rgba(122,169,247,.6),rgba(122,169,247,.6)) 8px 8px/5px 5px no-repeat;
  border-radius:2px;
}

/* ---------- 条目图标：用户自选 emoji ---------- */
.i-ico .i-emo{
  font-style:normal!important;
  font-size:15px!important;
  line-height:1!important;
  display:block!important;
  text-align:center;
  max-width:22px;
  max-height:22px;
  overflow:hidden;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
}
.g-ico .g-emo{
  font-style:normal!important;
  font-size:14px!important;
  line-height:1!important;
  display:block!important;
  text-align:center;
  max-width:26px;
  max-height:26px;
  overflow:hidden;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
}

/* ---------- 条目图标：文字回退 ---------- */
.i-ico .i-txt{
  font-style:normal!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1!important;
  color:inherit;
}

/* 保险：去掉可能残留的 emoji 豆腐块字符（用 CSS 藏的拿不到，靠后端判定） */
.g-ico:empty{display:none!important}

/* ---------- 图标预览框也防豆腐块 ---------- */
.ip-cur{
  font-size:16px!important;
  line-height:1!important;
}
.ip-cur img{width:100%;height:100%;object-fit:cover;display:block;border-radius:6px}

/* =========================================================
   图标选择器：把 emoji 单元格替换为可读的图形 + 中文名
   （emoji 在部分安卓机显示方块，此处仅做视觉兼容：
    给单元格固定浅底，即使字体缺字也能看出位置）
   ========================================================= */
.ip-cell{
  background:#2a2f3c!important;
  color:#c9d2e0!important;
  font-size:16px!important;
  position:relative;
  overflow:hidden;
}
.ip-cell.on{
  background:rgba(59,130,246,.2)!important;
  border-color:var(--acc)!important;
}

/* ---------- v8.0b 媒体卡片占位图（文字，不用 emoji） ---------- */
.m-ph{
  display:grid!important;
  place-items:center;
  width:100%;height:100%;
  font-size:13px!important;
  font-weight:700!important;
  color:var(--ink-3)!important;
  background:var(--card-2)!important;
  letter-spacing:.5px;
}
.mcard.is-apk .m-ph{color:#c99a63!important;background:rgba(201,154,99,.1)!important}
.mcard:not(.is-apk) .m-ph{color:#a294f5!important;background:rgba(139,124,246,.1)!important}

/* 排行榜图标：首字文字 */
.rank-ico{
  display:grid!important;place-items:center;
  width:22px!important;height:22px!important;
  border-radius:6px!important;
  background:var(--card-2)!important;
  color:var(--ink-3)!important;
  font-size:10.5px!important;
  font-weight:700!important;
  flex:0 0 auto;
}

/* 图标选择器预览占位：🖼️ 也换掉 */
.ip-cur span{font-size:14px;color:var(--ink-3)}

/* 分组下拉选项：保留汉字，行高舒适 */
select option{line-height:1.8!important}
