/* 小辉辉AI 样式（浅色主题，PC 端） */
:root {
  --primary: #2563eb; --primary-dark: #1d4ed8;
  --bg: #f5f7fb; --card: #ffffff; --border: #e5e9f2;
  --text: #1f2937; --muted: #6b7280;
  --high: #dc2626; --medium: #d97706; --low: #2563eb;
  --ok: #059669; --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: var(--bg); color: var(--text); }

/* 顶栏：蓝色系毛玻璃（浅蓝纱 + 蓝分隔线，和下方的米黄聊天区形成层次） */
.nav { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: rgba(224, 237, 255, .82); backdrop-filter: blur(10px) saturate(1.05); -webkit-backdrop-filter: blur(10px) saturate(1.05); border-bottom: 1px solid #bfd4fb; position: sticky; top: 0; z-index: 10; }
/* 左侧品牌占固定上限宽度，把中间留给滚动提示，避免三者互相挤压 */
.nav-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; flex: 0 1 auto; max-width: 40%; }
/* 导航左侧小辉辉头像与简介：原对话页 bot-hero 信息合并进顶部横幅 */
.nav-bot-avatar {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  display: flex; align-items: center; justify-content: center;
}
.nav-bot-avatar .bot-svg { width: 44px; height: 44px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nav-brand-line { display: flex; align-items: center; gap: 8px; }
.nav-brand-sub { font-size: 13px; color: #4f6ba0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { font-size: 30px; font-weight: 700; color: var(--primary); }
.tag { font-size: 15px; color: #2563eb; background: #e6efff; border: 1px solid #c7d8fb; padding: 3px 12px; border-radius: 14px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--muted); cursor: pointer; font-size: 20px; padding: 4px 2px; border-bottom: 2px solid transparent; }
.nav-links a.active, .nav-links a:hover { color: var(--primary); border-bottom-color: var(--primary); }
/* 滚动提示：顶栏中间的独立占位区（flex:1），不悬浮、不覆盖左右按钮 */
.nav-tip {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
/* 多条轮播：每 4 秒淡入切换一条（Vue 控制 tipIndex）；文字略小、超长省略，绝不压到两侧 */
.nav-tip .tip-item { display: none; }
.nav-tip .tip-item.on {
  display: inline-block; max-width: 100%;
  animation: tipFade .55s ease;
  font-size: 15px; line-height: 1.45; font-weight: 600; letter-spacing: .2px;
  color: #e6c493;
  background: rgba(20, 24, 30, .82);
  border: 1px solid rgba(230, 196, 147, .35);
  border-radius: 999px; padding: 6px 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes tipFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }
.ent-chip { font-size: 13px; background: var(--bg); padding: 6px 12px; border-radius: 16px; }
.ent-chip.muted { color: var(--muted); }

/* 右上角用户信息：个人中心入口（头像 + 企业名 + 账号），放大后更醒目 */
.acct-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 7px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; text-align: left;
}
.acct-btn:hover { border-color: var(--primary); }
.acct-btn .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
}
.acct-btn .acct-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
/* 企业名常很长：限宽 150px 单行省略，完整名称鼠标悬停看 title，不挤走右侧按钮 */
.acct-btn .acct-meta b { font-size: 15px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn .acct-meta i { font-size: 13px; color: var(--muted); font-style: normal; white-space: nowrap; }

/* 账号编号（登录后展示） */
.acct-chip {
  font-size: 12px; background: var(--bg); padding: 4px 10px; border-radius: 14px;
  color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* 政策知识库（多格式法规/政策原文浏览） */
.search-input { flex: 1; max-width: 420px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 18px; }
.kb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 8px; }
.kb-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.kb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kb-type { font-size: 12px; color: #fff; background: #2563eb; border-radius: 6px; padding: 1px 7px; }
.kb-type.law { background: #7c3aed; }
.kb-type.regulation { background: #2563eb; }
.kb-type.standard { background: #0891b2; }
.kb-type.guide { background: #059669; }
.kb-format { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; }
.kb-title { font-size: 15px; line-height: 1.4; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.kb-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-keywords .kw { font-size: 11px; color: #1d4ed8; background: #eff6ff; border-radius: 6px; padding: 1px 7px; }
.kb-src { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.kb-src:hover { text-decoration: underline; }
.tag-chip.link { background: #f5f8ff; border-color: #c7d2fe; color: #4338ca; text-decoration: none; }
.tag-chip.link:hover { text-decoration: underline; }

/* 登录门（测试期：发放编号 + 密码登录，默认 888888） */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 20% 20%, #e8f0ff 0, var(--bg) 55%);
}
.auth-card { width: 100%; max-width: 420px; padding: 30px; }
.auth-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.auth-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 20px;
  padding: 10px 0; border-radius: 8px; cursor: pointer;
}
.auth-tabs button.active { background: var(--card); color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.form input[type=password] {
  display: block; width: 100%; margin-top: 5px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 18px; font-family: inherit;
}
.btn.block { display: block; width: 100%; margin-top: 6px; }
.issued-box {
  margin-top: 16px; border: 1px dashed var(--border); border-radius: 10px;
  padding: 14px; background: var(--bg); font-size: 14px;
}
.issued-box > div { display: flex; justify-content: space-between; padding: 4px 0; }
.issued-box span { color: var(--muted); }
.issued-box b { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.issued-box .btn { margin-top: 10px; }

.container { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; }
/* 所有主界面统一用蓝色花边容器包起来：外围有清晰轮廓，不再是一片散白 */
.page {
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
  border: 2px solid #bfd7fe;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 5px rgba(191, 215, 254, .28), 0 6px 18px rgba(37, 99, 235, .08);
}
.page h2 { margin-bottom: 18px; }
/* 对话页：聊天页就是整个界面，铺满视口（不再是浮在页面上的圆角窗口） */
main.container:has(.page.chat-page) { max-width: none; padding: 0; }
main.container:has(.page.chat-page) + .footer { display: none; }
.page.chat-page {
  margin: 0; padding: 0;
  border: 0; border-radius: 0; box-shadow: none;
  overflow: hidden;
  display: flex; flex-direction: column;
  /* 聊天页占满视口剩余高度：页面本身不滚动，侧栏顶端按钮自然钉住 */
  height: calc(100vh - 96px); min-height: 0;
  /* 企业科技风：深蓝底 + 细网格 + 冷光晕 */
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 48px),
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, .38), transparent 58%),
    radial-gradient(circle at 88% 100%, rgba(14, 165, 233, .26), transparent 55%),
    linear-gradient(180deg, #081226 0%, #0d2247 45%, #12386f 100%);
}
.chat-page .chat-layout { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-page .chat-main.card {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0;
}
.chat-page .chat-stream { flex: 1; height: auto; min-height: 0; padding: 16px 20px; }
.chat-page .quick-asks { padding: 0 20px; }
/* 底部输入栏：毛玻璃底 + 上分隔线，固定在对话区底部（类似阿卡莉） */
.chat-page .chat-input {
  padding: 12px 20px 18px;
  background: rgba(224, 237, 255, .82);
  border-top: 1px solid #bfd4fb;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.hero { text-align: center; padding: 60px 0 40px; }
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero-sub { color: var(--muted); margin-bottom: 28px; font-size: 16px; }

.btn { border: 1px solid var(--border); background: var(--card); color: var(--text); padding: 12px 24px; border-radius: 10px; cursor: pointer; font-size: 21px; transition: all .15s; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.lg { padding: 16px 40px; font-size: 24px; }
.btn.ghost { background: transparent; }
/* 问答「终止」按钮：生成中替换发送按钮，点击中断本次请求 */
.btn.stop { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.stop:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.chip { border: 1px solid #c7d8fb; background: #f0f5ff; border-radius: 16px; padding: 8px 18px; font-size: 20px; cursor: pointer; color: #2563eb; }
.chip:hover { color: #1d4ed8; border-color: #7aa2f7; background: #e1ecff; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 24px 0; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: border-color .15s, transform .15s; }
.step-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.hero-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.step-no { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14px; }

.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: #92400e; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* 建档上传页的「不知道要什么材料先去问」提示条：一句说明 + 右侧入口，横排一行，不抢版面 */
.ask-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: #92400e;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
}
.ask-hint .btn { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .ask-hint { flex-direction: column; align-items: flex-start; }
}
.form label { display: block; font-size: 18px; color: var(--muted); margin-bottom: 12px; }
.form input[type=text], .form input:not([type]), .form input[type=number] { display: block; width: 100%; margin-top: 5px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 18px; }
.form select { display: block; width: 100%; margin-top: 5px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 18px; background: var(--card); }
.notice.mt { margin-top: 18px; }
.doc-preview { margin-top: 8px; font-size: 12px; color: var(--muted); background: var(--bg); padding: 8px 10px; border-radius: 8px; max-height: 120px; overflow: auto; white-space: pre-wrap; }

/* 资料检索（多模态） */
.kb-search-row { display: flex; gap: 10px; margin: 10px 0; }
.doc-results { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.doc-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--border); padding-top: 10px; }
.doc-score { margin-left: auto; font-size: 12px; color: var(--primary); font-weight: 600; }
.doc-source { font-size: 12px; color: var(--muted); }
.kb-status { font-size: 12px; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 1px 6px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; align-items: center; gap: 8px; color: var(--text); }
.form .btn { margin-right: 10px; margin-top: 6px; }

.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); margin-bottom: 14px; }
.dropzone:hover { border-color: var(--primary); }
.dropzone input { margin-top: 12px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.upload-actions { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

.parse-result { border-radius: 8px; padding: 14px; font-size: 14px; }
.parse-result.parsed { background: #ecfdf5; color: #065f46; }
.parse-result.parsing { background: #eff6ff; color: #1e40af; }
.parse-result.parse_failed { background: #fef2f2; color: #991b1b; }
.parse-result .btn { margin-top: 12px; }
.warn-list, .err-list { margin-top: 8px; font-size: 13px; }
.warn-item, .err-list div { padding: 2px 0; }

.overview-bar { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 20px; }
.grade-badge { width: 76px; height: 76px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: #fff; flex-shrink: 0; }
.grade-badge.A { background: #059669; } .grade-badge.B { background: #2563eb; }
.grade-badge.C { background: #d97706; } .grade-badge.D { background: #dc2626; }
/* 资料不足时没有等级：不能留个白字/空色块，用中性灰 */
.grade-badge:not(.A):not(.B):not(.C):not(.D) { background: #9ca3af; }
.score { font-size: 30px; font-weight: 700; }
.score.muted { font-size: 20px; color: var(--muted); font-weight: 600; }
.score span { font-size: 14px; color: var(--muted); }
.summary { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.summary.muted { color: var(--muted); }
.meta-line { font-size: 12px; color: var(--muted); margin-top: 4px; }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.three-col h3 { margin-bottom: 12px; font-size: 16px; }
.finding-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 12px; font-size: 14px; }
.finding-card.risk.high { border-left-color: var(--high); }
.finding-card.risk.medium { border-left-color: var(--medium); }
.finding-card.risk.low { border-left-color: var(--low); }
.finding-card.opp { border-left-color: var(--ok); }
.finding-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lv { font-size: 11px; padding: 2px 8px; border-radius: 10px; color: #fff; }
.lv.high { background: var(--high); } .lv.medium { background: var(--medium); } .lv.low { background: var(--low); }
.lv.opp { background: var(--ok); }
/* 置信度徽标（经营分析方法论）：描边样式与等级实底徽标区分 */
.conf { font-size: 11px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); background: var(--card); }
.conf.high { border-color: var(--ok); color: var(--ok); }
.conf.low { border-style: dashed; }
.metric { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
/* 趋势与结构卡（健康页）：环比/同比百分比与绝对差额并示 */
.trend-card, .structure-card { margin-bottom: 14px; }
.trend-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.trend-table th, .trend-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.trend-table td.up { color: var(--ok); } .trend-table td.down { color: var(--high); }
.trend-table .delta { font-size: 11px; color: var(--muted); margin-left: 6px; }
.trend-table .inflection { font-size: 11px; color: var(--primary); border: 1px solid var(--primary); border-radius: 8px; padding: 0 6px; margin-left: 6px; }
.insight-list { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.share-row { font-size: 13px; color: var(--muted); padding: 3px 0; }
details summary { font-size: 13px; color: var(--primary); cursor: pointer; }
.evidence pre { font-size: 11px; background: var(--bg); padding: 8px; border-radius: 6px; overflow-x: auto; margin: 6px 0; }
.explain { font-size: 13px; line-height: 1.6; margin-top: 6px; }

.action-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; }
.prio { font-weight: 800; color: var(--primary); }

.limits ul { margin: 10px 0 14px 20px; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* 聊天页单列铺满：右侧「上下文 / 知识库 / Agent 结构」技术面板已移除，不给用户看 */
.chat-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
.chat-stream { height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 6px 2px; margin-bottom: 12px; }
.bubble-row { display: flex; }
.bubble-row.user { justify-content: flex-end; }
.bubble { max-width: 78%; border-radius: 18px; padding: 12px 16px; font-size: var(--bubble-font-size, 21px); line-height: 1.7; color: #374151; position: relative; }
.bubble-row.user .bubble { background: #f0dfb8; color: #4a3a1d; border-bottom-right-radius: 6px; }
.bubble-row.assistant .bubble { background: #f8f1de; border-bottom-left-radius: 6px; }
/* 回答由服务端按「结论/依据/下一步」渲染成多行，必须保留换行，否则条目会挤成一段 */
.bubble-text { white-space: pre-wrap; word-break: break-word; }
/* 气泡正文可选：长按菜单之外，用户仍可拖选部分文本 */
.bubble { user-select: text; -webkit-user-select: text; }
/* 结构化回答：结论单独一段，依据与建议各一组 1/2/3，条目之间留出行距 */
.answer-conclusion { font-weight: 600; line-height: 1.75; white-space: pre-wrap; }
.answer-label {
  margin: 10px 0 4px; font-size: 12px; color: var(--muted); font-weight: 700;
  letter-spacing: .5px;
}
.answer-list { margin: 0; padding-left: 20px; }
.answer-list li { margin: 4px 0; line-height: 1.75; }
.answer-src { color: var(--muted); font-size: 16px; }
.bubble-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
/* 来源与依据折叠：默认收起，展开后是一个个可点链接 */
.cite-fold { margin-top: 8px; }
.cite-fold > summary {
  cursor: pointer; font-size: 12px; color: var(--muted); list-style: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.cite-fold > summary::-webkit-details-marker { display: none; }
.cite-fold > summary::before { content: "▸"; font-size: 10px; }
.cite-fold[open] > summary::before { content: "▾"; }
.cite-fold > summary:hover { color: var(--primary); }
.cite-fold .bubble-tags { margin-top: 8px; }
.tag-chip { font-size: 15px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 2px 10px; color: var(--muted); }
.tag-chip.warn { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.tag-chip.mem { color: #4338ca; border-color: #c7d2fe; background: #f5f8ff; }
/* 已上传资料列表：文件名 + 类型标签在左，删除按钮在右 */
.asset-list { margin-top: 16px; }
.asset-list h3 { font-size: 14px; margin: 0 0 8px; color: var(--text); }
.asset-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.asset-item:last-child { border-bottom: none; }
.asset-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.asset-info b { font-size: 13px; word-break: break-all; }
.asset-item .btn.ghost.small { margin-top: 0; flex-shrink: 0; }
/* ---------- 会员与付费（个人中心） ---------- */
.member-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.member-status .meta-line, .member-status span { font-size: 13px; color: var(--muted); }
.member-badge { font-weight: 700; border-radius: 8px; padding: 2px 10px; font-size: 13px;
  background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.member-badge.basic { color: #1677ff; border-color: #91caff; background: #f0f7ff; }
.member-badge.pro { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
/* 金豆权益卡：余额大字 + 流水红绿方向 */
.bean-balance { font-size: 28px; font-weight: 700; color: #b45309; }
.bean-in { color: #16a34a; font-weight: 600; }
.bean-out { color: #dc2626; font-weight: 600; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 14px; }
.plan-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px; text-align: center;
  transition: border-color .15s, box-shadow .15s; }
.plan-card:hover { border-color: #1677ff; box-shadow: 0 4px 14px rgba(22, 119, 255, .12); }
.plan-card h4 { margin: 0 0 6px; font-size: 14px; }
.plan-price { font-size: 20px; font-weight: 700; color: #1677ff; }
.plan-price i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 400; }
.plan-card p { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.pack-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--border); }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-row:last-child { border-bottom: none; }
.order-row .meta-line { display: block; }
.order-right { display: flex; align-items: center; gap: 8px; }

/* ---------- 模拟支付宝收银台 ---------- */
.pay-page { max-width: 420px; margin: 0 auto; }
.pay-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; }
.pay-logo { width: 38px; height: 38px; border-radius: 10px; background: #1677ff; color: #fff;
  font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.pay-brand b { display: block; }
.pay-brand i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .7); }
.pay-card { text-align: center; padding: 22px 18px; }
.pay-amount span { display: block; font-size: 12px; color: var(--muted); }
.pay-amount b { font-size: 32px; color: #1677ff; }
.pay-qr { display: grid; grid-template-columns: repeat(5, 16px); gap: 3px; justify-content: center;
  margin: 16px auto 8px; }
.pay-qr span { width: 16px; height: 16px; background: #eef2f7; border-radius: 3px; }
.pay-qr span.on { background: #1f2937; }
.pay-countdown { font-size: 14px; color: var(--muted); margin: 8px 0; }
.pay-countdown b { color: var(--text); }
.pay-countdown.danger b { color: #dc2626; }
.pay-account { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted);
  background: var(--bg); border-radius: 8px; padding: 8px 12px; margin: 10px 0 14px; }
.pay-actions { display: flex; gap: 10px; justify-content: center; }
.pay-success h3 { color: #059669; margin: 8px 0; }
.pay-success p { color: var(--muted); margin: 0 0 16px; }
/* agent 调用链（本轮模型自己决定查了什么，展开可核对依据） */
.agent-trace { margin-top: 8px; font-size: 12px; color: var(--muted); }
.agent-trace summary { cursor: pointer; user-select: none; color: var(--primary); }
.agent-step { margin-top: 6px; padding: 6px 8px; border-left: 2px solid var(--border); background: #fafbfc; }
.agent-step.fail { border-left-color: #f59e0b; }
.agent-step-no { display: inline-block; min-width: 16px; color: var(--muted); }
.agent-step b { color: var(--text); margin-right: 6px; }
.agent-step-args { color: #1d4ed8; margin-right: 6px; }
.agent-step-meta { color: var(--muted); margin-right: 6px; }
.agent-step-sum { margin-top: 2px; color: var(--muted); word-break: break-word; }
.agent-link { margin-left: 8px; color: var(--primary); text-decoration: none; }
.agent-link:hover { text-decoration: underline; }
.agent-trace summary .btn.ghost.small { margin-left: 6px; }
.tag-chip.agent { background: #eef2ff; color: #3730a3; }
.quick-asks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chat-input { display: flex; gap: 10px; align-items: center; }
.chat-input input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }
/* 长按/右键消息弹出的操作菜单：复制 / 全部选择 / 分享（替代常驻「复制」按钮） */
.msg-menu-mask { position: fixed; inset: 0; z-index: 80; }
.msg-menu { position: fixed; z-index: 81; min-width: 132px; padding: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18); }
.msg-menu-item { display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 9px 12px; font-size: 14px; line-height: 1.4; color: var(--text);
  border-radius: 8px; cursor: pointer; white-space: nowrap; }
.msg-menu-item:hover { background: var(--bg); }
/* 输入栏添加文件：隐藏原生 input，按钮文本呈状态；上传走统一入口进个人资料库 */
.attach-pick { display: inline-flex; }
.attach-pick input[type="file"] { display: none; }
.btn.attach-btn { flex: 0 0 auto; padding: 11px 18px; font-size: 18px; }
/* 语音输入按钮（输入栏常驻）：文案随状态如实变化，录音红、转写灰 */
.btn.voice-btn { flex: 0 0 auto; padding: 11px 18px; font-size: 18px; }
.btn.voice-btn.recording { border-color: var(--high); color: var(--high); }
.btn.voice-btn:disabled { border-color: var(--muted); color: var(--muted); cursor: not-allowed; }
.voice-tip { font-size: 12px; color: var(--high); margin-top: 6px; }
.voice-tip:empty { display: none; }

/* 企业认证（公开渠道自动建档） */
.registry-search { display: flex; gap: 10px; margin-bottom: 12px; }
.registry-search input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.reg-results { display: flex; flex-direction: column; gap: 8px; }
.reg-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.reg-item:hover { border-color: var(--primary); box-shadow: 0 3px 10px rgba(22,119,255,.1); }
.reg-item .meta-line { display: block; font-size: 12px; }
.reg-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.reg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 12px; }
.reg-fields > div { display: flex; flex-direction: column; gap: 2px; }
.reg-fields .full { grid-column: 1 / -1; }
.reg-fields label { font-size: 12px; color: var(--muted); }
.reg-fields span { font-size: 14px; color: var(--text); word-break: break-all; }

.empty-state { color: var(--muted); padding: 40px; text-align: center; }
.empty-state a { color: var(--primary); cursor: pointer; }

.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); padding: 10px 22px; border-radius: 10px; font-size: 14px; z-index: 99; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.toast.ok { background: var(--ok); } .toast.err { background: var(--high); }
.toast.warn { background: var(--medium); } .toast.info { background: #334155; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h2 { margin-bottom: 0; }

/* 交付物导出条（报告 PDF / 图表 PNG）：按钮组居中、可换行 */
.export-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.export-actions .btn { white-space: nowrap; }

/* 五维卡片（母版 §9：维度等级要单独可见，不只给一个总分） */
.dims-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dim-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.dim-card.A { border-left-color: var(--ok); } .dim-card.B { border-left-color: var(--primary); }
.dim-card.C { border-left-color: var(--medium); } .dim-card.D { border-left-color: var(--high); }
.dim-card.not-ready { opacity: .65; }
.dim-name { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.dim-level { font-size: 22px; font-weight: 800; }
.dim-level.muted { font-size: 16px; color: var(--muted); font-weight: 600; }
.dim-level span { font-size: 12px; font-weight: 400; color: var(--muted); }
.dim-note { font-size: 11px; color: var(--medium); margin-top: 4px; }
.dim-tag { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 1px 6px; }
.btn.ghost.small { padding: 6px 14px; font-size: 18px; margin-top: 8px; }

/* 顶栏退出按钮：红色实底，放在最右侧，醒目可点 */
.logout-btn {
  flex: none; padding: 7px 16px; font-size: 15px; font-weight: 700;
  color: #fff; background: #dc2626; border: 1px solid #dc2626; border-radius: 8px;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.logout-btn:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.footer { text-align: center; color: #5b76ad; font-size: 12px; padding: 20px; background: #eef4ff; border-top: 1px solid #d3e2fd; }

/* ---------- 多端适配（SPEC-105 / 母版 §30：PC Web + 移动 H5 共用一套页面） ---------- */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 14px; }
  .nav-links a { white-space: nowrap; font-size: 14px; }
  /* 小屏：滚动提示独占一整行置底，不与品牌/按钮抢横向空间 */
  .nav-tip { order: 3; flex: 1 1 100%; justify-content: flex-start; }
  .nav-tip .tip-item.on { font-size: 13px; padding: 5px 16px; }
  .nav-brand { max-width: none; }
  .nav-brand-sub { display: none; }
  .container { padding: 20px 14px 40px; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 26px; }
  .steps, .three-col, .upload-grid, .chat-layout { grid-template-columns: 1fr; }
  .overview-bar { flex-wrap: wrap; gap: 14px; }
  .chat-stream { height: 60vh; }
  .bubble { max-width: 88%; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .grade-badge { width: 60px; height: 60px; border-radius: 14px; font-size: 30px; }
  .score { font-size: 24px; }
  .chat-input input { font-size: 16px; }  /* 避免 iOS 聚焦自动放大 */
  .btn.lg { width: 100%; }
  .dims-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* 历史会话（母版 §20.1：企业维度保存、可搜索） */
.session-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; }
.session-head h4 { margin: 0; font-size: 13px; color: var(--ink); }
.session-search { display: flex; gap: 6px; margin-bottom: 8px; }
.session-search input {
  flex: 1; min-width: 0; padding: 5px 8px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink);
}
.session-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.session-item {
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; background: var(--panel);
}
.session-item:hover { border-color: var(--accent); }
.session-item.active { border-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }

/* 长期记忆抽屉（每设备独立，跨会话生效） */
.mem-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; margin-bottom: 4px; }
.mem-item {
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 6px;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.mem-kind { font-size: 11px; color: #2563eb; background: #eff6ff; border-radius: 6px; padding: 0 5px; white-space: nowrap; }
.mem-content { font-size: 12px; color: var(--ink); line-height: 1.4; word-break: break-all; }
.mem-period { font-size: 11px; color: #92400e; background: #fef3c7; border-radius: 6px; padding: 0 5px; white-space: nowrap; }
.mem-src { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mem-del { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.mem-del:hover { color: #dc2626; }
.session-title { font-size: 12px; color: var(--ink); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 发票与支出明细（单据识别 → 交易分类与科目建议） */
.expense-sum { margin: 8px 0; font-size: 13px; color: var(--ink); }
.expense-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.expense-cat { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--panel); }
.expense-cat b { margin-right: 8px; font-size: 13px; }
.expense-list { margin-top: 10px; }
.expense-row {
  display: grid; grid-template-columns: 66px minmax(0, 1fr) 96px 108px 62px 62px;
  gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.expense-row select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; background: var(--panel); }
.exp-date { color: var(--muted); font-variant-numeric: tabular-nums; }

/* 统一上传入口：逐文件识别结果 + Agent 分析 */
.intake-file { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.intake-file:last-child { border-bottom: none; }
.intake-file-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
/* 撤销按钮：平时是灰的「×」，悬停变红，避免抢主按钮的视觉 */
.btn-close {
  border: none; background: transparent; color: var(--muted);
  font-size: 20px; line-height: 1; padding: 0 4px; cursor: pointer;
}
.btn-close:hover { color: #dc2626; }
.intake-analysis {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: #f8fafc; border: 1px solid var(--line);
}
.intake-analysis .bubble-text { margin: 8px 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.exp-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-amt { text-align: right; font-variant-numeric: tabular-nums; }

/* 上传页只有一张卡时不再分两列 */
.upload-grid.single { grid-template-columns: 1fr; }

/* 个人中心（App 式：顶部账号卡 + 分组卡片） */
.profile-hero {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 20px;
  border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #0ea5e9);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .18);
}
.profile-hero .profile-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
}
.profile-hero .profile-id { flex: 1; min-width: 0; }
.profile-hero h2 { margin-bottom: 4px; }
/* 个人中心抬头里的会员徽标（免费版/年费版），点击进会员页 */
.level-chip {
  display: inline-block; vertical-align: 2px; margin-left: 8px; cursor: pointer;
  padding: 4px 12px; border-radius: 999px; font-size: 17px; font-weight: 600;
  background: rgba(255, 255, 255, .22); color: #fff;
}
.level-chip.paid { background: linear-gradient(135deg, #f59e0b, #d97706); }
.profile-hero .meta-line { color: rgba(255, 255, 255, .85); }
.profile-hero .btn { flex: none; background: #fff; color: #1d4ed8; border: none; }

.profile-section { margin-bottom: 18px; }
.subpage-back { margin-bottom: 16px; }
/* 子页面返回按钮：醒目放大（蓝色描边胶囊 + 阴影），一眼可见可点 */
.subpage-back .btn.ghost.small {
  font-size: 22px; font-weight: 600; padding: 10px 24px; margin-top: 0;
  color: var(--primary); background: #fff; border: 2px solid var(--primary);
  border-radius: 999px; box-shadow: 0 3px 10px rgba(37, 99, 235, .15);
}
.subpage-back .btn.ghost.small:hover { background: var(--primary); color: #fff; }

.profile-section-title {
  font-size: 19px; font-weight: 700; color: var(--muted);
  margin: 0 0 8px 2px; letter-spacing: .5px;
}
.profile-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
/* 建档向导：已自动填入的字段以标签平铺展示 */
.onboard-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

/* 消息与待办：顶栏铃铛 + 未读红点 + 下拉面板 */
.notify-wrap { position: relative; }
.notify-btn { position: relative; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.notify-btn:hover { border-color: var(--primary); color: var(--primary); }
.notify-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px; background: #dc2626; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; }
.notify-panel { position: absolute; top: 46px; right: 0; width: 340px; max-height: 62vh;
  overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .18); z-index: 60; padding: 12px; }
.notify-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.notify-item { padding: 10px 8px; border-radius: 10px; border-bottom: 1px dashed var(--border); cursor: pointer; }
.notify-item:last-child { border-bottom: 0; }
.notify-item:hover { background: #f8fafc; }
.notify-item-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.notify-item.unread b::after { content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #dc2626; margin-left: 6px; vertical-align: middle; }
.notify-item.warn b { color: #b45309; }
.notify-item p { font-size: 15px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.notify-channels { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
@media (max-width: 560px) {
  .notify-panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}
.profile-memories { margin: 10px 0; }
.profile-memory {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 18px;
}
.profile-memory:last-child { border-bottom: none; }

/* 个人资料库：统计行 + 添加行（SPEC-001 V3.35） */
.lib-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px;
  font-size: 12px; color: var(--muted); }
.lib-add { display: flex; gap: 8px; margin-bottom: 10px; }
.lib-add input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; background: var(--panel); }
.lib-empty { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* 个人中心的菜单列表（App 式：一行一项，右侧箭头） */
.profile-menu { padding: 6px 18px; }
.profile-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer;
  border-bottom: 1px dashed var(--border);
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item b { font-size: 20px; flex: none; }
.profile-menu-item i { font-style: normal; font-size: 17px; color: var(--muted); flex: 1; }
.profile-menu-item .arrow { color: var(--muted); font-size: 18px; }
.profile-menu-item:hover b { color: var(--primary); }
.profile-menu-item.danger:hover b { color: #dc2626; }

/* 首次建档引导弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; z-index: 40; padding: 20px;
}
.modal {
  background: var(--card); border-radius: 14px; padding: 22px 24px;
  max-width: 440px; width: 100%; box-shadow: 0 12px 40px rgba(15, 23, 42, .25);
}
.modal h3 { margin-bottom: 10px; }
.modal p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* 对话主界面：小机器人形象（类似阿卡莉的秘书机器人） */
.bot-hero {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin-bottom: 14px;
  border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #0ea5e9);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .18);
}
.bot-avatar {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45);
  display: flex; align-items: center; justify-content: center;
}
.bot-svg { width: 40px; height: 40px; }
.bot-hero h2 { margin-bottom: 4px; }
.bot-hero .meta-line { color: rgba(255, 255, 255, .85); }
.chat-intro { margin-bottom: 10px; }

/* 个人中心功能入口：纵向列表，图标在左、标题与简介在右 */
.profile-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pg-item {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.pg-item:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(37, 99, 235, .12); transform: translateY(-2px); }
.pg-ico {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px; background: var(--primary);
}
.pg-ico.pg-upload { background: #0ea5e9; }
.pg-ico.pg-expert { background: #e11d48; }
.pg-ico.pg-health { background: #059669; }
.pg-ico.pg-book { background: #0d9488; }
.pg-ico.pg-kb { background: #7c3aed; }
.pg-ico.pg-reg { background: #f59e0b; }
.pg-ico.pg-enter { background: #0d9488; }
.pg-ico.pg-auth { background: #6366f1; }
.pg-ico.pg-vip { background: #db2777; }
.pg-ico.pg-set { background: #475569; }

/* 设置页：常见 App 设置行 / 开关 / 分段选择 */
.set-card { padding: 0 18px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: none; }
.set-label { min-width: 0; }
.set-label b { display: block; font-size: 18px; color: var(--text); }
.set-label i { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); font-style: normal; line-height: 1.5; }
.set-row.action { cursor: pointer; }
.set-row.action:hover .set-label b { color: var(--primary); }
.set-row.danger .set-label b { color: #b91c1c; }
.set-row .arrow { color: var(--muted); font-size: 22px; }
.seg { display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { border: none; background: var(--card); color: var(--muted); padding: 7px 14px; font-size: 15px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.active { background: var(--primary); color: #fff; }
.switch { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; border: 1px solid var(--border); background: #e5e9f2; cursor: pointer; transition: background .15s, border-color .15s; }
.switch span { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: left .15s; }
.switch.on { background: var(--primary); border-color: var(--primary); }
.switch.on span { left: 22px; }

/* 精简动效：关闭所有动画与过渡 */
body.no-anim *, body.no-anim *::before, body.no-anim *::after {
  animation-duration: .001s !important; animation-iteration-count: 1 !important;
  transition-duration: .001s !important;
}
.pg-text { display: flex; flex-direction: column; gap: 3px; }
.pg-item b { font-size: 22px; }
.pg-item i { font-size: 17px; color: var(--muted); font-style: normal; line-height: 1.4; }

@media (max-width: 640px) {
  .profile-hero { flex-wrap: wrap; }
  .profile-hero .btn { width: 100%; }
  /* 小屏：右上角用户信息只留头像圆圈，省出宽度给工具图标 */
  .acct-btn .acct-meta { display: none; }
}

/* 聊天气泡头像：机器人靠左、用户靠右（用户 2026-11-01） */
.msg-avatar {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  margin-top: 2px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12);
}
.msg-avatar svg { display: block; width: 100%; height: 100%; }
.msg-avatar.assistant { margin-right: 10px; }
.msg-avatar.user { margin-left: 10px; order: 2; }

/* 聊天主区：加深的米黄底（比原来的浅米黄更实），卡片配同色系边框与阴影形成轮廓 */
.chat-main.card { background: #f7ebd2; border: 1px solid #ecd8a5; box-shadow: 0 6px 20px rgba(15, 23, 42, .07); }
.chat-stream { padding: 14px 12px; }
/* 气泡统一米色：机器人浅米、用户暖米，在深色科技底上轮廓清楚 */
.bubble-row.assistant .bubble { background: #f8f1de; border: 1px solid #e3d5ab; box-shadow: 0 4px 14px rgba(2, 8, 23, .28); color: #3b3223; }
.bubble-row.user .bubble { background: #f0dfb8; border: 1px solid #dcc688; box-shadow: 0 4px 14px rgba(2, 8, 23, .28); color: #4a3a1d; }
/* 气泡小尖角：指向各自头像一侧，让气泡有明确形状 */
.bubble::after { content: ""; position: absolute; bottom: 13px; width: 10px; height: 10px; transform: rotate(45deg); }
.bubble-row.assistant .bubble::after {
  left: -6px; background: #f8f1de;
  border-left: 1px solid #e3d5ab; border-bottom: 1px solid #e3d5ab;
  border-bottom-left-radius: 2px;
}
.bubble-row.user .bubble::after {
  right: -6px; background: #f0dfb8;
  border-right: 1px solid #dcc688; border-top: 1px solid #dcc688;
  border-top-right-radius: 2px;
}

/* 常见图表示意：纯图形卡片，不带文字标签 */
.chart-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin: 12px 0 2px;
}
.chart-card {
  background: #fff; border: 1px solid #ece3cf; border-radius: 10px;
  padding: 8px; height: 72px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .15s, transform .15s;
}
.chart-card:hover { box-shadow: 0 4px 14px rgba(30,39,97,.12); transform: translateY(-2px); }
.chart-card svg { width: 100%; height: 100%; }

/* 身份角色选择（个人中心） */
.role-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.role-options { display: flex; gap: 8px; flex-wrap: wrap; }
.role-btn {
  border: 1px solid #d4dbe8; background: #fff; color: #45506b;
  border-radius: 999px; padding: 6px 16px; cursor: pointer; font-size: 14px;
  transition: all .15s;
}
.role-btn:hover { border-color: #1e2761; }
.role-btn.active { background: #1e2761; color: #fff; border-color: #1e2761; }

/* 会员功能分组：基础功能 / 付费功能 */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.feature-col { background: #f7f9fd; border: 1px solid #e6ebf2; border-radius: 10px; padding: 12px 14px; }
.feature-col h4 { margin: 0 0 8px; font-size: 14px; color: #1e2761; display: flex; align-items: center; gap: 8px; }
.feature-col.paid { background: #fff7ed; border-color: #ffd8a8; }
.feature-col ul { margin: 0; padding-left: 18px; color: #45506b; font-size: 13px; line-height: 1.9; }

@media (max-width: 720px) {
  .chart-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; }
}

/* 会员两档横排（类似 VIP / SVIP）：免费版 + 年费版，年费档橙色高亮 */
.plan-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 4px; }
.plan-card {
  position: relative; border: 1px solid #e9e2d4; border-radius: 14px;
  background: #fff; padding: 20px 14px 16px; text-align: center;
  transition: box-shadow .15s, transform .15s;
}
.plan-card.hot {
  background: linear-gradient(165deg, #fff8ec 0%, #ffe9c9 100%);
  border: 2px solid #f0a132; box-shadow: 0 6px 18px rgba(240,161,50,.18);
}
.plan-tag {
  position: absolute; top: 0; right: 0; background: #f0a132; color: #fff;
  font-size: 12px; line-height: 1; padding: 6px 12px; border-radius: 0 12px 0 10px;
}
.plan-name { font-size: 16px; font-weight: 700; color: #3b3b3b; letter-spacing: 1px; }
.plan-price-big { margin: 10px 0 2px; color: #f0722c; font-size: 32px; font-weight: 700; line-height: 1.1; }
.plan-price-big i { font-size: 14px; font-style: normal; font-weight: 400; margin-left: 2px; }
.plan-card:not(.hot) .plan-price-big { color: #6b7280; }
.plan-sub { color: #8b8b8b; font-size: 12px; margin-bottom: 14px; min-height: 18px; }
.plan-cur { display: inline-block; color: #a1a1a1; font-size: 13px; padding: 6px 0; }
.plan-card .btn { width: 100%; }

/* 特权对比表 */
.privilege-table {
  width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px;
  background: #fff; border-radius: 10px; overflow: hidden;
}
.privilege-table th, .privilege-table td { padding: 9px 10px; text-align: center; border-bottom: 1px solid #f2ede3; }
.privilege-table th:first-child, .privilege-table td:first-child { text-align: left; color: #4b5563; }
.privilege-table thead th { background: #faf7f1; color: #6b7280; font-weight: 600; }
.privilege-table .hl { background: #fff6e8; color: #c2601c; font-weight: 600; }
.privilege-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 720px) {
  .plan-cards { gap: 10px; }
  .plan-price-big { font-size: 26px; }
}

/* 账户与身份卡片底部：账号编号 + 退出登录（个人中心菜单已精简，不再重复功能入口） */
.account-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e6e9f0;
}

/* 会员状态徽标（顶栏；历史会话入口已改为名字右侧时钟图标） */
.bot-hero-text { flex: 1; min-width: 0; }
.hero-btn {
  flex: none; cursor: pointer; font-size: 15px; padding: 6px 14px;
  border-radius: 8px; color: var(--primary); background: #eff6ff;
  border: 1px solid #c7d2fe;
}
.hero-btn:hover { background: #dbeafe; }
/* 会员状态徽标：免费版浅蓝、年费版金色，点击进会员页 */
.hero-btn.level.free { background: #eff6ff; }
.hero-btn.level.paid {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  border-color: #d97706; font-weight: 700;
}

/* 问答里触及年费版功能时的升级提示条 */
.upgrade-hint {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px;
  border: 1px solid #fcd34d; border-radius: 10px; background: #fffbeb;
}
.upgrade-hint-text { flex: 1; font-size: 13px; color: #92400e; line-height: 1.5; }
.upgrade-hint .btn { flex: none; }

/* 历史回答：入口在输入栏最左侧，点击向上展开过往记录面板（蓝色系） */
.hist-wrap { position: relative; flex: none; }
.hist-toggle {
  flex: none;
  border: 1px solid #c7d8fb; background: #f0f5ff; color: #2563eb;
  border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer;
}
.hist-toggle:hover { background: #e1ecff; border-color: #7aa2f7; }
.hist-pop {
  position: absolute; bottom: calc(100% + 10px); left: 0; right: auto;
  width: min(420px, 78vw);
  background: #fff; border: 1px solid #c7d8fb; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .18);
  display: flex; flex-direction: column; gap: 8px; z-index: 20;
}
.hist-pop-head { display: flex; align-items: center; justify-content: space-between; }
.hist-pop-head b { font-size: 15px; color: #1d4ed8; }
.hist-pop .session-list { max-height: 240px; }
.hist-pop .session-item { border-color: #dbe6fc; background: #fbfdff; }

/* ============ 工作台首页（聊天空态）============ */
.home-dash { max-width: 880px; margin: 0 auto; padding: 6px 4px 14px; color: #e8eefc; }
.home-hero { padding: 8px 4px 14px; }
.home-hello { font-size: 30px; font-weight: 800; letter-spacing: .5px; color: #fff; }
.home-sub { margin-top: 6px; font-size: 15px; color: #a9bbdd; }
.home-status {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: #9fb4d8;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(140, 170, 220, .25);
  border-radius: 999px; padding: 4px 12px;
}
.home-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, .7); }
.home-dot.ok { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, .85); }

/* 主页与对话结合（V3.51）：品牌徽标 / 开始按钮 / 五大功能卡片 */
.home-badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: #bcd2ff; background: rgba(37, 99, 235, .22); border: 1px solid rgba(130, 165, 235, .4);
  border-radius: 999px; padding: 4px 14px; margin-bottom: 12px;
}
.home-cta {
  margin-top: 14px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: 0; border-radius: 999px; padding: 9px 22px;
}
.home-cta:hover { filter: brightness(1.1); }
.home-cta.voice { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.home-cta.ghost { background: rgba(255, 255, 255, .10); border: 1px solid rgba(140, 170, 220, .4); }
/* 浮层语音舞台（V3.75）：盖在正常会话上的一层，translateY 随拖动变化——
   完全移开（dragY=100）露出底下真实会话气泡流，语音不中断；顶部悬浮条随时拉回 */
.voice-stage {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px;
  background: radial-gradient(circle at 50% 38%, #1d3a8f 0%, #101c46 55%, #0b1230 100%);
  transition: transform .25s ease;
  will-change: transform;
}
.voice-stage.off { pointer-events: none; visibility: hidden; transition: none; }
.vs-exit {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px;
  cursor: pointer; font-size: 13px; color: #dbe6ff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(219, 230, 255, .35);
  border-radius: 999px; padding: 6px 16px;
}
.vs-exit:hover { background: rgba(255, 255, 255, .16); }
/* 舞台移开后的顶部悬浮条：状态 + 拉回 + 结束 */
.voice-float {
  position: fixed; z-index: 89; top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(13, 24, 62, .85); border: 1px solid rgba(122, 162, 247, .35);
  border-radius: 999px; padding: 7px 8px 7px 16px;
  box-shadow: 0 4px 18px rgba(4, 10, 32, .5);
}
.vf-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: vf-pulse 1.4s infinite; }
.vf-dot.thinking { background: #f59e0b; }
.vf-dot.speaking { background: #0ea5e9; }
.vf-dot.greeting { background: #a78bfa; }
@keyframes vf-pulse { 50% { opacity: .35; } }
.vf-text { font-size: 13px; color: #dfe7fb; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-back {
  cursor: pointer; font-size: 13px; color: #fff;
  background: rgba(37, 99, 235, .75); border: none; border-radius: 999px; padding: 6px 14px;
}
.vf-back:hover { background: rgba(37, 99, 235, .95); }
.vf-exit {
  cursor: pointer; font-size: 12px; color: #f3b8b8;
  background: none; border: 1px solid rgba(243, 184, 184, .4); border-radius: 999px;
  width: 28px; height: 28px;
}
.vf-exit:hover { background: rgba(243, 184, 184, .12); }
.vs-orb {
  position: relative; width: 150px; height: 150px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, .28); border: 1px solid rgba(122, 162, 247, .4);
}
.vs-avatar { width: 92px; height: 92px; }
.vs-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(122, 162, 247, .5); opacity: 0; pointer-events: none;
}
/* 聆听：蓝色波纹扩散 */
.vs-orb.listening .vs-ring { border-color: rgba(96, 165, 250, .55); animation: vs-wave 2.4s infinite; }
.vs-orb.listening .vs-ring.r2 { animation-delay: .8s; }
.vs-orb.listening .vs-ring.r3 { animation-delay: 1.6s; }
/* 朗读：绿色波纹（更密） */
.vs-orb.speaking .vs-ring { border-color: rgba(52, 211, 153, .55); animation: vs-wave 1.5s infinite; }
.vs-orb.speaking .vs-ring.r2 { animation-delay: .5s; }
.vs-orb.speaking .vs-ring.r3 { animation-delay: 1s; }
/* 思考：琥珀呼吸 */
.vs-orb.thinking { animation: vs-breath 1.6s infinite; }
.vs-orb.thinking .vs-ring { border-color: rgba(245, 158, 11, .5); animation: vs-wave 2.8s infinite; }
.vs-orb.thinking .vs-ring.r2 { animation-delay: .9s; }
.vs-orb.thinking .vs-ring.r3 { animation-delay: 1.8s; }
/* 打招呼：紫色呼吸 */
.vs-orb.greeting { animation: vs-breath 1.8s infinite; }
@keyframes vs-wave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes vs-breath { 50% { transform: scale(1.06); } }
.vs-status { font-size: 14px; color: #c9d6ff; letter-spacing: .5px; }
.vs-caption {
  max-width: min(620px, 92%); max-height: 22vh; overflow-y: auto;
  font-size: 15px; line-height: 1.7; color: #eef3ff; text-align: center;
  background: rgba(13, 24, 62, .6); border: 1px solid rgba(122, 162, 247, .25);
  border-radius: 12px; padding: 10px 16px;
}
.vs-caption-toggle {
  cursor: pointer; font-size: 12px; color: #9fb4e8;
  background: none; border: none; text-decoration: underline; text-underline-offset: 3px;
}
.vs-caption-toggle:hover { color: #dbe6ff; }
/* 拖动把手：舞台底部，往下拉移开舞台 */
.vs-drag {
  flex: none; cursor: grab; display: flex; flex-direction: column;
  align-items: center; gap: 6px; touch-action: none; padding: 6px 20px 14px;
}
.vs-drag span {
  width: 84px; height: 4px; border-radius: 2px;
  background: rgba(219, 230, 255, .35);
}
.vs-drag:hover span { background: rgba(219, 230, 255, .7); }
.vs-drag i { font-style: normal; font-size: 11px; color: #9fb4e8; letter-spacing: .08em; }
.btn.voice-chat-btn { flex: 0 0 auto; padding: 11px 18px; font-size: 16px; }
.btn.voice-chat-btn.on { border-color: var(--high); color: var(--high); }
@media (max-width: 640px) {
  .vs-orb { width: 104px; height: 104px; }
  .vs-avatar { width: 64px; height: 64px; }
  .vs-caption { font-size: 13px; }
  .vs-line { font-size: 12px; }
}

.home-ent {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, rgba(37, 99, 235, .30), rgba(14, 165, 233, .16));
  border: 1px solid rgba(130, 165, 235, .35);
}
.home-ent:hover { border-color: rgba(160, 190, 255, .6); }
.home-ent-top { display: flex; align-items: center; gap: 10px; }
.home-ent-top b { font-size: 17px; color: #fff; }
.home-ent-tag { font-size: 12px; color: #cfe0ff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 2px 10px; }
.home-ent-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: #a9bbdd; }

.home-sec-head { margin: 20px 2px 10px; display: flex; align-items: center; justify-content: space-between; }
.home-sec-head span { font-size: 15px; font-weight: 700; color: #dfe8fb; }
.home-sec-link { background: none; border: 0; color: #8fb4ff; font-size: 13px; cursor: pointer; padding: 0; }
.home-sec-link:hover { color: #bcd2ff; }

.home-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* 输入栏「企业档案」小胶囊（窄屏隐藏，避免挤压输入框） */
.input-chip {
  flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap;
  color: #2b4a86; background: #eaf1ff; border: 1px solid #c7d8fb; border-radius: 999px;
  padding: 8px 12px; cursor: pointer;
}
.input-chip:hover { border-color: #7aa2f7; }
.btn.attach-btn.busy { border-color: var(--muted); color: var(--muted); cursor: progress; }

/* 附件面板：+ 号弹出的底部抽屉（深色，与工作台首页一致） */
.attach-mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(2, 8, 23, .58);
  display: flex; align-items: flex-end; justify-content: center;
}
.attach-sheet {
  width: min(560px, 100%); background: #0f1b33; color: #e8eefc;
  border: 1px solid rgba(140, 170, 220, .3); border-radius: 18px 18px 0 0;
  padding: 16px 18px 22px; box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  animation: sheetUp .22s ease;
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.attach-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.attach-sheet-head b { font-size: 16px; }
.attach-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.attach-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px;
  border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(140, 170, 220, .22);
  color: #e8eefc; cursor: pointer; font-size: 13px;
}
.attach-opt:hover { background: rgba(59, 130, 246, .18); border-color: rgba(120, 160, 255, .55); }
.attach-opt input[type="file"] { display: none; }
.attach-opt i { font-style: normal; font-size: 26px; line-height: 1; }
.attach-row {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(140, 170, 220, .2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.attach-row-text b { display: block; font-size: 14px; }
.attach-row-text i { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: #9fb4d8; }

@media (max-width: 900px) {
  .input-chip { display: none; }
}
@media (max-width: 640px) {
  .home-hello { font-size: 24px; }
  .home-actions { grid-template-columns: repeat(2, 1fr); }
}

/* 空态只留问候与连接状态（分类切换是装饰性假按钮，已移除；能力入口收在个人菜单） */
.home-dash { text-align: center; margin-top: auto; padding-bottom: 6px; }

/* 工作台：大输入框（V3.53 输入栏上方示例提示条已移除） */
.workbench { flex: none; padding: 10px 20px 14px; background: rgba(224, 237, 255, .82);
  border-top: 1px solid #bfd4fb; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wb-box { background: #fff; border: 1px solid #c7d8fb; border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .08); }
.wb-box:focus-within { border-color: #7aa2f7; box-shadow: 0 0 0 4px rgba(37, 99, 235, .10); }
.wb-box textarea { width: 100%; border: 0; outline: none; resize: none; font-size: 16px;
  line-height: 1.6; color: var(--text); background: transparent; font-family: inherit; }
.wb-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.wb-ent { font-size: 13px; color: #2b4a86; background: #eaf1ff; border: 1px solid #c7d8fb;
  border-radius: 999px; padding: 5px 12px; max-width: 160px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.wb-spacer { flex: 1; }
.wb-send { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 18px; line-height: 1; }
.wb-send:hover { background: var(--primary-dark); }
.wb-stop { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--high);
  background: #fff; color: var(--high); font-size: 12px; cursor: pointer; }
.wb-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #4f6ba0; }
.wb-foot-btn { background: none; border: 0; color: #2b4a86; font-size: 12px; cursor: pointer; padding: 0; }
.wb-foot-btn:hover { color: #1d4ed8; }
.wb-foot-btn.static { cursor: default; color: #4f6ba0; }
.wb-foot-dot { width: 4px; height: 4px; border-radius: 50%; background: #9fb4d8; }


.hist-pop .session-item:hover { border-color: var(--primary); background: #f5f9ff; }
.hist-pop .session-item.active { border-color: var(--primary); box-shadow: inset 2px 0 0 var(--primary); }

/* 输入框里的 @ 资料 / / 技能 唤起选择器：浮在输入框上方
   （选中的资料限定本轮资料检索范围，选中的技能=点名专业顾问） */
.wb-box { position: relative; }
.wb-mention {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 30;
  padding: 10px 12px; background: #fff; border: 1px solid #c7d8fb; border-radius: 14px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .16);
}
.wb-mention-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wb-mention-head b { flex: none; font-size: 13px; color: #244488; }
.wb-mention-head input { flex: 1; min-width: 0; padding: 6px 10px; font-size: 13px;
  border: 1px solid #cfddf5; border-radius: 8px; background: #f8fafe; color: var(--text);
  font-family: inherit; }
.wb-mention-list { max-height: 240px; overflow-y: auto; }
.wb-mention-item { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px;
  border-radius: 9px; cursor: pointer; }
.wb-mention-item:hover { background: #eef4ff; }
.wb-mention-item.on { background: #dfeafd; }
.mi-name { flex: none; max-width: 55%; font-size: 13.5px; font-weight: 600; color: #22355c;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-meta { flex: 1; min-width: 0; font-size: 11.5px; color: #8595b5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-mention-empty { padding: 12px 8px; font-size: 13px; color: #8595b5; }
.wb-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pick-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 260px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; cursor: pointer;
  background: #eaf1ff; border: 1px solid #c7d8fb; color: #2b4a86; }
.pick-chip.skill { background: #eaf6ea; border-color: #bfe0bf; color: #2f6b34; }
.pick-chip i { font-style: normal; opacity: .55; }
.pick-chip:hover { filter: brightness(.96); }

/* 问答界面横向布局：历史侧栏与对话主区左右排布 */
.chat-page .chat-layout { flex-direction: row; }
.chat-page .chat-layout .chat-main { min-width: 0; }

/* 问答界面左侧：历史对话侧栏（V3.11，DeepSeek 式：开启新对话 + 可搜索 + 按时间分组） */
/* 侧栏：展开后更宽、分组更清楚；收起时留一条带文字的窄条，入口一眼可见 */
.convo-sidebar {
  flex: 0 0 288px; min-width: 0; display: flex; flex-direction: column;
  background: #f6f8fc; border-right: 1px solid #e3e9f4; transition: flex-basis .18s ease;
}
.convo-sidebar.collapsed { flex-basis: 72px; }
.sb-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px 8px; }
.sb-brand { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: #244488;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-icon-btn {
  flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: #4f6ba0; cursor: pointer; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.sb-icon-btn:hover { background: #e8eefb; color: #1d4ed8; }
.sb-icon-btn.on { background: #dfeafd; color: #1d4ed8; }
.sb-search { padding: 0 12px 8px; }
.sb-search input {
  width: 100%; box-sizing: border-box; padding: 7px 10px; font-size: 13px;
  border: 1px solid #cfddf5; border-radius: 8px; background: #fff; color: var(--ink);
}
.sb-new {
  margin: 0 12px 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #c7d8fb; background: #fff; color: #244488;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.sb-new:hover { background: #eef4ff; border-color: #7aa2f7; }
.sb-plus { font-size: 16px; line-height: 1; }
/* 侧栏固定在聊天区左侧：页面怎么滚，顶端的品牌与按钮都钉在原处 */
.chat-page .chat-layout { position: relative; overflow: hidden; }
.convo-sidebar {
  position: absolute; top: 0; left: 0; bottom: 0; width: 288px; z-index: 20;
}
.convo-sidebar.collapsed { width: 72px; }
.chat-layout > .chat-main { margin-left: 288px; }
.convo-sidebar.collapsed ~ .chat-main { margin-left: 72px; }
.sb-head, .sb-tabs { position: sticky; top: 0; z-index: 3; background: #f6f8fc; }

/* 历史问答：默认收起为右侧浅黄悬浮球，点开后从最右侧展开面板 */
.chat-history-float {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 25; pointer-events: none;
}
/* 浅黄悬浮球：贴在最右侧，垂直居中 */
.hf-ball {
  pointer-events: auto; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff8da, #f3e097);
  border: 1px solid #e6d284; box-shadow: 0 6px 18px rgba(122, 96, 20, .24);
  color: #7a5b12; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.hf-ball b { font-size: 12.5px; font-weight: 700; line-height: 1.1; }
.hf-ball i { font-style: normal; font-size: 10px; color: #9a7a24; line-height: 1.1; }
.hf-ball:hover { background: radial-gradient(circle at 34% 28%, #fffdf0, #f7e7ae); box-shadow: 0 8px 22px rgba(122, 96, 20, .3); }
/* 展开面板：紧贴最右缘；底端停在底部输入区上方（--wb-h = 输入区高度，由 JS 测量），
   这样底部输入区始终满宽、不会被面板挤压 */
.hf-panel {
  pointer-events: auto; position: absolute; top: 0; right: 0; bottom: var(--wb-h, 0px); width: 288px;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .97); border-left: 1px solid #dfe7f7;
  box-shadow: -12px 0 30px rgba(21, 44, 92, .16); overflow: hidden;
}
.hf-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #eef2fa; background: #f7faff; }
.hf-title { font-size: 13px; font-weight: 700; color: #244488; }
.hf-count { font-size: 11.5px; color: #8595b5; }
.hf-close { margin-left: auto; width: 24px; height: 24px; border-radius: 6px; border: 1px solid #dfe7f7; background: #fff; color: #6b7fa8; cursor: pointer; font-size: 13px; line-height: 1; }
.hf-close:hover { background: #eef4ff; color: #244488; }
.hf-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; }
.hf-item { display: block; width: 100%; text-align: left; margin-bottom: 6px; padding: 7px 9px; border-radius: 9px; border: 1px solid #e7edfa; background: #fff; cursor: pointer; }
.hf-item:hover { background: #eef4ff; border-color: #9dbcf7; }
.hf-item-text { display: block; font-size: 12.5px; color: #33415c; line-height: 1.45; max-height: 2.9em; overflow: hidden; }
.hf-item-time { display: block; font-size: 10.5px; color: #8a99bb; margin-top: 2px; }
.hf-empty { font-size: 12px; color: #8a99bb; padding: 8px 4px; }
/* 面板展开时：只有消息区右侧让位；
   底部输入区保持满宽、不被面板挤压，并盖在面板之上（面板只覆盖消息区那一段） */
.chat-main.hb-open .chat-stream { padding-right: 300px; }
.chat-main.hb-open .workbench {
  padding-right: 20px; position: relative; z-index: 26;
  background: rgba(224, 237, 255, .97);
}

/* 思考中：小辉辉思考中… */
.thinking-bubble { display: flex; align-items: center; gap: 8px; color: #4f6ba0; font-size: 13px; }
.thinking-dots { display: inline-flex; gap: 4px; }
.thinking-dots i { width: 5px; height: 5px; border-radius: 50%; background: #7aa2f7; animation: thinkDot 1.1s infinite ease-in-out; }
.thinking-dots i:nth-child(2) { animation-delay: .18s; }
.thinking-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes thinkDot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.sb-tabs { display: flex; gap: 6px; padding: 0 12px 10px; }

.sb-tab {
  flex: 1; padding: 7px 10px; border-radius: 9px; border: 1px solid #dfe7f7; background: #fff;
  color: #4f6ba0; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sb-tab.on { background: #244488; border-color: #244488; color: #fff; }
.sb-history { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sb-item-row { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.sb-item-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left;
  background: transparent; border: 0; padding: 0; cursor: pointer; color: inherit;
}
.sb-item-main .sb-item-txt { display: block; }
.sb-item-main .sb-item-time { display: block; }
.sb-more {
  flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: #8595b5; font-size: 15px; line-height: 1; cursor: pointer;
}
.sb-more:hover { background: #e8eefb; color: #1d4ed8; }
.sb-item.pinned .sb-item-txt::after { content: " 置顶"; color: #b45309; font-size: 11px; }
.sb-questions { margin: 4px 0 6px 8px; padding-left: 8px; border-left: 2px solid #e3e9f4; }
.sb-question {
  display: block; width: 100%; text-align: left; margin-bottom: 4px; padding: 5px 8px;
  border-radius: 7px; border: 1px solid transparent; background: #fff; cursor: pointer;
}
.sb-question:hover { background: #eef4ff; border-color: #c7d8fb; }
.sb-q-text { display: block; font-size: 12px; color: #33415c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-q-time { display: block; font-size: 10.5px; color: #8a99bb; margin-top: 1px; }
.sb-q-empty { font-size: 11.5px; color: #8a99bb; padding: 4px 8px; }
.bubble-row.flash { animation: msgFlash 1.6s ease; }
@keyframes msgFlash {
  0%, 100% { background: transparent; }
  20%, 60% { background: #fff6d8; border-radius: 10px; }
}
.sb-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 8px 12px; }
.sb-group { margin-bottom: 10px; }
.sb-group-label { padding: 6px 8px 4px; font-size: 11.5px; color: #8595b5; font-weight: 600; }
.sb-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; font-size: 13px; color: #33415c; min-width: 0; overflow: hidden;
}
.sb-item:hover { background: #eaf0fb; }
.sb-item.active { background: #dfeafd; color: #1d4ed8; font-weight: 600; }
.sb-item-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item-time { flex: none; font-size: 11px; color: #9aabc7; }
.sb-empty { padding: 16px 10px; font-size: 13px; color: #8595b5; }
/* 收起态窄条：两个入口都带文字（展开 / 功能），不再是一堆看不懂的符号 */
.sb-rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 8px; }
.sb-rail .sb-icon-btn {
  width: 56px; height: 56px; flex-direction: column; gap: 2px;
  border: 1px solid #b9cbee; background: #fff; color: #244488;
  box-shadow: 0 2px 6px rgba(37, 64, 120, .12);
}
.sb-rail .sb-icon-btn b { font-size: 17px; line-height: 1; }
.sb-rail .sb-icon-btn i { font-size: 11px; font-style: normal; color: #6b7fa8; }
.sb-rail .sb-icon-btn:hover { background: #eef4ff; border-color: #7aa2f7; }

/* 侧栏应用块：五大功能入口（历史对话与应用两块分开，不混排） */
.sb-picker { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 14px; border-bottom: 1px solid #e3e9f4; }
.sb-picker-title {
  position: sticky; top: 0; padding: 10px 4px 6px; font-size: 12px; font-weight: 700; color: #244488;
  background: linear-gradient(#f6f8fc 80%, rgba(246, 248, 252, 0));
}
.sb-picker-item {
  display: block; width: 100%; text-align: left; margin-bottom: 6px; padding: 9px 10px;
  border-radius: 9px; border: 1px solid #dfe7f7; border-left: 3px solid var(--g-color, #dfe7f7);
  background: #fff; cursor: pointer;
}
.sb-picker-item:hover {
  background: color-mix(in srgb, var(--g-color, #2563eb) 10%, #fff);
  border-color: var(--g-color, #2563eb);
}
.sb-picker-item b { display: block; font-size: 13px; color: color-mix(in srgb, var(--g-color, #244488) 80%, #1f2937); font-weight: 600; }
.sb-picker-item i { display: block; font-style: normal; font-size: 11.5px; color: #6b7fa8; margin-top: 2px; }

/* 专家入驻申请表单 */
.ex-apply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 10px 0; }
.ex-apply-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4f6ba0; }
.ex-apply-grid input, .ex-apply-grid select { padding: 7px 9px; border: 1px solid #cfddf5; border-radius: 8px; background: #fff; color: var(--ink); }
.ex-modal-box label { display: block; font-size: 13px; color: #4f6ba0; margin-top: 8px; }
.ex-modal-box label input, .ex-modal-box label select, .ex-modal-box label textarea {
  width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px;
  border: 1px solid #cfddf5; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px;
}

@media (max-width: 900px) {
  /* 小屏侧栏改成覆盖式，收起时留一条窄栏可展开 */
  .chat-page { position: relative; }
  .convo-sidebar { position: absolute; z-index: 30; left: 0; top: 0; bottom: 0;
    width: min(280px, calc(100% - 40px)); box-shadow: 6px 0 24px rgba(15, 23, 42, .18); }
  .convo-sidebar.collapsed { width: 72px; box-shadow: none; }
}

/* 资料库：认证状态 + 资料原件（解析结果只在内部给 Agent 用，界面不展示） */
.lib-verified-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lib-verified-head b { font-size: 15px; }
.lib-reauth { margin-left: auto; }
.lib-divider { height: 1px; background: #e8ebf2; margin: 16px 0; }
.lib-upload-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lib-upload-text { flex: 1; min-width: 220px; }
.lib-upload-text b { display: block; margin-bottom: 4px; }
.lib-files { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lib-file {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid #e8ebf2; border-radius: 10px; background: #fff;
}
.lib-file-ext {
  flex: none; width: 46px; height: 32px; border-radius: 7px; background: #eef2fb; color: #2f3f8f;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center;
}
.lib-file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lib-file-main b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-file-main .meta-line { font-size: 12px; }

/* 公开信息采集：全局进度条 + 资料库状态卡（建档后自动跑，允许先去对话） */
.collect-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 14px; padding: 12px 16px;
  border: 1px solid #d7e2fb; border-radius: 12px;
  background: linear-gradient(90deg, #eef4ff 0%, #f7faff 100%);
}
.collect-banner-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.collect-banner-main b { font-size: 14px; color: #23305e; }
.collect-banner-main .meta-line { margin: 2px 0 0; font-size: 12px; }
.collect-banner-side { display: flex; align-items: center; gap: 10px; flex: none; }
.collect-banner-side .meta-line { font-size: 12px; }

.collect-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: #2f6bff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .14);
  animation: collect-pulse 1.4s ease-in-out infinite;
}
.collect-dot.done { background: #22a06b; box-shadow: none; animation: none; }
.collect-dot.failed { background: #d4380d; box-shadow: none; animation: none; }
@keyframes collect-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.7); opacity: .55; }
}

.collect-card {
  margin: 12px 0 4px; padding: 10px 12px;
  border: 1px solid #e8ebf2; border-radius: 10px; background: #fbfcff;
}
.collect-head { display: flex; align-items: center; gap: 8px; }
.collect-head b { font-size: 13px; color: #23305e; }
.collect-head .meta-line { font-size: 12px; }
.collect-actions { margin-top: 8px; display: flex; gap: 8px; }

@media (max-width: 640px) {
  .collect-banner { flex-direction: column; align-items: flex-start; }
  .collect-banner-side { width: 100%; justify-content: space-between; }
}

/* ========== 外部专家页（外接真人专家：目录 / 智能匹配 / 咨询） ========== */
.ex-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ex-select, .ex-input {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px;
  font-size: 15px; background: #fff; color: var(--text); min-width: 150px;
}
.ex-input { flex: 1; min-width: 220px; }
.ex-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.ex-tab {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 999px; padding: 7px 15px; font-size: 14px; cursor: pointer;
}
.ex-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ex-tab.ghost { border-style: dashed; color: var(--muted); }
.ex-match { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.ex-match-text h3 { margin: 0 0 6px; font-size: 18px; }
.ex-match-text p { margin: 0; color: var(--muted); font-size: 14px; }
.ex-match-form { display: flex; gap: 10px; align-items: flex-start; }
.ex-textarea {
  flex: 1; min-height: 76px; resize: vertical; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; font-size: 15px;
  font-family: inherit; color: var(--text); line-height: 1.5;
}
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ex-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.ex-card-head { display: flex; gap: 12px; align-items: center; }
.ex-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; flex: none;
}
.ex-card-id { min-width: 0; }
.ex-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ex-verified {
  font-size: 12px; color: var(--primary); border: 1px solid var(--primary);
  border-radius: 999px; padding: 1px 8px; font-weight: 500;
}
.ex-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ex-intro { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); flex: 1; }
.ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ex-foot .meta-line { white-space: nowrap; }
.ex-foot .btn { white-space: nowrap; }
.ex-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px;
}
.ex-modal-box { max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.ex-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ========== 健康页「专业洞察」四节 ========== */
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin: 14px 0; }
.insight-card { display: flex; flex-direction: column; gap: 8px; }
.insight-card h3 { margin: 0; font-size: 16px; }
.insight-value { font-size: 20px; font-weight: 600; color: var(--primary); }
.insight-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; }
.insight-list li b { display: block; }
.insight-list li span { color: var(--text); }
.insight-list li em { display: block; color: var(--muted); font-style: normal; font-size: 13px; }

/* 合规文本：用户协议 / 隐私政策 / 数据授权书（保留换行，正文可读） */
.legal-doc pre { white-space: pre-wrap; font-family: inherit; font-size: 16px;
  line-height: 1.9; color: var(--text); margin: 0; }
.legal-filing { margin-top: 12px; }
/* 月度健康报告卡（年费版权益） */
.monthly-card { margin-top: 12px; }
.monthly-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.monthly-head h3 { margin: 0; font-size: 15px; }
/* 数据授权状态卡：状态徽标 + 确认 / 撤回操作 */
.legal-auth { margin-bottom: 12px; }
.legal-auth .auth-status { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.legal-auth .auth-actions { display: flex; gap: 10px; margin-top: 8px; }
/* 页脚合规入口 */
.footer-links { display: inline-flex; gap: 14px; margin-left: 12px; flex-wrap: wrap; }
.footer-links a { cursor: pointer; color: var(--muted); text-decoration: underline; }
.footer-links a:hover { color: var(--primary); }
/* 报告分享条：限时链接 + 复制 / 撤销 */
.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin: 8px 0 14px; border: 1px dashed var(--border);
  border-radius: 10px; background: var(--card); font-size: 15px; }
.share-bar a { color: var(--primary); word-break: break-all; }
/* 代理记账分录表 */
.book-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.book-table th, .book-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.book-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.book-table td { vertical-align: top; }
.book-table .mono { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }

/* ================= 三端适配：桌面宽屏增强（网页端 PC） =================
   移动端断点（560/640/720/900）已在上方各区块内落实；这里补桌面侧：
   宽屏加大内容幅面、鼠标悬停反馈，移动端补刘海屏安全区。 */
@media (min-width: 1280px) {
  .container { max-width: 1440px; padding: 32px 48px 80px; }
}
@media (min-width: 1680px) {
  .container { max-width: 1600px; }
}
/* 桌面鼠标交互增强（触屏设备不生效，避免粘滞悬停） */
@media (hover: hover) and (pointer: fine) {
  .card { transition: box-shadow .15s ease; }
  .card:hover { box-shadow: 0 10px 30px rgba(30, 64, 175, .08); }
}
/* 移动端安全区：iOS 刘海 / 底部横条不遮挡顶栏内容 */
@supports (padding: max(0px)) {
  .nav {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}
