/* =========================================================
   天狼星的肉球球 · 无影展示与模型测试站  —— 中文简洁浅色主题
   设计令牌:以「白/浅灰底 + 无影橙强调」为主,克制、留白充足
   ========================================================= */

:root {
  /* 颜色 */
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-mute: #f0f2f5;
  --surface: #ffffff;
  --border: #e6e8ec;
  --border-strong: #d7dae0;
  --text: #1a1c22;
  --text-soft: #4a4f5a;
  --text-mute: #7a808c;
  --brand: #ff6a00;
  --brand-soft: #fff2e8;
  --brand-dark: #e35f00;
  --accent: #1f7a5a;        /* 呼应素材里的墨绿 */
  --accent-soft: #eaf5f0;
  --info: #2f6feb;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --code-bg: #1e2128;
  --code-fg: #e6e8ec;

  /* 尺寸 */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20,22,28,.05);
  --shadow: 0 6px 24px rgba(20,22,28,.07);
  --shadow-lg: 0 18px 50px rgba(20,22,28,.12);
  --maxw: 1160px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
code, pre, .mono { font-family: var(--mono); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand), #ff9d4d);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand small { color: var(--text-mute); font-weight: 500; font-size: 12px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--text-soft);
  font-size: 14px; font-weight: 500; transition: .18s;
}
.nav-links a:hover { background: var(--bg-mute); color: var(--text); }
.nav-links a.active { background: var(--brand-soft); color: var(--brand-dark); }
.nav-cta {
  padding: 9px 16px; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm); transition: .18s;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background:
  radial-gradient(1000px 400px at 15% -10%, var(--brand-soft), transparent 60%),
  radial-gradient(800px 400px at 90% 0%, var(--accent-soft), transparent 55%),
  var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-soft); font-weight: 500; box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: 42px; line-height: 1.25; margin: 18px 0 14px; letter-spacing: -.5px; font-weight: 800; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: 16.5px; color: var(--text-soft); margin: 0 0 26px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: .18s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.hero-stats { display: flex; gap: 32px; margin-top: 34px; }
.hero-stats .stat b { display: block; font-size: 26px; font-weight: 800; color: var(--text); }
.hero-stats .stat span { font-size: 13px; color: var(--text-mute); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 18px; box-shadow: var(--shadow-lg); background: #fff; }
.hero-badge {
  position: absolute; left: -18px; bottom: 24px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.hero-badge .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft);
  display: grid; place-items: center; color: var(--brand); font-size: 18px; }
.hero-badge b { font-size: 14px; } .hero-badge span { font-size: 12px; color: var(--text-mute); display: block; }

/* ---------- 通用 section ---------- */
.section { padding: 68px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 46em; margin: 0 auto 44px; }
.section-head .tag { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-size: 30px; margin: 10px 0 12px; letter-spacing: -.4px; font-weight: 800; }
.section-head p { color: var(--text-soft); margin: 0; font-size: 15.5px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: .2s; box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px; background: var(--brand-soft); color: var(--brand); }
.card .ic.green { background: var(--accent-soft); color: var(--accent); }
.card .ic.blue { background: #eaf0ff; color: var(--info); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 14px; }
.card ul li { margin: 5px 0; }

/* 规格/价格表 */
.table-card { overflow: hidden; padding: 0; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec th, table.spec td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.spec th { background: var(--bg-soft); color: var(--text-soft); font-weight: 600; font-size: 13px; }
table.spec tr:last-child td { border-bottom: none; }
table.spec td b { color: var(--brand-dark); }
table.spec tbody tr:hover { background: var(--bg-soft); }

/* 图文交错 */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.rev .feature-media { order: 2; }
.feature-media img { border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature-media.dark { background: #14261f; padding: 8px; border-radius: 18px; }
.feature-text h3 { font-size: 22px; margin: 0 0 12px; font-weight: 700; }
.feature-text p { color: var(--text-soft); margin: 0 0 14px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 26px; margin: 9px 0; color: var(--text-soft); font-size: 14.5px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok);
  font-weight: 700; width: 18px; height: 18px; }

/* ---------- 模型服务矩阵 ---------- */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model-chip { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; transition: .18s; cursor: pointer; text-align: left; }
.model-chip:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.model-chip .mt { font-size: 12px; color: var(--text-mute); font-weight: 600; letter-spacing: .5px; }
.model-chip .mn { font-size: 15px; font-weight: 700; margin: 4px 0 2px; }
.model-chip .mid { font-size: 12px; color: var(--brand-dark); font-family: var(--mono); }

/* ---------- 在线测试控制台 ---------- */
.console { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.console-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; position: sticky; top: calc(var(--nav-h) + 16px); box-shadow: var(--shadow-sm); }
.side-title { font-size: 12px; color: var(--text-mute); font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 8px 10px 10px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px;
  cursor: pointer; font-size: 14px; color: var(--text-soft); font-weight: 500; transition: .15s; width: 100%; border: none; background: none; text-align: left; }
.side-item:hover { background: var(--bg-soft); color: var(--text); }
.side-item.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.side-item.dim { opacity: .45; }
.side-item .si { font-size: 17px; width: 22px; text-align: center; }

/* 调用格式切换器 */
.fmt-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.fmt-item { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text-soft); font-size: 13px; font-weight: 600; transition: .15s; }
.fmt-item:hover { border-color: var(--brand); color: var(--brand-dark); }
.fmt-item.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.console-main { display: flex; flex-direction: column; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-h { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--bg-soft); }
.panel-h h4 { margin: 0; font-size: 15px; font-weight: 700; }
.panel-h .sub { font-size: 12.5px; color: var(--text-mute); margin-left: auto; font-family: var(--mono); }
.panel-b { padding: 18px; }

.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.field label .req { color: var(--err); }
.field .hint { font-size: 12px; color: var(--text-mute); margin-top: 5px; }
.input, .select, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff; transition: .15s;
}
textarea.input { font-family: var(--mono); font-size: 13px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input.mono { font-family: var(--mono); font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.key-field { position: relative; }
.key-field .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-mute); font-size: 16px; padding: 4px 6px; }
.key-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-top: 6px; font-weight: 600; }

