/* 豆包接入 */
.home-doubao-guide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(107, 159, 255, 0.35);
  background: rgba(107, 159, 255, 0.08);
}
.home-doubao-guide-text {
  min-width: 0;
}
.home-doubao-guide-text p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}
.home-doubao-connect-btn {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

/* 豆包已接入：仅 doubao_connected===true 时由 JS 加上 .doubao-status-chip */
.doubao-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  max-width: 100%;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #dbeafe;
  background: rgba(30, 58, 95, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
#statDoubaoBadge:not(.doubao-status-chip),
#statDoubaoBadge:empty {
  display: none !important;
  margin: 0;
  padding: 0;
  border: 0;
}
.doubao-status-chip[hidden] {
  display: none !important;
}
.account-badges .doubao-status-chip {
  margin-top: 0;
  margin-right: 6px;
}
.doubao-status-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa, #818cf8);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
  position: relative;
}
.doubao-status-icon::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  border: 1.5px solid rgba(15, 23, 42, 0.85);
}
.doubao-status-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.doubao-intro-modal .doubao-intro-badge {
  color: #9ec5ff;
  border-color: rgba(107, 159, 255, 0.35);
  background: rgba(107, 159, 255, 0.12);
}
.doubao-intro-features .intro-feat-idx {
  background: rgba(107, 159, 255, 0.18);
  color: #b8d4ff;
}

/* 豆包扫码弹窗 */
.doubao-connect-modal {
  z-index: 1350;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(107, 159, 255, 0.16), transparent 58%),
    rgba(2, 6, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: introOverlayIn 0.32s ease both;
}
.doubao-connect-card {
  position: relative;
  overflow: hidden;
  max-width: 400px;
  width: min(400px, calc(100% - 32px));
  padding: 20px 22px 22px;
  border-radius: 18px;
  border: 1px solid rgba(107, 159, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(90, 167, 255, 0.1) inset,
    0 28px 64px rgba(0, 0, 0, 0.58);
  background:
    linear-gradient(165deg, rgba(16, 22, 36, 0.98), rgba(8, 10, 20, 0.99));
  animation: introModalIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.doubao-connect-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(107, 159, 255, 0.22), transparent 72%);
}
.doubao-connect-head {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}
.doubao-connect-head-text {
  min-width: 0;
}
.doubao-connect-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9ec5ff;
}
.doubao-connect-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
.doubao-connect-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
}
.doubao-connect-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted, #9aa0a6);
}
.doubao-connect-desc strong {
  color: #dbeafe;
  font-weight: 650;
}
.doubao-qr-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0 14px;
}
.doubao-qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 248px;
  height: 248px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.28);
}
.doubao-qr-box img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 4px;
}
.doubao-qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
.doubao-login-status {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  line-height: 1.45;
}
.doubao-login-status.wait { background: rgba(251, 191, 36, 0.14); color: #f5d9a0; border: 1px solid rgba(251, 191, 36, 0.22); }
.doubao-login-status.ok { background: rgba(52, 199, 89, 0.14); color: #9fe6b0; border: 1px solid rgba(52, 199, 89, 0.22); }
.doubao-login-status.err { background: rgba(255, 80, 80, 0.14); color: #ffb4b0; border: 1px solid rgba(255, 80, 80, 0.22); }
.doubao-connect-refresh {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 14px;
  justify-content: center;
}
.doubao-connect-reset {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  color: #ffb4b0;
  border-color: rgba(255, 80, 80, 0.28);
}
#accountAvatar.has-img img,
.home-account-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.cand-grid .cand[data-act="pick-cand"] { cursor: pointer; }
.cand-grid .cand[data-act="pick-cand"]:not(.selected) { opacity: 0.82; }
.cand-grid .cand[data-act="pick-cand"].selected { outline: 2px solid rgba(62, 224, 196, 0.85); }

.wallet-hub { padding: 4px 0 8px; }
.wallet-hub-hint { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.wallet-hub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wallet-hub-actions .primary-btn,
.wallet-hub-actions .ghost-btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.billing-offer--video { padding: 4px 0 8px; }
.billing-video-hero {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(62, 224, 196, 0.22);
  background: linear-gradient(145deg, rgba(62, 224, 196, 0.08), rgba(90, 167, 255, 0.06));
}
.billing-video-hero-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: #9ef0dc;
  background: rgba(62, 224, 196, 0.14);
  border: 1px solid rgba(62, 224, 196, 0.28);
}
.billing-video-hero-title {
  margin: 10px 0 6px;
  font-size: 18px;
}
.billing-video-hero-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.billing-video-sample {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.billing-video-sample strong {
  font-size: 16px;
  color: #9ef0dc;
}
.billing-video-member-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.billing-video-member-hint.is-vip { color: #f5d9a0; }
.billing-video-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 2px;
}
.billing-video-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.billing-video-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.billing-video-card-head strong { font-size: 14px; }
.billing-video-tier-stack { display: grid; gap: 8px; }
.billing-video-tier {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
}
.billing-video-q {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.billing-video-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.billing-video-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
}
.billing-video-price em { color: var(--muted); font-style: normal; }
.billing-video-price strong { font-size: 15px; }
.billing-video-price i { color: var(--muted); font-style: normal; font-size: 11px; }
.billing-video-price.is-member strong { color: #f5d9a0; }
.billing-video-foot {
  margin-top: 14px;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.billing-video-foot .muted {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
}
.billing-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.billing-video-actions .primary-btn,
.billing-video-actions .ghost-btn,
.billing-video-actions .billing-cta {
  flex: 1 1 160px;
  width: auto;
  margin-top: 0;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
}
.home-modal.is-billing-detail { max-width: 560px; }
