/* ============================================
   公共组件：导航 / 页脚 / 卡片 / 表单 等
============================================ */

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; z-index: 120; }
.logo-img { height: 50px; width: auto; display: block; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.logo-text em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a {
  padding: 9px 16px; border-radius: 999px;
  font-size: 15px; color: var(--text-secondary);
  transition: color .25s, background .25s;
}
.main-nav > a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.main-nav > a.active { color: var(--text-primary); background: rgba(99, 102, 241, 0.16); }
.main-nav > a.nav-cta {
  margin-left: 10px; padding: 10px 24px;
  background: var(--gradient-main); color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.main-nav > a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5); }

/* 汉堡按钮 */
.menu-toggle { display: none; z-index: 120; width: 42px; height: 42px; border-radius: 10px; position: relative; }
.menu-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--text-primary); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-light); padding-top: 0; overflow: hidden; border-bottom: 1px solid var(--border-light); }
.footer-cta { padding-top: 72px; padding-bottom: 56px; border-bottom: 1px solid var(--border-light); }
.footer-cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 44px 52px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative; overflow: hidden;
}
.footer-cta-box::before {
  content: ""; position: absolute; top: -60%; right: -8%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
  pointer-events: none;
}
.footer-cta-box h3 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; position: relative; }
.footer-cta-box p { color: var(--text-secondary); margin-top: 8px; position: relative; }
.footer-cta-actions { display: flex; gap: 16px; flex-shrink: 0; position: relative; }

.footer-main { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand p { margin-top: 18px; color: var(--text-secondary); font-size: 15px; max-width: 320px; }
.footer-col h4 { font-size: 16px; margin-bottom: 20px; color: var(--text-primary); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--text-secondary); font-size: 15px; transition: color .2s; }
.footer-col ul a:hover { color: var(--brand-cyan); }
.footer-contact li { display: flex; gap: 10px; color: var(--text-secondary); font-size: 15px; }
.footer-contact li span.ico { color: var(--brand-cyan); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text-muted); font-size: 13px;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 36px 30px;
  transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); background: var(--bg-card-hover); border-color: rgba(139, 92, 246, 0.4); box-shadow: var(--shadow-card-hover); }

.ico-box {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 22px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--brand-cyan); }
.card .more:hover { gap: 10px; }

