:root {
  --ba-bg: #f5f7fb;
  --ba-surface: #ffffff;
  --ba-text: #10213a;
  --ba-muted: #617083;
  --ba-line: #dfe6ee;
  --ba-brand: #5c43c7;
  --ba-brand-2: #7a62e6;
  --ba-green: #087c66;
  --ba-shadow: 0 18px 55px rgba(30, 45, 70, .10);
  --ba-radius: 28px;
  --ba-max: 1240px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body.business-applications-page {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ba-text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 15% 0%, rgba(92, 67, 199, .08), transparent 30%),
    linear-gradient(180deg, #fbfcfe 0%, var(--ba-bg) 100%);
}

.business-applications-page a { color: inherit; text-decoration: none; }
.ba-container { width: min(calc(100% - 32px), var(--ba-max)); margin: 0 auto; }

.ba-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--ba-line);
  backdrop-filter: blur(15px);
}

.ba-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ba-brand { display: flex; align-items: center; gap: 11px; font-weight: 950; }
.ba-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--ba-brand), var(--ba-brand-2));
  box-shadow: 0 10px 24px rgba(92, 67, 199, .28);
}

.ba-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.ba-menu-button { display: none; }
.ba-nav-links { display: flex; align-items: center; gap: 18px; color: var(--ba-muted); font-size: .94rem; }
.ba-nav-links a, .ba-link-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.ba-nav-links .is-active { color: var(--ba-brand); }
.ba-nav-logout { margin: 0; }
.ba-nav-cta {
  padding: 10px 17px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--ba-brand), var(--ba-brand-2));
  font-weight: 950;
}

