/* =========================================================
   营销官网 · site.css
   高级商务 SaaS 风：低饱和、留白足、细边框、轻阴影、无花哨动效
   ========================================================= */

:root {
  --primary: #1f4b99;       /* 主色：沉稳深蓝 */
  --primary-hover: #173a7a;
  --ink: #1a2b44;           /* 正文深色 */
  --ink-sub: #4a5568;       /* 次级文字 */
  --ink-light: #718096;     /* 辅助说明 */
  --border: #e2e8f0;
  --border-strong: #cbd5e0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-card: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 1px 2px rgba(26,43,68,0.04), 0 1px 3px rgba(26,43,68,0.06);
  --shadow-hover: 0 4px 12px rgba(26,43,68,0.08);
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.nav-logo img {
  height: 28px;
  width: auto;
  border-radius: 4px;
}
.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-menu a {
  font-size: 14px;
  color: var(--ink-sub);
  padding: 4px 0;
  position: relative;
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a.active {
  color: var(--primary);
  font-weight: 500;
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}
.nav-cta {
  display: flex;
  gap: 12px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.btn-lg {
  height: 44px;
  padding: 0 28px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.25;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-sub);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* ---------- Section ---------- */
.section {
  padding: 72px 0;
}
.section-alt { background: var(--bg-soft); }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--ink-light);
  font-size: 15px;
}

/* ---------- 价值主张卡片 ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: box-shadow 0.15s ease;
}
.value-card:hover {
  box-shadow: var(--shadow-hover);
}
.value-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.value-card p {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.6;
}

/* ---------- 套餐卡片 ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pkg-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.pkg-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.pkg-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  position: relative;
}
.pkg-featured::before {
  content: '推荐';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 10px;
}
.pkg-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.pkg-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}
.pkg-price .amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
}
.pkg-price .currency {
  font-size: 16px;
  color: var(--ink-sub);
}
.pkg-price .period {
  font-size: 14px;
  color: var(--ink-light);
  margin-left: 4px;
}
.pkg-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.pkg-features li {
  font-size: 14px;
  color: var(--ink-sub);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 8px;
}
.pkg-features li:last-child { border-bottom: none; }
.pkg-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}
.pkg-cta {
  width: 100%;
}

/* ---------- 案例卡片 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.case-card:hover {
  box-shadow: var(--shadow-hover);
}
.case-cover {
  width: 100%;
  height: 180px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  font-size: 14px;
  overflow: hidden;
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-body {
  padding: 20px 22px;
}
.case-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.case-body p {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.6;
}

/* ---------- 联系我们 ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 48px 0;
}
.contact-item {
  margin-bottom: 28px;
}
.contact-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.contact-item .val {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}
.contact-qr {
  width: 200px;
  height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  overflow: hidden;
}
.contact-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- 信任背书 ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-card {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  text-align: center;
}
.trust-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.trust-card p {
  font-size: 13px;
  color: var(--ink-light);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-info {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.8;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-sub);
}
.footer-links a:hover { color: var(--primary); }

/* ---------- 协议页 ---------- */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-wrap h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.legal-wrap p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-sub);
  margin-bottom: 14px;
}
.legal-wrap strong {
  color: var(--ink);
}

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: 120px 24px;
}
.not-found .code {
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.not-found h2 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}
.not-found p {
  color: var(--ink-light);
  margin-bottom: 32px;
}

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-light);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .value-grid, .package-grid, .case-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .nav-menu { gap: 16px; }
  .section { padding: 48px 0; }
}

/* =========================================================
   🔴 2026-09-29 H5 自适应补丁（Tailwind 驱动的新官网用）
   ========================================================= */

/* ---------- 汉堡按钮 ---------- */
.site-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
  z-index: 1001;
}
.site-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1D2939;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.site-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.site-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 移动端抽屉导航 ---------- */
.site-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  max-width: 80vw;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 0 24px;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}
.site-mobile-nav.open {
  transform: translateX(0);
}
.site-mobile-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  color: #1D2939;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.site-mobile-nav a:hover,
.site-mobile-nav a.text-primary {
  background: #f0f5ff;
  color: #165DFF;
}

