/* ============================================================
   魔方数智 Demo · 企业级浅色主题
   设计原则：单一品牌蓝、充足留白、细边框、克制的动效
   ============================================================ */
:root {
  --brand: #1d4ed8;          /* 主品牌蓝 */
  --brand-hover: #1e40af;
  --brand-light: #eff4ff;    /* 品牌浅底 */
  --text: #111827;           /* 主文字 */
  --text-2: #4b5563;         /* 次文字 */
  --text-3: #9ca3af;         /* 弱文字 */
  --line: #e5e7eb;           /* 分隔线 */
  --bg: #ffffff;
  --bg-gray: #f6f8fb;        /* 交替区块灰 */
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  font-size: 14.5px; font-weight: 500; padding: 10px 22px;
  transition: all .2s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 13px 30px; font-size: 15.5px; }

/* ---------------- 顶部导航 ---------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.navbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 48px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.brand-en { font-size: 11px; color: var(--text-3); border-left: 1px solid var(--line); padding-left: 10px; }
.nav-links { display: flex; gap: 34px; flex: 1; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14.5px;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: all .2s;
}
.nav-links a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 150px 0 90px;
  background:
    linear-gradient(180deg, var(--brand-light) 0%, #fff 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  color: var(--brand); text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; line-height: 1.3; letter-spacing: 1px; }
.hero-desc { color: var(--text-2); font-size: 16.5px; margin: 24px 0 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero 右侧产品示意面板 */
.hero-visual { display: flex; justify-content: center; }
.hero-panel {
  width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-panel-head {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #fafbfc;
}
.hero-panel-head span { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.hero-panel-head em { font-style: normal; font-size: 12.5px; color: var(--text-3); margin-left: 8px; }
.hero-chart { height: 220px; padding: 8px 4px 0; }
.hero-panel-foot {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); padding: 16px 0; text-align: center;
}
.hero-panel-foot b { display: block; font-size: 20px; color: var(--brand); }
.hero-panel-foot span { font-size: 12.5px; color: var(--text-3); }

/* ---------------- 指标带 ---------------- */
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric {
  text-align: center; padding: 36px 12px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
}
.metric + .metric { border-left: 1px solid var(--line); }
.metric-num { font-size: 34px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.metric-suffix { font-size: 22px; font-weight: 700; color: var(--text); }
.metric-label { width: 100%; font-size: 13.5px; color: var(--text-3); margin-top: 6px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 96px 0; }
.section-gray { background: var(--bg-gray); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: 1px; }
.section-sub { color: var(--text-2); margin-top: 14px; font-size: 15.5px; }

/* 滚动显现（克制的位移） */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- 解决方案卡片 ---------------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: box-shadow .25s ease, border-color .25s ease;
}
.sol-card:hover { box-shadow: var(--shadow-md); border-color: #c7d6f7; }
.sol-icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.sol-icon svg { width: 24px; height: 24px; color: var(--brand); }
.sol-card h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 10px; }
.sol-card p { color: var(--text-2); font-size: 14.5px; min-height: 88px; }
.sol-link {
  display: inline-block; margin-top: 16px; font-size: 14px; color: var(--brand);
  text-decoration: none; font-weight: 500;
}
.sol-link:hover { text-decoration: underline; }

/* ---------------- 数据平台 ---------------- */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 12px; box-shadow: var(--shadow-sm);
}
.dash-title {
  font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.dash-badge {
  font-size: 11px; font-weight: 500; color: var(--brand);
  background: var(--brand-light); border-radius: 999px; padding: 2px 10px;
}
.dash-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; margin-right: 5px; }
.chart { height: 270px; }

/* ---------------- 智能报告 ---------------- */
.insight-wrap {
  max-width: 840px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px 32px 32px;
}
.insight-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.insight-controls label { font-size: 14px; color: var(--text-2); }
.insight-controls select {
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 9px 14px; font-size: 14.5px; color: var(--text); outline: none;
}
.insight-controls select:focus { border-color: var(--brand); }
.insight-output {
  min-height: 260px; background: var(--bg-gray); border: 1px solid var(--line);
  border-radius: 8px; padding: 26px 28px; font-size: 14.5px; line-height: 1.9;
  white-space: pre-wrap; color: var(--text);
}
.insight-placeholder { text-align: center; color: var(--text-3); padding-top: 56px; }
.insight-placeholder svg { width: 44px; height: 44px; margin-bottom: 12px; color: #cbd5e1; }
.insight-output.loading::after { content: "▍"; animation: blink 1s infinite; color: var(--brand); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- 技术架构 ---------------- */
.arch-wrap { max-width: 880px; margin: 0 auto; text-align: center; }
.arch-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.arch-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 28px; min-width: 220px; box-shadow: var(--shadow-sm); text-align: left;
}
.arch-node b { display: block; font-size: 15px; margin-bottom: 4px; }
.arch-node span { font-size: 13px; color: var(--text-3); }
.arch-conn {
  font-size: 12.5px; color: var(--text-3); margin: 16px 0; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.arch-conn::before, .arch-conn::after {
  content: ""; width: 60px; height: 1px; background: var(--line);
}

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px; padding: 56px 24px 40px;
}
.footer-brand p { color: var(--text-3); font-size: 13.5px; margin-top: 14px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); font-size: 13.5px; text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--brand); }
.footer-note { color: var(--text-3); font-size: 13px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 12.5px; color: var(--text-3); }

