/* 企税康 — 自定义样式（配合 Tailwind CDN） */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

.glass-nav {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav-scrolled {
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* 滚过首屏后：导航栏白色底色 */
#main-header.header-light {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

#main-header.header-light .header-nav-link {
  color: rgba(51, 65, 85, 0.85);
}

#main-header.header-light .header-nav-link:hover {
  color: #0f172a;
}

/* 导航选中态：蓝色字体 + 下划线 */
.header-nav-link {
  position: relative;
}

.header-nav-link.active {
  color: #38bdf8 !important;
  font-weight: 600;
}

.header-nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.25rem;
  height: 2px;
  background: #38bdf8;
  border-radius: 1px;
}

#main-header.header-light .header-nav-link.active {
  color: #0369a1 !important;
}

#main-header.header-light .header-nav-link.active::after {
  background: #0369a1;
}

#main-header.header-light .header-nav-link.active:hover {
  color: #0369a1 !important;
}

.header-mobile-link.active {
  color: #38bdf8 !important;
  font-weight: 600;
  border-bottom: 2px solid #38bdf8;
  border-radius: 0;
}

#main-header.header-light .header-mobile-link.active {
  color: #0369a1 !important;
  border-bottom-color: #0369a1;
  background: #f0f9ff;
}

#main-header.header-light .header-slogan {
  color: #475569;
  border-color: #e2e8f0;
}

#main-header.header-light .header-slogan:hover {
  color: #0f172a;
}

#main-header.header-light .header-menu-btn {
  color: #0f172a;
}

#main-header.header-light .header-util-link {
  color: #64748b;
}

#main-header.header-light .header-util-link:hover {
  color: #0f172a;
}

#main-header.header-light .header-phone-copy:hover {
  background: #f1f5f9;
}

#main-header.header-light span.bg-white\/20 {
  background: #e2e8f0;
}

#main-header.header-light #mobile-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

#main-header.header-light #mobile-menu .header-mobile-link {
  color: #475569;
}

#main-header.header-light #mobile-menu .header-mobile-link:hover {
  color: #0f172a;
  background: #f8fafc;
}

.logo-img {
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: normal;
}

#main-header:not(.header-light) .logo-img,
footer .logo-img {
  background: transparent !important;
}

.btn-gradient-blue {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 50%, #1e3a8a 100%);
}

.btn-gradient-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(30, 27, 75, 0.75) 40%,
    rgba(3, 105, 161, 0.55) 100%
  );
}

.marquee-track {
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-track-reverse {
  animation: marquee-reverse 45s linear infinite;
  width: max-content;
}

.marquee-track:hover,
.marquee-track-reverse:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── 产品金字塔：统一蓝色交互体系 ── */
.pyramid-btn {
  transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

/* 有选中层时，未选中层级降级 */
.pyramid-visual:has(.pyramid-btn.active) .pyramid-btn:not(.active) {
  opacity: 0.52;
  filter: grayscale(0.25) saturate(0.75);
  transform: scale(0.985);
  box-shadow: 0 2px 8px rgba(15, 48, 88, 0.12);
}

.pyramid-btn.active {
  opacity: 1;
  transform: scale(1.04);
  z-index: 2;
  filter: brightness(1.12) saturate(1.05);
  box-shadow:
    0 0 0 3px rgba(24, 144, 255, 0.22),
    0 8px 24px rgba(24, 144, 255, 0.18);
  outline: 2px solid rgba(24, 144, 255, 0.55);
  outline-offset: 2px;
}

.pyramid-btn:hover {
  opacity: 1;
  z-index: 2;
}

.pyramid-visual:has(.pyramid-btn.active) .pyramid-btn.active:hover {
  transform: scale(1.045);
}

/* 三栏布局容器：与页头 max-w-7xl 同宽，左右缘对齐 Logo / 免费咨询按钮 */
.pyramid-layout {
  width: 100%;
}

/* 左右侧栏卡片 */
.pyramid-side-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pyramid-side-card--budget {
  align-self: start;
}

.pyramid-side-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  padding-bottom: 0.875rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #f1f5f9;
}

/* 中栏：产品金字塔焦点卡片 */
.pyramid-hero-card {
  background: linear-gradient(165deg, #fafcff 0%, #f5f9ff 50%, #f0f7ff 100%);
  border: 1px solid #d6e8ff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 10px 30px rgba(24, 144, 255, 0.05);
  overflow: hidden;
}

.pyramid-hero-card--mobile {
  min-height: auto;
  padding: 1.25rem 1rem;
}

.pyramid-hero-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: #64748b;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #dbeafe;
  border-radius: 9999px;
  padding: 0.4375rem 0.9375rem;
  margin-bottom: 0.875rem;
}

.pyramid-hero-hint__icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #1890ff;
  stroke-width: 2;
}

