/* ============================================================
   bot.css · mjbotapp 内页骨架：对话式应用界面
   暖灰底 + 石墨黑 + 珊瑚红，消息气泡与指令胶囊
   ============================================================ */

.page-bot {
  --paper: #faf7f4;
  --ink: #1c1a19;
  --ink-soft: #57504c;
  --ink-faint: #9a908a;
  --line: rgba(28, 26, 25, 0.11);
  --accent: #f0503c;
  --accent-ink: #ffffff;
  --bubble: #ffffff;
  --bubble-me: #1c1a19;
  --bubble-me-fg: #faf7f4;
  --header-bg: rgba(250, 247, 244, 0.9);
  --header-fg: #1c1a19;
  --header-line: rgba(28, 26, 25, 0.1);
  --tab-on: #1c1a19;
  --tab-on-fg: #faf7f4;
  background: var(--paper);
}

/* hero */
.bt-hero { padding: 48px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.bt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 82% 30%, rgba(240, 80, 60, 0.09), transparent 70%);
  pointer-events: none;
}
.bt-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); gap: 46px; align-items: center; }
.bt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.bt-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.bt-title { margin-top: 16px; font-size: clamp(40px, 5.6vw, 66px); font-weight: 900; line-height: 1.06; letter-spacing: -0.035em; }
.bt-title .app { color: var(--accent); }
.bt-lead { max-width: 35em; margin-top: 20px; font-size: 15.5px; color: var(--ink-soft); }
.bt-lead b { color: var(--ink); }
.bt-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.bt-actions .btn-primary { border-radius: 999px; }
.bt-actions .btn-room { border-radius: 999px; }
.bt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bt-tag {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--ink-soft);
}
.bt-figure { position: relative; }
.bt-figure img { width: 100%; height: auto; }

/* section */
.bt-sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
.bt-sec:last-of-type { border-bottom: 0; }
.bt-head { margin-bottom: 30px; }
.bt-head .k { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--accent); }
.bt-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.22; }
.bt-head p { max-width: 46em; margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }

