:root {
  --fe-ecom-ink: #17233a;
  --fe-ecom-red: #b33a35;
  --fe-ecom-blue: #2166a9;
  --fe-ecom-green: #28785f;
  --fe-ecom-paper: #fffaf4;
  --fe-business-ink: #111827;
  --fe-business-muted: #5f6b7a;
  --fe-business-line: rgba(17, 24, 39, 0.12);
}

.fe-theme-ecommerce {
  background:
    linear-gradient(180deg, #fff8f1 0%, #f7fbff 45%, #ffffff 100%);
}

.fe-theme-ecommerce .fe-portal-bg {
  background:
    linear-gradient(120deg, rgba(179, 58, 53, 0.08), rgba(33, 102, 169, 0.08)),
    linear-gradient(180deg, rgba(255, 250, 244, 0.92), rgba(255, 255, 255, 0));
}

.fe-theme-ecommerce .fe-site-header__bar {
  background: linear-gradient(90deg, #17233a, #263d61);
}

.fe-theme-ecommerce .fe-site-header__main {
  border-color: rgba(33, 102, 169, 0.14);
}

.fe-theme-ecommerce .fe-brand__text small,
.fe-theme-ecommerce .fe-eyebrow,
.fe-theme-ecommerce .fe-price-card__label,
.fe-theme-ecommerce .fe-service-strip span,
.fe-theme-ecommerce .fe-process-card span {
  color: var(--fe-ecom-red);
}

.fe-theme-ecommerce .fe-eyebrow::before {
  background: linear-gradient(90deg, var(--fe-ecom-red), rgba(179, 58, 53, 0));
}

.fe-theme-ecommerce .fe-btn--primary,
.fe-theme-ecommerce .fe-price-card__action {
  background: linear-gradient(135deg, var(--fe-ecom-red), #d56b35);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(179, 58, 53, 0.16);
}

.fe-theme-ecommerce .fe-btn--outline {
  border-color: rgba(179, 58, 53, 0.22);
  color: var(--fe-ecom-red);
}

.fe-ecommerce-hero.fe-home-hero--background {
  background:
    linear-gradient(90deg, rgba(255, 248, 241, 0.98) 0%, rgba(255, 248, 241, 0.92) 45%, rgba(23, 35, 58, 0.12) 100%),
    url("../images/frontend-portal/about-business-office.png") right center / cover no-repeat;
}

.fe-ecommerce-service-hero.fe-service-hero--background {
  background:
    linear-gradient(90deg, rgba(255, 248, 241, 0.98) 0%, rgba(255, 248, 241, 0.9) 48%, rgba(23, 35, 58, 0.1) 100%),
    url("../images/frontend-portal/tax-insights-office.png") center / cover no-repeat;
}

.fe-theme-ecommerce .fe-service-summary-strip .fe-total-card--service {
  background: linear-gradient(150deg, #17233a, #2166a9);
}

.fe-theme-ecommerce .fe-price-card.is-selected {
  border-color: rgba(179, 58, 53, 0.34);
  box-shadow: 0 18px 36px rgba(179, 58, 53, 0.12);
}

.fe-business-body {
  min-height: 100vh;
  color: var(--fe-business-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    url("../images/merchant-portal/beijing111.png") center / cover fixed no-repeat;
}

.fe-theme-business .fe-portal-bg {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.86)),
    linear-gradient(120deg, rgba(17, 24, 39, 0.06), rgba(40, 120, 95, 0.08));
}

.fe-business-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--fe-business-line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.fe-business-header__inner,
.fe-business-footer__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fe-business-brand {
  min-width: 0;
  max-width: 62%;
  overflow: hidden;
  color: var(--fe-business-ink);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-business-nav {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
}

.fe-business-nav a,
.fe-business-footer a {
  color: var(--fe-business-muted);
  text-decoration: none;
}

.fe-business-nav a:hover,
.fe-business-footer a:hover {
  color: var(--fe-business-ink);
}

.fe-business-nav__primary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff !important;
}

.fe-business-shell {
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: center;
}

.fe-business-hero {
  min-height: min(720px, calc(100vh - 190px));
  display: grid;
  align-items: center;
  padding: 80px 0;
}

.fe-business-hero--compact {
  min-height: min(560px, calc(100vh - 190px));
}

.fe-business-hero__content {
  max-width: 760px;
}

.fe-business-hero__content h1 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--fe-business-ink);
  font-size: 5.8rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.fe-business-hero__content p {
  margin: 24px 0 0;
  max-width: 42rem;
  color: var(--fe-business-muted);
  font-size: 1.18rem;
}

.fe-theme-business .fe-btn--primary {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.18);
}

.fe-theme-business .fe-btn--outline {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(17, 24, 39, 0.18);
  color: var(--fe-business-ink);
}

.fe-business-footer {
  border-top: 1px solid var(--fe-business-line);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
}

.fe-business-footer__inner {
  min-height: 78px;
}

.fe-business-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

@media (max-width: 720px) {
  .fe-theme-ecommerce .fe-home-hero--background {
    background:
      linear-gradient(180deg, rgba(23, 35, 58, 0.18), rgba(23, 35, 58, 0.84)),
      linear-gradient(90deg, rgba(23, 35, 58, 0.72), rgba(23, 35, 58, 0.1)),
      url("../images/frontend-portal/mobile-portal-hero.png") center / cover no-repeat;
  }

  .fe-theme-ecommerce .fe-home-hero--background .fe-home-hero__copy h1,
  .fe-theme-ecommerce .fe-home-hero--background .fe-home-hero__copy p,
  .fe-theme-ecommerce .fe-home-hero--background .fe-eyebrow {
    color: #ffffff;
  }

  .fe-business-body {
    padding-bottom: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72)),
      url("../images/merchant-portal/beijing111.png") center / cover fixed no-repeat;
  }

  .fe-business-header__inner,
  .fe-business-footer__inner {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .fe-business-brand {
    max-width: 100%;
  }

  .fe-business-nav,
  .fe-business-footer nav {
    justify-content: flex-start;
  }

  .fe-business-shell {
    min-height: calc(100vh - 190px);
    padding-top: 0;
  }

  .fe-business-hero {
    min-height: calc(100vh - 220px);
    padding: 52px 0;
  }

  .fe-business-hero__content h1 {
    font-size: 3rem;
  }

  .fe-business-hero__content p {
    font-size: 1rem;
  }
}