/* ---------- 数据统计条 ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; padding: 12px; }
.stat-num { font-family: var(--font-num); font-size: clamp(38px, 4.5vw, 56px); font-weight: 700; line-height: 1.1; }
.stat-num .suffix { font-size: 0.5em; margin-left: 2px; }
.stat-label { margin-top: 10px; color: var(--text-secondary); font-size: 15px; }

/* ---------- AI 平台 Logo 墙（跑马灯） ---------- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.platform-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  font-size: 15px; color: var(--text-secondary); white-space: nowrap;
}
.platform-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-main); }

/* ---------- 服务流程时间线 ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 28px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple), var(--brand-cyan));
  opacity: .45;
}
.process-step { text-align: center; position: relative; padding: 0 6px; }
.step-no {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--bg-elevated); border: 2px solid rgba(139, 92, 246, 0.55);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-size: 20px; font-weight: 700; color: #fff;
  position: relative; z-index: 1;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}
.process-step h4 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-secondary); }

/* ---------- 价格方案 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 44px 36px;
  display: flex; flex-direction: column;
  transition: transform .35s, border-color .35s, box-shadow .35s;
  position: relative;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.price-card.featured {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12)), var(--bg-elevated);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}
.price-tag {
  position: absolute; top: 24px; right: 24px;
  font-size: 12px; padding: 5px 14px; border-radius: 999px;
  background: var(--gradient-main); color: #fff; font-weight: 600;
}
.price-tier { font-size: 15px; color: var(--brand-cyan); letter-spacing: 2px; }
.price-name { font-size: 24px; font-weight: 700; margin-top: 8px; }
.price-num { margin: 20px 0 6px; font-family: var(--font-num); font-size: 40px; font-weight: 700; }
.price-num small { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.price-note { color: var(--text-muted); font-size: 14px; }
.price-card ul { margin: 26px 0 32px; flex: 1; }
.price-card ul li {
  padding: 9px 0 9px 30px; position: relative;
  color: var(--text-secondary); font-size: 15px;
  border-bottom: 1px dashed var(--border-light);
}
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  width: 20px; height: 20px; border-radius: 50%; font-size: 12px;
  background: rgba(59, 130, 246, 0.2); color: var(--brand-cyan);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 对比表 ---------- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 20px 24px; text-align: center; border-bottom: 1px solid var(--border-light); font-size: 15px; }
.compare-table th { color: var(--text-secondary); font-weight: 600; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; color: var(--text-secondary); }
.compare-table .col-us { background: rgba(99, 102, 241, 0.1); color: var(--text-primary) !important; font-weight: 600; }
.compare-table th.col-us { border-radius: 12px 12px 0 0; background: rgba(99, 102, 241, 0.22); color: #fff !important; }
.compare-table .yes { color: #34D399; }
.compare-table .no { color: var(--text-muted); }
.compare-wrap { border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow-x: auto; background: var(--bg-card); }

/* ---------- 客户证言 ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 32px 28px; }
.testimonial .quote-mark { font-size: 44px; line-height: 1; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: Georgia, serif; }
.testimonial p { margin-top: 14px; color: var(--text-secondary); font-size: 15px; min-height: 96px; }
.testimonial .who { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.testimonial .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-main); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.testimonial .who strong { font-size: 15px; display: block; }
.testimonial .who span { font-size: 13px; color: var(--text-muted); }

/* ---------- FAQ 手风琴 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--bg-card); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; font-size: 16px; font-weight: 600; text-align: left; color: var(--text-primary);
}
.faq-q .arrow { transition: transform .3s; color: var(--brand-cyan); flex-shrink: 0; }
.faq-item.open .faq-q .arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 480px; }
.faq-a-inner { padding: 0 26px 22px; color: var(--text-secondary); font-size: 15px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; color: var(--text-secondary); }
.form-field label em { color: #F87171; font-style: normal; margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 13px 16px;
  color: var(--text-primary); font-size: 15px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.form-field input.err, .form-field textarea.err { border-color: #F87171; }
.form-msg { margin-top: 16px; font-size: 14px; display: none; }
.form-msg.ok { display: block; color: #34D399; }
.form-msg.bad { display: block; color: #F87171; }

/* ---------- 文章卡片 ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.4); box-shadow: var(--shadow-card-hover); }
.article-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-elevated); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-cover img { transform: scale(1.06); }
.article-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.article-tag { font-size: 12px; color: var(--brand-cyan); border: 1px solid rgba(34, 211, 238, 0.3); padding: 3px 12px; border-radius: 999px; align-self: flex-start; }
.article-body h3 { font-size: 17px; margin: 14px 0 10px; line-height: 1.5; flex: 1; }
.article-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 13px; margin-top: 14px; }

/* ---------- 客户 Logo 墙 ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-cell {
  height: 84px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 15px; font-weight: 600; letter-spacing: 1px;
  transition: color .3s, border-color .3s, transform .3s;
}
.logo-cell:hover { color: var(--text-primary); border-color: rgba(139, 92, 246, 0.45); transform: translateY(-3px); }

/* ---------- 页面横幅装饰光晕 ---------- */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: .5; z-index: 0;
}
.glow-blue { background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 65%); }
.glow-purple { background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%); }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .main-nav > a { padding: 8px 12px; font-size: 14px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; z-index: 110;
    width: min(320px, 84vw);
    /* 高度直接锁定全屏：header 滚动后带 backdrop-filter，会成为 fixed 子元素的
       定位基准（containing block），bottom:0 会被压成 header 高度导致菜单被裁切，
       因此不能用 bottom:0，改用固定视口高度 */
    height: 100vh;
    height: 100dvh;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 100px 32px 40px;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-light);
    transform: translateX(100%); transition: transform .35s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav > a { width: 100%; padding: 14px 16px; font-size: 16px; border-radius: 12px; }
  .main-nav > a.nav-cta { margin: 16px 0 0; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .process::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .testimonial-grid, .article-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-cta-box { flex-direction: column; text-align: center; padding: 36px 24px; }
  .logo-img { height: 36px; }
}
@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .compare-table th, .compare-table td { padding: 14px 12px; font-size: 13px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-cta-actions { flex-direction: column; width: 100%; }
  .footer-cta-actions .btn { width: 100%; }
}

/* ---------- 微信二维码 ---------- */
/* 联系页卡片内二维码 */
.wx-qr {
  display: inline-block;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin: 6px 0 10px;
  box-shadow: 0 8px 24px rgba(59,130,246,.18);
}
.wx-qr img { display: block; width: 132px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; }

/* 页脚二维码 */
.footer-wx { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.footer-wx-qr {
  background: #fff; padding: 6px; border-radius: 10px; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.footer-wx-qr img { display: block; width: 84px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 5px; }
.footer-wx:hover .footer-wx-qr { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(59,130,246,.35); }
.footer-wx p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* 右下角悬浮微信按钮 */
.float-wx {
  position: fixed; right: 28px; bottom: 86px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; user-select: none;
  box-shadow: 0 8px 26px rgba(16,185,129,.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.float-wx:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(16,185,129,.6); }
.float-wx-pop {
  position: absolute; right: 64px; bottom: 50%; transform: translateY(50%) scale(.9);
  background: #fff; border-radius: 14px; padding: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .28s cubic-bezier(.2,.9,.3,1.2);
  text-align: center; white-space: nowrap;
}
.float-wx-pop img { display: block; width: 148px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.float-wx-pop em { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: #334155; font-weight: 600; }
.float-wx:hover .float-wx-pop, .float-wx.open .float-wx-pop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(50%) scale(1);
}

@media (max-width: 768px) {
  .float-wx { right: 18px; bottom: 78px; width: 48px; height: 48px; font-size: 22px; }
  .float-wx-pop { right: 0; bottom: 60px; transform: translateY(0) scale(.9); }
  .float-wx:hover .float-wx-pop, .float-wx.open .float-wx-pop { transform: translateY(0) scale(1); }
  .footer-wx { gap: 10px; }
}
