/* ============================================================
   星枢AI · 顶栏呼吸灯按钮 + 九宫格面板（按规格 20260918 第二部分 1:1）
   新建文件：仅增强/覆盖顶栏右上 4 枚按钮与 .action-menu-panel
   ============================================================ */

/* ---------- 通用：55px 圆形玻璃触发钮 ---------- */
.tb-topright { position: relative; display: flex; align-items: center; gap: 12px; }
.tb-round-btn,
#tbYaoqingBtn,
#tbDouyinBtn {
  position: relative;
  width: 3.4375rem;   /* 55px */
  height: 3.4375rem;
  min-width: 3.4375rem; min-height: 3.4375rem;
  padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; overflow: visible;
  backdrop-filter: blur(1.25rem) saturate(1.4);
  -webkit-backdrop-filter: blur(1.25rem) saturate(1.4);
  box-shadow: rgba(0,0,0,.35) 0 .5rem 1.5rem, rgba(255,255,255,.1) 0 .0625rem inset;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s;
  z-index: 1;
}
.tb-round-btn:hover, #tbYaoqingBtn:hover, #tbDouyinBtn:hover,
#tbBizBtn:hover, #appCenterBtn:hover { transform: translateY(-.125rem) scale(1.03); }
.tb-round-btn:active, #tbYaoqingBtn:active, #tbDouyinBtn:active,
#tbBizBtn:active, #appCenterBtn:active { transform: scale(.96); }

/* 按钮内核心（图标层） */
.tb-btn-core { position: relative; z-index: 2; display: grid; place-items: center; line-height: 0; }
.tb-btn-core svg { width: 24px; height: 24px; display: block; }

/* ---------- 通用光环：1:1 参考站——取消旋转彩色光环（只保留柔和暗投影） ---------- */
.yaoqing-halo, .douyin-halo, .agent-portal-halo, .action-menu-halo {
  display: none !important;
}

/* ---------- 1) 邀请有礼（橙） ---------- */
#tbYaoqingBtn.tb-yaoqing, #tbYaoqingBtn.yaoqing-trigger {
  border: 1px solid rgba(251,146,60,.42);
  background:
    radial-gradient(120% 120% at 30% 25%, rgba(255,214,153,.16), transparent 65%),
    linear-gradient(155deg, rgba(46,34,22,.9), rgba(28,20,14,.9));
  color: #fcd9a0;
}
#tbYaoqingBtn:hover { box-shadow: rgba(0,0,0,.4) 0 8.4px 25.2px, rgba(255,255,255,.1) 0 1.05px 0 inset; }
#tbYaoqingBtn .yaoqing-halo { display: none !important; }
#tbYaoqingBtn:hover .yaoqing-halo { display: none !important; }

/* ---------- 2) 发抖音拿算力（粉青） ---------- */
#tbDouyinBtn.tb-douyin, #tbDouyinBtn.douyin-trigger {
  border: 1px solid rgba(244,63,94,.42);
  background:
    radial-gradient(120% 120% at 30% 25%, rgba(255,173,196,.16), transparent 65%),
    linear-gradient(155deg, rgba(44,22,30,.9), rgba(26,16,20,.9));
  color: #ffb1c8;
}
#tbDouyinBtn:hover { box-shadow: rgba(0,0,0,.4) 0 8.4px 25.2px, rgba(255,255,255,.1) 0 1.05px 0 inset; }
#tbDouyinBtn .douyin-halo { display: none !important; }
#tbDouyinBtn:hover .douyin-halo { display: none !important; }

/* ---------- 3) 商务合作（金 + 旋转光环 + 招手/闪光/扫光） ---------- */
/* button 自身透明（与参考站一致：圆形外圈画在内部 .agent-portal-core 上） */
#tbBizBtn.agent-portal-trigger, #tbBizBtn.sp-gem-btn {
  position: relative;
  width: 3.5rem; height: 3.4375rem;
  min-width: 3.5rem; min-height: 3.4375rem;
  padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; overflow: visible;
  background: none !important; border: none !important; box-shadow: none !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  z-index: 1; font-size: 0;
}
#tbBizBtn .tb-biz-txt { display: none !important; }
#tbBizBtn:hover { transform: translateY(-.125rem) scale(1.03); }
/* 覆盖旧 sp-17fix 胶囊态，保持正圆 */
#tbBizBtn.biz-open, #tbBizBtn.biz-open .sp-gem-ico, #tbBizBtn.biz-open .sp-gem-core {
  width: 3.5rem; height: 3.4375rem; border-radius: 50%;
}
#tbBizBtn.biz-open { width: 3.5rem !important; height: 3.4375rem !important; padding: 0 !important; border-radius: 50% !important; }

