/* iOS多开工具箱 — 客户端 UI */
:root {
  --tb-brand: #6366f1;
  --tb-brand-2: #0ea5e9;
  --tb-ink: #0f172a;
  --tb-muted: #64748b;
  --tb-line: #e2e8f0;
  --tb-card: #ffffff;
  --tb-radius: 20px;
  --tb-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  --tb-max: 720px;
}

body.toolbox-client {
  background: #f5f6f8;
  -webkit-font-smoothing: antialiased;
}

body.toolbox-client .site-main {
  width: min(var(--tb-max), calc(100% - 24px));
  padding-top: 12px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.toolbox-client .site-main {
    --tb-max: 960px;
    padding-top: 20px;
    padding-bottom: 40px;
  }
}

/* ── Header ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}
.app-header-inner {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--tb-ink);
  letter-spacing: -0.02em;
}
.brand span,
.brand-url {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-brand);
  letter-spacing: 0.02em;
}

body.toolbox-client {
  background:
    radial-gradient(ellipse 70% 40% at 50% -5%, rgba(99, 102, 241, 0.12), transparent 50%),
    #f2f2f7;
}

body.toolbox-client .site-main {
  padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.toolbox-client .site-main {
    padding-bottom: 120px;
  }
}
.app-nav-desktop {
  display: none;
  align-items: center;
  gap: 2px;
}
.app-nav-desktop button {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.app-nav-desktop button.active {
  background: #eef2ff;
  color: var(--tb-brand);
}

@media (min-width: 768px) {
  .app-nav-desktop { display: flex; }
  body.toolbox-client .bottom-nav { display: none; }
}

@media (max-width: 767px) {
  .site-version-pill { display: none; }
}

/* ── Home hub ── */
.home-hub {
  display: grid;
  gap: 12px;
}

.hub-services-card {
  background: var(--tb-card);
  border-radius: var(--tb-radius);
  border: 1px solid var(--tb-line);
  box-shadow: var(--tb-shadow);
  padding: 18px 16px 16px;
}

.hub-services-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.hub-services-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--tb-ink);
  letter-spacing: -0.02em;
}

.hub-services-head p {
  margin: 0;
  font-size: 12px;
  color: var(--tb-muted);
}

/* 3×2 宫格 — 微信/支付宝服务入口风格 */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 0;
}

@media (min-width: 640px) {
  .hub-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px 0;
  }
}

.hub-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 6px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.hub-tile:active {
  transform: scale(0.96);
  background: #f1f5f9;
}

.hub-tile.is-active {
  background: #eef2ff;
}

.hub-tile strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--tb-ink);
  line-height: 1.2;
  text-align: center;
}

.hub-tile small {
  font-size: 11px;
  color: var(--tb-muted);
  line-height: 1.2;
  text-align: center;
}

.hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
}

.hub-icon svg {
  width: 24px;
  height: 24px;
}

.hub-icon--sign { background: linear-gradient(145deg, #6366f1, #818cf8); }
.hub-icon--pkg  { background: linear-gradient(145deg, #f59e0b, #fbbf24); }
.hub-icon--dev  { background: linear-gradient(145deg, #10b981, #34d399); }
.hub-icon--chk  { background: linear-gradient(145deg, #0ea5e9, #38bdf8); }
.hub-icon--qry  { background: linear-gradient(145deg, #8b5cf6, #a78bfa); }
.hub-icon--udid { background: linear-gradient(145deg, #64748b, #94a3b8); }

@media (min-width: 768px) {
  .hub-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .hub-tile strong { font-size: 14px; }
}

/* ── Workspace / sign form ── */
.hub-workspace {
  scroll-margin-top: 72px;
}

.sign-form-card,
.phone-panel,
.page-card {
  background: var(--tb-card);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  overflow: hidden;
}

.sign-card-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--tb-line);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.sign-card-head h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--tb-ink);
  letter-spacing: -0.02em;
}

.sign-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--tb-muted);
  line-height: 1.5;
}

.sign-form-section {
  padding: 16px 20px 4px;
}

.sign-install-main,
.phone-primary {
  display: block;
  width: calc(100% - 40px);
  margin: 16px 20px 12px;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-2)) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3) !important;
  cursor: pointer;
}

.sign-install-main:active,
.phone-primary:active {
  transform: scale(0.98);
}

.phone-input-action button,
.btn-udid-get {
  background: var(--tb-brand) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.sign-form-card .phone-tip,
.sign-form-card .phone-notice,
.sign-form-card .phone-text-guide {
  margin-left: 20px;
  margin-right: 20px;
}

.sign-form-card .sign-advanced-box,
.sign-form-card .cert-only-fold {
  margin: 0 20px 12px;
}

/* ── Subpages ── */
.page-shell,
.mobile-page {
  width: 100%;
  max-width: var(--tb-max);
  margin: 0 auto;
}

body.toolbox-client .phone-hd {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--tb-line);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

body.toolbox-client .phone-hd h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--tb-ink);
}

.page-card-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--tb-line);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.page-card-head h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--tb-ink);
}

