/* ============================================================
   铭联客服系统 · 内页共样式（价格 / 下载 / 帮助）
   本文件提供：全新 header / footer 样式（与首页 home.css 保持一致）
   + 内页通用配色（对齐首页品牌蓝）
   注意：header.js / footer.js 注入的 DOM 与首页相同，样式保持一致。
   ============================================================ */

:root {
  --ink: #0d1b2e;
  --ink-2: #33415c;
  --muted: #67748a;
  --brand: #2b63f6;
  --brand-deep: #1740c4;
  --brand-soft: #eef3ff;
  --cyan: #0db5a0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --line: rgba(13, 27, 46, 0.09);
  --line-strong: rgba(13, 27, 46, 0.16);
  --shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(13, 27, 46, 0.18);
  --radius: 14px;
  --font-latin: 'Outfit', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.hide-style { display: none !important; }

.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 页头（header.js DOM 重设计） ============ */
.site-header { position: relative; z-index: 100; }

.pc-nav-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 100;
}
.pc-nav-top.nav_pos_top {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -18px rgba(13, 27, 46, 0.25);
  background: rgba(255, 255, 255, 0.94);
}
/* header.js 注入结构：.container > div > (.navbar-header + div > ul.navbar-nav) */
.pc-nav-top .container { height: 68px; display: block; }
.pc-nav-top .container > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.pc-nav-top .navbar-header { display: flex; align-items: center; height: 100%; }
.pc-nav-top .navbar-brand { display: flex; align-items: center; height: 100%; }
.pc-nav-top .navbar-brand img { height: 34px; width: auto; }
.pc-nav-top .navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  visibility: visible !important;
}
.pc-nav-top .navbar-nav li { list-style: none; }
.pc-nav-top .button-nav {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease, background 0.2s ease;
}
.pc-nav-top .button-nav:hover { color: var(--brand); background: var(--brand-soft); }
.pc-nav-top .button-nav-signup {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 6px 18px -6px rgba(43, 99, 246, 0.55);
  margin-left: 6px;
}
.pc-nav-top .button-nav-signup:hover {
  color: #fff;
  background: linear-gradient(135deg, #3a72ff, #1d4ad8);
}
.pc-nav-top .button-nav-login { margin-left: 4px; }

/* 移动端导航 */
.mobile-nav { display: none; }
.menu-btn-responsive { display: none; padding: 8px; margin-right: -8px; }
.menu-btn-responsive img { width: 24px; }

#mobile-links {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  padding: 18px 24px;
  overflow-y: auto;
}
#mobile-links .mobile-links-header { display: flex; justify-content: flex-end; margin-bottom: 8px; }
#mobile-links .close { width: 22px; cursor: pointer; }
#mobile-links .nav-links-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
#mobile-links .nav-links-item img { width: 16px; opacity: 0.35; }
#mobile-links .nav-login-item {
  margin-top: 22px;
  border: none;
  justify-content: center;
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
}
#mobile-links .nav-login-item img { display: none; }
#mobile-links .nav-login-item-register { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
#mobile-links .nav-login-item-login { color: var(--brand); background: var(--brand-soft); margin-top: 10px; }
#mobile-links .no-border { border-bottom: none; }

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 58px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 150;
  }
  .mobile-nav .navbar-brand img { height: 28px; }
  .menu-btn-responsive { display: block; }
  .pc-nav-top { display: none; }
}