/* 圆形外圈 core：55×55 正圆，金色边框+玻璃底+外光晕 */
.agent-portal-core {
  position: relative; z-index: 2;
  width: 55px; height: 55px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: .67px solid rgba(245,158,11,.4);
  background:
    radial-gradient(120% 120% at 30% 25%, rgba(251,191,36,.14), rgba(255,255,255,0) 65%),
    linear-gradient(155deg, rgba(34,30,22,.85), rgba(24,21,16,.85));
  box-shadow: rgba(0,0,0,.35) 0 8.4px 25.2px, rgba(255,255,255,.1) 0 1.05px 0 inset;
  transition: box-shadow .3s;
}
#tbBizBtn:hover .agent-portal-core {
  box-shadow: rgba(0,0,0,.4) 0 8.4px 25.2px, rgba(255,255,255,.1) 0 1.05px 0 inset;
}
/* 文案 label：平时隐藏 */
.agent-portal-label {
  position: absolute; opacity: 0; width: 0; overflow: hidden;
  font-size: 0; white-space: nowrap; pointer-events: none;
}

.agent-portal-halo { display: none !important; }
@keyframes agentPortalHaloSpin { to { transform: rotate(360deg); } }
#tbBizBtn:hover .agent-portal-halo { display: none !important; }

.agent-portal-icon-wrap {
  position: relative; z-index: 3; width: 55px; height: 55px;
  display: flex; align-items: center; justify-content: center;
  line-height: 0;
  animation: none;
}
.agent-portal-icon-wrap svg.agent-portal-icon {
  width: 26px; height: 26px;
  filter: none;
}
/* 钻石右上角闪光 spark（svg 内 path）——参考站为静态，不闪烁 */
.agent-portal-spark { fill: #FDE68A; filter: none; animation: none; transform-origin: 19px 3px; }
@keyframes agentPortalBeckon {
  0%, 70%, 100% { transform: scale(1) rotate(0deg); }
  78% { transform: scale(1.14) rotate(-8deg); }
  84% { transform: scale(1.08) rotate(6deg); }
  90% { transform: scale(1.1) rotate(-3deg); }
  96% { transform: scale(1) rotate(0deg); }
}
@keyframes agentPortalSparkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
  50% { opacity: 1; transform: scale(1) rotate(90deg); }
}
/* 扫光 shine——参考站无扫光，关闭 */
.agent-portal-shine {
  display: none !important;
}
@keyframes agentPortalShine {
  0% { transform: translateX(-130%) skewX(-12deg); }
  55%, 100% { transform: translateX(400%) skewX(-12deg); }
}

/* ---------- 4) 更多操作（九宫格，青四色 conic） ---------- */
#appCenterBtn.action-menu-trigger, #appCenterBtn.tb-grid-app {
  position: relative;
  width: 3.4375rem; height: 3.4375rem;
  min-width: 3.4375rem; min-height: 3.4375rem;
  padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; overflow: visible;
  border: 1px solid rgba(0,202,224,.4);
  background:
    radial-gradient(120% 120% at 30% 25%, rgba(178,246,255,.14), transparent 65%),
    linear-gradient(155deg, rgba(18,34,40,.9), rgba(12,22,28,.9));
  backdrop-filter: blur(1.25rem) saturate(1.4);
  -webkit-backdrop-filter: blur(1.25rem) saturate(1.4);
  box-shadow: rgba(0,0,0,.35) 0 .5rem 1.5rem, rgba(255,255,255,.1) 0 .0625rem inset;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s;
  z-index: 1;
}
#appCenterBtn:hover { box-shadow: rgba(0,0,0,.4) 0 8.4px 25.2px, rgba(255,255,255,.1) 0 1.05px 0 inset; }
.action-menu-halo { display: none !important; }
#appCenterBtn:hover .action-menu-halo { display: none !important; }

/* 九宫格图标 wrap（4 点） */
#appCenterBtn .trigger-icon-wrap {
  position: relative; z-index: 2;
  width: 22px; height: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
#appCenterBtn .trigger-icon-wrap span {
  width: 8px; height: 8px; border-radius: 2.5px;
}
/* 四色圆点（复刻参考站：青 #00CAE0 / 紫 #A855F7 / 橙 #F59E0B / 绿 #10B981） */
#appCenterBtn .trigger-icon-wrap span:nth-child(1) { background: #00CAE0; box-shadow: 0 0 5px rgba(0,202,224,.6); }
#appCenterBtn .trigger-icon-wrap span:nth-child(2) { background: #A855F7; box-shadow: 0 0 5px rgba(168,85,247,.6); }
#appCenterBtn .trigger-icon-wrap span:nth-child(3) { background: #F59E0B; box-shadow: 0 0 5px rgba(245,158,11,.6); }
#appCenterBtn .trigger-icon-wrap span:nth-child(4) { background: #10B981; box-shadow: 0 0 5px rgba(16,185,129,.6); }
/* hover 转 90°，展开转 45°（九宫格变 ✕） */
#appCenterBtn:hover .trigger-icon-wrap { transform: rotate(90deg); }
#appCenterBtn.is-open .trigger-icon-wrap { transform: rotate(45deg); }
#appCenterBtn.is-open:hover .trigger-icon-wrap { transform: rotate(45deg); }
/* 覆盖旧 gear-spin 180° 旋转，统一到本体系 */
#appCenterBtn.gear-spin { transform: none !important; border-color: rgba(0,202,224,.4) !important; box-shadow: rgba(0,0,0,.4) 0 8.4px 25.2px, rgba(255,255,255,.1) 0 1.05px 0 inset !important; }
/* gear-spin 不再单色覆盖四色圆点 */