.page-card-body {
  padding: 16px 20px 20px;
}

.page-back,
.phone-back {
  border: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  cursor: pointer;
}

/* ── Form fields ── */
body.toolbox-client .phone-field span {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

body.toolbox-client .phone-field input,
body.toolbox-client .phone-field select {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  min-height: 46px;
}

body.toolbox-client .phone-field input:focus,
body.toolbox-client .phone-field select:focus {
  border-color: var(--tb-brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  outline: none;
}

/* ── Cert inspect ── */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 520px) {
  .upload-grid { grid-template-columns: 1fr 1fr; }
}

.upload-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 130px;
  padding: 18px 14px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
}

.upload-tile:hover,
.upload-tile.has-file {
  border-color: var(--tb-brand);
  background: #eef2ff;
}

.upload-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-2));
}

.inspect-details {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .inspect-details { grid-template-columns: 1fr 1fr; }
}

.inspect-panel {
  border-radius: 14px;
  border: 1px solid var(--tb-line);
  padding: 14px 16px;
  background: #fafbff;
}

/* ── Bottom nav ── */
body.toolbox-client .bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(520px, calc(100% - 20px));
  max-width: none;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}

body.toolbox-client .bottom-nav button {
  font-size: 11px;
  font-weight: 600;
  padding: 10px 2px;
  border-radius: 14px;
  color: #64748b;
  min-height: 44px;
}

body.toolbox-client .bottom-nav button.active {
  color: var(--tb-brand);
  background: #eef2ff !important;
}

/* ── Contact / misc ── */
body.toolbox-client .contact-qq-card {
  border-radius: 16px;
  border: 1px solid var(--tb-line);
}

body.toolbox-client .contact-action-copy {
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-2)) !important;
}

.app-footer {
  text-align: center;
  padding: 16px;
  color: var(--tb-muted);
  font-size: 12px;
}

.site-topbar { display: none; }

/* ══════════════════════════════════════
   统一子页面 tb-page
   ══════════════════════════════════════ */
.page-shell {
  width: 100%;
  max-width: var(--tb-max);
  margin: 0 auto;
}

.tb-page {
  background: var(--tb-card);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  overflow: hidden;
}

.tb-page-head {
  padding: 16px 20px 18px;
  border-bottom: 1px solid var(--tb-line);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.tb-page-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tb-page-title h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--tb-ink);
  letter-spacing: -0.02em;
}

.tb-page-title p {
  margin: 0;
  font-size: 13px;
  color: var(--tb-muted);
  line-height: 1.5;
}

.tb-page-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
}

.tb-page-icon svg {
  width: 22px;
  height: 22px;
}

