/* =========================================================
   Apple 风格设计层（v2.2）
   参考：Apple HIG（语义色 / SF 字体栈 / 8pt 网格 / 毛玻璃导航 / 分段控件）
        + Emil Kowalski 动效原则（ease-out 自定义曲线、<300ms、按下 scale .97、
          只动 transform/opacity、hover 动效只给鼠标设备、reduced-motion 兜底）
   最后加载：只覆盖令牌和外观，不改 DOM / JS 钩子
   ========================================================= */
:root {
  /* 语义色：label / background / fill / separator */
  --paper: #f5f5f7;                 /* 分组画布（apple.com 灰） */
  --surface: #ffffff;               /* 画布上的白卡片 */
  --sunk: #f5f5f7;                  /* 卡片里的凹槽区 */
  --ink: #1d1d1f;                   /* 主文字 */
  --ink-2: #424245;                 /* 次要文字 */
  --muted: #6e6e73;                 /* 说明文字（白底 5.1:1） */
  --faint: #86868b;                 /* 最弱一级，仅用于大字号或装饰 */
  --line: #e3e3e8;                  /* 卡片描边 */
  --line-2: #ededf0;                /* 卡片内分隔线 */
  --fill: rgba(120, 120, 128, .12); /* 控件底色（分段控件轨道等） */
  --fill-2: rgba(116, 116, 128, .08);
  --hover: rgba(0, 0, 0, .04);

  /* 系统强调色（文字用加深版，保证 4.5:1；底色用 10% 透明） */
  --brand: #0071e3;
  --brand-d: #0066cc;
  --brand-soft: rgba(0, 113, 227, .09);
  --mint: #248a3d;
  --mint-soft: rgba(52, 199, 89, .13);
  --amber: #b25000;
  --amber-soft: rgba(255, 149, 0, .13);
  --red: #d70015;
  --red-soft: rgba(255, 59, 48, .10);
  --violet: #8944ab;
  --violet-soft: rgba(175, 82, 222, .11);
  --grey-soft: rgba(120, 120, 128, .10);
  --grad: linear-gradient(135deg, #2997ff 0%, #0071e3 100%);

  /* 形状与层次 */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 22px;
  --shadow-1: 0 1px 1px rgba(0, 0, 0, .02), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .03), 0 10px 30px rgba(0, 0, 0, .07);
  --shadow-3: 0 20px 60px rgba(0, 0, 0, .16), 0 4px 14px rgba(0, 0, 0, .06);

  /* 动效 */
  --ease: cubic-bezier(.23, 1, .32, 1);        /* 进出 / 按下 */
  --ease-io: cubic-bezier(.77, 0, .175, 1);    /* 屏幕内移动 */
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);  /* 抽屉 / 面板 */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

body {
  font-family: var(--font);
  font-size: 14px; line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { letter-spacing: -.01em; font-weight: 600; }
a { color: var(--brand-d); }
::selection { background: rgba(0, 113, 227, .2); }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; border-radius: 6px; }
.watermark { color: rgba(0, 0, 0, .05); }

/* 细滚动条（macOS 风格） */
* { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .16); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, .3); }
::-webkit-scrollbar-track { background: transparent; }

/* =========================================================
   按钮：胶囊形；一处主按钮；按下 scale(.97)
   ========================================================= */