/* ---------------- AI 咨询窗口 ---------------- */
.chat-fab {
  position: fixed; right: 28px; bottom: 28px; width: 52px; height: 52px;
  border-radius: 50%; border: none; cursor: pointer; z-index: 200;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.chat-fab:hover { background: var(--brand-hover); }
.chat-fab svg { width: 24px; height: 24px; }
.chat-window {
  position: fixed; right: 28px; bottom: 94px; width: 380px; max-width: calc(100vw - 40px);
  height: 520px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  z-index: 300; display: none; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.chat-window.open { display: flex; animation: chatIn .25s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px); } }
.chat-header {
  padding: 14px 18px; background: var(--brand); color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-title b { font-size: 15px; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; margin-top: 2px; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.chat-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .8; }
.chat-close:hover { opacity: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-gray); }
.msg {
  max-width: 85%; padding: 11px 15px; border-radius: 10px; font-size: 14px;
  line-height: 1.7; white-space: pre-wrap; word-break: break-word;
}
.msg-ai { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.typing::after { content: "▍"; animation: blink 1s infinite; }
.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font-size: 14px; outline: none;
}
.chat-input input:focus { border-color: var(--brand); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .sol-grid, .dash-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric + .metric { border-left: none; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .chat-window { right: 12px; bottom: 84px; }
}

/* ============================================================
   多页面扩展样式：子页横幅 / 面包屑 / 详情区块 / 时间轴等
   ============================================================ */

/* 导航当前页高亮 */
.nav-links a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* 子页横幅 */
.page-hero {
  padding: 148px 0 56px;
  background: linear-gradient(180deg, var(--brand-light) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: 1px; }
.page-hero p { color: var(--text-2); margin-top: 14px; max-width: 640px; font-size: 15.5px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* 首页居中按钮 */
.center-more { text-align: center; margin-top: 40px; }

/* 首页数据平台预览 */
.preview-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.preview-text h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: 8px; }
.preview-text .btn { margin-top: 20px; }

/* 首页客户价值 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item {
  border-top: 3px solid var(--brand); background: #fff;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); padding: 26px 26px 30px;
}
.value-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.value-item p { color: var(--text-2); font-size: 14.5px; }

/* 解决方案详情区块（左右交替） */
.sol-detail {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--line);
}
.sol-detail:last-child { border-bottom: none; }
.sol-detail.reverse .sol-detail-text { order: 2; }
.sol-no {
  font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: 3px;
  display: block; margin-bottom: 10px;
}
.sol-detail-text h2 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.sol-detail-text p { color: var(--text-2); font-size: 15px; }
.sol-points { list-style: none; margin: 20px 0 26px; }
.sol-points li {
  font-size: 14.5px; color: var(--text); padding: 6px 0 6px 24px; position: relative;
}
.sol-points li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 12px; height: 2px; background: var(--brand);
}
.sol-detail-visual {
  height: 240px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(29,78,216,.06), rgba(29,78,216,.02)),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(29,78,216,.05) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(29,78,216,.05) 32px),
    #fbfcfe;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.sol-detail-visual::after {
  content: ""; width: 72px; height: 72px; border-radius: 16px;
  background: var(--brand-light); border: 1px solid #c7d6f7;
  box-shadow: var(--shadow-md);
}
.sol-detail-visual.v2::after { border-radius: 50%; }
.sol-detail-visual.v3::after { transform: rotate(45deg); border-radius: 12px; }
.sol-detail-visual.v4::after { border-radius: 50% 50% 50% 4px; }
.sol-detail-visual.v5::after { border-radius: 16px 16px 4px 4px; }
.sol-detail-visual.v6::after { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }

