/*! BBAI PRO Unified Brand Experience v20.0
 * 全站 UI / UX / VI 统一层
 * 参考站点：云创文旅 AI 智推管理系统
 */

:root {
  --ui-pine-950: #071b15;
  --ui-pine-900: #0b2b22;
  --ui-pine-800: #123a2d;
  --ui-jade-300: #a9c2b5;
  --ui-gold-500: #c9a653;
  --ui-gold-300: #ead9a8;
  --ui-paper: #f7f2e7;
  --ui-muted: #aabfb4;
  --ui-line: rgba(234, 217, 168, 0.16);
  --ui-line-soft: rgba(255, 255, 255, 0.09);
  --ui-panel: rgba(9, 35, 26, 0.82);
  --ui-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  --ui-sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  --ui-serif: "Songti SC", "STSong", "Noto Serif SC", serif;
}

html {
  background: var(--ui-pine-950);
}

body.bbaipro-branded {
  min-width: 320px;
  color: var(--ui-paper) !important;
  background:
    radial-gradient(900px 620px at 86% -8%, rgba(201, 166, 83, 0.14), transparent 60%),
    radial-gradient(760px 620px at 4% 42%, rgba(66, 139, 102, 0.12), transparent 66%),
    linear-gradient(180deg, #071b15 0%, #082018 48%, #06150f 100%) !important;
  background-attachment: fixed;
  font-family: var(--ui-sans) !important;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.bbaipro-branded::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
  content: "";
  pointer-events: none;
}

body.bbaipro-branded ::selection {
  color: var(--ui-pine-950);
  background: var(--ui-gold-300);
}

body.bbaipro-branded a,
body.bbaipro-branded button,
body.bbaipro-branded input,
body.bbaipro-branded select,
body.bbaipro-branded textarea {
  font-family: var(--ui-sans);
}

body.bbaipro-branded :focus-visible {
  outline: 2px solid var(--ui-gold-300) !important;
  outline-offset: 3px;
}

body.bbaipro-branded .shell {
  width: min(1180px, calc(100% - 40px)) !important;
  margin-inline: auto;
}

/* Typography: large editorial headings, restrained body copy. */
body.bbaipro-branded h1,
body.bbaipro-branded h2,
body.bbaipro-branded h3,
body.bbaipro-branded h4 {
  color: #fffaf0;
  font-family: var(--ui-serif) !important;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.bbaipro-branded h1 {
  max-width: 100%;
  font-size: clamp(44px, 5.2vw, 68px) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.bbaipro-branded h2 {
  font-size: clamp(34px, 4.2vw, 52px) !important;
  line-height: 1.16 !important;
}

body.bbaipro-branded h3 {
  font-size: clamp(20px, 2.2vw, 27px) !important;
  line-height: 1.26 !important;
}

body.bbaipro-branded h4 {
  font-size: 18px !important;
  line-height: 1.35 !important;
}

body.bbaipro-branded h1 em,
body.bbaipro-branded h2 em {
  color: var(--ui-gold-300);
  font-style: normal;
}

body.bbaipro-branded p,
body.bbaipro-branded li {
  text-wrap: pretty;
}

body.bbaipro-branded :is(.eyebrow, .kicker, .contact-kicker, .bbai-contact-kicker) {
  color: var(--ui-gold-300) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  line-height: 1.6 !important;
  text-transform: uppercase;
}

body.bbaipro-branded :is(.eyebrow, .kicker)::before {
  background: var(--ui-gold-500);
  box-shadow: 0 0 0 5px rgba(201, 166, 83, 0.12);
}

body.bbaipro-branded :is(.hero-intro, .hero-lead, .hero-copy > p:last-child) {
  max-width: 680px !important;
  color: #c5d4cc !important;
  font-size: 15.5px !important;
  line-height: 1.9 !important;
}

/* Header and primary navigation. */
body.bbaipro-branded :is(.site-header, .site-head, .header) {
  color: #fff;
  border-bottom: 1px solid var(--ui-line-soft) !important;
  background: rgba(7, 27, 21, 0.92) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

body.bbaipro-branded :is(.header-inner, .head-inner) {
  min-height: 76px !important;
}

body.bbaipro-branded :is(.brand, .site-header .brand) {
  gap: 11px !important;
}

body.bbaipro-branded :is(.brand-logo, .brand img, .brand-mark) {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  object-fit: contain;
}

body.bbaipro-branded :is(.brand-copy strong, .brand strong) {
  color: #fffaf0 !important;
  font-family: var(--ui-sans) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

body.bbaipro-branded :is(.brand-copy small, .brand small) {
  margin-top: 3px !important;
  color: #90a99c !important;
  font-size: 8.5px !important;
  letter-spacing: 0.08em !important;
}

body.bbaipro-branded :is(.primary-nav, .nav-links) {
  align-items: center;
  gap: 3px !important;
}

body.bbaipro-branded :is(.primary-nav a, .nav-links a, .nav a, .mobile-nav a) {
  display: inline-flex !important;
  min-height: 34px;
  padding: 0 9px;
  align-items: center !important;
  justify-content: center !important;
  color: #c7d6cf !important;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

body.bbaipro-branded :is(.primary-nav a, .nav-links a, .nav a, .mobile-nav a):hover,
body.bbaipro-branded :is(.primary-nav a, .nav-links a, .nav a, .mobile-nav a).on {
  color: var(--ui-gold-300) !important;
  border-color: rgba(234, 217, 168, 0.2) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body.bbaipro-branded :is(.mobile-menu, .menu-dialog) {
  color: var(--ui-paper);
  border-color: var(--ui-line);
  background: rgba(7, 27, 21, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

body.bbaipro-branded :is(
    #bbaiHumanTitle,
    #contactTitle,
    .bbai-contact-card h3,
    #bbaiproUniversalOverlay .bbx-heading h3
  ) {
  margin-inline: auto !important;
  text-align: center !important;
}

body.bbaipro-branded :is(.menu-btn, .mobile-menu-toggle, .mobile-menu-close, .menu-close) {
  color: var(--ui-gold-300) !important;
  border-color: rgba(234, 217, 168, 0.25) !important;
  background: rgba(234, 217, 168, 0.055) !important;
}

/* Keep the seven audience entrances at the bottom of the homepage. The main
   site navigation stays focused on the paying owner and core business pages. */
body.bbaipro-branded .role-dock,
body.bbaipro-branded .role-route-dock {
  display: none !important;
}

body.bbaipro-branded.has-role-route-dock {
  padding-bottom: 0 !important;
}

body.bbaipro-branded .role-route-dock {
  position: relative !important;
  z-index: 35;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  min-height: 52px;
  margin: 0 !important;
  padding: 6px max(14px, calc((100vw - 1180px) / 2));
  gap: 8px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--ui-line-soft);
  border-radius: 0;
  background: rgba(6, 26, 20, 0.94);
  box-shadow: none;
  transform: none !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.bbaipro-branded .role-route-label {
  color: var(--ui-gold-300);
  font-size: 9px;
  letter-spacing: 0.12em;
}

body.bbaipro-branded .role-route-scroll {
  gap: 6px;
}

body.bbaipro-branded .role-route-scroll a {
  min-height: 38px;
  padding: 0 13px;
  color: #b8cac0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10.5px;
  font-weight: 700;
}

body.bbaipro-branded .role-route-scroll a.on {
  color: #10251d;
  border-color: transparent;
  background: var(--ui-gold-300);
}

/* Hero composition. */
body.bbaipro-branded :is(.hero, .role-hero, .public-hero, .growth-hero) {
  border-color: var(--ui-line-soft);
}

body.bbaipro-branded .hero-copy {
  text-align: left !important;
}

body.bbaipro-branded .hero h1 {
  max-width: 780px;
  margin: 18px 0 20px !important;
}

body.bbaipro-branded .hero h1 span {
  display: block;
}

body.bbaipro-branded .hero h1 .title-soft {
  color: #fffaf0;
}

body.bbaipro-branded .hero h1 .title-glow {
  color: var(--ui-gold-300) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor;
}

body.bbaipro-branded :is(.hero-actions, .role-points) {
  margin-top: 28px;
}

/* One button language across modern and legacy pages. */
body.bbaipro-branded :is(
    .button,
    .primary-btn,
    .ghost-btn,
    .header-cta,
    .head-cta,
    .nav-cta,
    .submit-btn,
    .message-form button,
    .vault-gate button,
    .contact-button,
    .bbai-contact-submit
  ) {
  min-height: 46px !important;
  padding: 0 21px !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  letter-spacing: 0.005em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

body.bbaipro-branded :is(
    .button-primary,
    .button.primary,
    .primary-btn,
    .header-cta,
    .head-cta,
    .nav-cta,
    .submit-btn,
    .message-form button,
    .vault-gate button,
    .contact-button,
    .bbai-contact-submit
  ) {
  color: var(--ui-pine-900) !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #f3e3b1, #d4ad50) !important;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.55) !important;
}

body.bbaipro-branded :is(
    .button-primary,
    .button.primary,
    .primary-btn,
    .header-cta,
    .head-cta,
    .nav-cta,
    .submit-btn,
    .message-form button,
    .vault-gate button,
    .contact-button,
    .bbai-contact-submit
  ):hover {
  background: linear-gradient(135deg, #f8ebc3, #dfbc62) !important;
  transform: translateY(-2px);
}

body.bbaipro-branded :is(.button-ghost, .button.ghost, .ghost-btn) {
  color: #dbe6e0 !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: none !important;
}

body.bbaipro-branded :is(.button-ghost, .button.ghost, .ghost-btn):hover {
  border-color: var(--ui-line) !important;
  background: rgba(234, 217, 168, 0.08) !important;
}

/* Proof points and metrics. */
body.bbaipro-branded :is(.hero-proof, .hero-facts, .stats, .combat-metrics, .combat-proof-row) {
  gap: 20px !important;
}

body.bbaipro-branded :is(.hero-proof strong, .hero-fact strong, .stats b, .combat-metric strong) {
  color: #fffaf0 !important;
  font-family: "Bahnschrift", "DIN Alternate", var(--ui-sans) !important;
  font-weight: 800 !important;
}

body.bbaipro-branded :is(.hero-proof span, .hero-fact span, .stats span) {
  color: #8ca297 !important;
  font-size: 10px !important;
  letter-spacing: 0.05em;
}

/* Surface system for cards, evidence panels and pricing blocks. */
body.bbaipro-branded :is(
    .card,
    article[class*="card"],
    .audience-card,
    .radar,
    .signal,
    .tier,
    .message-card,
    .vault-card,
    .aha,
    .cta,
    .cta-band,
    .plan,
    .price-card,
    .case,
    .faq-item,
    .panel,
    .form-card,
    .partner-offer,
    .contact-card,
    .bbai-contact-card
  ) {
  border: 1px solid var(--ui-line-soft) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(201, 166, 83, 0.07), transparent 72%),
    linear-gradient(145deg, rgba(18, 58, 45, 0.76), rgba(7, 27, 21, 0.94)) !important;
  box-shadow: var(--ui-shadow);
}

body.bbaipro-branded :is(
    .card,
    article[class*="card"],
    .audience-card,
    .tier,
    .plan,
    .price-card,
    .case,
    .faq-item
  ) {
  padding: clamp(18px, 2.2vw, 24px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

body.bbaipro-branded :is(
    .card,
    article[class*="card"],
    .audience-card,
    .tier,
    .plan,
    .price-card,
    .case,
    .faq-item
  ):hover {
  border-color: var(--ui-line) !important;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

body.bbaipro-branded :is(.card, article[class*="card"], .audience-card, .tier, .plan, .case) p {
  color: #a5b9af !important;
  font-size: 13.5px !important;
  line-height: 1.75 !important;
}

body.bbaipro-branded :is(.card, article[class*="card"]) h3,
body.bbaipro-branded :is(.card, article[class*="card"]) h4 {
  margin-top: 12px;
  color: #fff8e9;
}

body.bbaipro-branded :is(.section-head, .section-heading) {
  margin-bottom: 30px;
  gap: 22px;
}

body.bbaipro-branded :is(.section-head, .section-heading) p {
  max-width: 530px;
  color: var(--ui-muted) !important;
  font-size: 13px !important;
  line-height: 1.78 !important;
}

body.bbaipro-branded :is(.cta, .cta-band) {
  padding: 24px !important;
}

body.bbaipro-branded :is(.cta, .cta-band) h2 {
  margin-top: 0;
  font-size: clamp(25px, 3vw, 36px) !important;
}

/* Forms and inputs. */
body.bbaipro-branded :is(input, textarea, select) {
  min-height: 46px;
  color: #f7f2e7 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  font-size: 14px !important;
  outline: none;
}

body.bbaipro-branded :is(input, textarea):focus {
  border-color: rgba(234, 217, 168, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(201, 166, 83, 0.12);
}

body.bbaipro-branded :is(input, textarea)::placeholder {
  color: #7f9689 !important;
}

/* Footer and utility navigation. */
body.bbaipro-branded footer,
body.bbaipro-branded .footer,
body.bbaipro-branded .codex-version-footer {
  color: #8fa397 !important;
  border-top: 1px solid var(--ui-line-soft);
  background: rgba(5, 19, 14, 0.9) !important;
  font-size: 11px !important;
}

body.bbaipro-branded footer a,
body.bbaipro-branded .footer a {
  color: #b8cac0;
  transition: color 180ms ease;
}

body.bbaipro-branded footer a:hover,
body.bbaipro-branded .footer a:hover {
  color: var(--ui-gold-300);
}

/* Shared floating actions. */
body.bbaipro-branded :is(.bbai-global-home, .home-button) {
  color: var(--ui-gold-300) !important;
  border: 1px solid rgba(234, 217, 168, 0.34) !important;
  background: rgba(7, 27, 21, 0.92) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

@media (max-width: 1080px) {
  body.bbaipro-branded :is(.shell, .head-inner, .header-inner) {
    width: min(100% - 32px, 1040px) !important;
  }

  body.bbaipro-branded .primary-nav {
    display: flex;
  }

  body.bbaipro-branded .nav {
    display: none !important;
  }

  body.bbaipro-branded .menu-btn {
    display: grid !important;
    place-items: center;
  }
}

@media (max-width: 860px) {
  body.bbaipro-branded :is(.site-header, .site-head, .header) {
    position: relative;
  }

  body.bbaipro-branded :is(.header-inner, .head-inner) {
    min-height: 66px !important;
  }

  body.bbaipro-branded :is(.brand-logo, .brand img, .brand-mark) {
    width: 38px !important;
    height: 38px !important;
  }

  body.bbaipro-branded :is(.brand-copy strong, .brand strong) {
    font-size: 14px !important;
  }

  body.bbaipro-branded h1 {
    font-size: clamp(30px, 8vw, 34px) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.038em !important;
  }

  body.bbaipro-branded h2 {
    font-size: clamp(26px, 7vw, 31px) !important;
    line-height: 1.18 !important;
  }

  body.bbaipro-branded h3 {
    font-size: 20px !important;
  }

  body.bbaipro-branded :is(.hero, .role-hero, .public-hero, .growth-hero) {
    padding-top: 28px !important;
    padding-bottom: 38px !important;
  }

  body.bbaipro-branded .hero-copy {
    padding: 0 !important;
    text-align: left !important;
  }

  body.bbaipro-branded :is(.eyebrow, .kicker) {
    justify-content: flex-start !important;
    margin-bottom: 14px !important;
    font-size: 9.5px !important;
    letter-spacing: 0.11em !important;
  }

  body.bbaipro-branded .hero h1 {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
  }

  body.bbaipro-branded :is(.hero-intro, .hero-lead, .hero-copy > p:last-child) {
    margin-top: 17px !important;
    font-size: 13.5px !important;
    line-height: 1.76 !important;
    text-align: left !important;
  }

  body.bbaipro-branded :is(.hero-actions, .hero-proof) {
    justify-content: flex-start !important;
  }

  body.bbaipro-branded .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 9px !important;
    margin-top: 21px !important;
  }

  body.bbaipro-branded .hero-actions :is(a, button) {
    width: 100%;
    min-height: 46px !important;
  }

  body.bbaipro-branded .hero-proof {
    margin-top: 22px !important;
    gap: 12px !important;
  }

  body.bbaipro-branded .hero-proof strong {
    font-size: 19px !important;
  }

  body.bbaipro-branded .role-route-dock {
    padding: 5px 12px !important;
    border-radius: 0 !important;
  }

  body.bbaipro-branded .role-route-label {
    display: none;
  }

  body.bbaipro-branded .role-route-scroll a {
    min-height: 38px !important;
    padding-inline: 12px !important;
    font-size: 10px !important;
  }

  body.bbaipro-branded :is(.section, .role-view, .message-section, .partner-vault) {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  body.bbaipro-branded :is(.section-head, .section-heading) {
    align-items: flex-start !important;
    flex-direction: column;
    margin-bottom: 22px !important;
    gap: 10px;
  }

  body.bbaipro-branded :is(.section-head, .section-heading) p {
    max-width: none;
    font-size: 12.5px !important;
  }

  body.bbaipro-branded :is(
      .cards,
      .audience-grid,
      .role-card-grid,
      .comparison-grid,
      .cost-board,
      .message-grid
    ) {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.bbaipro-branded :is(
      .card,
      article[class*="card"],
      .audience-card,
      .tier,
      .plan,
      .price-card,
      .case,
      .faq-item,
      .message-card,
      .aha,
      .cta,
      .cta-band,
      .signal,
      .radar
    ) {
    border-radius: 18px !important;
    padding: 17px !important;
  }

  body.bbaipro-branded :is(.card, article[class*="card"], .audience-card, .tier, .plan, .case) p {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  body.bbaipro-branded :is(.cta, .cta-band) {
    align-items: stretch !important;
    flex-direction: column;
  }

  body.bbaipro-branded :is(.cta, .cta-band) :is(a, button) {
    width: 100%;
  }

  body.bbaipro-branded :is(.nav-links, .primary-nav) {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (max-width: 430px) {
  body.bbaipro-branded :is(.shell, .head-inner, .header-inner) {
    width: calc(100% - 28px) !important;
  }

  body.bbaipro-branded h1 {
    font-size: clamp(29px, 7.7vw, 32px) !important;
  }

  body.bbaipro-branded h2 {
    font-size: 26px !important;
  }

  body.bbaipro-branded :is(.hero-intro, .hero-lead, .hero-copy > p:last-child) {
    font-size: 13px !important;
  }
}

@media (hover: none) {
  body.bbaipro-branded :is(
      .card,
      article[class*="card"],
      .audience-card,
      .tier,
      .plan,
      .price-card,
      .case,
      .faq-item
    ):hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bbaipro-branded *,
  body.bbaipro-branded *::before,
  body.bbaipro-branded *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