.tb-page-icon--sign { background: linear-gradient(145deg, #6366f1, #818cf8); }
.tb-page-icon--pkg  { background: linear-gradient(145deg, #f59e0b, #fbbf24); }
.tb-page-icon--dev  { background: linear-gradient(145deg, #10b981, #34d399); }
.tb-page-icon--chk  { background: linear-gradient(145deg, #0ea5e9, #38bdf8); }
.tb-page-icon--qry  { background: linear-gradient(145deg, #8b5cf6, #a78bfa); }
.tb-page-icon--udid { background: linear-gradient(145deg, #64748b, #94a3b8); }
.tb-page-icon--contact { background: linear-gradient(145deg, #12b7f5, #0099ff); }

.tb-page-body {
  padding: 18px 20px 22px;
}

/* 子页按钮全宽 */
.tb-page-body .phone-primary,
.tb-page-body .phone-secondary {
  width: 100%;
  margin: 4px 0 10px;
  min-height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.tb-page-body .phone-secondary {
  border: 1px solid var(--tb-line);
  background: #fff !important;
  color: #334155 !important;
  box-shadow: none !important;
}

.tb-page-body .phone-secondary + .phone-secondary {
  margin-top: 0;
}

.tb-page-body .phone-tip,
.tb-page-body .phone-notice,
.tb-page-body .phone-text-guide,
.tb-page-body .hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.tb-page-body .phone-notice {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
}

/* 分组区块 */
.tb-section {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--tb-line);
  background: #fafbff;
}

.tb-section--muted {
  background: #f8fafc;
}

.tb-section-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-ink);
}

.tb-section .phone-field:last-child {
  margin-bottom: 0;
}

.tb-section .phone-primary,
.tb-section .phone-secondary {
  margin-top: 12px;
  margin-bottom: 0;
}

/* 折叠详情 */
.tb-details {
  margin: 0 0 14px;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.tb-details > summary {
  cursor: pointer;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  list-style: none;
}

.tb-details > summary::-webkit-details-marker { display: none; }

.tb-details[open] > summary {
  border-bottom: 1px solid var(--tb-line);
  background: #fff;
}

.tb-details-body {
  padding: 14px 16px 4px;
}

.tb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #334155;
  margin-bottom: 12px;
}

/* Bundle ID 编辑器 — 浅色 */
body.toolbox-client .bundle-id-editor-light {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

body.toolbox-client .bundle-id-editor-light .bundle-prefix {
  padding: 10px 10px;
  font-size: 12px;
  color: #6366f1;
  background: #eef2ff;
  border: 0;
  max-width: 55%;
}

body.toolbox-client .bundle-id-editor-light input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  min-height: 44px !important;
}

body.toolbox-client .bundle-readonly {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  word-break: break-all;
}

/* 查询结果卡片 */
body.toolbox-client .sign-query-results {
  margin-top: 16px;
}

body.toolbox-client .sign-query-card {
  border-radius: 14px;
  border: 1px solid var(--tb-line);
  background: #fafbff;
  padding: 14px 16px;
}

body.toolbox-client .sign-query-actions .phone-primary,
body.toolbox-client .sign-query-actions .phone-secondary {
  margin: 0;
}

/* 下载面板 */
body.toolbox-client .package-download-panel {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

body.toolbox-client .sign-cert-panel-wrap {
  margin: 12px 0;
}

/* 联系客服 */
body.toolbox-client .contact-page {
  display: grid;
  gap: 14px;
}

body.toolbox-client .contact-disclaimer {
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.7;
}

body.toolbox-client .contact-qq-card {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.toolbox-client .contact-action-copy {
  color: #fff !important;
  border: 0 !important;
}

body.toolbox-client .contact-action-open {
  background: linear-gradient(135deg, #12b7f5, #0099ff) !important;
}

/* UDID 嵌入页 */
body.toolbox-client #udidEmbedRoot .phone-field,
body.toolbox-client #udidEmbedRoot button {
  max-width: 100%;
}

/* 检测报告 */
body.toolbox-client .inspect-result h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 10px;
}

body.toolbox-client .inspect-summary li {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

/* 首页高级选项同步 */
body.toolbox-client .sign-advanced-box {
  margin: 0 20px 12px;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: #f8fafc;
}

body.toolbox-client .sign-advanced-box > summary {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

/* 取消旧 mobile-page 限制 */
body.toolbox-client .mobile-page {
  min-height: auto;
  padding: 0;
}

body.toolbox-client .phone-panel {
  width: 100%;
  max-width: none;
  box-shadow: none;
  border: 0;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.page-back::before {
  content: "←";
}

/* 子页顶部快捷入口（除首页外） */
.tb-quick-nav {
  display: none;
}

@media (min-width: 768px) {
  .tb-page-title h1 { font-size: 22px; }
  .tb-page-icon { width: 48px; height: 48px; border-radius: 14px; }
}

/* ══ iOS Hero ══ */
.ios-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 20px 18px 8px;
  border-radius: var(--tb-radius);
  background: linear-gradient(145deg, #1d1d1f 0%, #2d2d30 48%, #1d1d1f 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

@media (min-width: 640px) {
  .ios-hero {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 28px 24px 16px;
  }
}

.ios-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.ios-hero-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ios-hero-url {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ios-hero-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.ios-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ios-hero-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ios-hero-btn--primary {
  background: #fff;
  color: #1d1d1f;
}

.ios-hero-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ios-hero-phone {
  display: block;
  width: min(180px, 55%);
  margin: 0 auto -12px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
  animation: phone-float 4s ease-in-out infinite;
}

@media (min-width: 640px) {
  .ios-hero-phone {
    width: 200px;
    margin: 0;
  }
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ══ Hub zones ══ */
.hub-zone {
  background: var(--tb-card);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 16px;
}

.hub-zone--paid {
  padding-bottom: 8px;
  border-bottom: 0;
  border-radius: var(--tb-radius) var(--tb-radius) 0 0;
  margin-bottom: 0;
}

.hub-zone--more {
  padding: 0;
  border: 1px dashed #cbd5e1;
  background: transparent;
  box-shadow: none;
}

.hub-zone--more > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tb-muted);
  list-style: none;
}

.hub-zone--more > summary::-webkit-details-marker { display: none; }

.hub-zone--more .hub-grid {
  padding: 0 12px 12px;
}

.hub-zone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hub-zone-head h2 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--tb-ink);
}

.hub-zone-head p {
  margin: 0;
  font-size: 12px;
  color: var(--tb-muted);
}

.hub-grid--duo {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hub-spotlight {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 12px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #f0f9ff);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hub-spotlight:active {
  transform: scale(0.98);
}

.hub-spotlight-img {
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.2));
}

.hub-spotlight-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--tb-ink);
  margin-bottom: 4px;
}

.hub-spotlight-copy p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--tb-muted);
  line-height: 1.45;
}

.hub-spotlight-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--tb-brand);
}

.hub-tile--dim {
  opacity: 0.75;
}

.hub-tile .tb-badge.sm {
  margin-top: 2px;
  font-size: 10px;
  padding: 2px 8px;
}

/* Badges */
.tb-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tb-badge--free {
  background: #dcfce7;
  color: #15803d;
}

.tb-badge--vip {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.tb-badge--muted {
  background: #f1f5f9;
  color: #64748b;
}

/* VIP sign card */
.sign-form-card--vip {
  border-radius: 0 0 var(--tb-radius) var(--tb-radius);
  border-top: 2px solid #fde68a;
}

.sign-card-head--vip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.sign-card-deco {
  flex-shrink: 0;
  opacity: 0.9;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

/* Subpage visual */
.tb-page-head {
  position: relative;
  overflow: hidden;
}

.tb-page-visual {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 90px;
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 640px) {
  .tb-page-visual {
    width: 110px;
    opacity: 0.45;
  }
}

.site-url-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d1d1f, #2d2d30);
  color: #fff;
}

.site-url-banner span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.site-url-banner strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-url-copy {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Site footer */
.site-footer {
  width: min(var(--tb-max), calc(100% - 24px));
  margin: 20px auto 0;
  padding: 20px 18px;
  border-radius: var(--tb-radius);
  background: #fff;
  border: 1px solid var(--tb-line);
  box-shadow: var(--tb-shadow);
  text-align: center;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.site-footer-brand img {
  border-radius: 10px;
}

.site-footer-url {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tb-brand);
}

.site-footer-brand span {
  display: block;
  font-size: 12px;
  color: var(--tb-muted);
  margin-top: 2px;
}

.site-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.site-footer-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--tb-line);
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-footer-btn--primary {
  border: 0;
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-2));
  color: #fff;
}

.site-footer-note {
  margin: 0;
  font-size: 11px;
  color: var(--tb-muted);
  line-height: 1.5;
}

body.admin-mode .site-footer,
body.admin-mode .assist-float {
  display: none !important;
}

/* Assist float — 灵动悬浮 */
.assist-float {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  animation: assist-bob 2.5s ease-in-out infinite;
}

@media (min-width: 768px) {
  .assist-float {
    bottom: 24px;
  }
}

@keyframes assist-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.assist-float-bubble {
  padding: 6px 12px;
  border-radius: 999px 999px 4px 999px;
  background: #1d1d1f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  animation: bubble-pulse 2s ease-in-out infinite;
}

@keyframes bubble-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.assist-float-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #12b7f5, #0099ff);
  box-shadow: 0 8px 28px rgba(18, 183, 245, 0.45);
  overflow: hidden;
}

.assist-float-btn img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.assist-float:active .assist-float-btn {
  transform: scale(0.94);
}