/* 未读消息角标（数字气泡；无数字时隐藏）——与参考站一致，由 inbox.js 按未读数驱动 */
.action-menu-badge {
  position: absolute; top: 2px; right: 2px; z-index: 4;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; display: none;
  align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; line-height: 1;
  color: #fff; background: #ef4444;
  box-shadow: 0 0 0 2px rgba(20,24,34,.95);
  pointer-events: none;
}
.action-menu-badge.dot-only {
  width: 9px; height: 9px; min-width: 9px; padding: 0;
}

/* ============================================================
   九宫格面板 .action-menu-panel（392px）
   ============================================================ */
.app-center-pop.action-menu-panel {
  position: fixed; top: 60px; right: 20px;
  width: 24.5rem;            /* 392px */
  max-width: calc(100vw - 24px);
  padding: 1rem 1rem .875rem;
  border-radius: 1.125rem;
  background: linear-gradient(160deg, rgba(28,34,48,.96), rgba(16,20,30,.96));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: rgba(0,0,0,.5) 0 1.5rem 3.5rem;
  backdrop-filter: blur(1.5rem) saturate(1.3);
  -webkit-backdrop-filter: blur(1.5rem) saturate(1.3);
  color: #e6ebf5;
  overflow: hidden;
}
.app-center-pop.action-menu-panel.hidden { display: none !important; }

.panel-edge-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(0,202,224,.18), transparent 30%, transparent 70%, rgba(168,85,247,.16));
  mix-blend-mode: screen;
}
.panel-top-shimmer {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(94,234,212,.7), transparent);
}
.action-menu-scroll {
  position: relative; z-index: 2;
  max-height: 70vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: .9rem;
}
.action-menu-scroll::-webkit-scrollbar { width: 6px; }
.action-menu-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }

