/* ==========================================================================
   GT138 机器人内页骨架：终端控制台 · 深黑霓虹 + Bento 网格 + 指令表 + 对话流
   （独立骨架）
   ========================================================================== */

:root {
  --bot-bg: #05070a;
  --bot-panel: #0a0f12;
  --bot-line: rgba(52, 211, 153, .18);
  --bot-green: #34d399;
  --bot-cyan: #22d3ee;
  --bot-text: #d7e5e0;
  --bot-muted: #7d948c;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body.bot-page {
  background: var(--bot-bg);
  color: var(--bot-text);
}

.bot-page .site-header {
  background: rgba(5, 7, 10, .88);
  border-bottom-color: rgba(52, 211, 153, .16);
}

.bot-page .site-nav a { color: #8fa8a0; }
.bot-page .site-nav a:hover { color: #d7e5e0; background: rgba(52, 211, 153, .08); }
.bot-page .site-nav a.is-active { color: var(--bot-green); background: rgba(52, 211, 153, .12); }
.bot-page .brand-text { color: #eafaf4; }
.bot-page .brand-mark { background: linear-gradient(135deg, #6ee7b7, #059669); color: #04120e; box-shadow: 0 0 22px rgba(52, 211, 153, .4); }
.bot-page .brand-text em { color: var(--bot-green); }
.bot-page .btn-login { background: linear-gradient(135deg, #6ee7b7, #10b981); color: #04120e; box-shadow: 0 0 22px rgba(52, 211, 153, .35); }
.bot-page .nav-toggle { background: transparent; border-color: rgba(52, 211, 153, .3); }
.bot-page .nav-toggle span { background: var(--bot-green); }

@media (max-width: 940px) {
  .bot-page .site-nav { background: #0a0f12; border-bottom-color: rgba(52, 211, 153, .2); }
  .bot-page .site-nav a { color: #8fa8a0; }
}

/* ---------------- Hero：终端窗口 ---------------- */
.bot-hero {
  position: relative;
  padding: 64px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(800px 480px at 20% 0%, rgba(16, 185, 129, .14), transparent 62%),
    radial-gradient(620px 420px at 92% 88%, rgba(34, 211, 238, .1), transparent 66%),
    var(--bot-bg);
}

.bot-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(52, 211, 153, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%);
  pointer-events: none;
}

.terminal {
  position: relative;
  z-index: 2;
  border: 1px solid var(--bot-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 15, 18, .96), rgba(6, 10, 12, .98));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(52, 211, 153, .05);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--bot-line);
  background: rgba(52, 211, 153, .04);
}

.terminal-bar .dots { display: flex; gap: 7px; }
.terminal-bar .dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #2b3a35;
}
.terminal-bar .dots i:nth-child(1) { background: #f87171; }
.terminal-bar .dots i:nth-child(2) { background: #fbbf24; }
.terminal-bar .dots i:nth-child(3) { background: #34d399; }

.terminal-bar .path {
  font-family: var(--mono);
  font-size: 12px;
  color: #5d7a71;
  margin-inline: auto;
}

.terminal-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bot-green);
}

.terminal-bar .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bot-green);
  box-shadow: 0 0 10px var(--bot-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.terminal-body {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding: 48px 44px;
}

.cmd-line {
  font-family: var(--mono);
  font-size: 13px;
  color: #5d7a71;
  margin-bottom: 18px;
}

.cmd-line .prompt { color: var(--bot-green); }
.cmd-line .arg { color: var(--bot-cyan); }

.bot-hero h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 18px;
  color: #f0fdf9;
}

.bot-hero h1 .glow {
  color: var(--bot-green);
  text-shadow: 0 0 26px rgba(52, 211, 153, .55);
}

.bot-hero .lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--bot-muted);
  max-width: 540px;
}

.bot-hero .lead strong { color: #d7e5e0; }

.bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
}

.bot-actions .btn-primary {
  background: linear-gradient(135deg, #6ee7b7, #10b981);
  color: #04120e;
  box-shadow: 0 0 30px rgba(52, 211, 153, .3);
}

.bot-actions .btn-room {
  border-color: rgba(52, 211, 153, .35);
  background: rgba(52, 211, 153, .05);
  color: #d7e5e0;
  font-family: var(--mono);
  font-size: 14px;
}

.bot-actions .btn-room b { color: var(--bot-green); letter-spacing: 2px; }

.bot-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.bot-visual img {
  width: min(100%, 440px);
  filter: drop-shadow(0 0 50px rgba(52, 211, 153, .25));
}

.bot-visual .scan {
  position: absolute;
  left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bot-green), transparent);
  opacity: .55;
  animation: scan 4.5s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 12%; }
  50% { top: 84%; }
}

/* ---------------- Bento 能力网格 ---------------- */
.bot-section { padding: 88px 0; }

.bot-head { max-width: 700px; margin-bottom: 44px; }

.bot-head .k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--bot-green);
}