.pyramid-visual {
  min-width: 0;
}

.pyramid-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 14px 28px 16px;
  line-height: 1.45;
  clip-path: polygon(6% 0%, 94% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 4px 12px rgba(15, 48, 88, 0.2);
}

.pyramid-tier-title {
  font-weight: 600;
  font-size: 0.8125rem;
  max-width: 92%;
  padding: 0 0.25rem;
}

.pyramid-tier-sub {
  font-size: 0.6875rem;
  opacity: 0.92;
  margin-top: 4px;
  max-width: 88%;
  padding: 0 0.375rem;
  line-height: 1.5;
}

.pyramid-tier--0 {
  width: min(100%, 24rem);
  min-height: 4.875rem;
  background: linear-gradient(180deg, #1e4d7b 0%, #0f3058 100%);
  padding-left: 32px;
  padding-right: 32px;
}

.pyramid-tier--1 {
  width: min(100%, 19rem);
  min-height: 4.375rem;
  background: linear-gradient(180deg, #5a7d94 0%, #3d6278 100%);
  padding-left: 30px;
  padding-right: 30px;
}

.pyramid-tier--2 {
  width: min(100%, 14.5rem);
  min-height: 4rem;
  background: linear-gradient(180deg, #8eb4cc 0%, #6d96b0 100%);
  padding-left: 26px;
  padding-right: 26px;
}

.pyramid-tier--3 {
  width: min(100%, 10.5rem);
  min-height: 3.5rem;
  background: linear-gradient(180deg, #b8d8ee 0%, #8eb8d8 100%);
  clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%);
  color: #0f3058;
  padding-left: 22px;
  padding-right: 22px;
}

.pyramid-tier--3 .pyramid-tier-sub {
  color: #1e4d7b;
}

@media (min-width: 1280px) {
  .pyramid-tier--0 { width: min(100%, 26rem); min-height: 5.125rem; padding-left: 36px; padding-right: 36px; }
  .pyramid-tier--1 { width: min(100%, 21rem); padding-left: 34px; padding-right: 34px; }
  .pyramid-tier--2 { width: min(100%, 16rem); padding-left: 30px; padding-right: 30px; }
  .pyramid-tier--3 { width: min(100%, 11.5rem); padding-left: 24px; padding-right: 24px; }

  .pyramid-tier-title {
    font-size: 0.9375rem;
  }

  .pyramid-tier-sub {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .pyramid-tier-title {
    font-size: 0.875rem;
  }

  .pyramid-tier-sub {
    font-size: 0.75rem;
  }
}

/* 左侧预算项 */
.pyramid-budget-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.28s ease;
}

.pyramid-budget-box.active {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%);
  border-color: #91caff;
  box-shadow: 0 10px 30px rgba(24, 144, 255, 0.08);
  transform: translateX(4px);
}

.pyramid-budget-tier {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1875rem;
}

.pyramid-budget-box.active .pyramid-budget-tier {
  color: #1890ff;
}

.pyramid-budget-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
}

.pyramid-budget-box.active .pyramid-budget-value {
  color: #096dd9;
}

/* 右侧生命周期面板 */
.pyramid-lifecycle-panel {
  background: linear-gradient(135deg, #fafcff 0%, #f5f9ff 100%);
  border: 1px solid #e8edf2;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.pyramid-lifecycle-panel--active {
  border-color: #bae0ff;
  box-shadow: inset 0 0 0 1px rgba(24, 144, 255, 0.08);
}

.pyramid-hero-card--focused {
  border-color: #91caff;
  box-shadow:
    0 10px 30px rgba(24, 144, 255, 0.08),
    0 0 0 1px rgba(24, 144, 255, 0.12);
}

.pyramid-dots-bg {
  background-image: radial-gradient(circle, rgba(24, 144, 255, 0.2) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.35), transparent 70%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.35), transparent 70%);
}