.btn {
  height: 34px; padding: 0 16px; border-radius: 980px;
  border: 0; background: var(--fill); color: var(--ink);
  font-size: 13.5px; font-weight: 500; letter-spacing: 0;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease), box-shadow .2s ease;
}
.btn:hover { background: rgba(120, 120, 128, .18); border-color: transparent; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: none; }
.btn.primary:hover { background: #0077ed; box-shadow: none; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.danger:hover { background: rgba(255, 59, 48, .16); }
.btn.danger.solid { background: #ff3b30; color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-d); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12.5px; }
.btn.lg { height: 44px; padding: 0 24px; font-size: 15px; border-radius: 980px; }
.link { color: var(--brand-d); }
.link:hover { text-decoration: none; opacity: .75; }
.link.kb-title { color: var(--ink); }
.link.kb-title:hover { color: var(--brand-d); opacity: 1; }

/* =========================================================
   表单
   ========================================================= */
.field { gap: 6px; }
.field > .label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea {
  height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid transparent; background: var(--fill-2); color: var(--ink);
  font-size: 14px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.textarea { height: auto; padding: 9px 12px; }
.input::placeholder, .textarea::placeholder { color: #a1a1a6; }
.input:hover, .select:hover, .textarea:hover { border-color: transparent; background: rgba(116, 116, 128, .12); }
.input:focus, .select:focus, .textarea:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }
.input[readonly] { background: var(--fill-2); color: var(--muted); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.form-section { border-top-color: var(--line-2); color: var(--ink); font-size: 13px; }

/* 分段选择：系统分段控件 */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill); }
.seg label {
  height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.seg label:hover { border-color: transparent; color: var(--ink); }
.seg input:checked + label { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .08); }

.search .input { padding-left: 34px; }
.search svg { left: 12px; color: #8e8e93; }

/* =========================================================
   徽标 / 标签：浅色底 + 同色文字
   ========================================================= */
.badge { height: 22px; padding: 0 9px; border-radius: 980px; font-size: 12px; font-weight: 600; }
.b-gap { background: rgba(255, 59, 48, .14); color: #c4000f; }
.chip { height: 22px; padding: 0 8px; border-radius: 6px; background: var(--grey-soft); color: var(--ink-2); }
.chip.more { border: 0; background: var(--brand-soft); color: var(--brand-d); }
.tier { border-radius: 6px; }
.cat, .pin { border-radius: 6px; }

/* =========================================================
   卡片：白卡放在灰画布上，不靠描边靠层次
   ========================================================= */
.card { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: box-shadow .3s ease; }
.card:hover { box-shadow: var(--shadow-1); }
.card-head { padding: 20px 24px 0; }
.card-head h2, .card-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
.card-head .sub { font-size: 13px; color: var(--muted); }
.card-body { padding: 16px 24px 24px; }

/* =========================================================
   表格：分组列表风格，细分隔线
   ========================================================= */
.table-wrap { border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.card .table-wrap { box-shadow: inset 0 0 0 1px var(--line-2); }
.tbl th { background: #fafafc; color: var(--muted); font-size: 12px; font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.tbl tbody tr:hover td { background: #fafafc; }
.empty { color: var(--muted); }
.empty b { font-size: 17px; font-weight: 600; }

.pager button { border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); transition: background-color .15s ease; }
.pager button:hover:not(:disabled) { background: var(--fill); }
.pager button.on { background: var(--ink); color: #fff; }

/* =========================================================
   弹窗 / 抽屉：大圆角、背景模糊、ease-out 曲线
   ========================================================= */
.overlay { background: rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .22s ease; }
.drawer { border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: var(--shadow-3); transform: translateX(32px); transition: transform .32s var(--ease-sheet); }
.dialog { border-radius: var(--r-xl); box-shadow: var(--shadow-3); transform: scale(.96); opacity: .6; transition: transform .24s var(--ease), opacity .2s ease; }
.overlay.show .dialog { opacity: 1; }
.panel-head { padding: 20px 24px 14px; border-bottom: 0; }
.panel-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.panel-head .x { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--muted); font-size: 18px; transition: background-color .15s ease; }
.panel-head .x:hover { background: rgba(120, 120, 128, .2); color: var(--ink); }
.panel-body { padding: 6px 24px 20px; }
.panel-foot { padding: 14px 24px 18px; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.drawer .panel-foot { border-radius: 0 0 0 var(--r-xl); }

/* 提示条 */
.note { border-radius: 12px; padding: 11px 14px; background: var(--brand-soft); color: var(--ink-2); }

/* Toast：深色毛玻璃胶囊 */
.toast { padding: 10px 18px; border-radius: 980px; background: rgba(29, 29, 31, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); font-size: 13.5px; font-weight: 500; animation: toastIn .3s var(--ease); }
.toast.ok::before { color: #30d158; }
.toast.err { background: rgba(215, 0, 21, .9); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* 下拉菜单：浅毛玻璃，从触发点方向弹出 */
.menu {
  padding: 6px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 12px 40px rgba(0, 0, 0, .14);
  transform-origin: top right; animation: menuIn .18s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.menu button, .menu a { height: 32px; border-radius: 8px; font-size: 13.5px; }
.menu button:hover, .menu a:hover { background: var(--brand); color: #fff; }
.menu button:hover .ico, .menu a:hover .ico { color: #fff; }
.menu .sep { background: var(--line-2); margin: 5px 6px; }

.session-pill { height: 28px; padding: 0 11px; border-radius: 980px; background: var(--fill-2); color: var(--muted); font-weight: 500; }
.session-pill::before { background: #34c759; }
.avatar { background: linear-gradient(180deg, #a1a1a6, #8e8e93); color: #fff; font-weight: 600; }
.user-btn { border-radius: 980px; transition: background-color .15s ease; }
.user-btn:hover { background: var(--hover); }

/* 详情表 / 小图表 */
.kv { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.kv > div { border-bottom-color: var(--line-2); }
.kv > div:nth-child(odd) { background: #fafafc; }
.chart-tip { border-radius: 10px; background: rgba(29, 29, 31, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.series-chip { border: 0; background: var(--fill-2); border-radius: 980px; }
.metric-card { border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 14px; }
.cl-list { border-left-color: var(--line); }
.cl-list li::before { background: var(--brand); }
.cl-list li + li::before { background: #c7c7cc; }

/* =========================================================
   主界面：顶栏 = 毛玻璃 + 居中分段控件（滑块由 app.js 定位）
   ========================================================= */
.top {
  height: 56px; padding: 0 28px;
  background: rgba(251, 251, 253, .76);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0; box-shadow: 0 .5px 0 rgba(0, 0, 0, .12);
}
.brand { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.brand img { height: 36px; }
.brand span { color: var(--ink); font-weight: 600; }
.brand small { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; }

.tabs {
  position: relative; align-self: center; height: 34px; gap: 0; padding: 2px;
  border-radius: 980px; background: var(--fill);
}
.tabs a {
  position: relative; z-index: 1; height: 30px; padding: 0 18px; border-radius: 980px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: color .2s ease;
}
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 600; }
.tabs a::after, .tabs a.on::after, .tabs a:hover::after { display: none; }
.tabs .tab-thumb {
  position: absolute; z-index: 0; top: 2px; left: 0; height: 30px; width: 0; border-radius: 980px;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 3px 8px rgba(0, 0, 0, .1);
  transition: transform .32s var(--ease), width .32s var(--ease);
  pointer-events: none;
}
.tabs .tab-thumb.instant { transition: none; }
.tabs:not(:has(.tab-thumb)) a.on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 3px 8px rgba(0, 0, 0, .1); }
.tabs a.has-dot::before { top: 5px; right: 8px; width: 6px; height: 6px; background: #ff3b30; }

.bell-btn { width: 34px; height: 34px; color: var(--ink-2); transition: background-color .15s ease; }
.bell-btn:hover { background: var(--hover); }
.bell-dot { background: #ff3b30; box-shadow: 0 0 0 2px #fbfbfd; }
.menu .bell-item { border-radius: 8px; border-bottom: 0; }
.menu .bell-item.unread { background: var(--brand-soft); }
.menu .bell-item:hover .t, .menu .bell-item:hover .d { color: #fff; }

.page { max-width: 1200px; padding: 32px 28px 64px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.page-head p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.app-foot { margin-top: 48px; color: var(--faint); font-size: 12px; }

/* 页面切换：一次轻入场（≤300ms，只动 opacity/transform） */
#view > div { animation: pageIn .28s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 登录：浅色、留白、兔子居中（吉祥物图不变） ---------- */
.login { background: #fff; }
.login-art {
  background:
    radial-gradient(520px 420px at 30% 30%, rgba(41, 151, 255, .22), transparent 70%),
    radial-gradient(520px 420px at 72% 70%, rgba(94, 92, 230, .16), transparent 70%),
    radial-gradient(420px 360px at 70% 18%, rgba(48, 209, 211, .16), transparent 70%),
    #f5f5f7;
}
.login-art::after { display: none; }
.login-art .orbit { border-color: rgba(0, 0, 0, .06); }
.login-art .o2 { border-color: rgba(0, 0, 0, .045); }
.login-rabbit { filter: drop-shadow(0 30px 40px rgba(0, 40, 120, .18)); animation-duration: 6s; }
.login-art .slogan { left: 48px; bottom: 44px; color: var(--ink); }
.login-art .slogan b { font-size: 28px; font-weight: 700; letter-spacing: -.022em; }
.login-art .slogan span { opacity: 1; color: var(--muted); font-size: 15px; }
.login-card { max-width: 340px; }
.login-card .logo { font-size: 32px; font-weight: 700; letter-spacing: -.025em; }
.login-card .logo span { color: var(--ink); }
.login-card .tag { margin: 6px 0 36px; font-size: 15px; color: var(--muted); }
.login-card .input { height: 44px; font-size: 15px; border-radius: 12px; }
.login-card .btn { margin-top: 0; }
.login-err { color: var(--red); }

/* ---------- 首页顶部横幅：白卡 + 大标题，渐变只留在兔子背后的一束光 ---------- */
.top-strip, .hero {
  min-height: 132px; padding: 28px 230px 28px 32px; border-radius: var(--r-xl);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-1);
}
.top-strip::before, .hero::before {
  right: -40px; top: -90px; width: 360px; height: 300px; border: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 151, 255, .2), rgba(94, 92, 230, .1) 55%, transparent);
}
.top-strip::after, .hero::after { display: none; }
.top-strip h1, .hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.top-strip p, .hero p { margin-top: 6px; opacity: 1; color: var(--muted); font-size: 15px; }
.top-strip .dl { padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--paper); box-shadow: none; transition: background-color .2s ease, transform .16s var(--ease); }
.top-strip .dl:hover { background: #ededf0; transform: none; box-shadow: none; }
.top-strip .dl:active { transform: scale(.98); }
.top-strip .dl .ico { color: var(--brand); }
.top-strip .dl b { font-weight: 600; }
.top-strip .dl .go { height: 30px; padding: 0 16px; border-radius: 980px; background: var(--brand); font-weight: 600; }
.top-strip img, .hero-mascot { filter: drop-shadow(0 14px 22px rgba(0, 40, 120, .16)); }
.hero .btn { background: var(--fill); color: var(--ink); }
.hero .btn.primary { background: var(--brand); color: #fff; }

/* 公告条 */
.nstrip { margin-top: 16px; padding: 12px 16px; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.nstrip:hover { box-shadow: var(--shadow-1); }
.nstrip.has-new { border: 0; background: #fff; box-shadow: var(--shadow-1), inset 3px 0 0 #ff9500; }
.nstrip-ico { width: 36px; height: 36px; border-radius: 10px; }
.nstrip.has-new .nstrip-ico { background: rgba(255, 149, 0, .14); color: #c93400; }
.nstrip.has-new .nstrip-label { color: #c93400; }
.nstrip-ico i { background: #ff3b30; }
.nstrip-item { transition: opacity .35s ease, transform .35s var(--ease); }
.nstrip-item:hover .t { text-decoration: none; color: var(--brand-d); }

/* 热销榜 */
.rank li { padding: 10px 2px; border-bottom-color: var(--line-2); }
.rank .no { width: 24px; height: 24px; border-radius: 7px; background: var(--fill-2); color: var(--muted); }
.rank .no.n1 { background: linear-gradient(180deg, #ffd60a, #ff9f0a); color: #fff; }
.rank .no.n2 { background: linear-gradient(180deg, #d1d1d6, #aeaeb2); color: #fff; }
.rank .no.n3 { background: linear-gradient(180deg, #e3b98f, #c08552); color: #fff; }
.rank .bar { height: 6px; background: var(--fill-2); }
.rank .bar i { background: #a1c9f7; }
.rank li:nth-child(-n+3) .bar i { background: var(--brand); }
.rank .val { font-weight: 600; letter-spacing: -.01em; }
.donut-legend .nm { color: var(--ink-2); }

.key-form .pwd .input, .ag-more .pwd .input { font-family: var(--mono); }
.key-card .key-form .input { height: 44px; border-radius: 12px; }
.key-card .key-form .btn { height: 44px; }
.key-list { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.key-list code { font-family: var(--mono); }
.key-list .g { border-radius: 6px; }
.doc-link { border: 0; background: var(--paper); border-radius: 12px; transition: background-color .2s ease; }
.doc-link:hover { border: 0; background: #ededf0; }

/* ---------- 分组卡片墙 ---------- */
.gstats > div { border: 0; border-radius: 16px; background: var(--paper); }
.gstats b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.vchips { gap: 6px; }
.vchip { height: 32px; padding: 0 12px; border: 0; border-radius: 980px; background: var(--fill-2); color: var(--ink-2); font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.vchip:hover { border: 0; background: var(--fill); }
.vchip.on { border: 0; background: var(--ink); color: #fff; }
.vchip.on i { color: rgba(255, 255, 255, .7); }
.gcard {
  gap: 10px; padding: 18px; border: 0; border-radius: var(--r-lg); background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .3s var(--ease), box-shadow .3s ease;
  animation: gIn .35s var(--ease) both; animation-delay: calc(var(--i) * 30ms);
}
.gcard::before { display: none; }
.gcard::after { background: radial-gradient(360px 110px at 0% 0%, color-mix(in srgb, var(--vc) 7%, transparent), transparent 70%); }
.gcard:hover, .gcard:focus-visible { transform: none; box-shadow: inset 0 0 0 1px var(--line-2); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .gcard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px transparent, var(--shadow-2); }
}
.gcard:active { transform: scale(.985); }
.gcard:hover header .vavatar { transform: none; }
.gname b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.gflag { border-radius: 980px; }
.gsrc { border-radius: 7px; background: var(--fill-2); }
.meters { border-radius: 12px; background: var(--paper); }
.mbar i { background: rgba(120, 120, 128, .14); }
.gcard footer { border-top: 1px solid var(--line-2); }
.gmore { color: var(--brand-d); }
.vavatar { border-radius: calc(var(--vs) * .28); }
.gd-meters { border-radius: 14px; background: var(--paper); }

/* ---------- 公告页 ---------- */
.ncard { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: box-shadow .3s ease, transform .3s var(--ease); }
.ncard:hover { border: 0; transform: none; box-shadow: var(--shadow-1); }
@media (hover: hover) and (pointer: fine) { .ncard:hover { box-shadow: var(--shadow-2); } }
.ncard.unread { border-left: 0; box-shadow: var(--shadow-1), inset 3px 0 0 var(--brand); }
.ncard.pinned { background: #fff; }
.ncard-side { border-radius: 14px; background: var(--paper); }
.ncard-side .day { font-weight: 700; letter-spacing: -.02em; }
.ncard-side .mon { color: #ff3b30; font-weight: 600; }
.ncard h3 { font-size: 17px; letter-spacing: -.012em; }
.ncard.unread h3 { color: var(--ink); }
.new-dot { color: var(--brand); }

/* ---------- BD有话说 ---------- */
.fb-hero { padding: 28px 220px 28px 32px; border: 0; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-1); }
.fb-hero::before { content: ""; position: absolute; right: -40px; top: -90px; width: 360px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(41, 151, 255, .18), rgba(48, 209, 211, .08) 55%, transparent); pointer-events: none; }
.fb-hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -.022em; }
.fb-hero p { color: var(--muted); font-size: 15px; }
.fb-topic { border: 0; border-radius: 14px; background: var(--paper); box-shadow: none; transition: background-color .2s ease, transform .16s var(--ease); }
.fb-topic:hover { transform: none; border: 0; background: #ededf0; box-shadow: none; }
.fb-topic:active { transform: scale(.97); }
.fb-topic .no { color: var(--faint); }
.fb-topic:hover .no { color: var(--brand); }
.fb-history .card-head { border-bottom-color: var(--line-2); }
.fb-day { background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0)); color: var(--muted); }
.fb-entry .dot { border-width: 3px; }
.fb-card { border: 0; border-radius: 14px; background: var(--paper); transition: background-color .2s ease; }
.fb-card:hover { border: 0; box-shadow: none; transform: none; background: #ededf0; }
.chat-bubble { border: 0; background: var(--brand-soft); border-radius: 18px 18px 6px 18px; }

/* ---------- 右下角小兔子（图不变，只调气泡与标签） ---------- */
.buddy-bubble { border: 0; border-radius: 18px 18px 6px 18px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 12px 32px rgba(0, 0, 0, .12); }
.buddy-bubble::after { border: 0; background: rgba(255, 255, 255, .92); }
.bb-chips button { border: 0; border-radius: 980px; background: var(--brand-soft); color: var(--brand-d); font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.bb-chips button:hover { background: var(--brand); color: #fff; }
.buddy-tag { border-radius: 980px; background: var(--brand); box-shadow: 0 4px 14px rgba(0, 113, 227, .35); }
.buddy-tab { background: var(--brand); }
.buddy-pop { border: 0; border-radius: var(--r-xl); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), var(--shadow-3); animation: popIn .24s var(--ease); }
.bp-head { border-bottom: 0; background: transparent; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.bp-head .x { border-radius: 50%; background: var(--fill); }
.bp-chip { border: 0; border-radius: 980px; background: var(--brand-soft); }
.bp-chip:hover { background: rgba(0, 113, 227, .16); }

/* =========================================================
   AI：智能诊断 / 知识库
   ========================================================= */
.ag-cta { border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); transition: box-shadow .3s ease; }
.ag-cta:hover { border: 0; }
@media (hover: hover) and (pointer: fine) { .ag-cta:hover { box-shadow: var(--shadow-2); } }
.ag-cta .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); }
.ag-cta .go { color: var(--brand-d); }
.ag-input { top: 80px; }
.ag-ex { border: 0; border-radius: 12px; background: var(--paper); color: var(--ink-2); transition: background-color .2s ease; }
.ag-ex:hover { border: 0; background: #ededf0; color: var(--ink); }
.ag-more summary, .ag-detail summary { color: var(--brand-d); }
.ag-follow { border-radius: 10px; }
.ag-empty { border: 0; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-1); padding: 72px 24px; }
.ag-empty b { font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.ag-user { border-radius: 20px 20px 6px 20px; background: var(--brand); color: #fff; }
.ag-user .ag-tag { color: rgba(255, 255, 255, .8); }
.ag-user .pre { color: #fff; }
.ag-user .ag-imgs img { border: 0; }
.ag-bot { border: 0; border-radius: 6px 20px 20px 20px; box-shadow: var(--shadow-1); padding: 18px 20px; }
.ag-step { border-radius: 10px; background: var(--paper); }
.ag-spin { border-color: rgba(0, 113, 227, .2); border-top-color: var(--brand); animation-duration: .7s; }
.ag-note { border-left-color: var(--line); }
.ag-confirm { border: 0; border-radius: 14px; background: rgba(255, 149, 0, .1); }
.ag-confirm-h .ico { color: #c93400; }
.ag-acts { border-top-color: var(--line-2); }
.ag-caret { background: var(--brand); border-radius: 1px; }
.ag-detail pre, .ag-confirm pre, .md-code pre { border-radius: 12px; background: #1d1d1f; color: #f5f5f7; font-family: var(--mono); }
.md code { border-radius: 6px; background: var(--fill-2); font-family: var(--mono); }
.md .md-h { font-size: 15.5px; font-weight: 600; }
.md .md-h::before { width: 3px; border-radius: 2px; background: var(--brand); }
.md-code > .btn { background: rgba(255, 255, 255, .14); color: #fff; }
.md-code > .btn:hover { background: rgba(255, 255, 255, .24); }
.kb-ref { border: 0; border-radius: 6px; background: var(--brand-soft); color: var(--brand-d); font-family: var(--mono); }
.kb-ref:hover { background: rgba(0, 113, 227, .16); }
.dropzone { border: 1.5px dashed #c7c7cc; border-radius: 14px; background: var(--paper); transition: border-color .2s ease, background-color .2s ease; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.preview { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.kb-stat { border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); transition: box-shadow .3s ease, transform .16s var(--ease); }
.kb-stat:hover { border: 0; }
@media (hover: hover) and (pointer: fine) { .kb-stat:hover { box-shadow: var(--shadow-2); } }
.kb-stat:active { transform: scale(.98); }
.kb-stat b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.kb-thumb { border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.kb-text { border-radius: 12px; background: var(--paper); }
.kb-imgs figure { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.kb-row { border-top-color: var(--line-2); }

/* 悬停提示：深色毛玻璃 */
.tippy-box[data-theme~='kk'] { background: rgba(29, 29, 31, .88); border-radius: 9px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.tippy-box[data-theme~='kk'][data-placement^='top'] > .tippy-arrow::before { border-top-color: rgba(29, 29, 31, .88); }
.tippy-box[data-theme~='kk'][data-placement^='bottom'] > .tippy-arrow::before { border-bottom-color: rgba(29, 29, 31, .88); }
.tippy-box[data-theme~='kk'][data-placement^='left'] > .tippy-arrow::before { border-left-color: rgba(29, 29, 31, .88); }
.tippy-box[data-theme~='kk'][data-placement^='right'] > .tippy-arrow::before { border-right-color: rgba(29, 29, 31, .88); }

/* =========================================================
   管理后台：macOS 风格浅色侧栏
   ========================================================= */
.side {
  background: rgba(246, 246, 248, .92); color: var(--ink);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset -.5px 0 0 rgba(0, 0, 0, .12);
}
.side-brand { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.01em; padding: 18px 18px 14px; }
.side-brand img { height: 36px; }
.side-brand span { color: var(--ink); }
.side-brand small { color: var(--muted); font-size: 11px; }
.side .grp { margin: 16px 12px 4px; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.side a.nav { height: 32px; padding: 0 10px; margin-bottom: 1px; border-radius: 8px; color: var(--ink); font-size: 13.5px; transition: background-color .12s ease; }
.side a.nav .ico { width: 16px; height: 16px; opacity: 1; color: var(--brand); }
.side a.nav:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.side a.nav.on { background: rgba(0, 0, 0, .08); color: var(--ink); font-weight: 600; }
.side a.nav .cnt { background: rgba(120, 120, 128, .16); color: var(--ink-2); font-weight: 600; }
.side a.nav .cnt.warn { background: #ff9500; color: #fff; }
.side-foot { border-top: .5px solid rgba(0, 0, 0, .1); }
.side-foot a { color: var(--ink-2); }
.side-foot a:hover { color: var(--brand-d); }
.side-foot .ico { color: var(--muted); }

.main-top {
  height: 52px; padding: 0 32px;
  background: rgba(245, 245, 247, .76);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0; box-shadow: 0 .5px 0 rgba(0, 0, 0, .1);
}
.main-top .crumb { color: var(--muted); }
.content { padding: 32px 32px 64px; }
.content .page-head { margin-bottom: 22px; }
.content .page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.content .page-head p { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .side { transition: transform .3s var(--ease-sheet); } .content, .main-top { padding-left: 16px; padding-right: 16px; } }

/* 指标卡 */
.kpis { gap: 14px; margin-bottom: 20px; }
.kpi { padding: 16px 18px; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); transition: box-shadow .3s ease, transform .16s var(--ease); }
a.kpi, button.kpi { color: inherit; }
button.kpi:hover, a.kpi:hover { border: 0; }
@media (hover: hover) and (pointer: fine) { a.kpi:hover, button.kpi:hover { box-shadow: var(--shadow-2); } }
a.kpi:active, button.kpi:active { transform: scale(.98); }
.kpi .l { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.kpi .n { margin-top: 4px; font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.kpi .s { margin-top: 2px; color: var(--faint); }
.kpi.amber .n { color: #c93400; }
.kpi.mint .n { color: var(--mint); }

.todo a { border: 0; border-radius: 12px; background: var(--paper); transition: background-color .2s ease; }
.todo a:hover { background: #ededf0; }
.todo a .ico { color: var(--brand); }
.todo a .n.warn { color: #c93400; }

.util .bar { background: var(--fill-2); }
.util .bar i { background: var(--brand); }
.util .bar i.expand { background: #ff9500; }
.util .bar i.tight, .util .bar i.gap { background: #ff3b30; }

/* 状态筛选 / 分段页签：统一为分段控件 */
.status-tabs, .seg-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill); }
.status-tabs button, .seg-tabs button {
  height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.status-tabs button:hover, .seg-tabs button:hover { color: var(--ink); }
.status-tabs button.on, .seg-tabs button.on { border: 0; background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .08); }
.status-tabs button.on .c { color: var(--muted); }
.seg-tabs button i { background: rgba(120, 120, 128, .14); color: var(--muted); }
.seg-tabs button.on i { background: var(--brand-soft); color: var(--brand-d); }

/* 动效无障碍：保留透明度变化，去掉位移 */
@media (prefers-reduced-motion: reduce) {
  #view > div, .gcard, .toast, .menu, .buddy-pop { animation: none !important; }
  .tabs .tab-thumb, .drawer, .dialog { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .main-top, .side, .menu, .toast, .buddy-bubble { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top { background: #fbfbfd; } .main-top { background: #f5f5f7; } .side { background: #f6f6f8; } .menu { background: #fff; }
}
@media (max-width: 900px) {
  .top { padding: 0 12px; }
  .tabs { justify-self: start; }
  .tabs a { padding: 0 12px; }
  .top-strip, .hero, .fb-hero { padding-right: 32px; }
  .page { padding: 20px 16px 48px; }
  .page-head h1 { font-size: 24px; }
}

/* 分组详情：支持的模型 */
.gd-sec { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; }
.gd-sec .section-title { margin: 0; margin-right: auto; }
.gd-mq { width: 180px; }
.gd-mq .input { height: 28px; font-size: 13px; }
.gd-models { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; padding: 12px; border-radius: 14px; background: var(--paper); }
.gd-model { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font: 12.5px/28px var(--mono); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .15s ease, color .15s ease, transform .16s var(--ease); }
.gd-model:hover { background: var(--brand-soft); color: var(--brand-d); }
.gd-model:active { transform: scale(.97); }
.gd-mnone { padding: 10px 2px; font-size: 13px; }

/* 小兔子可拖动：左半屏气泡 / 面板朝右，上半屏朝下 */
.buddy-stage { cursor: grab; touch-action: none; }
.buddy.dragging .buddy-stage { cursor: grabbing; }
.buddy.dragging .buddy-bubble, .buddy.dragging .buddy-pop { opacity: 0; pointer-events: none; }
.buddy.dragging .buddy-btn img { animation: none; transform: scale(1.06) rotate(-4deg); }
.buddy.dragging .buddy-shadow { opacity: .3; }
.buddy.flip-x { align-items: flex-start; }
.buddy.flip-x .buddy-bubble { margin: 0 0 6px 34px; border-radius: 18px 18px 18px 6px; }
.buddy.flip-x .buddy-bubble::after { right: auto; left: 22px; }
.buddy.flip-x .buddy-pop { right: auto; left: 0; transform-origin: 10% 100%; }
.buddy.flip-y { flex-direction: column-reverse; }
.buddy.flip-y .buddy-bubble { margin-top: 6px; margin-bottom: 0; border-radius: 6px 18px 18px 18px; }
.buddy.flip-x.flip-y .buddy-bubble { border-radius: 18px 6px 18px 18px; }
.buddy.flip-y:not(.flip-x) .buddy-bubble { border-radius: 18px 6px 18px 18px; }
.buddy.flip-x.flip-y .buddy-bubble { border-radius: 6px 18px 18px 18px; }
.buddy.flip-y .buddy-bubble::after { bottom: auto; top: -8px; transform: rotate(225deg); }
.buddy.flip-y .buddy-pop { bottom: auto; top: 172px; transform-origin: 90% 0; }
.buddy.flip-x.flip-y .buddy-pop { transform-origin: 10% 0; }
@media (max-width: 640px) { .buddy.flip-y .buddy-pop { top: 112px; } }

/* ---------- 实时在线人数（右上角铃铛左边） ---------- */
.online-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 980px; background: rgba(52, 199, 89, .1); color: #1d7a3a; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: default; font-variant-numeric: tabular-nums; }
.online-pill .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.online-pill .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34c759; animation: online-ping 2s cubic-bezier(.2, .7, .3, 1) infinite; }
.online-pill .n { font-weight: 600; display: inline-block; }
.online-pill .n.bump { animation: online-bump .35s cubic-bezier(.2, .7, .3, 1); }
.online-pill.stale { background: var(--fill-2); color: var(--muted); }
.online-pill.stale .dot, .online-pill.stale .dot::after { background: #aeaeb2; animation: none; }
@keyframes online-ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes online-bump { 0% { transform: translateY(-3px); opacity: .3; } 100% { transform: none; opacity: 1; } }
@media (max-width: 900px) { .online-pill .u { display: none; } .online-pill { padding: 0 9px; } }
@media (prefers-reduced-motion: reduce) { .online-pill .dot::after, .online-pill .n.bump { animation: none; } }

/* ---------- 分组模型实时同步 ---------- */
.live-badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; margin-left: 8px; padding: 0 8px; border-radius: 980px; background: rgba(52, 199, 89, .12); color: #1d7a3a; font-size: 11.5px; font-weight: 600; vertical-align: 2px; cursor: default; }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.live-badge.err { background: rgba(255, 59, 48, .1); color: #c4271d; }
.live-badge.err::before { background: #ff3b30; }
.live-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.live-row .live-badge { margin-left: 0; }
.live-row .sub { margin: 0; }
.key-row { display: flex; gap: 8px; }
.key-row .input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.textarea.ro { background: var(--fill-2); color: var(--muted); }
.danger-text { color: #c4271d; }

/* ---------- 后台：用户访问 ---------- */
.visit-top { display: grid; gap: 2px; }
.visit-top > div { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13px; }
.visit-top > div:hover { background: var(--fill-2); }
.visit-top .i { width: 18px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.visit-top .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-top b { font-weight: 600; font-variant-numeric: tabular-nums; }

.btn.spinning .ico { animation: kk-spin .8s linear infinite; }
@keyframes kk-spin { to { transform: rotate(360deg); } }
.gd-sec .section-title { display: inline-flex; align-items: center; white-space: nowrap; }
.gd-sec .section-title .live-badge { margin-left: 6px; vertical-align: 0; }

/* ---------- 分组模型 NEW ---------- */
.gd-model.is-new { border-color: rgba(255, 149, 0, .45); background: #fff8ee; }
.gd-model .new-tag { margin-left: 6px; padding: 1px 5px; border-radius: 5px; background: linear-gradient(135deg, #ff9500, #ff3b30); color: #fff; font: 700 9.5px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .04em; font-style: normal; vertical-align: 1px; }
.new-count { margin-left: 6px; padding: 0 7px; height: 20px; line-height: 20px; border-radius: 980px; background: rgba(255, 149, 0, .12); color: #b25e00; font-size: 11.5px; font-weight: 600; }
.gflag.gnew { margin-left: 6px; background: rgba(255, 149, 0, .12); color: #b25e00; }

/* 分组详情标题行：空间不够时按钮换到下一行 */
.gd-sec { flex-wrap: wrap; row-gap: 8px; }
.gd-mq { flex: none; }

/* ---------- AI销售应知应会（开发中占位页） ---------- */
.school-wip { max-width: 560px; margin: 56px auto 40px; padding: 48px 32px 40px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06); text-align: center; }
.school-wip .wip-art { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.school-wip .wip-art img { width: 96px; height: 96px; object-fit: contain; }
.school-wip .wip-gear { position: absolute; right: -6px; bottom: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0071e3; color: #fff; box-shadow: 0 0 0 3px #fff; }
.school-wip .wip-gear .ico { width: 18px; height: 18px; animation: kk-spin 3s linear infinite; }
.school-wip h1 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.school-wip .lead { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: #0071e3; }
.school-wip .muted { margin: 0; font-size: 13px; }
.school-wip .wip-bar { position: relative; height: 6px; margin: 26px auto 0; max-width: 260px; border-radius: 3px; background: var(--fill-2); overflow: hidden; }
.school-wip .wip-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #5ac8fa, #0071e3); animation: wip-slide 1.6s ease-in-out infinite; }
@keyframes wip-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .school-wip .wip-gear .ico, .school-wip .wip-bar i { animation: none; } }
.gd-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---------- 后台：NEW 标记 ---------- */
.new-sum { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.new-sum .new-count { margin-left: 0; }
.new-sum .sub { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.nm-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line, #d2d2d7); border-radius: 9px; background: #fff; color: var(--ink-2); font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.nm-chip:hover { background: var(--fill-2); }
.nm-chip .new-tag { display: none; margin-left: 6px; padding: 1px 5px; border-radius: 5px; background: linear-gradient(135deg, #ff9500, #ff3b30); color: #fff; font: 700 9.5px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-style: normal; }
.nm-chip.on { border-color: rgba(255, 149, 0, .6); background: #fff8ee; color: #1d1d1f; }
.nm-chip.on .new-tag { display: inline-block; }
.new-count { white-space: nowrap; flex: none; }

/* ---------- 需求解锁：锁定态 ---------- */
.meters.locked { position: relative; }
.meters.locked .meter { filter: blur(2.5px); opacity: .55; pointer-events: none; }
.meters.locked .mbar i { background: #d2d2d7; }
.meters.locked .lock-cta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #0071e3; font-size: 13px; font-weight: 600; }
.meters.locked .lock-cta .ico, .lock-tag .ico, .gd-unlock .ico, .dstat .ico { width: 14px; height: 14px; }
.lock-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 980px; background: var(--fill-2); color: var(--muted); font-size: 12px; white-space: nowrap; }

.gd-lock { position: relative; margin-top: 4px; border-radius: 16px; background: var(--fill-2, #f5f5f7); overflow: hidden; }
.gd-lock-fake { padding: 16px 18px; filter: blur(5px); opacity: .5; pointer-events: none; user-select: none; }
.gd-lock-fake .meter { margin-bottom: 8px; }
.gd-lock-fake .fake-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.gd-lock-fake .fake-charts div { padding: 8px; border-radius: 10px; background: #fff; font-size: 12px; }
.gd-lock-fake .fake-charts svg { width: 100%; height: 40px; }
.gd-lock-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 28px; text-align: center; }
.gd-lock-msg > .ico { width: 26px; height: 26px; color: #0071e3; }
.gd-lock-msg b { font-size: 15px; }
.gd-lock-msg span { max-width: 420px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.gd-lock-msg .btn { margin-top: 6px; }
.gd-unlock { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(52, 199, 89, .1); color: #1d7a3a; font-size: 12.5px; }

/* ---------- 首页：需求提交 ---------- */
.demand-card .card-head { align-items: center; gap: 12px; }
.demand-card .d-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.demand-card .d-ico .ico { width: 18px; height: 18px; }
.demand-card .d-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.demand-card .card-body { padding-top: 18px; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.d-form { display: grid; gap: 18px; }
.d-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.d-form .field { gap: 8px; }
.d-form .field > .label { display: flex; align-items: baseline; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink); }
.d-lab-sub { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.d-form .input, .d-form .select { width: 100%; height: 40px; border-radius: 12px; }
.d-form .select:invalid { color: #a1a1a6; }
.d-form .select option { color: var(--ink); }
.d-form .select + .input { margin-top: 8px; }

.mpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; border: 1px solid transparent; border-radius: 12px; background: var(--fill-2); cursor: text; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.mpick:hover { background: rgba(116, 116, 128, .12); }
.mpick:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }
.mpick [data-mchips] { display: contents; }
.mchip { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 11px; border-radius: 980px; background: var(--brand-soft); color: var(--brand-d); font-size: 13px; font-weight: 500; animation: mchipIn .2s var(--ease); }
.mchip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; opacity: .65; transition: background-color .15s ease, opacity .15s ease; }
.mchip button:hover { background: rgba(0, 113, 227, .14); opacity: 1; }
@keyframes mchipIn { from { opacity: 0; transform: scale(.9); } }
.mpick-input { flex: 1; min-width: 180px; height: 30px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.mpick-input::placeholder { color: #a1a1a6; }

.d-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.d-quick:empty { display: none; }
.d-quick .t { margin-right: 2px; color: var(--muted); font-size: 12.5px; }
.d-quick button { height: 26px; padding: 0 10px; border: 0; border-radius: 980px; background: var(--fill-2); color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .16s var(--ease); }
.d-quick button:hover { background: var(--brand-soft); color: var(--brand-d); }
.d-quick button:active { transform: scale(.96); }

.d-match { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 12px; background: var(--paper); color: var(--muted); font-size: 13px; }
.d-match .ico { flex: none; width: 15px; height: 15px; }
.d-match b { color: var(--ink); font-weight: 600; }
.d-match.ok { background: var(--mint-soft); color: #1d7a3a; }
.d-match.ok b { color: #1d7a3a; }
.d-match.warn { background: var(--amber-soft); color: var(--amber); }
.d-gs { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.d-gs i { height: 24px; padding: 0 10px; border-radius: 980px; background: #fff; color: #1d7a3a; font-style: normal; font-size: 12.5px; font-weight: 500; line-height: 24px; box-shadow: 0 0 0 1px rgba(52, 199, 89, .25); }

.d-ta { position: relative; }
.d-ta .textarea { width: 100%; min-height: 96px; padding: 12px 14px 28px; border-radius: 12px; font-size: 14px; line-height: 1.65; }
.d-len { position: absolute; right: 12px; bottom: 8px; color: #a1a1a6; font-size: 12px; pointer-events: none; font-variant-numeric: tabular-nums; }

.dfoot { display: flex; justify-content: flex-end; }
.dfoot .btn { height: 40px; padding: 0 28px; font-size: 14px; font-weight: 600; }

.d-aside { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: var(--paper); }
.d-stat { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.45; }
.d-stat .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.d-stat small { color: var(--muted); font-size: 12px; }
.d-stat.on { color: #1d7a3a; }
.d-stat.on .ico { color: #34c759; }
.d-aside-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.d-gets { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.d-gets li { display: flex; gap: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.d-gets li .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--brand); }
.d-gets b { font-weight: 600; color: var(--ink); }

@media (max-width: 900px) {
  .d-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .d-row { grid-template-columns: 1fr; } }
.biz-grid .d-grid { grid-template-columns: 1fr; }
.demand-card.flash { animation: demand-flash 1.2s ease; }
@keyframes demand-flash { 0%, 100% { box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.05)); } 30% { box-shadow: 0 0 0 4px rgba(0, 113, 227, .35); } }

/* ---------- 小兔子面板：我有话说 / 密钥查模型 ---------- */
.bp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0 14px 4px; padding: 2px; border-radius: 9px; background: var(--fill-2, rgba(116,116,128,.08)); }
.bp-tabs button { height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color .15s ease; }
.bp-tabs button.on { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.buddy-pop.wide { width: min(460px, calc(100vw - 32px)); }
.bp-key { padding: 10px 14px 14px; }
.bp-key .key-hint { margin-top: 8px; color: var(--muted); font-size: 12px; }
.bp-kres { margin-top: 10px; }
.bp-kres .head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bp-kres .head .search { flex: 1; }
.bp-kres .head .input { height: 30px; }
.bp-kres .key-list { max-height: 260px; }
.amp-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gd-lock { min-height: 210px; }
.gd-lock-fake { opacity: .28; filter: blur(6px); }
.gd-lock-msg { background: rgba(255, 255, 255, .55); }

/* 需求提交：可折叠（grid 0fr/1fr 过渡，不用量高度） */
.demand-card .d-head { width: 100%; padding-bottom: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.demand-card .d-head:focus-visible { outline-offset: -4px; border-radius: var(--r-lg); }
.d-fold-t { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; flex: none; height: 28px; padding: 0 10px 0 12px; border-radius: 980px; color: var(--muted); font-size: 12.5px; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.d-head:hover .d-fold-t { background: var(--fill-2); color: var(--ink); }
.d-fold-t .ico { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.demand-card.folded .d-fold-t .ico { transform: rotate(-90deg); }
.demand-card.folded .d-fold-t { color: var(--brand-d); background: var(--brand-soft); }
.d-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease); }
.d-body-in { min-height: 0; overflow: hidden; }
.demand-card.folded .d-body { grid-template-rows: 0fr; }
.demand-card.folded .d-head { padding-bottom: 20px; }
.demand-card.folded .d-body-in { visibility: hidden; transition: visibility 0s .3s; }
@media (prefers-reduced-motion: reduce) { .d-body, .d-fold-t .ico { transition: none; } }

/* 分组卡片：支持的模型（NEW 优先，每行一个、最多三个，其余在详情里看） */
.gmodels { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--paper); }
.gm-t { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.gm-t b { color: var(--ink); font-weight: 600; }
.gm-more { color: var(--brand-d); font-weight: 500; }
.gm-list { display: grid; gap: 5px; }
.gm { display: flex; align-items: center; gap: 5px; min-width: 0; height: 26px; padding: 0 9px; border-radius: 7px; background: #fff; color: var(--ink); font: 12px/26px var(--mono); box-shadow: inset 0 0 0 1px var(--line-2); }
.gm .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm.is-new { background: #fff8ee; box-shadow: inset 0 0 0 1px rgba(255, 149, 0, .4); }
.gm i { flex: none; margin-left: auto; padding: 0 5px; border-radius: 5px; background: linear-gradient(135deg, #ff9500, #ff3b30); color: #fff; font: 700 9.5px/1.5 var(--font); font-style: normal; letter-spacing: .04em; }

/* ---------- 需求提交 v3：只有模型必填 + 自绘圆角下拉 ---------- */
.demand-card.settled .d-body-in { overflow: visible; }
.d-more { display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: var(--paper); }
.d-more-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.d-more-t b { font-size: 13px; font-weight: 600; color: var(--ink); }
.d-more-t span { font-size: 12px; color: var(--muted); }
.d-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.d-fields > .field { grid-column: span 2; }
.d-fields > .field:nth-child(n+4) { grid-column: span 3; }
.d-more .field > .label { font-weight: 500; color: var(--ink-2); }
.d-more .input, .d-more .textarea { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.d-more .input:hover, .d-more .textarea:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.d-more .input:focus, .d-more .textarea:focus { box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }

.dcombo { position: relative; }
.dcombo .dc-in { width: 100%; height: 40px; padding-right: 34px; border-radius: 12px; cursor: pointer; }
.dcombo .dc-in:focus { cursor: text; }
.dc-arrow { position: absolute; right: 13px; top: 50%; width: 10px; height: 6px; margin-top: -3px; color: #8e8e93; cursor: pointer; transition: transform .2s var(--ease); }
.dcombo.open .dc-arrow { transform: rotate(180deg); }
.mpick.dcombo { padding-right: 34px; }
.mpick.dcombo > .dc-arrow { top: 22px; }

.dc-pop {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 260px; overflow-y: auto; padding: 6px;
  border-radius: 14px; background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05);
  transform-origin: top center; animation: dcIn .16s var(--ease);
}
.dc-pop[hidden] { display: none; }
@keyframes dcIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.dc-opt { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: 9px; color: var(--ink); font-size: 13.5px; cursor: pointer; }
.dc-opt .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-opt .m { flex: none; color: var(--muted); font-size: 12px; }
.dc-opt .ck { flex: none; width: 15px; height: 15px; color: var(--brand); }
.dc-opt.on { background: var(--brand-soft); }
.dc-opt.sel { font-weight: 600; }
.dc-empty { padding: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.mpick .dc-opt .t { font-family: var(--mono); font-size: 12.5px; }

@media (max-width: 760px) {
  .d-fields { grid-template-columns: 1fr 1fr; }
  .d-fields > .field, .d-fields > .field:nth-child(n+4) { grid-column: span 1; }
  .d-fields > .field:first-child { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { .dc-pop { animation: none; } }

/* 补充信息：可展开 / 收起 */
.d-more { gap: 0; padding: 0; }
.d-more-t { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.d-more-t:hover { background: rgba(0, 0, 0, .025); }
.d-more-t em { margin-left: auto; padding: 0 8px; border-radius: 980px; background: var(--brand-soft); color: var(--brand-d); font-size: 12px; font-style: normal; font-weight: 500; line-height: 22px; }
.d-more-t em:empty { display: none; }
.d-more-t .dc-arrow { position: static; flex: none; margin: 0 0 0 auto; transition: transform .25s var(--ease); }
.d-more-t em:not(:empty) + .dc-arrow { margin-left: 4px; }
.d-more.open .d-more-t .dc-arrow { transform: rotate(180deg); }
.d-more-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.d-more.open .d-more-body { grid-template-rows: 1fr; }
.d-more-in { min-height: 0; overflow: hidden; display: grid; gap: 14px; padding: 0 16px; visibility: hidden; transition: padding .3s var(--ease), visibility 0s .3s; }
.d-more.open .d-more-in { padding: 2px 16px 16px; visibility: visible; transition: padding .3s var(--ease); }
.d-more.settled .d-more-in { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .d-more-body, .d-more-in, .d-more-t .dc-arrow { transition: none; } }

/* 分组卡片：解锁状态标记 + 商机匹配描边（每个商机一种颜色 --mc） */
.gcard header .gflags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; }
.gcard header .gflags:empty { display: none; }
.gcard header .gflags .gflag { margin-left: 0; }
.gflag.glock, .gflag.gopen { display: inline-flex; align-items: center; gap: 3px; }
.gflag .ico { width: 12px; height: 12px; }
.gflag.glock { background: var(--grey-soft); color: var(--muted); }
.gflag.gopen { background: rgba(0, 113, 227, .1); color: var(--brand-d); }
.gcard.gmatch, .gcard.gmatch:hover, .gcard.gmatch:focus-visible { box-shadow: inset 0 0 0 2px var(--mc, rgba(0, 113, 227, .45)), var(--shadow-1); }

/* 按我的商机筛选（分组筛选栏上方） */
.dchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.dchips-t { display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; color: var(--muted); font-size: 13px; }
.dchips-t .ico { width: 14px; height: 14px; }
.dchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 980px; cursor: pointer;
  background: #fff; color: var(--text, #1d1d1f); font: inherit; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--mc); transition: background .2s, color .2s, transform .15s; }
.dchip:active { transform: scale(.97); }
.dchip .mdot { width: 8px; height: 8px; border-radius: 50%; background: var(--mc); flex: none; }
.dchip small { color: var(--muted); font-size: 11.5px; }
.dchip i { font-style: normal; min-width: 18px; padding: 0 5px; border-radius: 980px; background: color-mix(in srgb, var(--mc) 14%, transparent); color: var(--mc); font-size: 11.5px; font-weight: 600; line-height: 18px; text-align: center; }
.dchip.old { opacity: .62; }
.dchip.on { background: var(--mc); color: #fff; opacity: 1; }
.dchip.on .mdot { background: #fff; }
.dchip.on small { color: rgba(255, 255, 255, .85); }
.dchip.on i { background: rgba(255, 255, 255, .25); color: #fff; }

/* 解锁数据「仅供参考」提示 */
.gd-ref { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 149, 0, .1); color: #a35a00; font-size: 12.5px; }
.gd-ref .ico { width: 14px; height: 14px; flex: none; }
.gd-ref b { font-weight: 600; margin-left: 2px; }
.d-ref { display: block; margin-top: 2px; color: #a35a00; font-size: 12px; font-style: normal; }

/* ---------- 商机提交：必填信息全部必填 ---------- */
.d-more-t em.done { background: rgba(52, 199, 89, .14); color: #1f8a3c; }
.field.miss .input, .field.miss .textarea, .field.miss .dcombo .input { box-shadow: 0 0 0 1.5px #ff3b30 inset; background: #fff6f5; }
.field.miss > .label { color: #d70015; }
.dfoot { display: flex; align-items: center; gap: 12px; }
.dfoot .btn { margin-left: auto; }
.d-private { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.d-private .ico, .my-note .ico, .my-private .ico, .dm-groups .ico { width: 13px; height: 13px; flex: none; }

/* ---------- 我的：我有话说 / 我的商机 ---------- */
.my-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 4px 0 18px; }
.my-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 18px; font-size: 14px; }
.my-tabs button .ico { width: 15px; height: 15px; }
.my-tabs button i:empty { display: none; }
.my-note { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.my-private { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 113, 227, .07); color: var(--brand-d); font-size: 13px; }
.dm-list { display: grid; gap: 12px; }
.dm-item { padding: 14px 16px; border-radius: 14px; background: var(--fill, #f5f5f7); display: grid; gap: 10px; }
.dm-top { display: flex; align-items: center; gap: 10px; }
.dm-cust { font-size: 15px; }
.dm-top time { color: var(--muted); font-size: 12.5px; }
.dm-top .fb-del { margin-left: auto; }
.dm-models { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-models .mchip { padding: 0 11px; height: 24px; font-family: var(--mono); font-size: 12px; animation: none; }
.dm-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dm-kv div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #fff; }
.dm-kv span, .dm-bg span { color: var(--muted); font-size: 12px; }
.dm-kv b { font-size: 13.5px; font-weight: 600; }
.dm-bg { display: grid; gap: 2px; font-size: 13.5px; white-space: pre-wrap; }
.dm-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.dm-groups i { font-style: normal; padding: 0 8px; border-radius: 980px; background: rgba(52, 199, 89, .14); color: #1f8a3c; line-height: 20px; }
@media (max-width: 760px) { .dm-kv { grid-template-columns: 1fr 1fr; } }

/* ---------- 后台：在线统计 / 只读模式 / 商机 ---------- */
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .2); vertical-align: 1px; }
.act-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.act-page { display: inline-block; padding: 0 9px; border-radius: 980px; background: var(--brand-soft); color: var(--brand-d); font-size: 12.5px; line-height: 22px; }
.act-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.act-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 9px; border-radius: 980px; background: var(--fill, #f2f2f7); font-size: 12px; line-height: 22px; }
.act-chips i { font-style: normal; padding: 0 6px; border-radius: 980px; background: #fff; color: var(--muted); font-size: 11px; line-height: 16px; }
.ro-tip { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 149, 0, .12); color: #a35a00; font-size: 12px; }
.ro-tip .ico { width: 14px; height: 14px; }
.clip3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1200px) { .act-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.act-dur { min-width: 112px; white-space: nowrap; }

/* ---------- 分组头像（主界面 + 后台共用；后台没加载 extras.css，这里补一份基础样式） ---------- */
.vavatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--vs); height: var(--vs); border-radius: calc(var(--vs) * .28); overflow: hidden;
  background: color-mix(in srgb, var(--vc, #8e8e93) 14%, white); color: var(--vc, #8e8e93); font-weight: 700; font-size: calc(var(--vs) * .45); }
.vavatar.has-logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.vavatar.has-logo img { width: 62%; height: 62%; object-fit: contain; }
.vavatar.has-img { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.vavatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-id { display: flex; align-items: center; gap: 10px; }
.gav-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; line-height: 0; }
.gav-btn .gav-edit { position: absolute; right: -5px; bottom: -5px; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--brand, #0071e3); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .15s; }
.gav-btn .gav-edit .ico { width: 11px; height: 11px; }
.gav-btn:hover .gav-edit, .gav-btn:focus-visible .gav-edit { transform: scale(1.15); background: var(--brand, #0071e3); color: #fff; }
body.ro-mode .gav-btn { cursor: default; }
body.ro-mode .gav-btn .gav-edit { display: none; }
.gav-pick { display: flex; align-items: center; gap: 10px; }
.gav-pick label.btn { cursor: pointer; }

/* =========================================================
   手机端适配（≤640px）：顶栏两行、页签横向滑动、卡片紧凑、表单单列、输入框 16px 防止 iOS 自动放大
   ========================================================= */
.tabs { min-width: 0; } /* grid 子项默认 min-width:auto 会让 overflow-x 失效，把整页撑出横向滚动条 */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } } /* clip 不会破坏 position: sticky */
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: transparent; }
  a, button, .btn, .gcard, .vchip, .dchip { touch-action: manipulation; }

  /* 顶栏：第一行 logo + 右侧图标，第二行页签（可横向滑动） */
  .top { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 52px auto; height: auto; row-gap: 0; column-gap: 8px; padding: 0 12px env(safe-area-inset-right) 0; padding-left: max(12px, env(safe-area-inset-left)); }
  .brand img { height: 30px; }
  .brand { font-size: 14px; }
  .top-right { gap: 6px; }
  .top-right #adminLink { padding: 0 10px; font-size: 12px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: flex-start; margin: 0 0 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: 1 0 auto; justify-content: center; padding: 0 14px; scroll-snap-align: center; }

  .page { padding: 14px 12px calc(110px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 14px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 13.5px; }
  .card { border-radius: 18px; }
  .card-head { padding: 16px 16px 0; flex-wrap: wrap; row-gap: 4px; }
  .card-head h3 { white-space: nowrap; }
  .card-body { padding: 14px 16px 16px; }

  /* 输入框 ≥16px：iOS Safari 小于 16px 聚焦时会整页放大 */
  .input, .textarea, .select, select, textarea, input[type=text], input[type=search], input[type=password] { font-size: 16px; }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar .search { width: 100% !important; flex: 1 1 100%; }

  /* 欢迎条 + PPT 下载 */
  .top-strip { padding: 20px 16px; gap: 14px; }
  .top-strip h1 { font-size: 22px; }
  .top-strip p { font-size: 13.5px; }
  .top-strip .dl { width: 100%; }
  .top-strip .dl > div { flex: 1; min-width: 0; }
  .top-strip .dl b { font-size: 13.5px; line-height: 1.35; }
  .top-strip .dl .go { flex: none; margin-left: 0; }

  /* 公告条：标题可换行，按钮缩小 */
  .nstrip { padding: 12px; gap: 10px; }
  .nstrip-body { min-width: 0; flex: 1; }
  .nstrip-item { min-width: 0; }
  .nstrip-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nstrip-item .d { display: none; }
  .nstrip .btn.sm { padding: 0 10px; }

  /* 商机提交 */
  .demand-card .d-head { flex-wrap: nowrap; align-items: flex-start; }
  .demand-card .d-title { flex: 1; min-width: 0; }
  .demand-card .d-title .sub { font-size: 12.5px; }
  .fb-hero { padding: 20px 16px; }
  .fb-hero h1, .fb-hero h2 { font-size: 22px; }
  .d-fold-t span { display: none; }
  .d-fields { grid-template-columns: 1fr !important; }
  .d-fields > .field, .d-fields > .field:first-child, .d-fields > .field:nth-child(n+4) { grid-column: auto !important; }
  .d-more-t { flex-wrap: wrap; row-gap: 2px; }
  .d-more-t > span { flex-basis: 100%; order: 3; font-size: 12px; }
  .dfoot { flex-wrap: wrap; }
  .dfoot .btn { width: 100%; margin-left: 0; height: 44px; }
  .d-private { order: 2; width: 100%; justify-content: center; }

  /* 分组：统计三格并排、筛选胶囊横向滑动、卡片头部换行 */
  .gstats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
  .gstats > div { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 0; }
  .gstats b { font-size: 22px; }
  .gstats span { font-size: 11.5px; line-height: 1.3; }
  .vchips, .dchips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .vchips::-webkit-scrollbar, .dchips::-webkit-scrollbar { display: none; }
  .vchip, .dchip, .dchips-t { flex: none; }
  .ggrid { grid-template-columns: 1fr !important; gap: 12px; }
  .gcard header { flex-wrap: wrap; row-gap: 8px; }
  .gcard header .gname { flex: 1; min-width: 0; }
  .gcard header .gflags { order: 3; flex-basis: 100%; justify-content: flex-start; margin-left: 0; }

  /* 分组详情 / 侧滑面板：全屏宽 */
  .drawer { width: 100vw !important; max-width: 100vw; border-radius: 0 !important; }
  .dialog { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px); }
  .panel-head { padding: 16px 16px 12px; }
  .panel-body { padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
  .gd-sec { flex-wrap: wrap; }
  .gd-tools { flex-wrap: wrap; width: 100%; margin-left: 0; }
  .gd-mq { flex: 1 1 140px; width: auto; }
  .gd-ref { align-items: flex-start; line-height: 1.5; }

  /* 我的 / 公告 */
  .my-switch { gap: 10px; }
  .my-tabs { width: 100%; }
  .my-tabs button { flex: 1; justify-content: center; padding: 0 10px; }
  .dm-kv { grid-template-columns: 1fr 1fr; }

  /* 右下角小兔子：缩小，自动气泡收起（避免挡住内容），点开面板占满宽度 */
  .buddy { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .buddy-stage { width: 70px; height: 88px; }
  .buddy-bubble { display: none; }
  .buddy-pop { position: fixed; left: 8px; right: 8px; width: auto; max-width: none; bottom: calc(104px + env(safe-area-inset-bottom)); max-height: 70vh; }
  .buddy.flip-y .buddy-pop { top: auto; }

  /* 表格（技术人员视图）横向滑动 */
  .table-wrap, .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 380px) {
  .online-pill { display: none; }
  .tabs a { padding: 0 10px; font-size: 13px; }
}

/* 2026-11-12：商机侧栏「为什么要提交商机」+ 我的商机删除按钮常显 */
.d-why { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft, #eaf3ff); color: var(--ink); font-size: 13px; line-height: 1.55; }
.d-why .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--brand); }
.d-why b { font-weight: 600; color: var(--brand); }
.dm-top .dm-del { margin-left: auto; color: var(--red); }
.dm-top .dm-del:hover { background: var(--red-soft); border-color: transparent; }

/* 在线统计：分组 / 模型 / 搜索默认只露前 3 个 */
.act-chips span.more { display: none; }
.act-chips.open span.more { display: inline-flex; }
.act-fold { border: 0; background: none; padding: 0 6px; color: var(--brand); font: inherit; font-size: 12px; line-height: 22px; cursor: pointer; border-radius: 980px; }
.act-fold:hover { background: var(--brand-soft); }

/* =========================================================
   性能（2026-11-12）：滚动卡顿
   - 顶栏 / 侧栏 / 后台顶栏的毛玻璃（backdrop-filter）滚动时每一帧都要重新模糊下面的内容，换成几乎不透明的纯色，观感基本一样
   - 水印层（60 段旋转文字，盖满全屏）单独成层，滚动时不再跟着重绘
   - 卡片列表：屏幕外的卡片跳过渲染
   - 兔子的投影滤镜 + 无限浮动动画：单独成层
   ========================================================= */
.top, .main-top, .side { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.top { background: rgba(251, 251, 253, .97); }
.main-top { background: rgba(245, 245, 247, .97); }
.side { background: #f6f6f8; }
.watermark { contain: strict; will-change: transform; transform: translateZ(0); }
.gcard { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.buddy-btn img { will-change: transform; }

/* 分组类型标签 + 后台服务质量单元格 + 指标名称设置 */
.kind-tag { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; line-height: 17px; font-weight: 600; vertical-align: 1px; }
.kind-tag.k-text { background: rgba(0, 113, 227, .1); color: #0060c0; }
.kind-tag.k-image { background: rgba(255, 149, 0, .14); color: #b35f00; }
.kind-tag.k-video { background: rgba(175, 82, 222, .13); color: #8a3bb5; }
.mq { display: grid; gap: 2px; font-size: 12.5px; white-space: nowrap; }
.mq em { font-style: normal; color: var(--muted); margin-right: 6px; display: inline-block; min-width: 56px; }
.md-grid { display: grid; gap: 10px; }
.md-row { display: grid; grid-template-columns: 40px 1fr 1fr; gap: 8px; align-items: center; }
.md-cell { display: flex; gap: 6px; }
.md-cell .input { min-width: 0; }
.md-cell .md-unit { width: 72px; flex: none; }

/* 模型厂商管理 */
.vlist { display: grid; gap: 6px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--fill, #f5f5f7); }
.vrow .vname { flex: 1; display: grid; gap: 2px; min-width: 0; }
.vrow .vname b { font-weight: 600; }
.vadd-link { margin-left: 8px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.vadd-link .ico { width: 12px; height: 12px; }

/* 页签栏末尾的「打开测试平台」外链（技术人员 / 管理员） */
.tabs a.tab-ext { gap: 5px; color: var(--brand); font-weight: 600; }
.tabs a.tab-ext:hover { color: var(--brand-d, var(--brand)); background: rgba(0, 113, 227, .08); }
.tabs a.tab-ext .ico, .tabs a.tab-ext svg { width: 14px; height: 14px; flex: none; }

/* =========================================================
   我有话说：商机 / 反馈 圈子（类朋友圈信息流）
   ========================================================= */
.cc-page { max-width: 1120px; margin: 0 auto; }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }
.cc-title h1 { font-size: 30px; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.cc-title p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.cc-tabs { padding: 3px; border-radius: 12px; }
.cc-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 22px; border-radius: 9px; font-size: 14.5px; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.cc-tabs button .ico { width: 16px; height: 16px; }
.cc-tabs button i:empty { display: none; }
.cc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cc-feed { display: grid; gap: 14px; min-width: 0; }
.cc-side { position: sticky; top: 76px; display: grid; gap: 14px; }

/* 筛选栏 */
.cc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-filter button { height: 30px; padding: 0 13px; font-size: 13px; }
.cc-bar .search { margin-left: auto; width: 220px; }

/* 帖子 */
.cc-list { display: grid; gap: 12px; }
.cc-post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); animation: cc-in .32s var(--ease) both; }
.cc-post.mine { box-shadow: var(--shadow-1), inset 3px 0 0 var(--brand); }
@keyframes cc-in { from { opacity: 0; transform: translateY(6px); } }
.cc-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--av, var(--brand)); color: #fff; font-size: 16px; font-weight: 600; flex: none; }
.cc-av.anon { background: linear-gradient(160deg, #e9e9ee, #d6d6dc); color: #fff; }
.cc-av.anon svg { width: 24px; height: 24px; margin-top: 4px; }
.cc-main { min-width: 0; display: grid; gap: 9px; }
.cc-ph { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; line-height: 22px; }
.cc-ph > b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cc-ph > b.anon { color: var(--ink-2); }
.cc-ph time { color: var(--faint); font-size: 12.5px; }
.cc-me { padding: 0 7px; border-radius: 980px; background: var(--brand-soft); color: var(--brand-d); font-size: 11.5px; font-weight: 600; line-height: 18px; }
.cc-tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 9px; border-radius: 980px; font-size: 12px; line-height: 22px; }
.cc-tag .ico { width: 12px; height: 12px; }
.cc-tag.demand { background: rgba(255, 149, 0, .13); color: var(--amber); }
.cc-state { margin-left: auto; padding: 0 9px; border-radius: 980px; background: var(--fill-2); color: var(--muted); font-size: 12px; line-height: 22px; }
.cc-state.ok { background: var(--mint-soft); color: var(--mint); }
.cc-dm-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cc-dm-title > b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.cc-hidden, .cc-priv { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 980px; font-size: 12.5px; line-height: 24px; }
.cc-hidden { background: var(--fill-2); color: var(--muted); }
.cc-priv { padding: 0 8px; background: var(--brand-soft); color: var(--brand-d); font-size: 11.5px; line-height: 20px; }
.cc-hidden .ico, .cc-priv .ico { width: 12px; height: 12px; }
.cc-models { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-models .mchip { height: 24px; padding: 0 10px; font-family: var(--mono); font-size: 12px; animation: none; }
.cc-kv { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-kv:empty { display: none; }
.cc-kv span { display: inline-flex; gap: 6px; padding: 0 10px; border-radius: 8px; background: var(--sunk); font-size: 13px; line-height: 26px; }
.cc-kv i { font-style: normal; color: var(--muted); }
.cc-text { font-size: 14.5px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.cc-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.cc-groups i { font-style: normal; padding: 0 8px; border-radius: 980px; background: var(--mint-soft); color: var(--mint); line-height: 20px; }
.cc-pf { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.cc-pf > .cc-act:first-child { margin-left: -10px; }
.cc-act { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--brand-d); font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, transform .12s var(--ease); }
.cc-act .ico { width: 15px; height: 15px; }
.cc-act:hover { background: var(--brand-soft); }
.cc-act:active { transform: scale(.96); }
.cc-act.danger { margin-left: auto; color: var(--faint); }
.cc-act.danger:hover { background: var(--red-soft); color: var(--red); }
.cc-cnt { color: var(--muted); font-size: 12.5px; }

/* 回复区：朋友圈式灰底评论框 */
.cc-replies { padding: 4px 12px 10px; border-radius: 12px; background: var(--sunk); }
.cc-replies ul { list-style: none; margin: 0; padding: 0; }
.cc-rp { padding: 9px 0; }
.cc-rp + .cc-rp { border-top: 1px solid rgba(0, 0, 0, .05); }
.cc-rp-h { display: flex; align-items: center; gap: 6px; line-height: 20px; }
.cc-rp-h b { font-size: 13px; font-weight: 600; color: var(--brand-d); }
.cc-rp.owner .cc-rp-h b { color: var(--ink-2); }
.cc-rp-h time { color: var(--faint); font-size: 12px; }
.cc-role { padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 17px; }
.cc-role.tech { background: rgba(48, 176, 199, .14); color: #0e7490; }
.cc-role.manager { background: rgba(175, 82, 222, .12); color: var(--violet); }
.cc-role.admin { background: var(--brand-soft); color: var(--brand-d); }
.cc-role.owner { background: var(--fill); color: var(--muted); }
.cc-rp-del { margin-left: auto; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--faint); font: inherit; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; }
.cc-rp:hover .cc-rp-del, .cc-rp-del:focus-visible { opacity: 1; }
.cc-rp-del:hover { color: var(--red); }
@media (hover: none) { .cc-rp-del { opacity: 1; } }
.cc-rp-t { margin-top: 2px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.cc-rform { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; animation: cc-in .22s var(--ease) both; }
.cc-rform .textarea { flex: 1; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 10px; background: #fff; resize: none; font-size: 14px; line-height: 1.5; box-shadow: inset 0 0 0 1px var(--line); }
.cc-rform .textarea:focus { box-shadow: 0 0 0 3px rgba(0, 113, 227, .18), inset 0 0 0 1px rgba(0, 113, 227, .5); }
.cc-send { display: grid; place-items: center; width: 34px; height: 34px; flex: none; margin-bottom: 2px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; transition: transform .12s var(--ease), opacity .15s; }
.cc-send .ico { width: 17px; height: 17px; }
.cc-send:active { transform: scale(.92); }
.cc-send:disabled { opacity: .45; }

/* 右栏 */
.cc-rule { padding: 16px 18px; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.cc-rule-t { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cc-rule-t .ico { width: 15px; height: 15px; color: var(--brand); }
.cc-rule ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.cc-rule li { display: flex; gap: 9px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.cc-rule li b { color: var(--ink); }
.cc-rule .dot { width: 7px; height: 7px; margin-top: 7px; flex: none; border-radius: 50%; }
.cc-rule .dot.b { background: var(--brand); } .cc-rule .dot.g { background: #34c759; } .cc-rule .dot.o { background: #ff9f0a; }
.cc-stat { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 6px; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-1); text-align: center; }
.cc-stat div + div { border-left: 1px solid var(--line-2); }
.cc-stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cc-stat span { color: var(--muted); font-size: 12px; }
.cc-empty { padding: 48px 20px; border-radius: var(--r-lg); background: #fff; }

/* 首页商机卡 / 小兔子：隐私提示 */
.d-private > span b { color: var(--brand-d); font-weight: 600; }
.bp-anon { display: flex; align-items: center; gap: 5px; margin: -2px 0 2px; color: var(--muted); font-size: 12px; }
.bp-anon .ico { width: 12px; height: 12px; flex: none; }

@media (max-width: 900px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-side { position: static; order: -1; }
  .cc-stat { display: none; }
}
@media (max-width: 640px) {
  .cc-head { align-items: stretch; }
  .cc-title h1 { font-size: 24px; }
  .cc-tabs { width: 100%; }
  .cc-tabs button { flex: 1; justify-content: center; }
  .cc-post { grid-template-columns: 34px minmax(0, 1fr); padding: 14px; gap: 10px; }
  .cc-av { width: 34px; height: 34px; font-size: 14px; }
  .cc-c-row, .cc-c-foot { padding-left: 0; }
  .cc-c-foot { flex-wrap: wrap; }
  .cc-bar .search { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .cc-post, .cc-rform { animation: none; } }

/* 后台：商机 / 反馈 回复抽屉 */
.adm-reply { margin-right: 10px; }
.adm-reply.wait::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #ff9f0a; vertical-align: 2px; }
.adm-thread { display: grid; gap: 14px; }
.adm-th-post { display: grid; gap: 9px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.adm-th-t { font-weight: 600; font-size: 14px; }
.adm-th-t i { font-style: normal; margin-left: 4px; padding: 0 7px; border-radius: 980px; background: var(--brand-soft); color: var(--brand-d); font-size: 12px; }
.adm-rform { width: 100%; margin: 0; align-items: flex-end; }
.adm-rform .textarea { min-height: 60px; }

/* ---------- 我有话说 v2：商机页顶部表单 + 反馈群聊 ---------- */
.cc-dform { margin-bottom: 20px; }
.cc-dform .demand-card { margin: 0; }
.cc-chat { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 460px; padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.cc-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.cc-chat-head b { font-size: 15px; }
.cc-chat-head .muted { font-size: 12.5px; }
.cc-chat-lock { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-size: 12px; }
.cc-chat-lock .ico { width: 12px; height: 12px; }
.cc-chat-scroll { flex: 1; overflow-y: auto; padding: 8px 18px 16px; background: #fafafc; overscroll-behavior: contain; }
.cc-chat-more { text-align: center; padding: 6px 0; font-size: 12.5px; }
.cc-day { display: flex; justify-content: center; margin: 14px 0 6px; }
.cc-day span { padding: 0 10px; border-radius: 980px; background: var(--fill-2); color: var(--muted); font-size: 11.5px; line-height: 20px; }
.cc-msg { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; animation: cc-in .24s var(--ease) both; }
.cc-msg.cont { margin-top: 4px; }
.cc-msg.cont .cc-av { visibility: hidden; height: 0; }
.cc-msg.me { justify-content: flex-end; }
.cc-av.sm { width: 32px; height: 32px; font-size: 13px; }
.cc-av.sm.anon svg { width: 20px; height: 20px; margin-top: 3px; }
.cc-msg-body { display: flex; flex-direction: column; align-items: flex-start; max-width: min(72%, 560px); min-width: 0; }
.cc-msg.me .cc-msg-body { align-items: flex-end; }
.cc-msg-name { display: flex; align-items: center; gap: 5px; margin: 0 0 3px 2px; color: var(--muted); font-size: 12px; }
.cc-bubble { padding: 8px 12px; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04); font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cc-msg.cont:not(.me) .cc-bubble { border-radius: 5px 16px 16px 5px; }
.cc-msg.me .cc-bubble { border-radius: 16px 16px 5px 16px; background: var(--brand); color: #fff; box-shadow: none; }
.cc-msg.me.cont .cc-bubble { border-radius: 16px 5px 5px 16px; }
.cc-quote { margin: 0 0 6px; padding: 4px 8px; border-left: 2px solid rgba(0, 113, 227, .45); border-radius: 4px 8px 8px 4px; background: rgba(120, 120, 128, .08); color: var(--muted); font-size: 12.5px; line-height: 1.45; white-space: normal; }
.cc-quote b { margin-right: 4px; color: var(--ink-2); font-weight: 600; }
.cc-msg.me .cc-quote { border-left-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }
.cc-msg.me .cc-quote b { color: #fff; }
.cc-msg-meta { display: flex; align-items: center; gap: 2px; height: 20px; margin-top: 2px; color: var(--faint); font-size: 11px; }
.cc-msg-meta time { margin: 0 4px; }
.cc-msg-meta button { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.cc-msg-meta button .ico { width: 12px; height: 12px; }
.cc-msg:hover .cc-msg-meta button, .cc-msg-meta button:focus-visible { opacity: 1; }
.cc-msg-meta button:hover { background: var(--fill-2); color: var(--brand-d); }
.cc-msg-meta button.danger:hover { color: var(--red); background: var(--red-soft); }
@media (hover: none) { .cc-msg-meta button { opacity: 1; } }
.cc-chat-empty { display: grid; justify-items: center; gap: 4px; padding: 60px 0; color: var(--muted); font-size: 13px; }
.cc-chat-empty img { width: 72px; opacity: .9; }
.cc-chat-empty b { color: var(--ink); font-size: 15px; }
.cc-chat-input { padding: 10px 14px 12px; border-top: 1px solid var(--line-2); background: #fff; }
.cc-quote-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--ink-2); font-size: 12.5px; }
.cc-quote-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-quote-bar .ico { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; color: var(--brand); }
.cc-quote-bar button { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.cc-chat-row { display: flex; align-items: flex-end; gap: 8px; }
.cc-chat-row .textarea { flex: 1; min-height: 40px; padding: 9px 14px; border: 0; border-radius: 20px; background: var(--sunk); resize: none; font-size: 14px; line-height: 1.5; }
.cc-chat-row .textarea:focus { background: #fff; box-shadow: 0 0 0 3px rgba(0, 113, 227, .18), inset 0 0 0 1px rgba(0, 113, 227, .5); }
.cc-chat-row .cc-send { margin-bottom: 3px; }
@media (max-width: 900px) { .cc-chat { height: calc(100vh - 200px); } }
@media (max-width: 640px) { .cc-msg-body { max-width: 82%; } .cc-chat-lock { display: none; } }
@media (prefers-reduced-motion: reduce) { .cc-msg { animation: none; } }

/* 小兔子：商机 / 反馈 / 密钥查模型 */
.bp-tabs.three { grid-template-columns: repeat(3, 1fr); }
.bp-demand { display: grid; gap: 12px; padding: 12px 16px 14px; }
.bp-d-intro { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.bp-d-intro .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand); }
.bp-d-intro b { color: var(--brand-d); }
.bp-d-list { display: grid; gap: 6px; }
.bp-d-t { color: var(--muted); font-size: 12px; font-weight: 500; }
.bp-d-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--sunk); color: var(--ink); font-size: 13px; text-decoration: none; transition: background .15s; }
.bp-d-item:hover { background: var(--fill); }
.bp-d-item .m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-d-item .ok, .bp-d-item .wait { flex: none; padding: 0 7px; border-radius: 980px; font-size: 11.5px; line-height: 18px; }
.bp-d-item .ok { background: var(--mint-soft); color: var(--mint); }
.bp-d-item .wait { background: var(--fill-2); color: var(--muted); }
.bp-d-empty { padding: 10px 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.bp-demand .bp-foot .btn .ico { width: 14px; height: 14px; }
.cc-quote-bar[hidden], .cc-chat-more[hidden] { display: none; }
.cc-empty-act { margin-top: 16px; } .cc-empty-act .btn .ico { width: 15px; height: 15px; }

/* ---------- 反馈群：匿名 / 赞 / 倒赞 / +1 ---------- */
.cc-head-r { display: flex; align-items: center; gap: 10px; }
.cc-anon-mode { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px 0 14px; border: 0; border-radius: 12px; background: var(--fill); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.cc-anon-mode[hidden] { display: none; }
.cc-anon-mode .ico { width: 17px; height: 17px; }
.cc-anon-mode .sw { position: relative; width: 34px; height: 20px; border-radius: 980px; background: rgba(120, 120, 128, .32); transition: background .2s var(--ease); }
.cc-anon-mode .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .22s var(--ease); }
.cc-anon-mode.on { background: rgba(88, 86, 214, .12); color: #4b49c8; }
.cc-anon-mode.on .sw { background: #5856d6; }
.cc-anon-mode.on .sw::after { transform: translateX(14px); }
.cc-anon-mode:active { transform: scale(.97); }
.cc-rule .dot.p { background: #5856d6; }

.cc-chat-opts { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-left: 4px; }
.cc-anon-chk { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; cursor: pointer; user-select: none; }
.cc-anon-chk input { width: 15px; height: 15px; margin: 0; accent-color: #5856d6; }
.cc-anon-chk input:disabled + span { color: #4b49c8; }
.cc-anon-hint { color: var(--muted); font-size: 12px; }
.cc-chat-input.anon .cc-chat-row .textarea { box-shadow: inset 0 0 0 1px rgba(88, 86, 214, .35); }
.cc-chat-input.anon .cc-send { background: #5856d6; }

.cc-role.anon { display: inline-flex; align-items: center; gap: 3px; background: rgba(88, 86, 214, .12); color: #4b49c8; }
.cc-role.anon .ico { width: 11px; height: 11px; }
.cc-av.anon.sm .ico { width: 18px; height: 18px; color: #fff; }
.cc-msg.is-anon:not(.me) .cc-av.anon { background: linear-gradient(160deg, #8e8cf0, #5856d6); }
.cc-msg.me.is-anon .cc-bubble { background: #5856d6; }
.cc-mine-anon { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; color: #4b49c8; }
.cc-mine-anon .ico { width: 11px; height: 11px; }

.cc-react { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.cc-vote, .cc-plus { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 0; border-radius: 980px; background: rgba(120, 120, 128, .08); color: var(--muted); font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, color .15s, transform .12s var(--ease); }
.cc-vote .ico { width: 13px; height: 13px; }
.cc-vote span:empty { display: none; }
.cc-vote:hover, .cc-plus:hover { background: rgba(120, 120, 128, .16); color: var(--ink-2); }
.cc-vote:active, .cc-plus:active { transform: scale(.92); }
.cc-vote.on { background: var(--brand-soft); color: var(--brand-d); }
.cc-vote.down.on { background: var(--red-soft); color: var(--red); }
.cc-vote.full { cursor: default; opacity: .75; }
.cc-vote.pop .ico { animation: cc-pop .32s var(--ease); }
@keyframes cc-pop { 40% { transform: scale(1.35) rotate(-8deg); } }
.cc-plus { font-weight: 600; }
.cc-plus.on { background: var(--mint-soft); color: var(--mint); }
.cc-plus span { font-weight: 500; }
.cc-plus-who { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.cc-msg.me .cc-react { justify-content: flex-end; }
.cc-msg.me .cc-plus-who { text-align: right; }
.bp-form .cc-anon-chk { margin-right: auto; }
.adm-fbstat { color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .cc-vote.pop .ico { animation: none; } }
@media (max-width: 640px) { .cc-head-r { width: 100%; } .cc-head-r .cc-tabs { flex: 1; } }

/* 商机提交「预期折扣」后共 6 项：宽屏两行各 3 项，窄屏三行各 2 项 */
@media (min-width: 761px) { .d-fields > .field:nth-child(n+4) { grid-column: span 2; } }
@media (max-width: 760px) { .d-fields > .field:first-child { grid-column: span 1; } }
/* 后台需求背景：展开 / 收起 */
.clip3.open { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: pre-wrap; }
.clip-t { display: block; margin-top: 2px; font-size: 12.5px; }

/* ---------- 反馈群按钮交互特效 ---------- */
.cc-vote, .cc-plus { position: relative; overflow: visible; }
@media (hover: hover) {
  .cc-vote:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
  .cc-plus:hover { transform: translateY(-1px); background: var(--mint-soft); color: var(--mint); box-shadow: 0 2px 6px rgba(52, 199, 89, .18); }
  .cc-send:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 4px 12px rgba(0, 113, 227, .35); }
  .cc-anon-mode:hover { background: rgba(88, 86, 214, .1); }
  .cc-tabs button:not(.on):hover { background: rgba(255, 255, 255, .55); }
}
.cc-vote:active, .cc-plus:active { transform: scale(.88); }
.cc-send { transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; }
.cc-send:active { transform: scale(.88); }
.cc-plus.pop { animation: cc-plus-pop .38s var(--ease); }
@keyframes cc-plus-pop { 30% { transform: scale(1.22); } 60% { transform: scale(.95); } }
.cc-vote.shake { animation: cc-shake .32s ease; }
@keyframes cc-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.cc-burst { position: absolute; left: 50%; top: -2px; color: var(--brand); font-size: 12px; font-weight: 700; pointer-events: none; animation: cc-burst .7s var(--ease) forwards; }
.cc-burst.down { color: var(--red); }
.cc-burst.plus { color: var(--mint); }
.cc-burst:empty { display: none; }
@keyframes cc-burst { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } to { opacity: 0; transform: translate(-50%, -22px) scale(1.15); } }
.cc-anon-chk input { transition: transform .15s var(--ease); }
.cc-anon-chk input:active { transform: scale(.85); }
.cc-anon-chk input:checked + span { color: #4b49c8; font-weight: 600; }
.cc-anon-mode .sw::after { transition: transform .26s cubic-bezier(.34, 1.56, .64, 1); }
.cc-msg-meta button:active, .cc-act:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .cc-plus.pop, .cc-vote.shake, .cc-burst { animation: none; } }

/* ---------- 待回复提醒（技术 / 先行者 / 管理员） ---------- */
.tabs a[data-tab] { position: relative; }
.tab-badge { position: absolute; top: 1px; right: 2px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 980px; background: #ff3b30; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums; pointer-events: none; }
.tab-badge[hidden] { display: none; }
.tab-badge.bump { animation: cc-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cc-bump { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.side a.nav .cnt.red { background: #ff3b30; color: #fff; }
.cc-badge { display: inline-block; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px; border-radius: 980px; background: #ff3b30; color: #fff !important; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; }
.cc-tip { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(255, 59, 48, .09), rgba(255, 149, 0, .07)); color: var(--ink-2); font-size: 14px; animation: cc-in .3s var(--ease) both; }
.cc-tip b { color: #d70015; font-size: 16px; }
.cc-tip-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #ff3b30; color: #fff; }
.cc-tip-ico .ico { width: 16px; height: 16px; animation: cc-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes cc-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
.cc-tip .btn { margin-left: auto; }
.cc-post.pending { box-shadow: var(--shadow-1), inset 3px 0 0 #ff3b30; }
.cc-state.warn { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 59, 48, .1); color: #d70015; font-weight: 600; }
.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .5); animation: cc-pulse 1.8s ease-out infinite; }
@keyframes cc-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); } }
.cc-act.ok { color: var(--mint); }
.cc-act.ok:hover { background: var(--mint-soft); }
.cc-act.ok .ico { width: 14px; height: 14px; }
.cc-act.muted { color: var(--faint); font-size: 12.5px; }
.cc-act.muted:hover { background: var(--fill-2); color: var(--ink-2); }
.cc-post.done-anim { transition: box-shadow .25s var(--ease); box-shadow: var(--shadow-1), inset 3px 0 0 #34c759; }
.cc-post.done-anim .cc-state { background: var(--mint-soft); color: var(--mint); }
.adm-handle { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .tab-badge.bump, .cc-dot, .cc-tip-ico .ico, .cc-tip { animation: none; } }