.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-sm { padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.btn-run { background: var(--brand); color: #fff; }
.btn-run:hover { background: var(--brand-dark); }
.btn-run:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--text-soft); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--brand); }

/* 观测:请求/响应 */
.obs-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.obs-tab { padding: 7px 14px; border-radius: 8px 8px 0 0; font-size: 13px; font-weight: 600;
  color: var(--text-mute); background: none; border: none; border-bottom: 2px solid transparent; }
.obs-tab.active { color: var(--brand-dark); border-bottom-color: var(--brand); background: var(--bg-soft); }
.obs-body { border-top: 1px solid var(--border); }
pre.code { margin: 0; padding: 16px 18px; background: var(--code-bg); color: var(--code-fg);
  font-size: 12.5px; line-height: 1.6; overflow: auto; max-height: 460px; border-radius: 0; white-space: pre-wrap; word-break: break-word; }
pre.code .k { color: #7fd1ff; } pre.code .s { color: #b6e88a; } pre.code .n { color: #ffb86c; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; font-family: var(--mono); }
.status-pill.ok { background: #e7f6ec; color: var(--ok); }
.status-pill.err { background: #fdeaea; color: var(--err); }
.status-pill.run { background: var(--brand-soft); color: var(--brand-dark); }
.status-pill.idle { background: var(--bg-mute); color: var(--text-mute); }
.spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.timeline li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.timeline li:last-child { border-bottom: none; }
.timeline .t { color: var(--text-mute); font-family: var(--mono); font-size: 12px; min-width: 74px; }
.timeline .ev { color: var(--text-soft); }
.timeline .ev b { color: var(--text); }

/* 渲染结果区(图片/音频/视频) */
.render-box { margin-top: 14px; }
.render-box img, .render-box video { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.render-box audio { width: 100%; margin-top: 6px; }
.render-label { font-size: 12px; color: var(--text-mute); margin-bottom: 6px; font-weight: 600; }

/* 提示条 */
.note { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.6; border: 1px solid; }
.note.info { background: #eef4ff; border-color: #cfe0ff; color: #1e4fa3; }
.note.warn { background: #fff7e8; border-color: #ffe2b0; color: #8a5a00; }
.note.sec { background: var(--accent-soft); border-color: #c8e6d8; color: #1a5c44; }
.note b { font-weight: 700; }

/* ---------- 页脚 ---------- */
.footer { background: #16181d; color: #b9bec7; padding: 48px 0 28px; margin-top: 20px; }
.footer a { color: #dfe3e8; }
.footer .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h5 { color: #fff; font-size: 14px; margin: 0 0 12px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.footer li { margin: 7px 0; }
.footer .fbot { margin-top: 32px; padding-top: 18px; border-top: 1px solid #262a31;
  font-size: 12.5px; color: #7d838d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer .fbot-icp { margin-top: 14px; text-align: center; font-size: 12.5px; }
.footer .fbot-icp a { color: #9aa0a9; text-decoration: none; }
.footer .fbot-icp a:hover { color: #dfe3e8; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature-row, .console { grid-template-columns: 1fr; }
  .feature-row.rev .feature-media { order: 0; }
  .grid-3, .grid-4, .model-grid { grid-template-columns: repeat(2, 1fr); }
  .console-side { position: static; }
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--border); padding: 10px; gap: 2px; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .footer .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .model-grid, .row2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
  .hero-stats { gap: 20px; }
  .section { padding: 48px 0; }
}