/* 数据平台页：数据管道 */
.pipeline {
  margin-top: 40px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm);
}
.pipeline h3 { font-size: 17px; font-weight: 600; margin-bottom: 20px; }
.pipeline-steps { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pipe-step {
  flex: 1; min-width: 170px; background: var(--bg-gray); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px 18px;
}
.pipe-step b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.pipe-step span { font-size: 12.5px; color: var(--text-3); }
.pipe-arrow { color: var(--brand); font-size: 18px; font-weight: 700; }

/* 智能报告页 */
.insight-hint { font-size: 12.5px; color: var(--text-3); }
.report-list { max-width: 840px; margin: 48px auto 0; }
.report-list h3 { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.report-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 24px; margin-bottom: 14px; display: grid;
  grid-template-columns: 1fr auto; gap: 4px 16px; transition: box-shadow .2s;
}
.report-item:hover { box-shadow: var(--shadow-md); }
.report-item b { font-size: 15px; }
.report-item span { grid-column: 1; font-size: 13px; color: var(--text-3); }
.report-item em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 12.5px; color: var(--text-3); }

/* 关于我们页 */
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.about-h { font-size: 22px; font-weight: 700; margin: 40px 0 16px; }
.about-main > div:first-child .about-h { margin-top: 0; }
.about-p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.side-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.side-card p { font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.side-card a { color: var(--brand); text-decoration: none; }

/* 时间轴 */
.timeline { margin-top: 8px; border-left: 2px solid var(--line); padding-left: 28px; }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -35px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.tl-date { font-size: 13px; color: var(--brand); font-weight: 600; }
.tl-item b { display: block; font-size: 15.5px; margin: 4px 0; }
.tl-item p { font-size: 14px; color: var(--text-2); }

/* 子页响应式 */
@media (max-width: 960px) {
  .sol-detail, .preview-inner, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .sol-detail.reverse .sol-detail-text { order: 0; }
  .sol-detail-visual { height: 180px; order: -1; }
  .value-grid { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); }
}

/* ============================================================
   生产化补丁：移动端菜单 / Toast / 按钮状态
   ============================================================ */

/* 汉堡按钮（桌面端隐藏） */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; background: none;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.nav-mobile { display: none; }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .brand-en { display: none; }
  .nav-inner { gap: 12px; height: 60px; }

  .nav-mobile {
    display: flex; flex-direction: column; gap: 4px;
    padding: 0 24px; max-height: 0; overflow: hidden;
    background: #fff; border-bottom: 1px solid transparent;
    transition: max-height .3s ease, padding .3s ease, border-color .3s;
  }
  .nav-mobile a {
    padding: 12px 4px; color: var(--text-2); text-decoration: none;
    font-size: 15px; border-bottom: 1px solid var(--line);
  }
  .nav-mobile a.active { color: var(--brand); font-weight: 600; }
  body.nav-open .nav-mobile { max-height: 400px; padding: 8px 24px 20px; border-bottom-color: var(--line); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* 按钮禁用态 */
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* 按钮内 loading 圈 */
.btn .spinner {
  width: 14px; height: 14px; margin-right: 8px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 全局 Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: #1f2937; color: #fff; font-size: 14px; padding: 12px 24px;
  border-radius: 8px; box-shadow: var(--shadow-lg); opacity: 0;
  pointer-events: none; transition: all .3s ease; z-index: 500; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: #b91c1c; }
.toast-success { background: #15803d; }

/* 404 页面 */
.notfound-wrap { text-align: center; padding: 180px 24px 140px; }
.notfound-code { font-size: 96px; font-weight: 800; color: var(--brand); letter-spacing: 4px; }
.notfound-wrap p { color: var(--text-2); margin: 16px 0 32px; }

/* ============================================================
   流式聊天补丁：深度思考开关 / 思考过程块
   ============================================================ */

/* 聊天工具栏（深度思考开关） */
.chat-toolbar {
  padding: 8px 14px 0; background: #fff; border-top: 1px solid var(--line);
}
.think-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.think-toggle input { accent-color: var(--brand); width: 15px; height: 15px; cursor: pointer; }
.think-toggle span { font-size: 13px; color: var(--text-2); }
.think-toggle em { font-style: normal; font-size: 12px; color: var(--text-3); }
.chat-input { border-top: none; }

/* 思考过程折叠块 */
.reasoning-box {
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px;
  background: var(--bg-gray); overflow: hidden; font-size: 13px;
}
.reasoning-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  color: var(--text-2); font-weight: 500; cursor: pointer; user-select: none;
}
.reasoning-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  animation: pulse 1.2s ease-in-out infinite;
}
.reasoning-head.done .reasoning-pulse { animation: none; background: #16a34a; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }
.reasoning-arrow { margin-left: auto; color: var(--text-3); transition: transform .2s; }
.reasoning-box.collapsed .reasoning-arrow { transform: rotate(-90deg); }
.reasoning-body {
  padding: 4px 12px 12px; color: var(--text-3); line-height: 1.8;
  max-height: 180px; overflow-y: auto; white-space: pre-wrap; word-break: break-word;
}
.reasoning-box.collapsed .reasoning-body { display: none; }
.msg-text { white-space: pre-wrap; word-break: break-word; }
