/* 站外独立访问顶栏 / 转化栏 / 页脚；嵌入 Sub2API iframe 时由 html.in-iframe 首帧隐藏，零 CLS */
.in-iframe .bik-shell-hd,
.in-iframe .bik-shell-cta,
.in-iframe .bik-shell-ft { display: none !important; }
/* 控制台 iframe 内用户已在控制台，隐藏指向控制台的外链样式避免误点触发 X-Frame-Options 拒绝连接 */
.in-iframe a[href^="https://api.bikapi.net"] { pointer-events: none; text-decoration: none; color: inherit !important; }

.bik-shell-hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 254, 250, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #dce3d6;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1b231a;
}
.bik-shell-hd * { box-sizing: border-box; }
.bik-shell-hd a { text-decoration: none; color: inherit; }
.bik-shell-in {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; min-height: 66px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.bik-shell-brand {
  justify-self: start; display: inline-flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
}
.bik-shell-brand img {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid #e4e9df; background: #fff; object-fit: contain; flex: none;
}
.bik-shell-cn { font-size: 18px; font-weight: 800; padding-left: 9px; border-left: 1.5px solid #cbd5c4; }
.bik-shell-nav { display: flex; align-items: center; gap: 22px; }
.bik-shell-nav a {
  color: #5a6659; font-size: 15px; font-weight: 500; padding: 4px 2px;
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.bik-shell-nav a:hover { color: #1b231a; }
.bik-shell-nav a.on { color: #2b5b2a; font-weight: 700; border-bottom-color: #95d55c; }
.bik-shell-act { justify-self: end; display: flex; align-items: center; gap: 14px; }
.bik-shell-login { color: #5a6659; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bik-shell-login:hover { color: #1b231a; }
.bik-shell-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 15px; border-radius: 8px;
  background: #a8ed68; border: 1px solid #95d55c; color: #192911 !important;
  font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .15s;
}
.bik-shell-btn:hover { background: #baf487; }

.bik-shell-cta {
  width: min(980px, calc(100% - 40px)); margin: 0 auto 28px;
  background: linear-gradient(180deg, #eff8e4 0%, #fff 100%);
  border: 1px solid #c9e3b1; border-radius: 16px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.bik-shell-cta b { display: block; font-size: 19px; color: #1b231a; }
.bik-shell-cta span { display: block; margin-top: 4px; font-size: 14px; color: #5a6659; }
.bik-shell-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bik-shell-cta a { text-decoration: none; }
.bik-shell-btn-lg { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 9px; }
.bik-shell-btn-out {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 16px; border-radius: 9px;
  background: #fff; border: 1px solid #ccd6c7; color: #1b231a !important;
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.bik-shell-btn-out:hover { background: #edf3e9; }

.bik-shell-ft {
  border-top: 1px solid #dce3d6; background: #fdfefa; padding: 24px 0 32px;
  color: #5a6659; font-size: 14px;
}
.bik-shell-ft-in {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.bik-shell-ft-links { display: flex; flex-wrap: wrap; gap: 18px; }
.bik-shell-ft-links a { color: #5a6659; text-decoration: none; font-weight: 500; }
.bik-shell-ft-links a:hover { color: #1b231a; }

/* 教程顶部快速参数卡（GEO / 小白速查） */
.tldr-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; background: #fcfdfb; border: 1px solid #dce3d6; border-radius: 10px; overflow: hidden; }
.tldr-table th, .tldr-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid #e6ece1; vertical-align: top; }
.tldr-table tr:last-child th, .tldr-table tr:last-child td { border-bottom: 0; }
.tldr-table th { width: 148px; color: #5a6659; font-weight: 600; background: #f4f7f0; white-space: nowrap; }
.tldr-table td { color: #1b231a; }

@media (max-width: 860px) {
  .bik-shell-in { grid-template-columns: 1fr auto; gap: 12px; }
  .bik-shell-nav { grid-column: 1 / -1; order: 3; padding: 8px 0 12px; border-top: 1px solid #eef2ea; gap: 16px; overflow-x: auto; }
  .bik-shell-cn { font-size: 16px; }
  .bik-shell-cta { padding: 20px 18px; }
}
@media (max-width: 640px) {
  .tldr-table th { width: 112px; padding: 8px 10px; }
  .tldr-table td { padding: 8px 10px; }
}