/* 阶段胶囊：全阶段统一蓝色系 */
.pyramid-stage-badge {
  display: inline-block;
  padding: 0.375rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

.pyramid-stage-badge.badge-startup {
  background: linear-gradient(135deg, #69b1ff 0%, #1890ff 100%);
}

.pyramid-stage-badge.badge-growth {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.pyramid-stage-badge.badge-develop {
  background: linear-gradient(135deg, #096dd9 0%, #0050b3 100%);
}

.pyramid-stage-badge.badge-mature {
  background: linear-gradient(135deg, #0050b3 0%, #003a8c 100%);
}

/* 右侧详情字阶 */
.pyramid-detail-scale {
  font-family: 'Poppins', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 1280px) {
  .pyramid-detail-scale {
    font-size: 1.5rem;
  }
}

.pyramid-detail-scale--compact {
  font-size: 1.0625rem;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .pyramid-detail-scale--compact {
    font-size: 1.125rem;
  }
}

.pyramid-detail-label {
  font-size: 12px;
  font-weight: 500;
  color: #8c9bab;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.pyramid-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.75;
}

.pyramid-detail-budget {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #096dd9;
  line-height: 1.65;
}

#pyramid-detail-scale,
#pyramid-detail-service,
#pyramid-detail-budget,
#pyramid-detail-mobile-scale,
#pyramid-detail-mobile-service,
#pyramid-detail-mobile-budget {
  transition: opacity 0.2s ease;
}

#pyramid-detail.is-switching #pyramid-detail-scale,
#pyramid-detail.is-switching #pyramid-detail-service,
#pyramid-detail.is-switching #pyramid-detail-budget,
#pyramid-detail-mobile.is-switching #pyramid-detail-mobile-scale,
#pyramid-detail-mobile.is-switching #pyramid-detail-mobile-service,
#pyramid-detail-mobile.is-switching #pyramid-detail-mobile-budget {
  opacity: 0;
}

.panel-active {
  border-color: #7dd3fc !important;
  background-color: #f0f9ff !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  opacity: 1 !important;
}

.panel-dim {
  opacity: 0.55;
}

.tab-btn.active {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 50%, #1e3a8a 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.35);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* 常年财税顾问 — 定制图标 */
.advisor-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.75rem;
  color: #fff;
}

.advisor-icon-badge--title {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .marquee-track-reverse { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 复制成功提示 */
.copy-toast {
  position: fixed;
  top: 4.25rem;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%) translateY(-0.5rem);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 用户服务协议及隐私政策页 */
.legal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-page article {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .legal-page article {
    padding: 3rem;
  }
}

.legal-page__header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.legal-section + .legal-section {
  margin-top: 2.5rem;
}

.legal-section__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
}

.legal-section__subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-list li + li {
  margin-top: 0.5rem;
}

.legal-ordered-list {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal-ordered-list li + li {
  margin-top: 0.35rem;
}

.legal-contact {
  list-style: none;
  padding-left: 0;
}

.legal-link {
  color: #0369a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-link:hover {
  color: #0284c7;
}

.legal-footer {
  background: #0f172a;
  margin-top: 2rem;
}
