/* ==========================================================================
   c145 · 智能体版块 1:1 对标 skin（对标站 https://ai778.cc/home?menu=zhinengti）
   只作用于 :root，不污染其它页面。
   取值全部来自实测：ai778 计算样式 + CSS 规则原文，rem 基准 15px。
   --------------------------------------------------------------------------
   ① 左栏：40px 图标底座 + 32px 原图图标 + 13px/600 名称 + 10px 彩色标签 + 11px 描述
   ② 页签：深色轨道 + 青蓝渐变滑块
   ③ 背景纹路：渐变底 + conic 流光 60s + 4 光球 25s + 网格 10s
   ④ 双主题：默认浅色（我们的口径），[data-theme=dark] 对齐 ai778 深色
   ========================================================================== */

/* ---------- 主题令牌（ai778 的 --w-* / --b-* / 青蓝主色） ---------- */
:root{
  --w2:rgba(0,0,0,.015);
  --w6:rgba(0,0,0,.04);
  --w8:rgba(0,0,0,.055);
  --w10:rgba(0,0,0,.07);
  --w20:rgba(0,0,0,.14);
  --w50:rgba(0,0,0,.45);
  --w70:rgba(0,0,0,.65);
  --w100:#0f1419;
  --b15:rgba(0,0,0,.06);
  --b30:rgba(0,0,0,.12);
  --bgpanel:#f1f2f3;
  --cp:#00a1c2;
  --cp10:rgba(0,161,194,.12);
  --cp20:rgba(0,161,194,.22);
  --cp30:rgba(0,161,194,.32);
  /* [c147 老板令] 上下色调对调：上紫下青（紫色上移到顶部，贴合整体大风格偏紫） */
  --sk-sb:linear-gradient(168deg,#f8f3fe 0%,#f1ecfd 24%,#eaeafc 52%,#e9f2fb 78%,#f6fdfe 100%);
  --sk-sb-glow1:radial-gradient(126% 32% at 50% -8%,rgba(124,58,237,.20) 0%,rgba(124,58,237,0) 74%);
  --sk-sb-glow2:radial-gradient(96% 28% at 6% 104%,rgba(0,202,224,.12) 0%,rgba(0,202,224,0) 74%);
  /* [c146 老板令] hover 必须明显反差：实底从 .015 → 左浓右淡品牌渐变，配 1px 边线 + 轻投影 */
  --ag-hov:linear-gradient(90deg,rgba(0,161,194,.22) 0%,rgba(0,161,194,.12) 46%,rgba(0,161,194,.07) 100%);
  --ag-hov-sh:inset 0 0 0 1px rgba(0,161,194,.34),0 3px 14px rgba(0,161,194,.16);
  /* [c146 老板令] 「皮球状纹理」= 对标 --boli-fengwo 蜂窝 SVG 原件（33×19 六边形平铺） */
  --ag-fengwo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='19' viewBox='0 0 33 19'%3E%3Cpath d='M5.5 0H16.5L22 9.5L16.5 19H5.5L0 9.5Z M22 9.5H33' fill='none' stroke='%2300a1c2' stroke-width='1'/%3E%3C/svg%3E");
  --ag-fengwo-op:.55;
  --sk-main:linear-gradient(180deg,#fcfdff 0%,#f8f9fa 45%,#ecf0f5 100%);
  --sk-flow:conic-gradient(rgba(0,0,0,0) 0deg,rgba(0,161,194,.04) 60deg,rgba(0,0,0,0) 120deg,rgba(0,229,160,.02) 180deg,rgba(0,0,0,0) 240deg,rgba(120,80,255,.02) 300deg,rgba(0,0,0,0) 360deg);
  --sk-orb1:radial-gradient(circle,rgba(0,161,194,.18) 0%,rgba(0,0,0,0) 70%);
  --sk-orb2:radial-gradient(circle,rgba(0,229,160,.12) 0%,rgba(0,0,0,0) 70%);
  --sk-orb3:radial-gradient(circle,rgba(120,80,255,.10) 0%,rgba(0,0,0,0) 70%);
  --sk-orb4:radial-gradient(circle,rgba(255,100,150,.08) 0%,rgba(0,0,0,0) 70%);
  --sk-grid:rgba(0,202,224,.04);
  --sk-tile:linear-gradient(145deg,#282c34,#1c1f26);
  --sk-tile-h:linear-gradient(145deg,#30343e,#21242c);
  --sk-tile-a:linear-gradient(145deg,#1e2a34,#121c26);
  --sk-tile-sh:0 1px 4px rgba(0,0,0,.12),0 0 0 1px rgba(0,0,0,.04);
  --sk-tile-sh-h:0 2px 6px rgba(0,0,0,.15),0 0 0 1px rgba(0,0,0,.06);
  --sk-tile-sh-a:0 0 0 1px rgba(0,161,194,.35),0 2px 8px rgba(0,161,194,.18);
  --sk-tile-sh-ah:0 0 0 1px rgba(0,161,194,.5),0 3px 12px rgba(0,161,194,.25);
}
[data-theme=dark]{
  --w2:rgba(255,255,255,.02);
  --w6:rgba(255,255,255,.06);
  --w8:rgba(255,255,255,.08);
  --w10:rgba(255,255,255,.1);
  --w20:rgba(255,255,255,.2);
  --w50:rgba(255,255,255,.5);
  --w70:rgba(255,255,255,.7);
  --w100:#ffffff;
  --b15:rgba(0,0,0,.15);
  --b30:rgba(0,0,0,.3);
  --bgpanel:#141419;
  --cp:#00cae0;
  --cp10:rgba(0,202,224,.1);
  --cp20:rgba(0,202,224,.2);
  --cp30:rgba(0,202,224,.3);
  /* [c147 老板令] 上下色调对调：上紫下青 */
  --sk-sb:linear-gradient(168deg,#17141f 0%,#13111b 38%,#0e1116 68%,#12111a 100%);
  --sk-sb-glow1:radial-gradient(126% 32% at 50% -8%,rgba(124,58,237,.20) 0%,rgba(124,58,237,0) 74%);
  --sk-sb-glow2:radial-gradient(96% 28% at 6% 104%,rgba(0,202,224,.11) 0%,rgba(0,202,224,0) 74%);
  --ag-hov:linear-gradient(90deg,rgba(255,255,255,.20) 0%,rgba(255,255,255,.12) 46%,rgba(255,255,255,.08) 100%);
  --ag-hov-sh:inset 0 0 0 1px rgba(255,255,255,.16),0 3px 14px rgba(0,0,0,.34);
  --ag-fengwo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='19' viewBox='0 0 33 19'%3E%3Cpath d='M5.5 0H16.5L22 9.5L16.5 19H5.5L0 9.5Z M22 9.5H33' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
  --ag-fengwo-op:.5;
  --sk-main:linear-gradient(180deg,#06080c 0%,#0c0f16 50%,#080a10 100%);
  --sk-flow:conic-gradient(rgba(0,0,0,0) 0deg,rgba(0,202,224,.03) 60deg,rgba(0,0,0,0) 120deg,rgba(0,229,160,.02) 180deg,rgba(0,0,0,0) 240deg,rgba(120,80,255,.02) 300deg,rgba(0,0,0,0) 360deg);
  --sk-orb1:radial-gradient(circle,rgba(0,202,224,.15) 0%,rgba(0,0,0,0) 70%);
  --sk-tile:rgba(255,255,255,.02);
  --sk-tile-h:rgba(255,255,255,.05);
  --sk-tile-a:var(--cp10);
  --sk-tile-sh:none;
  --sk-tile-sh-h:none;
  --sk-tile-sh-a:0 0 0 1px var(--cp20);
  --sk-tile-sh-ah:0 0 0 1px var(--cp30);
}

/* ---------- ① 侧栏底（品牌色过渡，非对标灰） ---------- */
:root .sb{
  background:var(--sk-sb-glow1),var(--sk-sb-glow2),var(--sk-sb);
  border-right:1px solid var(--w6);
}

/* ---------- ② 页签（深色轨道 + 青蓝渐变滑块） ---------- */
:root .ag-tabs{
  display:grid;grid-template-columns:repeat(5,1fr);gap:0;
  margin:9px 11px 5px;padding:3px;border:none;border-radius:7.5px;
  background:var(--b30);flex-shrink:0;
}
:root .ag-tab{
  border:none;background:transparent;border-radius:5.6px;
  padding:7.5px 0;font-family:inherit;font-size:11.25px;font-weight:500;
  color:var(--w50);cursor:pointer;line-height:1.15;
  transition:color .25s cubic-bezier(.4,0,.2,1),background .25s cubic-bezier(.4,0,.2,1);
}
:root .ag-tab:hover{background:transparent;color:var(--w70);box-shadow:none}
:root .ag-tab.on{
  background:linear-gradient(135deg,#00cae0,#00a8b8);
  color:#fff;font-weight:600;
  box-shadow:0 2px 8px rgba(0,202,224,.3);
}

/* ---------- ③ 搜索（吸顶 + 渐隐） ---------- */
:root .ag-search{
  padding:8px 11px 10px;border-bottom:none;flex-shrink:0;
  background:linear-gradient(to bottom,var(--bgpanel) 75%,transparent 100%);
}
:root .ag-search input{
  width:100%;box-sizing:border-box;border:1px solid var(--w8);border-radius:7.5px;
  background:var(--w2);color:var(--w100);font-family:inherit;font-size:11.25px;
  padding:7.5px 11px;outline:none;transition:border-color .2s,background .2s,box-shadow .2s;
}
:root .ag-search input::placeholder{color:var(--w50)}
:root .ag-search input:focus{
  border-color:var(--cp30);background:transparent;box-shadow:0 0 0 3px var(--cp10);
}

/* ---------- ④ 列表容器 ---------- */
:root .ag-list{padding:0 0 15px;gap:0}
:root .ag-list::-webkit-scrollbar{width:3.75px}
:root .ag-list::-webkit-scrollbar-track{background:transparent}
:root .ag-list::-webkit-scrollbar-thumb{background:var(--w10);border-radius:2px}
:root .ag-list::-webkit-scrollbar-thumb:hover{background:var(--w20)}

/* ---------- ⑤ 段头（[c146 老板令] 标题放大 + 分类色渐变底条，拉开大类分界） ---------- */
:root .ag-sec{
  border:none;border-radius:0;background:transparent;overflow:visible;flex-shrink:0;
}
:root .ag-sec.open{border-color:transparent}
:root .ag-sec-h{
  display:flex;align-items:center;gap:9px;
  margin:9px 11.25px 5px;padding:8px 11px;border-radius:9px;
  background:var(--scb,transparent)!important;
  box-shadow:inset 0 0 0 1px var(--scbd,transparent);
  transition:filter .2s cubic-bezier(.4,0,.2,1),box-shadow .2s;
}
:root .ag-sec-h:hover{
  background:var(--scb,transparent)!important;
  filter:saturate(1.25) brightness(1.02);
  box-shadow:inset 0 0 0 1px var(--scbd,transparent),0 2px 10px rgba(0,0,0,.06);
}
:root .ag-sec-i{
  width:22px;height:22px;border-radius:6px;
}
:root .ag-sec-i svg{width:15px;height:15px;opacity:1}
:root .ag-sec-t{
  font-size:13.5px;font-weight:700;letter-spacing:.01em;text-transform:none;
  color:var(--w100);
}
:root .ag-sec-c{
  font-size:10.5px;color:var(--w50);opacity:.9;margin-top:1px;letter-spacing:.02em;
}
:root .ag-arw{color:var(--w50);font-size:9.5px;opacity:.85}
:root .ag-sec-b{padding:0 0 4px}

/* ---------- ⑥ 行（1:1 复刻 .agent-item 解剖） ---------- */
:root .ag-row{
  position:relative;isolation:isolate;
  display:flex;align-items:center;justify-content:flex-start;gap:11.25px;
  padding:11.25px 15px;margin:3.75px 11.25px;
  border:none;border-radius:11.25px;background:transparent;
  width:auto;align-self:stretch;box-sizing:border-box;
  min-height:52.5px;cursor:pointer;font-family:inherit;text-align:left;
  transition:background .28s cubic-bezier(.4,0,.2,1),box-shadow .28s cubic-bezier(.4,0,.2,1);
}
/* [c146 老板令] 对标 .boli-fuceng-xuanfu::before「皮球状纹理」：
   33×19 六边形 SVG 平铺 + 3.5rem 圆形探照遮罩，只有鼠标附近露出蜂窝，随 --mx/--my 跟随 */
:root .ag-row::before{
  content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;
  pointer-events:none;opacity:0;
  background-image:var(--ag-fengwo);
  background-size:33px 19px;background-position:0 0;background-repeat:repeat;
  -webkit-mask-image:radial-gradient(56px circle at var(--mx,50%) var(--my,50%),#000 0%,#000 26%,transparent 100%);
  mask-image:radial-gradient(56px circle at var(--mx,50%) var(--my,50%),#000 0%,#000 26%,transparent 100%);
  transition:opacity .22s cubic-bezier(.4,0,.2,1);
}
:root .ag-row:hover::before{opacity:var(--ag-fengwo-op)}
:root .ag-row:hover{background:var(--ag-hov);box-shadow:var(--ag-hov-sh)}
:root .ag-row.sel{
  background:linear-gradient(90deg,var(--cp20) 0%,var(--cp10) 100%);
  box-shadow:inset 0 0 0 1px var(--cp30);font-weight:inherit;color:inherit;
}
:root .ag-row.sel:hover{box-shadow:inset 0 0 0 1px var(--cp30),0 2px 10px rgba(0,161,194,.16)}

/* 图标底座 40×40 */
:root .ag-row-ic{
  position:relative;z-index:1;width:40px;height:40px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;background:var(--sk-tile);box-shadow:var(--sk-tile-sh);
  transition:background .3s cubic-bezier(.4,0,.2,1),box-shadow .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1);
}
:root .ag-row:hover:not(.sel) .ag-row-ic{
  background:var(--sk-tile-h);box-shadow:var(--sk-tile-sh-h);
}
:root .ag-row.sel .ag-row-ic{
  background:var(--sk-tile-a);box-shadow:var(--sk-tile-sh-a);
}
:root .ag-row.sel:hover .ag-row-ic{
  background:var(--sk-tile-a);box-shadow:var(--sk-tile-sh-ah);
}
/* 图标本体 32×32 */
:root .ag-row-img{
  width:32px;height:32px;object-fit:contain;display:block;
  position:relative;z-index:1;
  filter:drop-shadow(0 0 7.5px var(--w10));
  transition:transform .3s cubic-bezier(.4,0,.2,1),filter .3s cubic-bezier(.4,0,.2,1);
}
:root .ag-row:hover:not(.sel) .ag-row-img{transform:scale(1.05)}
/* 无对标原图时的线性图标回退 */
:root .ag-row-svg{
  display:flex;align-items:center;justify-content:center;
  color:var(--cp);opacity:.9;
}
:root .ag-row-svg svg{width:19px;height:19px;stroke-width:1.6}

/* 文字块 */
:root .ag-row-b{position:relative;z-index:1;flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
:root .ag-row-t{
  display:flex;align-items:center;justify-content:space-between;gap:7.5px;min-width:0;
}
:root .ag-row-n{
  font-size:12.1875px;font-weight:600;color:var(--w100);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  flex-shrink:1;min-width:0;letter-spacing:0;
}
:root .ag-row-d{
  font-size:10.3125px;color:var(--w50);line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;
}

/* 标签徽章 10px */
:root .ag-tag{
  display:inline-flex;align-items:center;flex-shrink:0;
  padding:1.875px 5.625px;font-size:9.375px;font-weight:500;line-height:1.5;
  border-radius:3.75px;white-space:nowrap;letter-spacing:.02em;
}
:root .ag-tag-image{background:rgba(168,85,247,.15);color:#a855f7;border:1px solid rgba(168,85,247,.3)}
:root .ag-tag-video{background:rgba(251,146,60,.15);color:#fb923c;border:1px solid rgba(251,146,60,.3)}
:root .ag-tag-doc{background:rgba(99,102,241,.16);color:#818cf8;border:1px solid rgba(99,102,241,.3)}
:root .ag-tag-tool{background:transparent;color:#ff6b3d;border:1px solid rgba(255,107,61,.28)}

/* ---------- ⑦ 右区背景纹路 ---------- */
:root .main{position:relative;isolation:isolate;background:var(--sk-main)}
:root .agent-sec{background:transparent}
:root .agent-sec-head{background:transparent;border-bottom:1px solid var(--w6)}
:root .ag-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
}
:root .ag-bg>*{position:absolute}
:root .ag-bg .gflow{
  left:50%;top:50%;width:170%;padding-bottom:170%;border-radius:50%;
  transform:translate(-50%,-50%);
  background:var(--sk-flow);
  animation:agFlow 60s linear infinite;
}
@keyframes agFlow{
  0%{transform:translate(-50%,-50%) rotate(0deg)}
  100%{transform:translate(-50%,-50%) rotate(360deg)}
}
:root .ag-bg .orb{
  width:36%;padding-bottom:36%;border-radius:50%;
  animation:agOrb 25s ease-in-out infinite;
}
:root .ag-bg .orb1{right:-8%;top:-18%;background:var(--sk-orb1)}
:root .ag-bg .orb2{left:10%;bottom:-24%;background:var(--sk-orb2);animation-delay:-6s}
:root .ag-bg .orb3{right:22%;top:36%;width:28%;padding-bottom:28%;background:var(--sk-orb3);animation-delay:-12s}
:root .ag-bg .orb4{right:6%;bottom:6%;width:22%;padding-bottom:22%;background:var(--sk-orb4);animation-delay:-18s}
@keyframes agOrb{
  0%,100%{transform:translate(0,0) scale(1)}
  25%{transform:translate(50px,-30px) scale(1.1)}
  50%{transform:translate(-30px,50px) scale(.9)}
  75%{transform:translate(-50px,-20px) scale(1.05)}
}
:root .ag-bg .grid{
  inset:0;
  background-image:linear-gradient(var(--sk-grid) 1px,transparent 1px),
                   linear-gradient(90deg,var(--sk-grid) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(circle at 58% 38%,#000 0%,transparent 72%);
  mask-image:radial-gradient(circle at 58% 38%,#000 0%,transparent 72%);
  animation:agGrid 10s ease-in-out infinite;
}
@keyframes agGrid{0%,100%{opacity:.5}50%{opacity:1}}
/* 内容压在背景之上 */
:root .agent-sec-head,
:root .agent-sec-body,
:root .block-landing{position:relative;z-index:1}

/* 减弱动效偏好 */
@media (prefers-reduced-motion:reduce){
  :root .ag-bg .gflow,
  :root .ag-bg .orb,
  :root .ag-bg .grid{animation:none}
}


/* ==========================================================================
   c251 · 深色文字降亮（老板令：整个子系统深色下亮灰字太亮，统一削弱一档）
   --------------------------------------------------------------------------
   锚点 `body[data-sys=graphic]`：只打聚合图文引擎工作台。
   ⚠ 不能锚 data-page —— 该页 JS 会按当前分区把它改成 chat/image/video…，锚了会时灵时不灵。
   只降「亮」的：合成亮度 ≥140 的一律下移，≤65 的说明/元信息不动，避免压到看不清。
   反算公式 a=(g-11)/244, g=255*((L/255)^(1/2.4)*1.055-.055)，底取 #080a10。
   ========================================================================== */

/* ---------- ① 令牌层：正文 204→178 · 次要 131→110 · 三级微降 ---------- */
html[data-theme=dark] body[data-sys=graphic]{
  --t:rgba(255,255,255,.833);   /* 204 → 178 */
  --t1:rgba(255,255,255,.833);  /* 工作台标题同源 */
  --t2:rgba(255,255,255,.674);  /* 131 → 110 */
  --t3:rgba(255,255,255,.470);  /*  65 →  54 */
  --w100:rgba(255,255,255,.850);/* 255 → 180  左栏分组标题 / 智能体名称 */
  --w70:rgba(255,255,255,.710); /* 151 → 122 */
  --w50:rgba(255,255,255,.460); /*  62 →  54 */
}

/* ---------- ② 左侧一级导航 + 顶部导航 ---------- */
html[data-theme=dark] body[data-sys=graphic] .lv1-btn{color:rgba(255,255,255,.70)}   /* 148 → 118 */
html[data-theme=dark] body[data-sys=graphic] .lv1-btn.act{color:#e4e1f2}              /* 255 → 195，紫底实底微降 */
html[data-theme=dark] body[data-sys=graphic] .lv1-hot{color:#ffe8e6}                  /* 255 → 235，红底白字微降 */
html[data-theme=dark] body[data-sys=graphic] .ver-pill{color:rgba(255,255,255,.690)} /* 255 → 115 */
html[data-theme=dark] body[data-sys=graphic] .tnav-btn{color:rgba(255,255,255,.674)} /* 131 → 110 */
html[data-theme=dark] body[data-sys=graphic] .tnav-ic{color:rgba(255,255,255,.674)}
html[data-theme=dark] body[data-sys=graphic] .tnav-btn.act{color:#e4e1f2}            /* 255 → 195 */
html[data-theme=dark] body[data-sys=graphic] .tnav-cta{color:#e6e6ee}                /* 255 → 200 */

/* ---------- ③ 左栏页签（青蓝渐变实底上的白字，只微降保住选中感） ---------- */
html[data-theme=dark] body[data-sys=graphic] .ag-tab.on{color:#d8eef2}               /* 255 → 209 */

/* ---------- ④ 工作台首页 .ws-* ---------- */
html[data-theme=dark] body[data-sys=graphic] .ws-lead-n,
html[data-theme=dark] body[data-sys=graphic] .ws-ops-t,
html[data-theme=dark] body[data-sys=graphic] .ws-row-lb{color:rgba(255,255,255,.810)} /* 225 → 165 */
html[data-theme=dark] body[data-sys=graphic] .ws-chip{color:rgba(220,228,236,.700)}   /* 112 →  85 */
html[data-theme=dark] body[data-sys=graphic] .ws-chip.on{color:rgba(245,158,11,.86)}
html[data-theme=dark] body[data-sys=graphic] .ws-emp-n,
html[data-theme=dark] body[data-sys=graphic] .ws-badge{color:rgba(214,220,232,.620)}  /* 92/85 → 70 */

/* ---------- ⑤ 启动页 .asp-* ---------- */
html[data-theme=dark] body[data-sys=graphic] .agent-splash .asp-brand-txt b{color:rgba(255,255,255,.850)} /* 232 → 180 */
html[data-theme=dark] body[data-sys=graphic] .agent-splash small{color:rgba(255,255,255,.674)}            /* 255 → 110 */
html[data-theme=dark] body[data-sys=graphic] .agent-splash .asp-cta{color:rgba(255,255,255,.850)}         /* 255 → 180 */
html[data-theme=dark] body[data-sys=graphic] .agent-splash .asp-card-t{color:rgba(255,255,255,.760)}      /* 192 → 145 */
html[data-theme=dark] body[data-sys=graphic] .agent-splash .asp-navbtn{color:rgba(255,255,255,.560)}      /*  92 →  66 */
html[data-theme=dark] body[data-sys=graphic] .agent-splash .asp-navbtn:hover{color:rgba(255,255,255,.833)}
html[data-theme=dark] body[data-sys=graphic] .agent-splash .asp-navbtn.is-primary{color:#b493e8}
html[data-theme=dark] body[data-sys=graphic] .agent-splash .asp-ver{color:#b493e8}

/* 打字机副标题（#aspType 轮播文案） 140 → 121 */
html[data-theme=dark] body[data-sys=graphic] #aspType{color:rgba(255,255,255,.70)}
