/* ===== theme.css — 站点主题层：设计令牌 + 组件覆写 ===== */

:root {
  /* 底色 / 文字 */
  --wb-bg:      #ffffff;
  --wb-bg-alt:  #f8f9fa;
  --wb-bg-alt2: #f4f5f5;
  --wb-black:   #1a1a1a;   /* 近黑：次要按钮、强文字 */
  --wb-ink:     #191a23;   /* 标题 */
  --wb-body:    #55606e;   /* 正文 */
  --wb-muted:   #6b7280;   /* 次要 */

  /* 强调色：薄荷绿 */
  --wb-brand:      #28b894;
  --wb-brand-hi:   #1f9e7e;
  --wb-brand-text: #1c9a7c;  /* 大字/图标（白底 3.5:1） */
  --wb-brand-ink:  #10705a;  /* 小字/链接（白底 5.5:1） */
  --wb-tint:       rgba(40, 184, 148, 0.08);
  --wb-tint-2:     rgba(40, 184, 148, 0.14);
  --wb-tint-3:     rgba(40, 184, 148, 0.05);

  /* 描边 */
  --wb-line:      #e8e8e8;
  --wb-line-soft: #f0f0f0;
  --wb-line-ink:  rgba(0, 0, 0, 0.08);

  /* 投影（大范围柔和 + 细描边） */
  --wb-sh-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --wb-sh-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --wb-sh:    0 12px 32px rgba(0, 0, 0, 0.12);
  --wb-sh-lg: 0 24px 64px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);

  /* 圆角：控件基准 4px，这里取 6px（更柔和的观感） */
  --wb-r-ctl: 6px;
  --wb-r-sm:  8px;
  --wb-r:     12px;
  --wb-r-lg:  16px;
  --wb-pill:  999px;

  /* 字体：优先本机可用的“重量级黑体”，无网络字体请求 */
  --wb-font-display: "Alimama ShuHeiTi", "Noto Sans SC Black", "Noto Sans SC",
                     "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --wb-font-body:    "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
                     "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ 基础 */
html { background: var(--wb-bg) !important; }
body {
  background-color: var(--wb-bg) !important;
  background-image: none !important;
  color: var(--wb-body);
  font-family: var(--wb-font-body);
}
::selection { background: var(--wb-tint-2); color: var(--wb-ink); }

/* 标题统一走「重量级黑体」，本站视觉的主要特征 */
h1, h2, h3, h4,
.section-title, .scenario-title, .scenario-panel h3,
.pricing-page-header h2, .price, .plan-badge,
.faq-question, .why-card h3, .benefit-card h3,