/* 分组标题 */
.action-menu-section { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; align-items: stretch; }
.section-title-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: .5rem;
  padding: 0 .15rem; margin-bottom: 0;
}
.section-title-bar .stb-bar { width: 3px; height: .95rem; border-radius: 2px; background: var(--sec-accent, #00CAE0); box-shadow: 0 0 8px var(--sec-accent, #00CAE0); }
.section-title-text { font-size: .82rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.section-title-sub { font-size: .62rem; color: rgba(230,235,245,.45); letter-spacing: .12em; margin-left: auto; text-transform: uppercase; }

/* 条目 */
.menu-action-item {
  position: relative;
  display: flex; align-items: center; gap: .7rem;
  width: 100%; text-align: left;
  padding: .6rem .7rem;
  border: 1px solid var(--accent-border, rgba(255,255,255,.08));
  border-radius: .85rem;
  background: linear-gradient(155deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  cursor: pointer; overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .25s, box-shadow .25s, background .25s;
}
.menu-action-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent, #00CAE0);
  box-shadow: 0 0 1.1rem var(--accent-glow, rgba(0,202,224,.35));
  background: linear-gradient(155deg, var(--accent-soft, rgba(0,202,224,.12)), rgba(255,255,255,.02));
}
.menu-action-top-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, #00CAE0); opacity: 0; transition: opacity .25s;
}
.menu-action-item:hover .menu-action-top-bar { opacity: 1; }

.menu-action-icon-wrap {
  position: relative; flex: 0 0 auto;
  width: 2.35rem; height: 2.35rem; border-radius: .7rem;
  display: grid; place-items: center;
  background: var(--accent-soft, rgba(0,202,224,.14));
  border: 1px solid var(--accent-border, rgba(0,202,224,.35));
}
.menu-action-icon-glow {
  position: absolute; inset: -2px; border-radius: inherit;
  background: var(--accent-glow, rgba(0,202,224,.35));
  filter: blur(7px); opacity: .5; z-index: -1; pointer-events: none;
}
.menu-action-icon-wrap .mai-ico { font-size: 1.15rem; line-height: 1; }

.menu-action-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.menu-action-label { font-size: .86rem; font-weight: 600; color: #f2f5fb; }
.menu-action-desc { font-size: .7rem; color: rgba(230,235,245,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-action-chevron {
  flex: 0 0 auto; font-size: 1.05rem; color: var(--accent, #00CAE0);
  opacity: .6; transition: transform .25s, opacity .25s;
}
.menu-action-item:hover .menu-action-chevron { transform: translateX(3px); opacity: 1; }

/* 红点角标（每日签到 / 站内消息） */
.menu-action-item .mai-dot {
  position: absolute; top: .55rem; right: .7rem;
  min-width: .55rem; height: .55rem; padding: 0 .15rem;
  border-radius: 999px; background: #ef4444; color: #fff;
  font-size: .55rem; font-weight: 700; line-height: .55rem; text-align: center;
  box-shadow: 0 0 6px rgba(239,68,68,.8);
}

/* ============================================================
   三个营销模态（邀请有礼 / 发抖音 / 复用现有 bizMask）
   ============================================================ */
.tb-modal-mask {
  position: fixed; inset: 0; z-index: 100040;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,9,16,.62); backdrop-filter: blur(6px);
}
.tb-modal-mask.show { display: flex; animation: tbFadeIn .2s ease; }
@keyframes tbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tb-modal {
  width: min(440px, 92vw); border-radius: 1.2rem; padding: 1.4rem 1.4rem 1.2rem;
  background: linear-gradient(165deg, #1b2233, #0f1420);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 2rem 4rem rgba(0,0,0,.55);
  position: relative; animation: tbPop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes tbPop { from { transform: scale(.92) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.tb-modal-x {
  position: absolute; top: .8rem; right: .8rem; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #cbd5e1; cursor: pointer; font-size: 15px; line-height: 1;
}
.tb-modal-x:hover { background: rgba(255,255,255,.14); }
/* ===== 联系客服二维码模态（1:1 参考站） ===== */
.tb-modal.kf-contact-modal { width: min(460px, 92vw); padding: 0; overflow: hidden; }
.kf-contact { color: #e5eaf2; }
.kf-contact-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.kf-contact-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, #22d3ee, #3b82f6); box-shadow: 0 0 18px rgba(34,211,238,.35); }
.kf-contact-titles b { display: block; font-size: 16px; color: #fff; }
.kf-contact-titles small { font-size: 12px; color: rgba(230,235,245,.55); }
.kf-contact-body { display: flex; flex-direction: column; align-items: center; padding: 26px 20px 18px; }
.kf-contact-avatar { width: 86px; height: 86px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #22d3ee, #a855f7); box-shadow: 0 0 24px rgba(34,211,238,.3); }
.kf-contact-avatar img, .kf-contact-avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #141a28; }
.kf-contact-name { font-size: 17px; font-weight: 800; color: #fff; margin-top: 14px; }
.kf-contact-online { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #4ade80; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); padding: 4px 14px; border-radius: 999px; }
.kf-contact-online i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: kfPulse 1.6s infinite; }
@keyframes kfPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.kf-contact-qr { width: 196px; height: 196px; margin-top: 20px; border-radius: 14px; background: #fff; padding: 12px; box-sizing: border-box; }
.kf-contact-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.kf-contact-cap { font-size: 13px; color: rgba(230,235,245,.6); margin-top: 12px; }
.kf-contact-more { padding: 0 20px 20px; }
.kf-contact-more button { width: 100%; height: 42px; border-radius: 12px; border: 1px solid rgba(34,211,238,.3); background: rgba(34,211,238,.08); color: #67e8f9; font-size: 13px; font-weight: 700; cursor: pointer; }
.kf-contact-more button:hover { background: rgba(34,211,238,.15); }
.tb-modal.kf-contact-modal .tb-modal-x { top: 14px; right: 14px; z-index: 5; }
/* ===== 邀请有礼模态 iv2（1:1 参考站） ===== */
.iv2-mask { position: fixed; inset: 0; z-index: 100045; display: none; align-items: center; justify-content: center; background: rgba(6,9,16,.66); backdrop-filter: blur(6px); }
.iv2-mask.show { display: flex; animation: tbFadeIn .2s ease; }
.iv2-modal { width: min(860px, 94vw); max-height: 90vh; overflow-y: auto; border-radius: 18px; background: #14181f; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 2rem 4rem rgba(0,0,0,.55); animation: tbPop .3s cubic-bezier(.34,1.56,.64,1); }
.iv2-banner { display: flex; align-items: center; gap: 10px; padding: 16px 22px; font-size: 16px; color: #fff5d6; background: linear-gradient(100deg, #8a5a12, #c98a22 45%, #7a4d10); position: relative; border-radius: 18px 18px 0 0; }
.iv2-banner .iv2-crown { font-size: 18px; }
.iv2-banner b { font-size: 26px; color: #fff; font-weight: 900; }
.iv2-banner-x { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.28); color: #fff; cursor: pointer; font-size: 14px; }
.iv2-banner-x:hover { background: rgba(0,0,0,.45); }
.iv2-inner { padding: 18px 22px 22px; }
.iv2-head { display: flex; align-items: center; gap: 12px; }
.iv2-gift { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.35); }
.iv2-head-txt { flex: 1; }
.iv2-head-txt b { display: block; font-size: 18px; color: #fff; }
.iv2-head-txt small { font-size: 12.5px; color: rgba(230,235,245,.55); }
.iv2-badge { font-size: 12px; font-weight: 700; color: #fde68a; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4); padding: 4px 12px; border-radius: 999px; }
.iv2-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-top: 18px; }
.iv2-hero { border-radius: 16px; padding: 18px; background: linear-gradient(160deg, rgba(245,158,11,.16), rgba(120,70,15,.12)); border: 1px solid rgba(245,158,11,.3); }
.iv2-hero-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #fde68a; background: rgba(245,158,11,.18); padding: 3px 12px; border-radius: 999px; }
.iv2-hero-label { font-size: 13px; color: rgba(255,255,255,.78); margin-top: 12px; }
.iv2-hero-big { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.iv2-hero-big .iv2-bolt { font-size: 26px; color: #fbbf24; }
.iv2-hero-big span:last-child { font-size: 46px; font-weight: 900; color: #fbbf24; line-height: 1; }
.iv2-hero-badge { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: #fde68a; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.35); padding: 5px 14px; border-radius: 999px; }
.iv2-hero-div { height: 1px; background: rgba(255,255,255,.1); margin: 14px 0; }
.iv2-hero-reg { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.72); }
.iv2-hero-reg b { font-size: 18px; color: #fbbf24; font-weight: 800; }
.iv2-link-label { font-size: 13px; color: rgba(255,255,255,.7); margin: 16px 0 8px; }
.iv2-link-row { display: flex; gap: 10px; }
.iv2-link-box { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.85); }
.iv2-copy { padding: 0 18px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.iv2-copy:hover { filter: brightness(1.08); }
.iv2-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.iv2-stat { text-align: center; padding: 14px 6px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.iv2-stat b { display: block; font-size: 22px; font-weight: 900; color: #fbbf24; }
.iv2-stat span { font-size: 12px; color: rgba(230,235,245,.6); }
.iv2-right { display: flex; flex-direction: column; }
.iv2-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.iv2-tab { padding: 7px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 700; cursor: pointer; }
.iv2-tab.active { color: #fde68a; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
.iv2-pane { flex: 1; }
.iv2-ranklist { min-height: 220px; max-height: 300px; overflow-y: auto; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); padding: 6px; }
.iv2-rank-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; }
.iv2-rank-row:hover { background: rgba(255,255,255,.04); }
.iv2-rank-no { width: 22px; text-align: center; font-weight: 800; color: rgba(255,255,255,.55); }
.iv2-rank-row:nth-child(1) .iv2-rank-no, .iv2-rank-row:nth-child(2) .iv2-rank-no, .iv2-rank-row:nth-child(3) .iv2-rank-no { color: #fbbf24; }
.iv2-rank-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,#22d3ee,#3b82f6); display: grid; place-items: center; color: #fff; font-size: 12px; overflow: hidden; }
.iv2-rank-av img { width: 100%; height: 100%; object-fit: cover; }
.iv2-rank-name { flex: 1; color: rgba(255,255,255,.85); }
.iv2-rank-people { font-size: 11.5px; color: rgba(255,255,255,.5); }
.iv2-rank-score { font-size: 12.5px; font-weight: 800; color: #fbbf24; }
.iv2-empty { text-align: center; color: rgba(255,255,255,.4); font-size: 12.5px; padding: 40px 0; }
.iv2-rules-title { font-size: 14px; font-weight: 800; color: #fff; margin: 20px 0 10px; }
.iv2-rules { margin: 0; padding-left: 20px; }
.iv2-rules li { font-size: 12.5px; color: rgba(230,235,245,.65); line-height: 1.7; margin-bottom: 4px; }
.iv2-rules b { color: #fbbf24; }
@media (max-width: 720px) { .iv2-cols { grid-template-columns: 1fr; } .iv2-banner { font-size: 13px; flex-wrap: wrap; } .iv2-banner b { font-size: 20px; } }
.tb-modal .tm-badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.tb-modal h3 { font-size: 1.15rem; margin: 0 0 .3rem; color: #fff; }
.tb-modal .tm-sub { font-size: .8rem; color: rgba(230,235,245,.6); line-height: 1.5; margin-bottom: 1rem; }
.tm-gift-head {
  border-radius: .8rem; padding: .9rem 1rem; margin-bottom: .9rem;
  background: linear-gradient(135deg, rgba(251,191,36,.22), rgba(244,63,94,.16));
  border: 1px solid rgba(251,191,36,.4);
}
.tm-gift-head .tm-badge { background: rgba(251,191,36,.18); color: #fcd34d; border: 1px solid rgba(251,191,36,.4); }
.tm-row { display: flex; gap: .6rem; margin-bottom: .7rem; }
.tm-code-box {
  flex: 1; display: flex; align-items: center; gap: .5rem;
  padding: .6rem .8rem; border-radius: .7rem;
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2);
  font-family: ui-monospace, monospace; font-size: .9rem; color: #fcd9a0;
}
.tm-copy-btn {
  padding: .55rem .9rem; border-radius: .6rem; border: none; cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #1a1205; font-weight: 700; font-size: .8rem;
}
.tm-qr {
  width: 120px; height: 120px; margin: .4rem auto .8rem; border-radius: .8rem;
  background: #fff; display: grid; place-items: center; color: #333; font-size: .7rem; text-align: center;
}
.tm-list { display: flex; flex-direction: column; gap: .5rem; margin: .6rem 0 .2rem; }
.tm-list .tm-li { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: rgba(230,235,245,.82); padding: .45rem .6rem; border-radius: .6rem; background: rgba(255,255,255,.04); }
.tm-list .tm-li b { color: #fff; }
.tm-steps { counter-reset: tmstep; display: flex; flex-direction: column; gap: .6rem; margin: .6rem 0; }
.tm-steps .tm-step { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: rgba(230,235,245,.85); line-height: 1.5; }
.tm-steps .tm-step::before {
  counter-increment: tmstep; content: counter(tmstep);
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #0891b2); color: #04202a;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800; margin-top: 1px;
}
.tm-submit {
  width: 100%; margin-top: .9rem; padding: .75rem; border-radius: .75rem; border: none; cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #0891b2); color: #04202a; font-weight: 700; font-size: .9rem;
}
.tm-field { width: 100%; margin-bottom: .6rem; padding: .6rem .7rem; border-radius: .6rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #e6ebf5; font-size: .85rem; box-sizing: border-box; }
textarea.tm-field { resize: vertical; min-height: 80px; }
.tm-field:focus { outline: none; border-color: rgba(34,211,238,.6); }

/* 小屏适配 */
@media (max-width: 560px) {
  .app-center-pop.action-menu-panel { right: 10px; left: 10px; width: auto; }
  .tb-topright { gap: 8px; }
}

/* ===== 第⑤组：智能体分类条均分撑满容器 ===== */
/* chat.html 内联智能体视图 #sbAgentCats：5个分类项 flex:1 均分整行 */
.ws-v2 #sbAgentCats.sb-subtabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  gap: 6px;
  padding: 4px 12px 8px;
  width: 100%;
  box-sizing: border-box;
}
.ws-v2 #sbAgentCats.sb-subtabs button {
  flex: 1 1 0 !important;
  min-width: 0;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 12px;
  padding: 5px 4px;
  border-radius: 8px;
}
/* agents.html 独立页 #catPills 已有 grid 5列，这里确保不被覆盖 */
#catPills.wb-pills { display: grid !important; grid-template-columns: repeat(5, minmax(0,1fr)) !important; gap: 4px; width: 100%; }
#catPills .wb-pill { flex: 1 1 0; text-align: center; justify-content: center; }

/* ===== 第④组：画布S2按钮颜色 + 会员徽章 + 设置图标 ===== */
/* 画布S2 "立即体验"按钮：覆盖 agent-fx.css 的主题色渐变，恢复青色描边样式 */
#agentWorkspace .cv-go {
  background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(14,165,233,.08)) !important;
  border: 1px solid rgba(34,211,238,.6) !important;
  color: #22d3ee !important;
  box-shadow: none !important;
  transition: background .2s;
}
#agentWorkspace .cv-go:hover {
  background: rgba(34,211,238,.2) !important;
}
/* 九宫格"切换主题"图标：用SVG齿轮替代emoji，颜色跟随accent */
.menu-action-item[data-action="theme"] .mai-ico {
  font-size: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
}
.menu-action-item[data-action="theme"] .mai-ico::before {
  content: ""; width: 18px; height: 18px; display: inline-block;
  background: currentColor; color: var(--accent, #FDE68A);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E") no-repeat center;
}

/* ===== 第⑥组：S2 玩法说明按钮 =====
   玩法说明 #agPlaybookBtn 的唯一权威规则已收敛到 s2-studio.css 末尾
   「玩法说明【唯一权威规则】」区块（门控 #wsComposer.agent-mode）。
   此处删除旧的 .ws-composer:has(#s2ComposerBar) 圆圈/伪元素规则，避免与权威规则三方打架。 */

/* ============================================================
   第⑦组：邀请好友 / 抖音拿算力 宽弹窗（复刻参考站 b0434515 / 3f8a246d）
   ============================================================ */
.tb-modal.tb-invite-modal,
.tb-modal.tb-douyin-modal {
  width: min(920px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  background: linear-gradient(165deg, #1a2030, #0e1220);
}
.tb-invite-modal .tb-modal-x,
.tb-douyin-modal .tb-modal-x { top: 14px; right: 14px; z-index: 5; }

/* ---------- 邀请好友：金色横幅 ---------- */
.ti-banner {
  display: flex; align-items: baseline; gap: 10px;
  padding: 20px 26px;
  background: linear-gradient(90deg, #6b4a0e 0%, #b8860b 35%, #e3b53a 55%, #b8860b 75%, #6b4a0e 100%);
  border-radius: 1.2rem 1.2rem 0 0;
}
.ti-banner-crown { font-size: 18px; align-self: center; }
.ti-banner-txt { color: #fde68a; font-size: 14px; font-weight: 600; }
.ti-banner-num { color: #fff; font-size: 38px; font-weight: 800; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ti-banner-unit { color: #fde68a; font-size: 13px; }

.ti-head-row { display: flex; align-items: center; gap: 8px; padding: 18px 26px 0; }
.ti-head-gift { font-size: 22px; }
.ti-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0; }
.ti-badge-timer {
  margin-left: auto; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(245,158,11,.18); color: #fcd34d; border: 1px solid rgba(245,158,11,.45);
}
.ti-sub { padding: 6px 26px 0; font-size: 12.5px; color: rgba(230,235,245,.6); }

.ti-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; padding: 16px 26px 20px; }
@media (max-width: 720px) { .ti-cols { grid-template-columns: 1fr; } }

/* 左：邀请有礼卡 */
.ti-card {
  border-radius: 14px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(180,83,9,.12));
  border: 1px solid rgba(245,158,11,.35);
}
.ti-card-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(245,158,11,.25); color: #fcd34d; margin-bottom: 10px;
}
.ti-card-line { font-size: 13px; color: rgba(253,230,138,.85); }
.ti-card-big { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 8px; }
.ti-bolt { color: #fbbf24; font-size: 22px; }
.ti-card-num { color: #fff; font-size: 40px; font-weight: 800; line-height: 1; }
.ti-card-flag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: #fcd34d;
  background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 999px;
}
.ti-card-div { border-top: 1px dashed rgba(245,158,11,.3); margin: 12px 0 10px; }
.ti-card-reg { font-size: 13px; color: rgba(230,235,245,.85); }
.ti-card-reg b { color: #fbbf24; }

.ti-link-label { font-size: 12px; color: rgba(230,235,245,.6); margin: 14px 0 6px; }
.ti-link-row { display: flex; gap: 8px; }
.ti-link-box {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2);
  font-family: ui-monospace, monospace; font-size: 12.5px; color: #fcd9a0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ti-copy-btn {
  padding: 0 16px; border-radius: 8px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #1a1205;
  font-weight: 700; font-size: 13px; white-space: nowrap;
}
.ti-copy-btn:hover { filter: brightness(1.08); }

.ti-stats { display: flex; margin: 14px 0 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; }
.ti-stat { flex: 1; text-align: center; padding: 12px 4px; background: rgba(255,255,255,.03); }
.ti-stat + .ti-stat { border-left: 1px solid rgba(255,255,255,.08); }
.ti-stat b { display: block; font-size: 22px; color: #fff; }
.ti-stat span { font-size: 11px; color: rgba(230,235,245,.55); }

.ti-rules-title { font-size: 12.5px; font-weight: 700; color: #fff; margin: 16px 0 6px; }
.ti-rules { margin: 0; padding-left: 18px; }
.ti-rules li { font-size: 12px; color: rgba(230,235,245,.72); line-height: 1.7; }
.ti-rules b { color: #fbbf24; }

/* 右：排行/记录 */
.ti-right { display: flex; flex-direction: column; min-height: 0; }
.ti-tabs { display: flex; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ti-tab {
  background: none; border: none; cursor: pointer;
  padding: 8px 2px; font-size: 13px; color: rgba(230,235,245,.55);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ti-tab.active { color: #fcd34d; border-bottom-color: #f59e0b; font-weight: 700; }
.ti-pane { padding-top: 10px; }
.ti-pane.hidden { display: none; }
.ti-rank-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.ti-rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px;
}
.ti-rank-row:hover { background: rgba(255,255,255,.04); }
.ti-rank-no { width: 18px; font-size: 12px; color: rgba(230,235,245,.5); text-align: center; }
.ti-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 13px; color: #fff;
}
.ti-rank-name { flex: 1; font-size: 13px; color: #e6ebf5; }
.ti-rank-people { font-size: 12px; color: rgba(230,235,245,.5); }
.ti-rank-score { font-size: 13px; font-weight: 700; color: #fbbf24; }
.ti-empty { padding: 40px 10px; text-align: center; font-size: 13px; color: rgba(230,235,245,.5); }

/* ---------- 抖音拿算力 ---------- */
.td-banner {
  display: flex; gap: 14px; align-items: center;
  padding: 18px 26px;
  background: linear-gradient(90deg, #7a4a0e 0%, #b8860b 40%, #e3b53a 60%, #7a4a0e 100%);
  border-radius: 1.2rem 1.2rem 0 0;
}
.td-banner-5 {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.25);
  color: #fde68a; font-size: 30px; font-weight: 800;
}
.td-banner-unit { font-size: 12px; color: #fde68a; }
.td-banner-txt b { color: #fff; font-size: 16px; }
.td-banner-ok { color: #fde68a; font-size: 12.5px; }
.td-banner-sub { margin-top: 4px; font-size: 11.5px; color: rgba(255,240,200,.85); }

.td-head-row { display: flex; align-items: center; gap: 8px; padding: 16px 26px 0; }
.td-head-ico { font-size: 20px; }
.td-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0; }
.td-sub { padding: 6px 26px 0; font-size: 12.5px; color: rgba(230,235,245,.6); }

.td-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; padding: 16px 26px 6px; }
@media (max-width: 720px) { .td-cols { grid-template-columns: 1fr; } }
.td-sec-title { font-size: 13.5px; font-weight: 700; color: #fff; margin: 4px 0 10px; }
.td-sec-title.warn { color: #fca5a5; margin-top: 16px; }

.td-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.td-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.td-step-no {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #fb7185); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.td-step b { display: block; font-size: 13.5px; color: #fff; }
.td-step small { font-size: 11.5px; color: rgba(230,235,245,.55); }

.td-tips { margin: 0; padding-left: 18px; }
.td-tips li { font-size: 12.5px; color: rgba(230,235,245,.78); line-height: 1.8; }

.td-record-row {
  margin-top: 14px; display: flex; align-items: center;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  font-size: 13.5px; color: #e6ebf5;
}
.td-record-row:hover { background: rgba(255,255,255,.07); }
.td-record-chev { margin-left: auto; color: rgba(230,235,245,.5); }

/* 右：模板播放器 */
.td-player {
  border-radius: 12px; overflow: hidden;
  background: #000; border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; align-items: center;
}
.td-player-bg {
  width: 100%; height: 360px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 30%, #1f4d3a, #0c1f16 70%);
}
.td-play {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1.5px solid rgba(255,255,255,.85);
  display: grid; place-items: center; color: #fff; font-size: 20px; padding-left: 4px;
}
.td-player-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: rgba(0,0,0,.7); font-size: 11.5px; color: #ccc;
}
.td-player-icons { letter-spacing: 6px; }

.td-foot {
  margin: 14px 26px 0; padding: 10px 14px; border-radius: 10px;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
  font-size: 12.5px; color: #fcd34d;
}
.td-join-btn {
  display: block; width: calc(100% - 52px); margin: 14px 26px 22px;
  padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, #f43f5e, #fb7185 50%, #fb923c);
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(244,63,94,.35);
}
.td-join-btn:hover { filter: brightness(1.08); }

/* ============================================================
   v48 修复：顶栏第 4 个「应用中心 / 九宫格」圆钮图标几何居中
   根因：遗留 .ws-v2 .tb-grid-app 规则给按钮留了「两列 5px 网格 +
   gap + place-content」，并对按钮内【所有 span】（含光环 .action-menu-halo、
   角标 .action-menu-badge、图标容器 .trigger-icon-wrap）统一设成 5px 渐变点，
   导致唯一在文档流内的图标容器被放进第 1 列而整体偏左、光环缩成小点、
   容器多出一块渐变底。这里用 ID 级规则统一收敛，保证 glyph 在 55px 圆内正居中。
   ============================================================ */
/* 1) 按钮本身恢复为单格居中网格，去掉遗留的两列轨道 */
#appCenterBtn.tb-grid-app,
#appCenterBtn.action-menu-trigger {
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 0 !important;
  place-content: normal !important;
  place-items: center !important;
  justify-items: center !important;
  align-items: center !important;
}
/* 2) 图标容器：透明底、恰好包住 4 个圆点、在圆内几何居中 */
#appCenterBtn .trigger-icon-wrap {
  position: relative; z-index: 2;
  width: 20px !important; height: 20px !important;
  margin: 0 !important; inset: auto !important;
  justify-self: center !important; align-self: center !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px; place-content: center; place-items: center;
  background: none !important; border: 0; border-radius: 0;
  box-shadow: none !important;
}
#appCenterBtn .trigger-icon-wrap span {
  width: 8px !important; height: 8px !important;
  border-radius: 2.5px; justify-self: center; align-self: center;
}
/* hover / 展开的旋转保留在图标容器上（按钮本身只上浮，不整体旋转） */
#appCenterBtn.tb-grid-app:hover { transform: translateY(-2px) scale(1.03) !important; }
#appCenterBtn.tb-grid-app.is-open,
#appCenterBtn.tb-grid-app.is-open:hover { transform: none !important; }
#appCenterBtn:hover .trigger-icon-wrap { transform: rotate(90deg); }
#appCenterBtn.is-open .trigger-icon-wrap,
#appCenterBtn.is-open:hover .trigger-icon-wrap { transform: rotate(45deg); }
/* 3) 四色在 hover / gear-spin 下保持，不被旧规则染成单色 */
#appCenterBtn:hover .trigger-icon-wrap span:nth-child(1),
#appCenterBtn.gear-spin .trigger-icon-wrap span:nth-child(1) { background: #FB923C !important; }
#appCenterBtn:hover .trigger-icon-wrap span:nth-child(2),
#appCenterBtn.gear-spin .trigger-icon-wrap span:nth-child(2) { background: #22D3EE !important; }
#appCenterBtn:hover .trigger-icon-wrap span:nth-child(3),
#appCenterBtn.gear-spin .trigger-icon-wrap span:nth-child(3) { background: #60A5FA !important; }
#appCenterBtn:hover .trigger-icon-wrap span:nth-child(4),
#appCenterBtn.gear-spin .trigger-icon-wrap span:nth-child(4) { background: #A855F7 !important; }
/* 4) 光环恢复为整圈 conic 环（旧 span 规则把它压成了 5px 小点） */
#appCenterBtn .action-menu-halo {
  width: auto !important; height: auto !important;
  inset: -10px !important; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34,211,238,.55), rgba(168,85,247,.55), rgba(251,146,60,.55), rgba(96,165,250,.55), rgba(34,211,238,.55)) !important;
  opacity: .35;
}
#appCenterBtn:hover .action-menu-halo { opacity: .75; }
/* 5) 角标：圆内右上角、不贴边的小渐变点 */
#appCenterBtn .action-menu-badge {
  width: 7px !important; height: 7px !important;
  top: 8px !important; right: 8px !important;
  bottom: auto !important; left: auto !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #a855f7) !important;
  box-shadow: 0 0 0 2px rgba(20,24,34,.92), 0 0 6px rgba(34,211,238,.7);
}

/* @V55-GEM-42 钻石(商务合作)钮内圈/光环与其它圆钮统一为 42，消除视觉显大 */
#tbBizBtn.sp-gem-btn,
#tbBizBtn.agent-portal-trigger{
  width:42px !important; height:42px !important;
  min-width:42px !important; min-height:42px !important;
  max-width:42px !important; max-height:42px !important;
}
#tbBizBtn.biz-open{ width:42px !important; height:42px !important; }
#tbBizBtn .agent-portal-core{ width:42px !important; height:42px !important; }
#tbBizBtn .agent-portal-icon-wrap{ width:42px !important; height:42px !important; }
#tbBizBtn .agent-portal-icon-wrap svg.agent-portal-icon{ width:21px !important; height:21px !important; }
#tbBizBtn .agent-portal-halo{ inset:-5px !important; }