.bot-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  color: #f0fdf9;
  line-height: 1.3;
}

.bot-head p { color: var(--bot-muted); font-size: 15.5px; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}

.tile {
  position: relative;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--bot-line);
  background: linear-gradient(160deg, #0b1216, #070b0d);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}

.tile:hover { border-color: rgba(52, 211, 153, .5); transform: translateY(-4px); }

.tile .t-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: #4d6b61;
  margin-bottom: 10px;
}

.tile h3 { font-size: 17px; font-weight: 800; color: #eafaf4; margin-bottom: 8px; }
.tile p { font-size: 13.5px; line-height: 1.75; color: var(--bot-muted); }

.tile.big { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-column: span 2; grid-row: span 2; }
.tile.half { grid-column: span 2; }

.tile.big .t-k { margin-bottom: 14px; }
.tile.big h3 { font-size: 24px; }
.tile.big p { font-size: 14.5px; max-width: 460px; }

.tile .bg-glyph {
  position: absolute;
  right: -10px; top: -18px;
  font-family: var(--mono);
  font-size: 110px;
  line-height: 1;
  color: rgba(52, 211, 153, .07);
  pointer-events: none;
}

.tile.tall { justify-content: flex-end; }

.tile-accent {
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(52, 211, 153, .16), transparent 70%),
    linear-gradient(160deg, #0c1a16, #070d0b);
}

/* ---------------- 指令表 ---------------- */
.cmd-wrap {
  border: 1px solid var(--bot-line);
  border-radius: 14px;
  overflow: hidden;
  background: #070b0d;
}

.cmd-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(52, 211, 153, .1);
  transition: background .2s;
}

.cmd-row:last-child { border-bottom: 0; }
.cmd-row:hover { background: rgba(52, 211, 153, .04); }

.cmd-row code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bot-cyan);
}

.cmd-row p { font-size: 14px; color: var(--bot-muted); }

.cmd-row .tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(52, 211, 153, .3);
  color: var(--bot-green);
  white-space: nowrap;
}

/* ---------------- 对话演示 ---------------- */
.chat-demo {
  max-width: 780px;
  margin-inline: auto;
  border: 1px solid var(--bot-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #0a1114, #070b0d);
  padding: 28px;
}

.chat-demo .chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px dashed rgba(52, 211, 153, .18);
}

.chat-demo .avatar {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #6ee7b7, #059669);
  color: #04120e;
  font-weight: 900;
  font-family: var(--mono);
}

.chat-demo .chat-head strong { display: block; font-size: 14.5px; color: #eafaf4; }
.chat-demo .chat-head span { font-size: 12px; color: var(--bot-muted); font-family: var(--mono); }

.msg { display: flex; gap: 12px; margin-bottom: 16px; }
.msg .bubble {
  max-width: 76%;
  padding: 13px 17px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.75;
}

.msg.bot .bubble {
  background: rgba(52, 211, 153, .08);
  border: 1px solid rgba(52, 211, 153, .2);
  color: #cfe8df;
  border-top-left-radius: 4px;
}

.msg.user { justify-content: flex-end; }
.msg.user .bubble {
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .25);
  color: #d7f6fd;
  border-top-right-radius: 4px;
}

