/* ============================================================
   ietoken 官网 / 用户中心 统一样式
   视觉对标 tokease.cn（词易）：Ant Design 5.x 设计语言
   - 主色 #1677ff（Ant Design 默认蓝），非原靛蓝 #4f46e5
   - 文字 深蓝灰 #1f2937 / #364e6d，次级 #64748b
   - 字体 Inter + PingFang SC
   - 卡片小圆角(8px)、细边框、轻阴影，信息密度更高
   - 促销强调色 橙 #f97316 / 黄 #faad14
   - 支持深色模式：给 <html> 加 data-theme="dark"，由切换按钮持久化
   独立样式，不依赖 RuoYi 后台框架，不侵入 New-API 前端。
   ============================================================ */
:root {
  --brand: #1677ff;
  --brand-hover: #4096ff;
  --brand-active: #0958d9;
  --brand-bg: #f0f7ff;
  --brand-bg2: #e6f4ff;
  --ink: #1f2937;
  --ink-deep: #364e6d;
  --muted: #64748b;
  --line: #e8edf3;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --nav-bg: rgba(255, 255, 255, .95);
  --hero-bg: linear-gradient(180deg, #eaf3ff 0%, #f5f8fc 88%);
  --white: #fff;
  --ok: #16a34a;
  --warn: #faad14;
  --danger: #e5484d;
  --orange: #f97316;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(22, 55, 94, .06);
  --shadow-md: 0 8px 28px rgba(22, 55, 94, .10);
}

/* 深色主题：覆盖语义变量，所有组件统一跟随 */
html[data-theme="dark"] {
  --brand: #4096ff;
  --brand-hover: #69b1ff;
  --brand-active: #91caff;
  --brand-bg: rgba(64, 150, 255, .14);
  --brand-bg2: rgba(64, 150, 255, .22);
  --ink: #d6e0ee;
  --ink-deep: #eef4fc;
  --muted: #93a3b8;
  --line: #2b3a4f;
  --bg: #0d1522;
  --surface: #151f2f;
  --surface-2: #1c2839;
  --nav-bg: rgba(13, 21, 34, .92);
  --hero-bg: linear-gradient(180deg, #122034 0%, #0d1522 88%);
  --white: #151f2f;
  --shadow: 0 2px 12px rgba(0, 0, 0, .28);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .42);
}
html[data-theme="dark"] .pt-nav .links a { color: #b8c6d9; }
html[data-theme="dark"] .pt-hero { border-bottom-color: #22314a; }
html[data-theme="dark"] .pt-badge { border-color: #2b4a72; }
html[data-theme="dark"] .pt-hero p,
html[data-theme="dark"] .doc-body p,
html[data-theme="dark"] .doc-body li,
html[data-theme="dark"] .uc-side a { color: #aebdd0; }
html[data-theme="dark"] .card:hover { border-color: #35527a; }
html[data-theme="dark"] .form-control { border-color: #33445c; }
html[data-theme="dark"] .notice { background: #3a2e12; border-color: #6b531a; color: #ffd591; }
html[data-theme="dark"] .tag.ok { background: #143a29; color: #5ee0a0; }
html[data-theme="dark"] .tag.warn { background: #3d2f12; color: #ffc069; }
html[data-theme="dark"] .pt-table th { background: var(--surface-2); }
html[data-theme="dark"] .faq-a { color: #b9c8da; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* 主题切换按钮 */
.theme-toggle {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--muted); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; font-size: 16px; transition: .18s; padding: 0;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-bg); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* 顶部导航 */
.pt-nav {
  position: sticky; top: 0; z-index: 100; background: var(--nav-bg);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.pt-nav .container { display: flex; align-items: center; height: 64px; gap: 30px; }
.pt-logo { font-size: 20px; font-weight: 700; color: var(--ink-deep); display: flex; align-items: center; gap: 9px; letter-spacing: -.3px; }
.pt-logo:hover { color: var(--ink-deep); }
.pt-logo .dot { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg,#1677ff,#4096ff); display: inline-block; position: relative; }
.pt-logo .dot:after { content:""; position:absolute; left:7px; top:7px; width:8px; height:8px; border-radius:2px; background:#fff; }
.pt-nav .links { display: flex; gap: 22px; flex: 1; }
.pt-nav .links a { color: #475569; font-size: 14px; font-weight: 500; position: relative; padding: 21px 0; }
.pt-nav .links a:hover, .pt-nav .links a.active { color: var(--brand); }
.pt-nav .links a.active:after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--brand); border-radius:2px; }
.pt-nav .actions { display: flex; gap: 10px; align-items: center; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 6px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: .18s; line-height: 1.4;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(22,119,255,.22); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--brand); border-color: #91caff; }
.btn-outline:hover { background: var(--brand-bg); color: var(--brand); border-color: var(--brand); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Hero */
.pt-hero { padding: 92px 0 72px; text-align: center; background: var(--hero-bg); border-bottom: 1px solid #dbeafe; }
.pt-hero-sm { padding: 56px 0 44px; }
.pt-hero-sm h1 { font-size: 36px; }
.pt-hero h1 { font-size: 46px; line-height: 1.25; font-weight: 700; letter-spacing: -1px; margin-bottom: 20px; color: var(--ink-deep); }
.pt-hero h1 .accent { color: var(--brand); }
.pt-hero p { font-size: 17px; color: #55657a; max-width: 660px; margin: 0 auto 34px; }
.pt-hero .cta { display: flex; gap: 14px; justify-content: center; }
.pt-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--brand-bg2); color: var(--brand-active); font-size: 13px; font-weight: 500; margin-bottom: 24px; border: 1px solid #bae0ff; }

/* 通用区块 */
.pt-section { padding: 68px 0; }
.pt-section h2 { font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--ink-deep); }
.pt-section .sub { text-align: center; color: var(--muted); margin-bottom: 46px; font-size: 15px; }
.grid { display: grid; gap: 20px; }
.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(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s; }
.card:hover { box-shadow: var(--shadow-md); border-color: #c7ddf7; transform: translateY(-2px); }
.card h3 { font-size: 17px; margin-bottom: 10px; color: var(--ink-deep); font-weight: 600; }
.card p { color: var(--muted); font-size: 14px; }
.icon-badge { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-bg2); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 16px; }

/* 数据条 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card .value { font-size: 27px; font-weight: 700; margin-top: 4px; color: var(--ink-deep); }
.stat-card .value.accent { color: var(--brand); }

/* 定价卡 */
.price-card { position: relative; text-align: center; }
.price-card .amt { font-size: 38px; font-weight: 700; color: var(--ink-deep); }
.price-card .amt small { font-size: 15px; color: var(--muted); font-weight: 400; }
.price-card .quota { color: var(--brand); font-weight: 600; margin: 8px 0 18px; }
.price-card ul { list-style: none; text-align: left; margin: 18px 0; font-size: 14px; color: var(--muted); }
.price-card ul li { padding: 6px 0; }
.price-card ul li:before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.price-card.hot { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.price-card .hot-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 999px; font-weight: 500; }

/* 表单 */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px 24px;
  background: var(--hero-bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.auth-card h2 { text-align: center; margin-bottom: 8px; font-size: 24px; color: var(--ink-deep); }
.auth-card .tip { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--ink); }
.form-control { width: 100%; padding: 10px 13px; border: 1px solid #d5dde8; border-radius: 6px;
  font-size: 14px; outline: none; transition: .15s; font-family: inherit; background: var(--surface); color: var(--ink); }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.auth-card .foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* 文档 */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.doc-side { position: sticky; top: 90px; align-self: start; background: var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:10px; }
.doc-side a { display: block; padding: 9px 14px; color: var(--muted); border-radius: 6px; font-size: 14px; }
.doc-side a:hover, .doc-side a.active { background: var(--brand-bg2); color: var(--brand); font-weight: 500; }
.doc-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.doc-body h3 { margin: 26px 0 12px; font-size: 19px; color: var(--ink-deep); }
.doc-body h3:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: #526174; margin: 8px 0; font-size: 14px; }
.doc-body pre { background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: 8px;
  overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 14px 0; }
.doc-body code { background: var(--brand-bg2); color: var(--brand-active); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.doc-body pre code { background: none; color: inherit; padding: 0; }

/* 排行榜 */
.rank-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap; }
.rank-controls .rank-tabs { margin-bottom: 0; }
.rank-ranges { display: flex; gap: 6px; }
.rank-range { padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 13px; cursor: pointer; transition: .18s; }
.rank-range:hover { color: var(--brand); border-color: var(--brand); }
.rank-range.active { background: var(--brand-bg2); color: var(--brand); border-color: var(--brand); }
.rank-footnote { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }
.rank-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.rank-tab { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 14px; cursor: pointer; transition: .18s; }
.rank-tab:hover { color: var(--brand); border-color: var(--brand); }
.rank-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.rank-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.rank-panel h3 { padding: 18px 22px; font-size: 16px; color: var(--ink-deep); border-bottom: 1px solid var(--line); }
.rank-row { display: grid; grid-template-columns: 56px 1fr 130px 110px 90px; align-items: center;
  gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank-row:last-child { border-bottom: none; }
.rank-row.head { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; padding-top: 10px; padding-bottom: 10px; }
.rank-no { font-weight: 700; color: var(--muted); font-size: 15px; }
.rank-no.top1 { color: #f59e0b; } .rank-no.top2 { color: #94a3b8; } .rank-no.top3 { color: #d97706; }
.rank-model { font-weight: 600; color: var(--ink-deep); }
.rank-model .vendor { display: inline-block; font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 8px;
  background: var(--surface-2); padding: 2px 7px; border-radius: 4px; }
.share-cell { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.share-bar { height: 6px; border-radius: 999px; background: var(--brand-bg2); flex: 1; overflow: hidden; min-width: 44px; }
.share-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.rank-num { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.rank-delta { text-align: right; font-size: 12px; font-weight: 600; }
.rank-delta.up { color: var(--danger); }   /* 中国习惯：上升=红 */
.rank-delta.down { color: var(--ok); }     /* 下降=绿 */
.rank-empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* 模型广场（对标词易算力页） */
.mp-section { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mp-layout { display: grid; grid-template-columns: 208px 1fr; gap: 22px; align-items: start; }
.mp-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; position: sticky; top: 84px; }
.mp-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mp-side-head strong { font-size: 15px; color: var(--ink-deep); }
.mp-clear { background: none; border: none; color: var(--brand); font-size: 13px; cursor: pointer; padding: 0; }
.mp-clear:hover { text-decoration: underline; }
.mp-search { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--ink); font-size: 13px; outline: none; margin-bottom: 16px; font-family: inherit; }
.mp-search:focus { border-color: var(--brand); }
.mp-group { margin-bottom: 16px; }
.mp-group-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.mp-facets { display: flex; flex-wrap: wrap; gap: 5px; }
.mp-facet { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 1px solid var(--line);
  border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; transition: .15s; }
.mp-facet:hover { border-color: var(--brand); color: var(--brand); }
.mp-facet.active { background: var(--brand-bg2); border-color: var(--brand); color: var(--brand); }
.mp-facet-num { font-size: 10px; color: var(--muted); opacity: .8; }
.mp-facet.active .mp-facet-num { color: var(--brand); }
.mp-main { min-width: 0; }
.mp-toolbar { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.mp-toolbar strong { color: var(--brand); }
.mp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; min-width: 0; transition: .18s; }
.mp-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mp-card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.mp-avatar { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; color: #fff; font-size: 12px;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.mp-model-name { font-size: 13px; font-weight: 600; color: var(--ink-deep); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.mp-copy { font-size: 10px; color: var(--muted); cursor: pointer; flex: 0 0 auto; }
.mp-copy:hover { color: var(--brand); }
.mp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; align-items: center; }
.mp-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--brand-bg2); color: var(--brand-active); }
.mp-tag.hot { background: #fff1f0; color: #cf1322; }
html[data-theme="dark"] .mp-tag.hot { background: #4a1c1c; color: #ffa39e; }
.mp-price { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #fff7e6; color: #d46b08; margin-left: auto; }
html[data-theme="dark"] .mp-price { background: #3d2f12; color: #ffc069; }
.mp-meta { display: flex; gap: 5px; font-size: 11px; color: var(--muted); margin-bottom: 7px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; }
.mp-desc { font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 33px; }
.mp-card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line);
  padding-top: 9px; }
.mp-supplier { font-size: 10px; color: var(--muted); }
.mp-detail { font-size: 11px; color: var(--brand); }
.mp-detail:hover { text-decoration: underline; }
.mp-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--muted); font-size: 14px; }
.mp-more { display: block; margin: 22px auto 0; padding: 9px 20px; border: 1px solid var(--brand); background: var(--surface);
  color: var(--brand); border-radius: 6px; font-size: 13px; cursor: pointer; }
.mp-more:hover { background: var(--brand-bg); }

/* FAQ */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q { padding: 17px 22px; font-weight: 600; font-size: 15px; color: var(--ink-deep); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; list-style: none; user-select: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:after { content: "+"; font-size: 20px; color: var(--brand); font-weight: 400; }
.faq-item[open] .faq-q:after { content: "−"; }
.faq-a { padding: 0 22px 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.faq-a code { background: var(--brand-bg2); color: var(--brand-active); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.faq-cat { font-size: 13px; color: var(--brand); font-weight: 600; margin: 30px 0 12px; }

/* 用户中心 */
.uc-layout { display: grid; grid-template-columns: 224px 1fr; gap: 26px; align-items: start; padding: 30px 0 70px; }
.uc-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; position: sticky; top: 90px; }
.uc-brand { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .5px;
  padding: 8px 14px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.uc-side a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: #526174;
  border-radius: 6px; font-size: 14px; margin-bottom: 3px; font-weight: 500; }
.uc-side a:hover, .uc-side a.active { background: var(--brand-bg2); color: var(--brand); font-weight: 600; }
.uc-main h2 { font-size: 22px; margin-bottom: 20px; color: var(--ink-deep); }
.notice { background: #fffbeb; border: 1px solid #ffe58f; color: #ad6800;
  padding: 13px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
table.pt-table { width: 100%; border-collapse: collapse; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-size: 14px; box-shadow: var(--shadow); }
.pt-table th, .pt-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.pt-table th { background: #f7f9fc; color: var(--muted); font-weight: 600; }
.pt-table tr:last-child td { border-bottom: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; background: var(--brand-bg2); color: var(--brand-active); }
.tag.ok { background: #e8f7ee; color: #15a05a; }
.tag.warn { background: #fff7e6; color: #d48806; }

/* 页脚 */
.pt-footer { border-top: 1px solid var(--line); padding: 32px 0; text-align: center; color: var(--muted); font-size: 13px; background: var(--surface); }
.pt-footer .links-inline { display:flex; gap:20px; justify-content:center; margin-top:8px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .mp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mp-layout { grid-template-columns: 1fr; }
  .mp-side { position: static; }
  .mp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-4, .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .uc-layout, .doc-layout { grid-template-columns: 1fr; }
  .uc-side, .doc-side { position: static; }
  .pt-hero h1 { font-size: 32px; }
  .rank-row { grid-template-columns: 40px 1fr 90px; }
  .rank-row .rank-num, .rank-row .rank-delta { display: none; }
}

/* ============================================================
   首页 1:1 对标 tokease.cn
   固定毛玻璃导航 + 深色轮播横幅 + 300px 筛选栏 + 三列价格卡片 + 四栏页脚
   仅首页使用 body.home-page 作用域，不影响其他官网页面与用户中心。
   ============================================================ */
.home-page { background: #f6f7f9; }
.home-page .container { max-width: none; padding: 0 16px; }
.tk-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* 顶部导航：56px、半透明毛玻璃、圆形注册按钮 */
.tk-header {
  position: sticky; top: 0; z-index: 100; height: 56px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e6eb;
}
.home-page .pt-nav { display: none; }
.tk-nav { height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.tk-brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: #1d2129; }
.tk-brand:hover { color: #1d2129; }
.tk-logo { height: 30px; width: auto; flex: 0 0 auto; display: block; }
.pt-logo-img { height: 24px; width: auto; display: inline-block; vertical-align: -5px; margin-right: 2px; }
/* 深色模式下 logo 深蓝文字需白色衬底保证可读 */
html[data-theme="dark"] .tk-logo, html[data-theme="dark"] .pt-logo-img,
html[data-theme="dark"] .pt-logo .pt-logo-img {
  background: #fff; border-radius: 6px; padding: 3px; box-sizing: content-box; height: 26px; }
html[data-theme="dark"] .tk-logo { height: 26px; }
.tk-brand-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.tk-nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tk-nav-links a { font-size: 14px; font-weight: 500; color: #4e5969; padding: 7px 10px; border-radius: 6px; white-space: nowrap; }
.tk-nav-links a:hover { background: #f2f3f5; color: #1d2129; }
.tk-nav-links a.active { background: #f2f3f5; color: #1d2129; font-weight: 600; }
.tk-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.tk-icon-btn { width: 34px; height: 34px; border: none; border-radius: 50%; background: #f2f3f5; color: #4e5969;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: .18s; }
.tk-icon-btn:hover { background: #e5e6eb; color: #1677ff; }
.tk-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.tk-login { font-size: 13px; color: #4e5969; padding: 7px 8px; border-radius: 999px; }
.tk-login:hover { background: #f2f3f5; color: #1d2129; }
.tk-register { font-size: 13px; color: #fff; background: #1677ff; padding: 7px 17px; border-radius: 999px; font-weight: 500; }
.tk-register:hover { background: #4096ff; color: #fff; }

/* 深色轮播横幅：轮播帧来自数据库，无图时仅渐变底 + 指示点 */
.tk-banner { height: 225px; position: relative; overflow: hidden; background: #111827; }
.tk-slides, .tk-slide { position: absolute; inset: 0; }
.tk-slide { display: block; background-size: cover; background-position: center; opacity: 0;
  transition: opacity .5s ease; pointer-events: none; }
.tk-slide.active { opacity: 1; pointer-events: auto; }
/* 轮播文字层：标题 + CTA，位于左侧渐变衬底上（覆盖层 :before/:after 为 z-index:1） */
.tk-slide-body { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 62%;
  padding: 16px 22px 16px 0; }
.tk-slide-title { font-size: 26px; font-weight: 700; line-height: 1.35; color: #fff; letter-spacing: .3px;
  text-shadow: 0 2px 16px rgba(2,8,20,.65), 0 1px 3px rgba(2,8,20,.4); }
.tk-slide-cta { font-size: 13px; font-weight: 600; color: #fff; padding: 7px 16px; border-radius: 999px;
  background: rgba(22,119,255,.9); box-shadow: 0 6px 18px rgba(22,119,255,.38);
  transition: background .2s ease, transform .2s ease; }
.tk-slide:hover .tk-slide-cta { background: rgba(22,119,255,1); transform: translateX(2px); }
.tk-banner:before { content:""; position:absolute; inset:0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,8,20,.62), rgba(2,8,20,.30) 36%, transparent 62%),
    radial-gradient(ellipse at 18% 10%, rgba(59,130,246,.20), transparent 42%),
    radial-gradient(ellipse at 82% 30%, rgba(99,102,241,.16), transparent 40%),
    linear-gradient(115deg, rgba(255,255,255,.035) 0%, transparent 35%, rgba(255,255,255,.02) 70%, transparent);
}
.tk-banner:after { content:""; position:absolute; inset:0; z-index: 1; opacity:.22;
  background-image: linear-gradient(rgba(148,163,184,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.12) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(to bottom, transparent, #000 60%);
}
.tk-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.62); box-shadow: 0 8px 22px rgba(15,23,42,.14); backdrop-filter: blur(14px); }
.tk-dot { width: 12px; height: 12px; border-radius: 999px; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), 0 2px 7px rgba(15,23,42,.12); }
.tk-dot.active { width: 32px; background: #f59e0b; box-shadow: 0 2px 8px rgba(245,158,11,.45); }

/* 系统公告条（数据来自 iet_portal_notice，无公告时不渲染） */
.tk-notice { display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  background: #fff; border-bottom: 1px solid rgba(15,23,42,.06); font-size: 12px; color: #4e5969; }
.tk-notice-label { flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; font-weight: 600;
  color: #1677ff; background: rgba(22,119,255,.08); }
.tk-notice-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="dark"] .tk-notice { background: rgba(255,255,255,.04); border-bottom-color: rgba(255,255,255,.06); color: #93a3b8; }
html[data-theme="dark"] .tk-notice-label { color: #91caff; background: rgba(64,150,255,.12); }

/* 主体：左侧筛选 + 右侧模型卡片 */
.tk-catalog { padding: 16px; min-height: 420px; }
.tk-layout { display: flex; align-items: flex-start; gap: 16px; width: 100%; }
.tk-sidebar { width: 300px; min-width: 300px; max-width: 300px; align-self: flex-start;
  max-height: calc(100vh - 72px); position: sticky; top: 72px; overflow-y: auto; scrollbar-width: none; }
.tk-sidebar::-webkit-scrollbar { display: none; }
.tk-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tk-side-head strong { font-size: 18px; font-weight: 600; color: #1d2129; }
.tk-reset { border: none; background: none; color: #86909c; font-size: 14px; cursor: pointer; padding: 4px 0; }
.tk-reset:hover { color: #1677ff; }
.tk-side-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tk-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border-radius: 8px;
  border: 1px solid rgba(37,99,235,.2); background: rgba(37,99,235,.06); color: #1677ff; transition: .18s; }
.tk-search:hover { border-color: rgba(37,99,235,.32); background: rgba(37,99,235,.08); }
.tk-search:focus-within { border-color: rgba(37,99,235,.45); background: rgba(37,99,235,.1); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
.tk-search svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.tk-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: #1d2129; font-size: 13px; font-family: inherit; }
.tk-search input::placeholder { color: #94a3b8; }
.tk-select { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border-radius: 8px;
  border: 1px solid rgba(37,99,235,.2); background: rgba(37,99,235,.06); color: #1677ff; font-size: 13px; font-weight: 700; }
.tk-select span { flex: 0 0 auto; }
.tk-select select { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: #1d2129; font-size: 13px; text-align: right; font-family: inherit; cursor: pointer; }
.tk-filter-group { margin-bottom: 14px; }
.tk-filter-title { font-size: 14px; font-weight: 500; color: #1d2129; margin-bottom: 10px; }
.tk-facets { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-facet { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px;
  border: 1px solid #e5e6eb; background: #fff; color: #4e5969; font-size: 12px; line-height: 1.25; cursor: pointer; transition: .15s; }
.tk-facet:hover { border-color: #1677ff; color: #1677ff; }
.tk-facet.active { background: rgba(22,119,255,.1); border-color: #1677ff; color: #1677ff; font-weight: 600; }
.tk-facet-num { font-size: 11px; color: #86909c; }
.tk-facet.active .tk-facet-num { color: #1677ff; }
.tk-content { flex: 1; min-width: 0; }
.tk-toolbar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 12px; font-size: 12px; color: #86909c; }
.tk-toolbar strong { color: #1677ff; }
.tk-sort { display: inline-flex; align-items: center; gap: 6px; }
.tk-sort select { border: 1px solid #e5e6eb; border-radius: 6px; background: #fff; color: #4e5969; font-size: 12px; padding: 4px 8px; font-family: inherit; cursor: pointer; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; align-items: stretch; }
.tk-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: #86909c; font-size: 14px; }

/* 模型卡片：48px 厂商头像 + 元信息胶囊 + 玻璃拟态价格表 */
.tk-card { position: relative; isolation: isolate; overflow: hidden; min-height: 278px; border-radius: 10px;
  border: 1px solid rgba(59,130,246,.1); padding: 16px; cursor: pointer; transition: .2s;
  background:
    radial-gradient(circle at 12% 0%, rgba(14,165,233,.07), transparent 42%),
    radial-gradient(circle at 98% 18%, rgba(99,102,241,.055), transparent 38%),
    radial-gradient(circle at 70% 112%, rgba(45,212,191,.06), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,250,252,.86));
}
.tk-card:nth-child(4n+2) { background: radial-gradient(circle at 12% 0%, rgba(168,85,247,.06), transparent 42%), radial-gradient(circle at 98% 18%, rgba(14,165,233,.07), transparent 38%), linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,250,252,.86)); }
.tk-card:nth-child(4n+3) { background: radial-gradient(circle at 12% 0%, rgba(45,212,191,.07), transparent 42%), radial-gradient(circle at 98% 18%, rgba(59,130,246,.06), transparent 38%), linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,250,252,.86)); }
.tk-card:hover { border-color: rgba(37,99,235,.34); box-shadow: 0 14px 34px rgba(37,99,235,.14); transform: translateY(-2px); }
.tk-card-body { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.tk-card-head { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: start; }
.tk-avatar { width: 48px; height: 48px; border-radius: 12px; color: #fff; font-size: 20px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.8); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.tk-card-title { font-size: 18px; font-weight: 700; line-height: 1.2; color: #1d2129; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-copy { color: #86909c; font-size: 11px; cursor: pointer; flex: 0 0 auto; }
.tk-copy:hover { color: #1677ff; }
.tk-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; overflow: hidden; white-space: nowrap; }
.tk-route { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #4e5969; border: 1px solid #e5e6eb;
  border-radius: 6px; background: rgba(255,255,255,.8); padding: 2px 7px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.tk-route i { font-style: normal; color: #c9cdd4; }
.tk-discount { flex: 0 0 auto; height: 24px; line-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 900;
  color: #fff; background: linear-gradient(135deg, #f97316, #ef4444); }
.tk-pill { flex: 0 0 auto; height: 24px; line-height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #fff; }
.tk-pill.time { border: 1px solid rgba(99,102,241,.32); background: linear-gradient(135deg, #06b6d4, #3b82f6 48%, #8b5cf6); }
.tk-pill.hot { border: 1px solid rgba(251,191,36,.36); background: linear-gradient(135deg, #fbbf24, #f97316 48%, #ef4444); }
.tk-price { margin-top: 12px; border: 1px solid rgba(59,130,246,.18); border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,.7); backdrop-filter: blur(14px) saturate(155%); box-shadow: inset 0 1px 0 rgba(255,255,255,.78); }
.tk-price-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: center; font-size: 11px; }
.tk-price-row > div { min-width: 0; padding: 5px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-price-row.head { background: rgba(255,255,255,.52); color: #64748b; border-bottom: 1px solid rgba(59,130,246,.12); font-weight: 600; }
.tk-price-row.head div:nth-child(2), .tk-price-row.head div:nth-child(3) { text-align: right; }
.tk-price-row.head div:nth-child(4) { text-align: center; }
.tk-price-row:not(.head) { background: rgba(255,255,255,.34); border-bottom: 1px solid rgba(59,130,246,.1); color: #1e293b; }
.tk-price-row:last-child { border-bottom: none; }
.tk-price-row .tk-price-name { font-weight: 600; }
.tk-price-row .tk-price-name.in { color: #1677ff; }
.tk-price-row .tk-price-name.out { color: #722ed1; }
.tk-price-row .tk-price-name.cache { color: #0891b2; }
.tk-price-row .num { text-align: right; font-weight: 700; color: #2563eb; }
.tk-price-row .old { text-align: right; color: #94a3b8; text-decoration: line-through; font-weight: 500; }
.tk-price-row .disc { text-align: center; color: #e74c3c; font-weight: 700; }
.tk-desc { margin-top: 10px; font-size: 11px; line-height: 1.5; color: #64748b; min-height: 33px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.tk-bottom-tags { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.tk-bottom-tag { flex: 0 0 auto; max-width: 90px; padding: 3px 8px; border-radius: 5px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-bottom-tag.billing { background: rgba(114,46,209,.1); color: #722ed1; }
.tk-bottom-tag.kind { background: rgba(249,115,22,.12); color: #d46b08; }
.tk-detail { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #1677ff; }
.tk-detail:hover { text-decoration: underline; }

/* 分页 */
.tk-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 24px 0 40px; flex-wrap: wrap; font-size: 12px; color: #4e5969; }
.tk-page-btn { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 6px; border: 1px solid #e5e6eb; background: #fff; color: #4e5969; cursor: pointer; }
.tk-page-btn:hover:not(:disabled) { border-color: #1677ff; color: #1677ff; }
.tk-page-btn.active { background: #1677ff; border-color: #1677ff; color: #fff; font-weight: 700; }
.tk-page-btn:disabled { opacity: .45; cursor: not-allowed; }
.tk-pager input { width: 44px; height: 30px; border: 1px solid #e5e6eb; border-radius: 6px; text-align: center; color: #4e5969; font-family: inherit; }

/* 页脚四栏价值点 */
.tk-values { background: #fff; border-top: 1px solid #e5e6eb; padding: 34px 16px; }
.tk-values-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.tk-value h3 { font-size: 20px; font-weight: 600; line-height: 1.4; color: #1d2129; margin-bottom: 8px; }
.tk-value p { font-size: 13px; line-height: 1.7; color: #86909c; }
.tk-footer { background: #fff; border-top: 1px solid #e5e6eb; padding: 24px 16px; text-align: center; color: #86909c; font-size: 12px; }
.tk-footer-links { display: flex; justify-content: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.tk-footer-links a { color: #86909c; }
.tk-footer-links a:hover { color: #1677ff; }

/* 深色模式 */
html[data-theme="dark"] .home-page { background: #0d1522; }
html[data-theme="dark"] .tk-header { background: rgba(24,24,27,.82); border-color: #2b3a4f; }
html[data-theme="dark"] .tk-brand, html[data-theme="dark"] .tk-brand:hover { color: #e6edf6; }
html[data-theme="dark"] .tk-nav-links a { color: #b8c6d9; }
html[data-theme="dark"] .tk-nav-links a:hover, html[data-theme="dark"] .tk-nav-links a.active { background: #1c2839; color: #fff; }
html[data-theme="dark"] .tk-icon-btn, html[data-theme="dark"] .tk-login { background: #1c2839; color: #b8c6d9; }
html[data-theme="dark"] .tk-icon-btn:hover, html[data-theme="dark"] .tk-login:hover { background: #25344a; color: #69b1ff; }
html[data-theme="dark"] .tk-side-head strong, html[data-theme="dark"] .tk-filter-title,
html[data-theme="dark"] .tk-card-title, html[data-theme="dark"] .tk-value h3 { color: #e6edf6; }
html[data-theme="dark"] .tk-facet, html[data-theme="dark"] .tk-route, html[data-theme="dark"] .tk-select select,
html[data-theme="dark"] .tk-sort select, html[data-theme="dark"] .tk-page-btn { background: #151f2f; border-color: #2b3a4f; color: #b8c6d9; }
html[data-theme="dark"] .tk-facet.active { background: rgba(64,150,255,.16); border-color: #4096ff; color: #91caff; }
html[data-theme="dark"] .tk-search { border-color: rgba(96,165,250,.24); background: rgba(96,165,250,.1); color: #60a5fa; }
html[data-theme="dark"] .tk-search input { color: #e6edf6; }
html[data-theme="dark"] .tk-select { border-color: rgba(96,165,250,.24); background: rgba(96,165,250,.1); color: #60a5fa; }
html[data-theme="dark"] .tk-card {
  border-color: rgba(96,165,250,.18);
  background: linear-gradient(135deg, rgba(21,31,47,.96), rgba(28,40,57,.88));
}
html[data-theme="dark"] .tk-card:hover { border-color: rgba(96,165,250,.5); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
html[data-theme="dark"] .tk-price { background: rgba(13,21,34,.7); border-color: rgba(96,165,250,.22); }
html[data-theme="dark"] .tk-price-row.head { background: rgba(96,165,250,.08); color: #93a3b8; border-color: rgba(96,165,250,.16); }
html[data-theme="dark"] .tk-price-row:not(.head) { background: rgba(96,165,250,.04); color: #d6e0ee; }
html[data-theme="dark"] .tk-price-row .num { color: #91caff; }
html[data-theme="dark"] .tk-desc, html[data-theme="dark"] .tk-value p, html[data-theme="dark"] .tk-footer { color: #93a3b8; }
html[data-theme="dark"] .tk-values, html[data-theme="dark"] .tk-footer { background: #0f1826; border-color: #2b3a4f; }
html[data-theme="dark"] .tk-bottom-tag.billing { background: rgba(114,46,209,.2); color: #c9a7ff; }
html[data-theme="dark"] .tk-bottom-tag.kind { background: rgba(249,115,22,.18); color: #ffc069; }

@media (max-width: 1180px) {
  .tk-brand-name { max-width: 190px; }
  .tk-nav-links a { padding: 7px 7px; }
}
@media (max-width: 980px) {
  .tk-nav-links { display: none; }
  .tk-register { padding: 7px 13px; }
  .tk-sidebar { width: 260px; min-width: 260px; max-width: 260px; }
}
@media (max-width: 860px) {
  .tk-layout { flex-direction: column; }
  .tk-toolbar { display: flex; }
  .tk-sidebar { position: static; width: 100%; min-width: 100%; max-width: 100%; max-height: none; }
  .tk-grid { grid-template-columns: 1fr; }
  .tk-values-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tk-banner { height: 160px; }
  .tk-slide-body { left: 28px; }
  .tk-slide-title { font-size: 20px; }
}
@media (max-width: 520px) {
  .tk-brand-name { max-width: 140px; font-size: 13px; }
  .tk-login, .tk-icon-btn[title="公告"] { display: none; }
  .tk-values-grid { grid-template-columns: 1fr; }
  .tk-slide-body { left: 18px; max-width: 80%; gap: 8px; }
  .tk-slide-title { font-size: 16px; }
  .tk-slide-cta { font-size: 12px; padding: 5px 12px; }
}

/* ============================================================
   模型详情右侧抽屉（对标 tokease 点击「详情」后的侧边层）
   左侧渠道/价格/指标，右侧 API 文档 + 三步接入 + 分时定价，
   另有「基本信息」标签页。
   ============================================================ */
.tk-drawer-mask { position: fixed; inset: 0; z-index: 190; background: rgba(15,23,42,.42);
  opacity: 0; visibility: hidden; transition: opacity .24s, visibility .24s; }
.tk-drawer-mask.show { opacity: 1; visibility: visible; }
.tk-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(1024px, 72vw);
  background: #f6f7f9; box-shadow: -12px 0 40px rgba(15,23,42,.18); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease; }
.tk-drawer.show { transform: translateX(0); }
body.tk-drawer-open { overflow: hidden; }
.tk-drawer-head { height: 56px; flex: 0 0 56px; display: flex; align-items: center; gap: 24px;
  padding: 0 18px; background: #fff; border-bottom: 1px solid #e5e6eb; }
.tk-drawer-title { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 15px; font-weight: 600; color: #1d2129; }
.tk-drawer-title span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-drawer-logo { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: linear-gradient(135deg,#1677ff,#69b1ff); }
.tk-drawer-tabs { display: flex; gap: 20px; align-items: center; height: 100%; margin-left: auto; }
.tk-drawer-tab { position: relative; height: 100%; padding: 0 2px; border: none; background: none;
  font-size: 13px; color: #86909c; cursor: pointer; }
.tk-drawer-tab.active { color: #1677ff; font-weight: 600; }
.tk-drawer-tab.active:after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:#1677ff; }
.tk-drawer-close { border: none; background: none; color: #86909c; font-size: 24px; line-height: 1; padding: 0 4px; cursor: pointer; }
.tk-drawer-close:hover { color: #1d2129; }
.tk-drawer-pane { flex: 1; overflow-y: auto; padding: 14px; }
.tk-drawer-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; align-items: start; }
.tk-drawer-left, .tk-drawer-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tk-channel { border: 1px solid #e5e6eb; border-radius: 10px; background: #fff; padding: 14px; transition: .18s; }
.tk-channel:hover { border-color: #91caff; }
.tk-channel.selected { border: 1px dashed #1677ff; background: #f8fbff; }
.tk-channel-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tk-channel-route { font-size: 13px; font-weight: 600; color: #1d2129; }
.tk-channel-route i { font-style: normal; color: #c9cdd4; margin: 0 2px; }
.tk-channel-discount { font-size: 12px; font-weight: 800; color: #e74c3c; background: rgba(231,76,60,.1); padding: 3px 8px; border-radius: 5px; }
.tk-channel-doc { margin-left: auto; font-size: 12px; color: #1677ff; cursor: pointer; }
.tk-channel-note { font-size: 12px; line-height: 1.6; color: #86909c; margin-bottom: 10px; }
.tk-channel-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tk-quality { font-size: 11px; padding: 2px 7px; border-radius: 4px; background: #f2f3f5; color: #4e5969; }
.tk-quality.a { background: #e8ffea; color: #00a870; }
.tk-quality.b { background: #e8f3ff; color: #1677ff; }
.tk-quality.c { background: #fff7e8; color: #d46b08; }
.tk-mini-pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#06b6d4,#8b5cf6); }
.tk-mini-pill.hot { background: linear-gradient(135deg,#fbbf24,#f97316,#ef4444); }
.tk-channel-price { border: 1px solid #e5e6eb; border-radius: 8px; overflow: hidden; }
.tk-channel-price .tk-price-row { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tk-channel-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; text-align: center; }
.tk-channel-stat { background: #f7f9fc; border-radius: 6px; padding: 8px 4px; }
.tk-channel-stat b { display: block; font-size: 13px; color: #1d2129; }
.tk-channel-stat span { display: block; font-size: 11px; color: #86909c; margin-top: 2px; }
.tk-guide-card { background: #fff; border: 1px solid #e5e6eb; border-radius: 10px; padding: 14px; }
.tk-guide-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tk-guide-head h4 { font-size: 14px; font-weight: 600; color: #1d2129; }
.tk-guide-head .tk-view { margin-left: auto; font-size: 12px; color: #1677ff; }
.tk-step-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700;
  color: #1677ff; background: #e8f3ff; border-radius: 999px; padding: 4px 10px; }
.tk-step-title { font-size: 14px; font-weight: 600; color: #1d2129; margin-bottom: 4px; }
.tk-step-desc { font-size: 12px; line-height: 1.6; color: #86909c; margin-bottom: 10px; }
.tk-code-row { display: flex; align-items: center; gap: 8px; border: 1px solid #e5e6eb; border-radius: 7px;
  background: #f7f9fc; padding: 8px 10px; margin-bottom: 8px; }
.tk-code-row .tk-code-label { flex: 0 0 auto; font-size: 11px; color: #86909c; }
.tk-code-row code { flex: 1; min-width: 0; font-size: 12px; color: #1d2129; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.tk-copy-mini { flex: 0 0 auto; font-size: 11px; color: #1677ff; border: 1px solid #91caff; background: #fff;
  border-radius: 5px; padding: 3px 8px; cursor: pointer; }
.tk-login-btn { display: inline-block; font-size: 12px; color: #fff; background: #1677ff; border-radius: 6px; padding: 7px 14px; }
.tk-basic-box { background: #fff; border: 1px solid #e5e6eb; border-radius: 10px; padding: 24px; max-width: 760px; }
.tk-basic-box h3 { font-size: 16px; font-weight: 600; color: #1d2129; margin-bottom: 6px; }
.tk-basic-box .tk-basic-sub { font-size: 13px; color: #86909c; margin-bottom: 18px; }
.tk-basic-box p { font-size: 14px; line-height: 1.8; color: #4e5969; margin-bottom: 16px; }
html[data-theme="dark"] .tk-drawer { background: #0d1522; box-shadow: -12px 0 40px rgba(0,0,0,.5); }
html[data-theme="dark"] .tk-drawer-head, html[data-theme="dark"] .tk-channel,
html[data-theme="dark"] .tk-guide-card, html[data-theme="dark"] .tk-basic-box { background: #151f2f; border-color: #2b3a4f; }
html[data-theme="dark"] .tk-drawer-title, html[data-theme="dark"] .tk-channel-route,
html[data-theme="dark"] .tk-guide-head h4, html[data-theme="dark"] .tk-step-title,
html[data-theme="dark"] .tk-basic-box h3 { color: #e6edf6; }
html[data-theme="dark"] .tk-drawer-tab { color: #93a3b8; }
html[data-theme="dark"] .tk-drawer-tab.active { color: #91caff; }
html[data-theme="dark"] .tk-drawer-tab.active:after { background: #4096ff; }
html[data-theme="dark"] .tk-channel.selected { background: #122239; border-color: #4096ff; }
html[data-theme="dark"] .tk-channel-stat, html[data-theme="dark"] .tk-code-row { background: #1c2839; border-color: #2b3a4f; }
html[data-theme="dark"] .tk-channel-stat b, html[data-theme="dark"] .tk-code-row code { color: #d6e0ee; }
html[data-theme="dark"] .tk-channel-note, html[data-theme="dark"] .tk-step-desc,
html[data-theme="dark"] .tk-basic-box p, html[data-theme="dark"] .tk-basic-box .tk-basic-sub { color: #93a3b8; }
html[data-theme="dark"] .tk-step-badge { background: rgba(64,150,255,.16); color: #91caff; }
html[data-theme="dark"] .tk-channel-price { border-color: #2b3a4f; }
@media (max-width: 1080px) {
  .tk-drawer { width: 88vw; }
  .tk-drawer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .tk-drawer { width: 100vw; }
  .tk-drawer-tabs { gap: 12px; }
  .tk-drawer-title { font-size: 13px; }
}

/* ===== iframe 嵌入态（New-API 控制台首页整页嵌入门户） ===== */
html.tk-in-frame .tk-header { display: none; }
html.tk-in-frame .tk-footer { display: none; }
html.tk-in-frame body { padding-top: 0; }