.qr-modal h3, .ref-title {
  font-family: var(--wb-font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- 按钮 */
/* 主按钮=薄荷绿实心；次按钮=白底 + 薄荷绿描边 + 黑字 */
.btn-primary,
.hero-actions .btn-primary {
  background: var(--wb-brand);
  color: #fff;
  border: 1px solid var(--wb-brand);
  border-radius: var(--wb-r-ctl);
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (hover: hover){.btn-primary:hover,
.hero-actions .btn-primary:hover{
  background: var(--wb-brand-hi);
  border-color: var(--wb-brand-hi);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(40, 184, 148, 0.6);
}}
.btn-outline,
.hero-actions .btn-outline {
  background: #fff;
  border: 1px solid var(--wb-brand);
  color: var(--wb-black);
  border-radius: var(--wb-r-ctl);
  box-shadow: none;
  font-weight: 700;
}
@media (hover: hover){.btn-outline:hover,
.hero-actions .btn-outline:hover{
  background: var(--wb-tint-3);
  border-color: var(--wb-brand-hi);
  color: var(--wb-brand-ink);
}}

/* ------------------------------------------------------- 标题 / 段落 */
.section-title {
  color: var(--wb-ink);
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.2;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.section-sub {
  color: var(--wb-body);
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------------ Hero */
/* 首屏版式：居中、大标题、20px 副标题、按钮居中、产品卡片在下 */
.hero {
  background:
    radial-gradient(52% 46% at 50% 0%, rgba(40, 184, 148, 0.10), transparent 68%),
    radial-gradient(38% 40% at 12% 8%, rgba(40, 184, 148, 0.07), transparent 70%),
    var(--wb-bg);
  border-bottom: 0;
  padding: 64px 0 88px;
}
.hero::before, .hero::after { display: none !important; }

.hero-content {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 56px;
}

/* 文案在上 */
.hero-text {
  order: 1;
  width: 100%;
  max-width: 860px;
  padding: 0;               /* 去掉 padding-right，避免文字被推左、与下方图案不居中 */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text .hero-badge {
  background: var(--wb-tint);
  color: var(--wb-brand-ink);
  border: 1px solid rgba(40, 184, 148, 0.22);
  border-radius: var(--wb-pill);
  padding: 8px 16px;        /* 左右等宽：文字/图标在胶囊里居中 */
  box-shadow: none;
  margin-left: auto; margin-right: auto;
  justify-content: center;
  line-height: 1;
}
.hero-text h1 {
  color: var(--wb-ink);
  font-family: var(--wb-font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.14;
  letter-spacing: 0;
}
.hero-text h1 span {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--wb-brand-text);
}
.hero-text p {
  color: var(--wb-body);
  font-size: 18px;
  line-height: 1.75;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.hero-actions { justify-content: center; gap: 14px; }
.hero-actions .btn-primary,
.hero-actions .btn-outline {
  height: 48px; padding: 0 26px; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}

/* -------------------------------------------------------------- 场景区 */
.scenarios-section { background: var(--wb-bg-alt); padding: 96px 0; }
.scenarios-display {
  background: #fff;
  border: 1px solid var(--wb-line-ink);
  border-radius: var(--wb-r-lg);
  box-shadow: var(--wb-sh);
}
.scenarios-bg-layer {
  background-image:
    radial-gradient(70% 80% at 16% 10%, rgba(40, 184, 148, 0.10), transparent 66%),
    radial-gradient(64% 74% at 88% 14%, rgba(40, 184, 148, 0.07), transparent 70%);
}
/* 左侧导航 = 「分段控件」观感 */
.scenarios-nav {
  border-left: 0;
  background: rgba(194, 196, 211, 0.2);
  border-radius: 11px;
  padding: 10px;
}
.scenario-item {
  border-radius: var(--wb-r-ctl);
  color: var(--wb-muted);
  border-left: 0 !important;
  transition: background .18s, color .18s;
}
@media (hover: hover){.scenario-item:hover{ background: rgba(255, 255, 255, 0.7); color: var(--wb-ink); }}
.scenario-item.active {
  background: var(--wb-brand);
  color: #fff;
  border-left: 0 !important;
  box-shadow: none;
}
.scenario-item .scenario-desc { color: var(--wb-muted); }
.scenario-item.active .scenario-desc { color: rgba(255, 255, 255, 0.88); }
.scenario-panel .panel-icon { color: var(--wb-brand-text); }
.scenario-panel h3 { color: var(--wb-ink); text-shadow: none; }
.scenario-panel .panel-desc { color: var(--wb-body); text-shadow: none; }
.scene-float-img { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.1)); }

/* -------------------------------------------------------------- 功能卡 */
.features-grid { gap: 20px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--wb-line-ink);
  border-radius: var(--wb-r);
  box-shadow: var(--wb-sh-sm);
  padding: 32px 28px;
}
@media (hover: hover){.feature-card:hover{
  border-color: rgba(40, 184, 148, 0.4);
  box-shadow: var(--wb-sh-lg);
  transform: translateY(-3px);
}}
.feature-icon {
  color: var(--wb-brand-text);
  background: var(--wb-tint);
  border-radius: var(--wb-r-sm);
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-card h3 { color: var(--wb-ink); }
.feature-card p { color: var(--wb-body); }

/* ---------------------------------------------------------------- 定价 */
.pricing-page-header { padding: 88px 0 40px; text-align: center; }
.pricing-page-header h2 {
  color: var(--wb-ink);
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.2;
}
.pricing-page-header p { color: var(--wb-body); font-size: 18px; }

.pricing-card {
  background: #fff;
  border: 1px solid var(--wb-line-ink);
  border-radius: var(--wb-r);
  box-shadow: var(--wb-sh-sm);
}
@media (hover: hover){.pricing-card:hover{ box-shadow: var(--wb-sh-lg); }}
.pricing-card.featured {
  border: 1.5px solid var(--wb-brand);
  box-shadow: 0 24px 64px -18px rgba(40, 184, 148, 0.45), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.pricing-card .plan-badge {
  background: var(--wb-tint);
  color: var(--wb-brand-ink);
  border: 1px solid rgba(40, 184, 148, 0.24);
  border-radius: var(--wb-r-ctl);
}
.pricing-card h3 { color: var(--wb-ink); }
.pricing-card .price { color: var(--wb-black); font-weight: 900; }
.pricing-card .price span { color: var(--wb-muted); }
.pricing-card .plan-seats, .pricing-card .plan-desc { color: var(--wb-body); }
.pricing-card .btn-contact {
  background: var(--wb-brand);
  border: 1px solid var(--wb-brand);
  border-radius: var(--wb-r-ctl);
  box-shadow: none;
  font-weight: 700;
}
@media (hover: hover){.pricing-card .btn-contact:hover{
  background: var(--wb-brand-hi);
  box-shadow: 0 8px 22px -8px rgba(40, 184, 148, 0.6);
}}
.pricing-card .contact-phone { color: var(--wb-brand-ink); }
.pricing-card .plan-divider { border-top-color: var(--wb-line); }
.pricing-card .plan-section-label { color: var(--wb-muted); }
.pricing-card .plan-features { color: var(--wb-body); }
.pricing-card .plan-features li i { color: var(--wb-brand-text); }
.pricing-card .plan-features li .feature-exclusive {
  background: var(--wb-tint);
  color: var(--wb-brand-ink);
  border: 1px solid rgba(40, 184, 148, 0.22);
  border-radius: var(--wb-r-ctl);
}

/* ---------------------------------------------------------------- 弹窗 */
.qr-modal-overlay { background: rgba(26, 26, 26, 0.45); }
.qr-modal {
  background: #fff;
  border: 1px solid var(--wb-line-ink);
  border-radius: var(--wb-r-lg);
  box-shadow: var(--wb-sh-lg);
}
.qr-modal .modal-close { background: #f3f4f6; color: var(--wb-muted); }
@media (hover: hover){.qr-modal .modal-close:hover{ background: #e9eaec; color: var(--wb-black); }}
.qr-modal h3 { color: var(--wb-ink); }
.qr-modal p { color: var(--wb-body); }
.qr-modal .qr-code-img { border: 1px solid var(--wb-line); border-radius: var(--wb-r-sm); }
.qr-modal .qr-phone { color: var(--wb-brand-ink); }

/* ------------------------------------------------------------- 参考对比 */
.ref-section { background: var(--wb-bg-alt); padding: 96px 0; }
.ref-sub { color: var(--wb-body); }
.cmp-table, .budget-table {
  background: #fff;
  border: 1px solid var(--wb-line-ink);
  border-radius: var(--wb-r);
  box-shadow: var(--wb-sh-sm);
  overflow: hidden;
}
.cmp-table th, .cmp-table td, .budget-table th, .budget-table td { border-bottom: 1px solid var(--wb-line-soft); }
.cmp-table thead th, .budget-table thead th { background: var(--wb-bg-alt2); color: var(--wb-ink); font-weight: 700; }
.cmp-table tbody tr:nth-child(even), .budget-table tbody tr:nth-child(even) { background: var(--wb-bg-alt); }
.cmp-table td:first-child, .budget-table td:first-child { color: var(--wb-black); font-weight: 600; }
.yes { color: var(--wb-brand-ink); }
.cmp-table td:nth-child(3), .budget-table td:nth-child(2) { color: var(--wb-brand-ink); font-weight: 700; }
.cmp-table td:nth-child(3) { background: var(--wb-tint); }
.ref-note { color: var(--wb-body); }
.qr-link { color: var(--wb-brand-ink); }
@media (hover: hover){.qr-link:hover{ color: var(--wb-brand); }}
.save-tip .qr-link { color: var(--wb-brand-ink); }

/* ------------------------------------------------------------ 关于/权益 */
.why-section { padding: 96px 0; }
.why-card, .benefit-card {
  background: #fff;
  border: 1px solid var(--wb-line-ink);
  border-radius: var(--wb-r);
  box-shadow: var(--wb-sh-sm);
}
@media (hover: hover){.why-card:hover, .benefit-card:hover{ box-shadow: var(--wb-sh-lg); border-color: rgba(40, 184, 148, 0.35); }}
.why-card h3, .benefit-card h3 { color: var(--wb-ink); }
.why-card p, .benefit-card li { color: var(--wb-body); }
.benefit-card li i { color: var(--wb-brand-text); }

/* ------------------------------------------------------------ 私有化区块 */
.privatize-box {
  background: linear-gradient(120deg, #1a1a1a 0%, #101219 100%);
  border: 0;
  border-radius: var(--wb-r-lg);
  box-shadow: var(--wb-sh-lg);
  position: relative; overflow: hidden;
}
.privatize-box::after {
  content: ''; position: absolute; inset: auto -12% -62% auto; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(40, 184, 148, 0.26), transparent 66%);
  pointer-events: none;
}
.privatize-box h2, .privatize-box h3 { color: #fff; }
.privatize-box p { color: rgba(255, 255, 255, 0.76); }
.privatize-box .btn-privatize {
  background: var(--wb-brand);
  border-radius: var(--wb-r-ctl);
  box-shadow: none;
}
@media (hover: hover){.privatize-box .btn-privatize:hover{ background: var(--wb-brand-hi); }}

/* ---------------------------------------------------------------- FAQ */
.faq-section { padding: 96px 0; background: transparent; }
.faq-list {
  counter-reset: wb-faq;
  max-width: 1200px;   /* 与全站版心统一 1200 */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.faq-item {
  background: transparent;
  border-top: 1px solid var(--wb-line);
  border-bottom: 0;
  overflow: visible;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.faq-item:first-child { border-radius: 0; }
.faq-item:last-child { border-radius: 0; border-bottom: 1px solid var(--wb-line); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 26px 4px;
  background: none;
  font-family: var(--wb-font-display);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -0.01em;
  color: var(--wb-ink);
  transition: color .18s;
}
.faq-question::before {
  counter-increment: wb-faq;
  content: counter(wb-faq, decimal-leading-zero);
  flex: 0 0 56px;
  font-family: var(--wb-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--wb-brand-text);
  transition: color .18s;
}
.faq-item.active .faq-question::before { color: var(--wb-black); }
@media (hover: hover){.faq-question:hover{ color: var(--wb-brand-ink); }}

/* 加号 → 减号 */
.faq-arrow { position: relative; flex: 0 0 14px; width: 14px; height: 14px; margin-left: auto; border: 0; transform: none; }
.faq-arrow::before, .faq-arrow::after { content: ''; position: absolute; background: var(--wb-muted); transition: .2s; }
.faq-arrow::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.faq-arrow::after  { top: 0; bottom: 0; left: 6.5px; width: 1px; }
.faq-item.active .faq-arrow { transform: none; margin-top: 0; }
.faq-item.active .faq-arrow::after { transform: rotate(90deg); opacity: 0; }

/* 手风琴：关闭时高度 0。底部内边距只在 active 时给，否则关闭态残留一条 28px 空白 */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0;
  transition: grid-template-rows .35s ease;
}
.faq-answer > * { overflow: hidden; min-height: 0; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; padding: 0; }
.faq-answer p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--wb-body);
  padding: 0 4px 0 74px;
  max-width: 720px;
  margin: 0;
}
.faq-item.active .faq-answer p { padding-bottom: 28px; }@media (max-width: 768px){
  .faq-question { gap: 14px; padding: 22px 2px; }
  .faq-question::before { flex: 0 0 44px; font-size: 14px; }
  .faq-answer p { padding: 0 2px 0 58px; font-size: 15px; }
  .faq-item.active .faq-answer p { padding-bottom: 24px; }}@media (max-width: 480px){
  .faq-question::before { flex: 0 0 36px; font-size: 13px; }
  .faq-answer p { padding-left: 50px; }}
footer {
  background: var(--wb-bg-alt);
  color: var(--wb-body);
  border-top: 1px solid var(--wb-line);
}
.footer-bottom { color: var(--wb-muted); }

/* ------------------------------------------------------------ 回到顶部 */
.back-to-top {
  border: 1px solid var(--wb-line-ink);
  background: #fff;
  box-shadow: var(--wb-sh);
  color: var(--wb-black);
  width: 48px; height: 48px;
  border-radius: var(--wb-r-ctl);
}
@media (hover: hover){.back-to-top:hover{
  background: var(--wb-brand);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px -8px rgba(40, 184, 148, 0.6);
}}

/* ---------------------------------------------------- 全站版心统一 1200px */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }   /* 版心 1200 */

/* ------------------------------------------------------ 导航栏 CTA */
.nav-contact {
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f2f9f7;
  border: 1px solid #aedbcc;
  color: #336e5b;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (hover: hover){.nav-contact:hover{ background: #e7f5f0; border-color: #8fcdb6; color: #2a5d4c; }}
/* 进入「联系销售」页时高亮：同色系加深一档 + 淡高亮环 */
.nav-contact.active { background: #e7f5f0; border-color: #8fcdb6; color: #2a5d4c; box-shadow: 0 0 0 3px rgba(40, 184, 148, 0.14); }
.navbar.scrolled .nav-contact { height: 38px; padding: 0 18px; }@media (max-width: 768px){
  .nav-contact { height: 34px; padding: 0 14px; font-size: 13px; }
  .navbar.scrolled .nav-contact { height: 32px; }}

/* ---------------------------------------------------------- 响应式微调 */
@media (max-width: 1024px) {
  .hero { padding: 48px 0 64px; }
  .hero-content { gap: 40px; }
  .faq-list { padding: 0 4px; }
}@media (max-width: 768px){
  .scenarios-section, .ref-section, .why-section, .faq-section { padding: 64px 0; }
  .cmp-table tr, .budget-table tr {
    background: #fff;
    border: 1px solid var(--wb-line-ink);
    border-radius: var(--wb-r-sm);
    box-shadow: var(--wb-sh-xs);
  }
  .cmp-table td:first-child, .budget-table td:first-child {
    background: var(--wb-tint);
    border-radius: var(--wb-r-sm) var(--wb-r-sm) 0 0;
    color: var(--wb-ink);
  }}

/* ------------------------------------------------- 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrapper img, .hero-text .hero-badge { animation: none; }
}

/* ===== 修正层：置于文件末，保证覆盖优先级 ===== */

/* ---- 弹窗遮罩：内容超出可滚动 ---- */
.qr-modal-overlay {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 16px;
}

/* 证书弹窗：宽度自适应图片，高度受视口约束，整张证书不再被裁切 */
.cert-modal {
  max-width: 900px;
  width: auto;
  padding: 0;
  margin: auto;
}
.cert-modal img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 96px);   /* 上下各留 48px，整张证书完整落在视口内 */
  height: auto;
  margin: 0 auto;
  border-radius: var(--wb-r-sm);
}

/* ---- 回到顶部：幽灵按钮 ---- */
.back-to-top {
  width: auto;
  height: 40px;
  padding: 0 16px;
  gap: 8px;
  border-radius: var(--wb-r-ctl);
  border: 1px solid #ced2d8;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color: #303133;
  font-family: var(--wb-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}
.back-to-top svg { display: block; flex: 0 0 auto; }
@media (hover: hover){.back-to-top:hover{
  background: #f7f8fa;
  border-color: #bfc4cb;
  color: #000;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
}}@media (max-width: 768px){
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: auto;
    height: 36px;
    padding: 0 12px;
    gap: 6px;
    font-size: 13px;
  }}

/* 关闭「三个版本怎么选」对比表第三列（企业专享版）的呼吸闪烁动画 */
.cmp-table td:nth-child(3), .budget-table td:nth-child(2) { animation: none; }

/* 「内置权益，一次配齐」副标题：取消 820px 宽度上限，让整句显示为一行 */
.ref-sub.ref-sub-wide { max-width: none; }

/* FAQ 答案首行缩进 2 个字符（企业版常见问题FAQ / 开通常见问题 两处通用） */
.faq-answer p { text-indent: 2em; }

/* ===== 移动端动态视口高度（渐进增强） ===== */
@supports (height: 100dvh) {
  .cert-modal img { max-height: calc(100dvh - 96px); }
}
