/* 老版本接口官网。版式与新版官网（AI-网站）一致：顶部导航、首屏、卡片分区；配色用橙色 + 深蓝，与新版的蓝色区分。
   换颜色只改 :root 里这几个变量。页面里不写内联样式（服务端的内容安全策略不允许）。 */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --card: #ffffff;
  --border: #e6e9ef;
  --text: #101828;
  --muted: #5b6577;
  --primary: #f26a1b;        /* 主色：按钮、图形 */
  --primary-dark: #d24c08;   /* 主色加深：按钮渐变的另一头 */
  --primary-ink: #b8430a;    /* 白底上的主色文字、链接 */
  --primary-2: #f59f0b;      /* 辅色：渐变 */
  --tint: #fff5ec;           /* 主色的浅底 */
  --tint-border: #ffdfc4;
  --navy: #0f1b2d;
  --code-bg: #0f1727;
  --code-border: #1f2b40;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px -4px rgba(16,24,40,.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", Consolas, "Cascadia Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: all .2s; white-space: nowrap; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #ee6a16, var(--primary-dark)); color: #fff; box-shadow: 0 6px 20px -6px rgba(242,106,27,.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -6px rgba(242,106,27,.7); }
.btn-primary[disabled] { opacity: .6; transform: none; cursor: default; }
.btn-outline { border: 1px solid #d3d9e3; color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* ---------- 导航 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled, .nav.solid { border-bottom-color: var(--border); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); flex: none; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-actions [data-auth] { display: inline-flex; align-items: center; gap: 8px; }
/* 「联系客服获取密钥」：宽屏是顶栏里的按钮，窄屏放不下，改在展开的菜单里 */
.nav-links .nav-contact-m { display: none; }
.nav-toggle { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 96px 0 110px; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(242,106,27,.13), transparent 70%),
    radial-gradient(500px 400px at 85% 60%, rgba(245,159,11,.11), transparent 70%);
}
.hero-glow::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(16,24,40,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,40,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-inner > * { min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--primary-ink); background: var(--tint); border: 1px solid var(--tint-border); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(242,106,27,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(242,106,27,0); } 100% { box-shadow: 0 0 0 0 rgba(242,106,27,0); } }
.hero h1 { font-size: 54px; line-height: 1.18; margin: 22px 0 20px; letter-spacing: -.5px; }
.grad { background: linear-gradient(90deg, #e8590c, var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-stats { display: flex; gap: 44px; margin-top: 44px; }
.hero-stats strong { display: block; font-size: 28px; font-weight: 700; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-panel { overflow: hidden; background: var(--code-bg); border-color: var(--code-border); box-shadow: 0 30px 70px -24px rgba(16,24,40,.5); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--code-border); background: rgba(255,255,255,.03); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; flex: none; }
.win-bar i:nth-child(2) { background: #f59e0b; }
.win-bar i:nth-child(3) { background: #22c55e; }
.win-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.75; overflow-x: auto; }
code { font-family: var(--mono); }   /* 不写这一句，中文系统里 code 会落到宋体 */
.json { padding: 20px 22px; color: #cbd5e1; }
.k { color: #7dd3fc; } .s { color: #86efac; } .n { color: #fdba74; } .c { color: #64748b; } .kw { color: #c4b5fd; } .fn { color: #fcd34d; }
.panel-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--code-border); font-size: 12px; color: #94a3b8; }
.panel-foot span { display: flex; align-items: center; gap: 7px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }

/* ---------- 分区 ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 52px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--primary-ink); margin-bottom: 10px; }
.section-head h2, .docs-text h2 { font-size: 36px; line-height: 1.25; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-foot { text-align: center; margin-top: 34px; color: var(--muted); font-size: 14.5px; }
.section-foot a, .text-link { color: var(--primary-ink); font-weight: 600; }
.section-foot a:hover, .text-link:hover { text-decoration: underline; }

.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.market-card, .feature, .access, .catalog-card { padding: 28px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.market-card:hover, .feature:hover, .access:hover { transform: translateY(-4px); border-color: rgba(242,106,27,.4); box-shadow: 0 16px 40px -16px rgba(242,106,27,.28); }
.mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.flag { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: .5px; color: var(--primary-ink); background: linear-gradient(135deg, var(--tint), #fffaf0); border: 1px solid var(--tint-border); }
.count { font-size: 15px; font-weight: 700; color: var(--primary-ink); }
.market-card h3, .feature h3, .access h3 { font-size: 18px; margin-bottom: 8px; }
.market-card p, .feature p, .access p { color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--border); color: #344054; }
.ficon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: var(--primary-ink); background: linear-gradient(135deg, var(--tint), #fffaf0); border: 1px solid var(--tint-border); }

.access { position: relative; overflow: hidden; }
.access-no { font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.access code { display: inline-block; margin-top: 18px; padding: 6px 10px; border-radius: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--primary-ink); background: var(--tint); border: 1px solid var(--tint-border); }

/* ---------- 接口目录 ---------- */
.catalog-card h3 { font-size: 18px; margin-bottom: 4px; }
.catalog-card .note { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.catalog-card ul { list-style: none; }
.catalog-card li a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14.5px; transition: color .2s; }
.catalog-card li a:hover { color: var(--primary-ink); }
.catalog-card li .t { white-space: nowrap; }
.catalog-card li .p { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.catalog-card .more { display: inline-block; margin-top: 14px; font-size: 14px; }

/* ---------- 代码示例 ---------- */
.docs-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.docs-inner > * { min-width: 0; }
.docs-text p { color: var(--muted); margin-bottom: 22px; }
.checks { list-style: none; margin-bottom: 30px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; background: #dcfce7; color: var(--green); }
.code-box { overflow: hidden; background: var(--code-bg); border-color: var(--code-border); box-shadow: 0 24px 60px -24px rgba(16,24,40,.45); }
.code-tabs { display: flex; border-bottom: 1px solid var(--code-border); padding: 0 8px; background: rgba(255,255,255,.03); overflow-x: auto; }
.code-tabs button { padding: 12px 14px; font-size: 13px; color: #94a3b8; border-bottom: 2px solid transparent; white-space: nowrap; }
.code-tabs button.active { color: #fff; border-bottom-color: var(--primary); }
.code-tabs .copy { margin-left: auto; }
.code-tabs .copy:hover { color: #fff; }
.code-box pre { padding: 22px; min-height: 320px; color: #cbd5e1; }

/* ---------- 常见问题 ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(242,106,27,.45); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }
.faq code, .notice code, .panel code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border-radius: 5px; background: var(--bg-alt); border: 1px solid var(--border); color: #344054; }

.notice { margin-top: 40px; padding: 22px 26px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--tint-border); }
.notice h3 { font-size: 15px; margin-bottom: 8px; color: var(--primary-ink); }
.notice ul { padding-left: 20px; color: #5a4634; font-size: 14.5px; }
.notice li { margin: 3px 0; }

/* ---------- 底部行动区 ---------- */
.cta { padding: 90px 0; background: linear-gradient(135deg, var(--navy), #1c2f4d); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(242,106,27,.35), transparent 65%); }
.cta-inner { position: relative; z-index: 1; text-align: center; color: #fff; }
.cta h2 { font-size: 38px; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.78); font-size: 17px; }

/* ---------- 页脚 ---------- */
.footer { padding: 64px 0 28px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: #8a94a6; font-size: 13px; }
.footer.slim { padding: 22px 0; }
.footer.slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- 登录页、用户中心 ---------- */
.auth { position: relative; min-height: calc(100vh - 64px - 68px); padding: 64px 0 80px; overflow: hidden; background: var(--bg-alt); }
.auth .hero-glow { opacity: .9; }
.auth-box { position: relative; max-width: 440px; margin: 0 auto; }
.auth-box.wide { max-width: 680px; }
.auth-title { font-size: 30px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.auth-card { padding: 30px 30px 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input { width: 100%; padding: 11px 13px; border: 1px solid #d3d9e3; border-radius: 10px; background: #fff; font: 15px/1.5 var(--font); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,106,27,.16); }
.field .hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.captcha { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: center; }
.captcha .q { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--tint-border); background: var(--tint); color: var(--primary-ink); font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: 1px; text-align: center; min-height: 46px; }
.captcha button { font-size: 13px; color: var(--primary-ink); padding: 0 4px; }
.captcha button:hover { text-decoration: underline; }
.msg { margin-bottom: 16px; padding: 10px 13px; border-radius: 10px; font-size: 14px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
/* 访客登录：登录页表单下面的入口，用户中心顶上的说明 */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 13px; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-outline[disabled] { opacity: .6; cursor: default; }
.guest-hint { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.guest-note { margin-bottom: 18px; padding: 18px 22px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--tint-border); }
.guest-note h2 { font-size: 15px; margin-bottom: 6px; color: var(--primary-ink); }
.guest-note p { color: #5a4634; font-size: 14.5px; }
.guest-note .guest-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.panel { margin-bottom: 20px; overflow: hidden; }
.panel > h2 { padding: 14px 22px; font-size: 15px; border-bottom: 1px solid var(--border); background: #fbfcfd; }
.panel .body { padding: 8px 22px 16px; }
.panel dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.panel dl > div:last-child { border-bottom: 0; }
.panel dt { color: var(--muted); }
.panel dd { min-width: 0; overflow-wrap: anywhere; }
.panel dd > div + div { margin-top: 4px; }
.auth-foot .btn { margin: 0 4px 8px; }
.panel p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
/* 用户中心：上方两个标签（WS 账户 / HTTP 账户），各自一块账户情况、一块日志 */
.account { padding-top: 40px; }
.account-box { position: relative; max-width: 1040px; margin: 0 auto; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.account-head h1 { font-size: 26px; }
.account-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-time { font-size: 13px; color: var(--muted); }
.account-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 5px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.account-tabs a, .account-tabs button { padding: 9px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.account-tabs a:hover, .account-tabs button:hover { color: var(--text); }
.account-tabs a.active, .account-tabs button.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.panel-note { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
/* HTTP 账户：使用情况里的请求内容和额度（一条横杠表示用了多少，到 80% 变色） */
.api-name { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.api-q { margin-left: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.quota + .quota { margin-top: 12px; }
.quota-top { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; }
.quota-name { font-weight: 600; }
.quota-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.meter { height: 6px; margin: 6px 0 2px; border-radius: 3px; background: #eef1f5; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.quota.warn .meter i { background: var(--primary); }
.quota.bad .meter i { background: var(--red); }
.quota.warn .quota-num { color: var(--primary-ink); font-weight: 600; }
.quota.bad .quota-num { color: var(--red); font-weight: 600; }
/* WS 账户：每条在线连接一块（地址、状态、推送量、堵塞、降级、订阅）；HTTP 的使用情况也用这一块的样子 */
.panel .body.conns { padding: 14px 22px 6px; }
.conn { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.conn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fbfcfd; border-bottom: 1px solid var(--border); }
.conn-ip { font-family: var(--mono); font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.conn-from { font-size: 14px; color: var(--muted); }
.conn-from .conn-ip { color: var(--text); }
.badge { flex: none; padding: 2px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge.ok { color: var(--green); background: #dcfce7; }
.badge.warn { color: var(--primary-ink); background: var(--tint); border: 1px solid var(--tint-border); }
.badge.bad { color: #fff; background: var(--red); }
.conn-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; font-size: 14px; }
.panel .conn-grid > div { display: grid; grid-template-columns: 124px 1fr; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.panel .conn-grid > div.wide { grid-column: 1 / -1; }
.panel .conn-grid > div:last-child { border-bottom: 0; }
.conn-grid > div.bad dd { color: var(--red); font-weight: 600; }
.conn-grid > div.warn dd { color: var(--primary-ink); font-weight: 600; }
.codes { margin-bottom: 3px; }
.codes .more { margin-left: 8px; font-size: 13px; color: var(--primary-ink); }
.codes .more:hover { text-decoration: underline; }
/* WS 的流式日志：一行一件事，新的在上面 */
.panel > h2.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.log-filter { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #f1f3f7; }
.log-filter button { padding: 4px 12px; border-radius: 7px; font-size: 13px; font-weight: 400; color: var(--muted); }
.log-filter button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.panel .body.stream { padding: 4px 0 6px; max-height: 620px; overflow-y: auto; font-size: 13.5px; }
.panel .body.stream > p { margin: 0; padding: 16px 22px; }
.stream .day { position: sticky; top: 0; z-index: 1; padding: 5px 22px; font-size: 12.5px; color: var(--muted); background: #f6f7fa; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stream .ln { display: flex; align-items: baseline; gap: 12px; padding: 6px 22px; border-bottom: 1px solid #f1f3f7; }
.stream .ln:hover { background: #fafbfc; }
.stream .ln .t { flex: none; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.stream .ln .tag { flex: none; width: 44px; text-align: center; padding: 1px 0; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.stream .ln .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.stream .ln .ip { flex: none; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.stream .tag.in { color: var(--green); background: #dcfce7; }
.stream .tag.out { color: #475569; background: #e9edf3; }
.stream .tag.mute { color: var(--muted); background: #f1f3f7; }
.stream .tag.sub { color: #1d4ed8; background: #e8f0ff; }
.stream .tag.warn { color: var(--primary-ink); background: var(--tint); }
.stream .tag.bad { color: #fff; background: var(--red); }
.stream .tag.state { color: #fff; background: var(--navy); }
.stream .ln.alert .tx { color: #991b1b; }
.stream .ln.new { animation: ln-new 2.4s ease-out; }
@keyframes ln-new { from { background: var(--tint); } to { background: transparent; } }
.stream[data-show="conn"] .ln:not([data-g="conn"]), .stream[data-show="sub"] .ln:not([data-g="sub"]), .stream[data-show="alert"] .ln:not(.alert) { display: none; }
/* HTTP 的流式日志：每分钟一行（次数下面一条横杠比长短）；上面一条小结，右上角挑接口 */
.log-pick select { max-width: 220px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 13px; font-weight: 400; color: var(--text); background: #fff; }
.log-sum { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 10px 22px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); background: #fbfcfd; }
.log-sum b { margin-right: 6px; font-weight: 600; color: var(--text); }
.stream .ln.min { align-items: flex-start; }
.stream .ln.min .t { padding-top: 2px; }
.stream .cnt { flex: none; width: 74px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stream .cnt b { font-size: 14px; color: var(--text); }
.stream .cnt .bar { display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: #eef1f5; overflow: hidden; }
.stream .cnt .bar i { display: block; height: 100%; border-radius: 2px; background: var(--primary); }
.stream .ln .sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.stream .ln.tight .quota-line { color: var(--primary-ink); font-weight: 600; }
.stream .ln.full .quota-line { color: var(--red); font-weight: 600; }
.stream .gap { padding: 3px 22px; font-size: 12px; text-align: center; color: #98a2b3; background: #fafbfc; border-bottom: 1px solid #f1f3f7; }
@media (max-width: 768px) {
  .conn-grid { grid-template-columns: 1fr; }
  .panel .conn-grid > div { grid-template-columns: 104px 1fr; }
  .stream .ln { flex-wrap: wrap; gap: 6px 10px; }
  .stream .ln .tx { flex-basis: 100%; }
}
.ok-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.ok-tag::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; background: #dcfce7; }

/* ---------- 进入视野时的动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1024px) {
  .hero-inner, .docs-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-inner { gap: 16px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .nav-contact-m { display: block; color: var(--primary-ink); font-weight: 600; }
  .nav-actions .nav-contact { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 70px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 22px; }
  .section { padding: 64px 0; }
  .section-head h2, .docs-text h2 { font-size: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta h2 { font-size: 28px; }
  pre { font-size: 12.5px; }
  .auth { padding: 40px 0 60px; }
  .auth-card { padding: 22px 18px; }
  .captcha { grid-template-columns: 1fr 96px; }
  .captcha button { grid-column: 1 / -1; justify-self: start; }
}