/* ---------- 遮罩 ---------- */
.site-mobile-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.site-mobile-mask.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- iOS 安全区 ---------- */
@supports (padding-top: env(safe-area-inset-top)) {
  header {
    padding-top: env(safe-area-inset-top);
  }
  .site-mobile-nav {
    padding-top: calc(80px + env(safe-area-inset-top));
  }
}

/* ---------- Tailwind 页面 H5 覆盖 ---------- */
@media (max-width: 768px) {
  /* 容器内边距减小 */
  .max-w-7xl.mx-auto.px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  /* header：logo 和登录按钮更紧凑 */
  header .py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  header .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  /* Hero 区减小顶部间距 */
  section.max-w-7xl.mx-auto.px-6.pt-24.pb-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  /* Hero 标题字号 */
  h1.text-\[clamp\(2\.2rem\,5vw\,3\.5rem\)\] {
    font-size: 2rem !important;
  }
  /* Hero 按钮全宽 */
  .mt-10.flex.flex-wrap.gap-4 a {
    flex: 1 1 100%;
    text-align: center;
  }
  /* section py-20 → py-12 */
  section.py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  section.bg-gray-50.py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  /* section 标题字号 */
  h2.text-3xl.font-bold {
    font-size: 1.5rem !important;
  }
  /* 卡片 padding 减小 */
  .bg-white.p-7.rounded-xl,
  .border.rounded-xl.p-7 {
    padding: 1.25rem !important;
  }
  /* contact 页二维码缩小 */
  .inline-block.w-52.h-52 {
    width: 180px !important;
    height: 180px !important;
  }
  /* 页脚间距减小 */
  footer.bg-dark.py-14 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  /* 页脚 grid gap 减小 */
  footer .grid.md\:grid-cols-4.gap-10 {
    gap: 1.5rem !important;
  }
  /* 协议页 padding */
  section.max-w-3xl.mx-auto.px-6.py-16 {
    padding: 1.5rem 1rem 3rem !important;
  }
  /* "登录"按钮隐藏（手机用汉堡菜单里的入口不够醒目，保留但缩小） */
  header a[href="/login"].bg-primary {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
}

/* ---------- 超小屏幕（<480px）---------- */
@media (max-width: 480px) {
  h1.text-\[clamp\(2\.2rem\,5vw\,3\.5rem\)\] {
    font-size: 1.75rem !important;
  }
  header span.text-xl.font-semibold {
    font-size: 1rem !important;
  }
  header .w-10.h-10 {
    width: 36px !important;
    height: 36px !important;
  }
  /* section 标题下方描述字号 */
  section .text-lg.md\:text-xl {
    font-size: 0.95rem !important;
  }
}

/* =========================================================
   🆕 2026-09-29 官网优势 & 信任背书 美化样式
   ========================================================= */

/* ---------- 优势卡片（value_props）---------- */
.vp-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  animation: vpFadeUp 0.5s ease var(--vp-delay, 0ms) both;
}
.vp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #165DFF, #4080FF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.vp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22, 93, 255, 0.12);
  border-color: rgba(22, 93, 255, 0.25);
}
.vp-card:hover::before {
  transform: scaleX(1);
}
.vp-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
  color: #fff;
  font-size: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}
.vp-card:hover .vp-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}
.vp-title {
  font-size: 18px;
  font-weight: 600;
  color: #1D2939;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.vp-desc {
  font-size: 14px;
  color: #667085;
  line-height: 1.65;
}

@keyframes vpFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 信任卡片（trust_badge）---------- */
.trust-card {
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: vpFadeUp 0.5s ease var(--vp-delay, 0ms) both;
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #165DFF;
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f5ff;
  color: #165DFF;
  font-size: 18px;
  margin-bottom: 0.75rem;
}
.trust-title {
  font-size: 15px;
  font-weight: 600;
  color: #1D2939;
  margin-bottom: 0.25rem;
}
.trust-desc {
  font-size: 13px;
  color: #667085;
  line-height: 1.5;
}

/* ---------- H5 适配 ---------- */
@media (max-width: 768px) {
  .vp-card {
    padding: 1.5rem 1.25rem;
  }
  .vp-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 0.75rem;
  }
  .vp-title {
    font-size: 16px;
  }
  .vp-desc {
    font-size: 13px;
  }
}