.msg .mini-av {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(52, 211, 153, .15);
  color: var(--bot-green);
  font-family: var(--mono);
  font-size: 11px;
}

.typing {
  display: inline-flex;
  gap: 5px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(52, 211, 153, .06);
  border: 1px solid rgba(52, 211, 153, .16);
}

.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bot-green);
  animation: blink 1.2s infinite;
}

.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0%, 60%, 100% { opacity: .25; }
  30% { opacity: 1; }
}

/* ---------------- 提示条 ---------------- */
.bot-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px 28px;
  margin-top: 34px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, .22);
  background: rgba(34, 211, 238, .045);
}

.bot-note .i {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, .12);
  color: var(--bot-cyan);
  font-family: var(--mono);
  font-weight: 700;
}

.bot-note h3 { font-size: 16px; font-weight: 800; color: #e6fbff; margin-bottom: 6px; }
.bot-note p { font-size: 14px; color: var(--bot-muted); line-height: 1.8; }
.bot-note a { color: var(--bot-cyan); border-bottom: 1px solid rgba(34, 211, 238, .35); }

/* ---------------- CTA ---------------- */
.bot-cta {
  padding: 0 0 96px;
}

.bot-cta-box {
  position: relative;
  overflow: hidden;
  padding: 52px 48px;
  border-radius: 18px;
  border: 1px solid rgba(52, 211, 153, .3);
  background:
    radial-gradient(500px 260px at 88% 10%, rgba(52, 211, 153, .16), transparent 70%),
    linear-gradient(135deg, #0b1412, #060a09);
}

.bot-cta-box::after {
  content: "> _";
  position: absolute;
  right: 44px; bottom: 18px;
  font-family: var(--mono);
  font-size: 46px;
  color: rgba(52, 211, 153, .16);
}

.bot-cta-box h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: #f0fdf9; margin-bottom: 10px; }
.bot-cta-box p { color: var(--bot-muted); font-size: 15px; max-width: 560px; }
.bot-cta-box .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.bot-cta-box .tg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .35);
  color: #d7e5e0;
  font-family: var(--mono);
  font-size: 14px;
  transition: background .2s, border-color .2s;
}

.bot-cta-box .tg:hover { background: rgba(52, 211, 153, .1); border-color: var(--bot-green); }

/* ---------------- 相关 ---------------- */
.bot-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.bot-related a {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--bot-line);
  background: #080d0f;
  transition: border-color .2s, transform .2s;
}

.bot-related a:hover { border-color: rgba(52, 211, 153, .5); transform: translateY(-3px); }
.bot-related strong { display: block; font-size: 15px; color: #eafaf4; margin-bottom: 5px; }
.bot-related span { font-size: 12.5px; color: var(--bot-muted); font-family: var(--mono); }

/* 入场 */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .terminal-body { grid-template-columns: 1fr; padding: 36px 30px; }
  .bot-visual { order: -1; }
  .bot-visual img { width: min(100%, 340px); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .tile.big, .tile.wide, .tile.tall, .tile.half { grid-column: span 2; grid-row: auto; }
  .tile.big { min-height: 240px; }
  .cmd-row { grid-template-columns: 1fr; gap: 8px; }
  .bot-related { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bot-hero { padding: 44px 0 64px; }
  .terminal-body { padding: 28px 20px; }
  .bot-hero h1 { font-size: 28px; }
  .bot-actions .btn { width: 100%; }
  .bot-section { padding: 60px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile.big, .tile.wide, .tile.tall, .tile.half { grid-column: span 1; }
  .chat-demo { padding: 20px; }
  .msg .bubble { max-width: 86%; }
  .bot-cta-box { padding: 34px 24px; }
  .bot-cta-box .row .btn, .bot-cta-box .row .tg { width: 100%; justify-content: center; }
  .bot-note { grid-template-columns: 1fr; }
}