/* chat */
.bt-chatwrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}
.bt-side {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.bt-side h3 { font-size: 14px; font-weight: 800; }
.bt-side p { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.bt-side ul { margin-top: 16px; display: grid; gap: 10px; }
.bt-side li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bt-side li:last-child { border-bottom: 0; padding-bottom: 0; }
.bt-side li span { color: var(--ink-faint); }
.bt-side li b { font-weight: 700; }

.bt-chat {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 50px -40px rgba(28, 26, 25, 0.45);
}
.bt-appbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.bt-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.bt-appbar b { display: block; font-size: 14px; }
.bt-appbar span { display: block; font-size: 11.5px; color: var(--ink-faint); }
.bt-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #12805c; }
.bt-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }

.bt-feed { display: grid; gap: 12px; padding: 20px 0 16px; }
.bt-msg { display: flex; gap: 10px; max-width: 86%; }
.bt-msg .who {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(28, 26, 25, 0.08);
  color: var(--ink-soft);
}
.bt-msg .bubble {
  padding: 12px 15px;
  border-radius: 4px 14px 14px 14px;
  background: var(--bubble);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
}
.bt-msg .bubble b { color: var(--accent); }
.bt-msg.me { margin-left: auto; flex-direction: row-reverse; max-width: 78%; }
.bt-msg.me .bubble { background: var(--bubble-me); color: var(--bubble-me-fg); border-color: transparent; border-radius: 14px 4px 14px 14px; }
.bt-msg.me .bubble b { color: #ffb3a8; }
.bt-msg.me .who { background: var(--accent); color: #fff; }
.bt-cmdbar { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.bt-cmd {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(28, 26, 25, 0.055);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

/* bento */
.bt-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bt-cell {
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.bt-cell:hover { transform: translateY(-4px); border-color: rgba(240, 80, 60, 0.4); }
.bt-cell.big { grid-column: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bt-cell.big p { color: rgba(250, 247, 244, 0.68); }
.bt-cell em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.bt-cell h3 { margin-top: 12px; font-size: 17px; font-weight: 800; line-height: 1.35; }
.bt-cell p { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

/* modes */
.bt-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: m; }
.bt-mode {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.bt-mode::before {
  counter-increment: m;
  content: "MODE 0" counter(m);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.bt-mode h3 { font-size: 16px; font-weight: 800; }
.bt-mode p { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

/* table */
.bt-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.bt-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.bt-table th, .bt-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.bt-table th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-faint); background: rgba(28, 26, 25, 0.03); }
.bt-table tr:last-child td { border-bottom: 0; }
.bt-table code { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }

/* stats */
.bt-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.bt-stats > div { padding: 24px 22px; border-right: 1px solid var(--line); }
.bt-stats > div:last-child { border-right: 0; }
.bt-stats b { display: block; font-family: var(--font-mono); font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.bt-stats span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-faint); }

/* privacy */
.bt-privacy { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: start; }
.bt-privacy-copy p { font-size: 14.5px; color: var(--ink-soft); }
.bt-privacy-copy p + p { margin-top: 12px; }
.bt-privacy-copy b { color: var(--ink); }
.bt-perm { display: grid; gap: 10px; }
.bt-permrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
}
.bt-permrow span { color: var(--ink-faint); font-size: 12px; }
.bt-permrow .ok { color: #12805c; font-weight: 700; }
.bt-permrow .no { color: #c2410c; font-weight: 700; }

/* log */
.bt-log { border-top: 1px solid var(--line); }
.bt-log-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: 20px; padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.bt-log-row time { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.bt-log-row span { font-size: 11.5px; color: var(--ink-faint); text-align: right; }

/* boundaries */
.bt-bound { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bt-bound div { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.bt-bound h3 { display: flex; gap: 8px; align-items: center; font-size: 14.5px; font-weight: 800; }
.bt-bound h3 i { font-style: normal; color: var(--accent); }
.bt-bound p { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

/* faq + related + cta */
.bt-faq { max-width: 900px; border-top: 1px solid var(--line); }
.bt-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bt-related a { padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform 0.2s var(--ease), border-color 0.2s; }
.bt-related a:hover { transform: translateY(-3px); border-color: rgba(240, 80, 60, 0.45); }
.bt-related em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-faint); }
.bt-related b { display: block; margin-top: 6px; font-size: 15.5px; }
.bt-related span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-faint); }

.bt-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
}
.bt-cta h2 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; }
.bt-cta p { margin-top: 6px; font-size: 13.5px; opacity: 0.85; }
.bt-cta .btn-primary { background: #fff; color: var(--accent); box-shadow: none; }
.bt-cta .tg-link { color: #fff; }

/* responsive */
@media (max-width: 1080px) {
  .bt-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .bt-figure { max-width: 520px; }
  .bt-chatwrap { grid-template-columns: 1fr; }
  .bt-bento { grid-template-columns: repeat(2, 1fr); }
  .bt-modes { grid-template-columns: 1fr 1fr; }
  .bt-stats { grid-template-columns: repeat(2, 1fr); }
  .bt-stats > div:nth-child(2) { border-right: 0; }
  .bt-stats > div:nth-child(1), .bt-stats > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .bt-privacy { grid-template-columns: 1fr; }
  .bt-related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .bt-sec { padding: 50px 0; }
  .bt-bento, .bt-modes, .bt-bound { grid-template-columns: 1fr; }
  .bt-cell.big { grid-column: span 1; }
  .bt-stats { grid-template-columns: 1fr; }
  .bt-stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .bt-stats > div:last-child { border-bottom: 0; }
  .bt-msg, .bt-msg.me { max-width: 100%; }
  .bt-log-row { grid-template-columns: 90px 1fr; }
  .bt-log-row span { display: none; }
  .bt-related { grid-template-columns: 1fr; }
  .bt-cta { padding: 26px; }
}