.ba-hero { padding: 84px 0 52px; }
.ba-hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr); gap: 46px; align-items: center; }
.ba-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eeeafd;
  color: #4b36b1;
  font-size: .86rem;
  font-weight: 850;
}
.ba-hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.05; letter-spacing: -.04em; }
.ba-hero-copy { max-width: 700px; margin: 24px 0 0; color: var(--ba-muted); font-size: clamp(1.02rem, 2vw, 1.22rem); }
.ba-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ba-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 950;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ba-button-primary { color: #fff !important; background: linear-gradient(135deg, var(--ba-brand), var(--ba-brand-2)); box-shadow: 0 14px 30px rgba(92, 67, 199, .24); }
.ba-button-secondary { background: #fff; border-color: var(--ba-line); }
.ba-button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(30, 45, 70, .16); }

.ba-hero-panel { padding: 24px; border: 1px solid var(--ba-line); border-radius: 30px; background: #fff; box-shadow: var(--ba-shadow); }
.ba-metric { display: flex; align-items: center; gap: 14px; padding: 17px 18px; margin-bottom: 16px; border-radius: 19px; color: #fff; background: linear-gradient(135deg, #2d245e, #5d43c7); }
.ba-metric-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(255, 255, 255, .14); font-size: 1.45rem; font-weight: 950; }
.ba-metric small { display: block; color: rgba(255, 255, 255, .72); font-weight: 800; }
.ba-metric strong { display: block; font-size: 1.18rem; }
.ba-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 18px; border-radius: 18px; background: #f4f6fa; }
.ba-flow small { display: block; color: var(--ba-muted); font-weight: 800; }
.ba-flow b { display: block; margin-top: 3px; }
.ba-flow-arrow { color: var(--ba-brand); font-size: 1.35rem; font-weight: 950; }
.ba-hero-note { margin: 14px 0 0; padding: 13px 15px; border: 1px solid #f1dfba; border-radius: 14px; background: #fff8ea; color: #7a5722; font-size: .9rem; }

.ba-section-head { padding: 42px 0 28px; text-align: center; }
.ba-section-kicker { color: var(--ba-brand); font-size: .8rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.ba-section-title { max-width: 840px; margin: 8px auto 0; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.14; letter-spacing: -.03em; }
.ba-section-copy { max-width: 760px; margin: 14px auto 0; color: var(--ba-muted); }

.ba-cases { padding: 26px 0 80px; }
.ba-case { display: grid; grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr); margin-bottom: 30px; overflow: hidden; border: 1px solid var(--ba-line); border-radius: var(--ba-radius); background: #fff; box-shadow: 0 14px 42px rgba(30, 45, 70, .07); }
.ba-case:nth-child(even) .ba-visual { order: 2; }
.ba-case:nth-child(even) .ba-content { order: 1; }
.ba-visual { min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; color: #fff; background: linear-gradient(145deg, var(--tone-a), var(--tone-b)); }
.ba-visual-icon { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .26); border-radius: 20px; background: rgba(255, 255, 255, .16); font-size: 1.6rem; font-weight: 950; }
.ba-visual h3 { margin: 24px 0 8px; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.1; }
.ba-visual p { max-width: 420px; margin: 0; color: rgba(255, 255, 255, .88); }
.ba-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ba-tags span { padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .8rem; font-weight: 850; }
.ba-visual strong { align-self: flex-start; padding: 9px 13px; border-radius: 999px; background: #fff; color: #1d2d42; font-size: .84rem; box-shadow: 0 9px 22px rgba(0, 0, 0, .14); }
.ba-content { display: flex; flex-direction: column; justify-content: center; padding: 36px; }
.ba-content blockquote { margin: 0 0 26px; padding: 22px 24px; border: 1px solid var(--ba-line); border-radius: 20px; background: #f8fafc; font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1.45; font-weight: 900; }
.ba-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ba-compare div { padding: 18px; border: 1px solid var(--ba-line); border-radius: 17px; background: #fbfcfe; }
.ba-compare div + div { background: #eef9f6; border-color: #cde9df; }
.ba-compare b { display: block; margin-bottom: 8px; }
.ba-compare p { margin: 0; color: var(--ba-muted); }

.is-purple { --tone-a: #34246f; --tone-b: #654bd0; }
.is-green { --tone-a: #0b6b56; --tone-b: #13a27d; }
.is-orange { --tone-a: #8b4a12; --tone-b: #e59d38; }
.is-blue { --tone-a: #174b89; --tone-b: #3b82f6; }
.is-slate { --tone-a: #1f2937; --tone-b: #64748b; }
.is-teal { --tone-a: #115e59; --tone-b: #14b8a6; }
.is-indigo { --tone-a: #312e81; --tone-b: #6366f1; }
.is-red { --tone-a: #7f1d1d; --tone-b: #ef4444; }
.is-cyan { --tone-a: #155e75; --tone-b: #06b6d4; }
.is-pink { --tone-a: #831843; --tone-b: #ec4899; }

.ba-line-section { padding: 76px 0; border-block: 1px solid #dbe9e0; background: radial-gradient(circle at 10% 10%, rgba(6, 199, 85, .10), transparent 30%), linear-gradient(180deg, #f7fbf8 0%, #eef7f2 100%); }
.ba-line-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(330px, 1.08fr); gap: 52px; align-items: center; }
.ba-line-grid h2, .ba-principles h2, .ba-business-flow h2, .ba-cta h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.14; letter-spacing: -.03em; }
.ba-line-grid p, .ba-principles p, .ba-business-flow p, .ba-cta p { color: var(--ba-muted); }
.ba-line-points { display: grid; gap: 12px; margin-top: 22px; }
.ba-line-points div { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid #dce9e1; border-radius: 16px; background: rgba(255, 255, 255, .82); }
.ba-line-points b { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #06c755; }
.ba-line-points span, .ba-line-points small { display: block; }
.ba-line-points small { color: var(--ba-muted); }
.ba-phone { min-height: 530px; display: grid; place-items: center; }
.ba-phone-screen { width: min(100%, 350px); padding: 22px; border: 10px solid #18202a; border-radius: 42px; background: #91afd0; box-shadow: 0 30px 70px rgba(19, 34, 56, .25); }
.ba-phone-header { padding: 14px; border-radius: 22px 22px 10px 10px; background: #fff; }
.ba-phone-header strong, .ba-phone-header span { display: block; }
.ba-phone-header span { color: #84909c; font-size: .78rem; }
.ba-message { margin-top: 18px; padding: 14px; border-radius: 8px 18px 18px; background: #fff; box-shadow: 0 8px 18px rgba(35, 60, 84, .13); }
.ba-message small { display: inline-flex; padding: 4px 8px; margin-bottom: 8px; border-radius: 999px; background: #eafaf0; color: #057a34; font-weight: 950; }
.ba-message.is-alt small { background: #eef4ff; color: #315e8a; }
.ba-message b { display: block; }
.ba-message p { margin: 6px 0 0; color: #5b6774; font-size: .88rem; }

.ba-principles { padding: 88px 0; border-block: 1px solid var(--ba-line); background: linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%); }
.ba-principles-grid { display: grid; grid-template-columns: minmax(320px, .7fr) minmax(0, 1.3fr); gap: 58px; align-items: start; }
.ba-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ba-points article { min-height: 220px; padding: 28px; border: 1px solid var(--ba-line); border-radius: 24px; background: #fff; box-shadow: 0 14px 38px rgba(30, 45, 70, .07); }
.ba-points b { display: inline-flex; margin-bottom: 22px; padding: 5px 9px; border-radius: 9px; color: #fff; background: var(--ba-green); }
.ba-points strong, .ba-points span { display: block; }
.ba-points strong { font-size: 1.28rem; }
.ba-points span { margin-top: 8px; color: var(--ba-muted); }
.ba-business-flow { margin-top: 54px; padding: 30px; border: 1px solid var(--ba-line); border-radius: 28px; background: #fff; box-shadow: 0 16px 44px rgba(30, 45, 70, .07); }
.ba-business-flow-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.ba-business-flow-head p { max-width: 560px; text-align: right; }
.ba-flow-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) 70px minmax(230px, .7fr) 70px minmax(0, .95fr); gap: 16px; align-items: center; }
.ba-source-grid, .ba-outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ba-source-grid span, .ba-outcome-grid span { min-height: 58px; display: grid; place-items: center; padding: 12px 14px; border: 1px solid #edf0f4; border-radius: 16px; background: #f8f9fc; color: #45556a; font-weight: 850; text-align: center; }
.ba-flow-layout > strong { color: var(--ba-brand); font-size: 2rem; text-align: center; }
.ba-hub { padding: 28px 22px; border-radius: 24px; color: #fff; background: linear-gradient(145deg, #4b36b3, #7359df); text-align: center; font-size: 1.25rem; font-weight: 950; box-shadow: 0 18px 40px rgba(92, 67, 199, .24); }
.ba-cta { padding: 86px 0; }
.ba-cta-box { padding: 48px; border-radius: 30px; text-align: center; color: #fff; background: linear-gradient(135deg, #34246f, #654bd0); box-shadow: 0 22px 58px rgba(92, 67, 199, .23); }
.ba-cta-box p { max-width: 720px; margin: 16px auto 0; color: rgba(255, 255, 255, .82); }
.ba-cta-box .ba-button { margin-top: 25px; background: #fff; color: #3f2b92 !important; }
.ba-footer { padding: 24px 0 38px; color: var(--ba-muted); font-size: .9rem; }
.ba-footer .ba-container { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

@media (max-width: 1060px) {
  .ba-nav { flex-wrap: wrap; }
  .ba-menu-button { width: 48px; height: 48px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #cbd5e1; border-radius: 12px; cursor: pointer; }
  .ba-menu-button span { width: 18px; height: 2px; border-radius: 999px; background: var(--ba-text); }
  .ba-nav-links { display: none; width: 100%; padding: 12px; border: 1px solid var(--ba-line); border-radius: 16px; background: #fff; box-shadow: var(--ba-shadow); }
  .ba-nav-toggle:checked ~ .ba-nav-links { display: grid; gap: 4px; }
  .ba-nav-links a, .ba-link-button { display: block; padding: 12px 14px; text-align: left; }
  .ba-nav-cta { text-align: center !important; }
  .ba-nav-logout { margin: 0; }
  .ba-hero-grid, .ba-line-grid, .ba-principles-grid { grid-template-columns: 1fr; }
  .ba-business-flow-head { align-items: start; flex-direction: column; }
  .ba-business-flow-head p { text-align: left; }
  .ba-flow-layout { grid-template-columns: 1fr; }
  .ba-flow-layout > strong { transform: rotate(90deg); }
}

@media (max-width: 760px) {
  .ba-container { width: min(calc(100% - 24px), var(--ba-max)); }
  .ba-hero { padding: 48px 0 36px; }
  .ba-hero h1 { font-size: clamp(2.15rem, 12vw, 3.35rem); }
  .ba-hero-actions .ba-button { width: 100%; }
  .ba-flow, .ba-case, .ba-compare, .ba-points, .ba-source-grid, .ba-outcome-grid { grid-template-columns: 1fr; }
  .ba-case:nth-child(even) .ba-visual, .ba-case:nth-child(even) .ba-content { order: initial; }
  .ba-visual { min-height: 310px; padding: 26px; }
  .ba-content { padding: 24px; }
  .ba-line-section, .ba-principles, .ba-cta { padding: 58px 0; }
  .ba-phone { min-height: auto; }
  .ba-business-flow { padding: 22px; }
  .ba-cta-box { padding: 34px 22px; }
}

@media (max-width: 380px) {
  .ba-brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