/* ============ 页脚（footer.js DOM 重设计） ============ */
.site-footer { background: #0b1526; color: #9fb0c9; padding: 72px 0 32px; }
.bottom-menu-container,
.bottom-menu-container-mobile {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.bottom-menu-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bottom-menu-title { color: #e8eefb; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.bottom-menu ul li { margin-bottom: 11px; }
.bottom-menu ul a { font-size: 14px; color: #9fb0c9; transition: color 0.2s ease; }
.bottom-menu ul a:hover { color: #8fb3ff; }
.bottom-menu-contact-title { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.bottom-menu-contact-description { font-size: 13.5px; line-height: 1.8; }
.bottom-menu-container-mobile { display: none; }
.site-footer .company { margin-top: 30px; text-align: center; font-size: 13px; color: #5f7192; }
/* 底行链接（备案号/网站地图）：继承底行灰，hover 与页脚导航一致 */
.site-footer .company a { transition: color 0.2s ease; }
.site-footer .company a:hover { color: #8fb3ff; }

/* 移动端页脚折叠 */
@media (max-width: 768px) {
  .container { width: calc(100% - 36px); }
  .bottom-menu-container { display: none; }
  .bottom-menu-container-mobile { display: block; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .bottom-menu-container-mobile .bottom-menu { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .bottom-menu-container-mobile .bottom-menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin: 0;
    cursor: pointer;
    font-size: 14.5px;
  }
  .bottom-menu-container-mobile .arrow {
    width: 9px; height: 9px;
    border-right: 1.5px solid #5f7192;
    border-bottom: 1.5px solid #5f7192;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }
  .bottom-menu-container-mobile .bottom-menu.active .arrow { transform: rotate(-135deg); }
  .bottom-menu-container-mobile ul { display: none; padding-bottom: 10px; }
  .bottom-menu-container-mobile ul li { margin-bottom: 9px; }
  .site-footer { padding: 48px 0 26px; }
}

/* ============ 内页通用（对齐首页品牌蓝） ============ */
/* 顶部横幅 */
.page-hero {
  position: relative;
  text-align: center;
  padding: 128px 0 76px;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(43, 99, 246, 0.14), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(13, 181, 160, 0.09), transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 27, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 46, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 600px at 60% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(1200px 600px at 60% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.page-hero h1 {
  position: relative;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.page-hero p {
  position: relative;
  font-size: 16px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.7;
}

/* 通用章节 */
.page-section { padding: 0 0 96px; position: relative; }
.page-section.alt { background: var(--bg-soft); }
.page-section .section-head { text-align: center; padding: 76px 0 44px; }
.page-section .section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.page-section .section-head p { font-size: 15px; color: var(--muted); margin-top: 12px; }

/* 通用按钮（对齐品牌蓝） */
.page-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 15px;
  height: 44px;
  line-height: 44px;
  padding: 0 30px;
  border-radius: 10px;
  text-align: center;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 8px 20px -8px rgba(43, 99, 246, 0.55);
}
.page-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(43, 99, 246, 0.6); }
.page-btn.ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(43, 99, 246, 0.4);
  box-shadow: none;
}
.page-btn.ghost:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.page-btn.block { width: 100%; padding: 0; }
.page-btn.block.ghost { width: calc(100% - 2px); }

/* 卡片通用：圆角 + 柔和阴影 + 统一悬停 */
.price-card, .download-card, .help-category, .faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.price-card:hover, .download-card:hover, .help-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 99, 246, 0.3);
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 12px 32px -16px rgba(43, 99, 246, 0.4); }
.price-badge { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.price-amount { color: var(--brand); }
.price-features li:before { color: var(--brand); }
.download-logo { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.help-category .icon { background: var(--brand-soft); }
.help-category .icon svg { stroke: var(--brand); }
.help-category a { color: var(--brand); }
.faq-item summary:after { color: var(--brand); }
.contact-block .qr { border: 1px solid var(--line); border-radius: var(--radius); }

@media screen and (max-width: 768px) {
  .page-hero { padding: 108px 0 56px; }
  .page-hero h1 { font-size: 28px; }
  .page-section .section-head { padding: 60px 0 34px; }
  .page-section .section-head h2 { font-size: 22px; }
  .price-card, .download-card, .help-category { width: 100%; }
  .pricing-grid, .download-grid, .help-grid { gap: 16px; }
}
