:root {
  --primary: #5b5bd6;
  --primary-dark: #4646b8;
  --ink: #1c1e26;
  --ink-2: #5a5e6f;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --line: #e7e8f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(28, 30, 38, 0.08);
}

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

html { scroll-behavior: smooth; }

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.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- 导航 ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-size: 20px; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* ---- Hero ---- */
.hero {
  padding: 96px 0 88px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, rgba(91, 91, 214, 0.14), transparent),
    radial-gradient(ellipse 50% 70% at 85% 10%, rgba(214, 91, 147, 0.10), transparent),
    var(--bg);
}
.hero h1 { font-size: 42px; line-height: 1.3; letter-spacing: 1px; }
.hero-sub { margin: 18px auto 0; max-width: 620px; color: var(--ink-2); font-size: 18px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 30px; border-radius: 999px;
  font-size: 16px; text-decoration: none; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(91, 91, 214, 0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: rgba(91, 91, 214, 0.08); }

/* ---- 区块 ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.sec-title { text-align: center; font-size: 30px; }
.sec-sub { text-align: center; color: var(--ink-2); margin-top: 8px; margin-bottom: 44px; }

/* ---- 产品卡片 ---- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.p-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-img { height: 180px; overflow: hidden; background: var(--bg-alt); }
.p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-img-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6a6ae0, #9a6ae0 55%, #d66aa8);
}
.p-img-ph span { font-size: 64px; font-weight: 700; color: rgba(255, 255, 255, 0.92); }
.p-body { padding: 20px 22px 24px; }
.p-name { font-size: 19px; }
.p-summary { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; min-height: 44px; }
.p-price { margin-top: 14px; color: var(--primary); font-weight: 700; font-size: 17px; }
.empty-tip { text-align: center; color: var(--ink-2); padding: 40px 0; }

/* ---- 优势 ---- */
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.f-card {
  background: var(--bg); border-radius: var(--radius); padding: 30px 26px;
  text-align: center; box-shadow: var(--shadow);
}
.f-icon { font-size: 40px; }
.f-card h3 { margin-top: 14px; font-size: 18px; }
.f-card p { margin-top: 10px; color: var(--ink-2); font-size: 14px; }

/* ---- 联系 ---- */
.contact-card {
  max-width: 560px; margin: 0 auto; padding: 36px 40px;
  background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--line);
}
.c-item { margin: 10px 0; font-size: 16.5px; }
.c-strong { font-weight: 600; color: var(--ink); user-select: all; }

/* ---- 页脚 ---- */
.footer { background: #17181f; color: #b9bcc9; padding: 44px 0; text-align: center; font-size: 14.5px; }
.footer-copy { margin-top: 8px; color: #71748a; font-size: 13px; }

/* ---- 移动端 ---- */
@media (max-width: 640px) {
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 52px 0; }
  .nav-links { gap: 18px; }
}

/* ---- 广告位 ---- */
.section-ad { padding-top: 8px; }
.ad-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center;
  background: linear-gradient(135deg, #f6f7ff, #fdf5fa);
  border: 1px solid var(--line); border-radius: 20px; padding: 34px;
}
.ad-media {
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16 / 10; background: #17181f;
}
.ad-media img, .ad-media video, .ad-media iframe {
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
}
.ad-title { font-size: 26px; }
.ad-text { margin-top: 12px; color: var(--ink-2); font-size: 16px; white-space: pre-line; }
.ad-btn { margin-top: 22px; }
@media (max-width: 860px) {
  .ad-card { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .ad-title { font-size: 22px; }
  .ad-media { aspect-ratio: 16 / 9; }
}

/* ---- 客服悬浮按钮 + 弹窗 ---- */
.cs-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 80;
  display: flex; align-items: center; gap: 9px;
  padding: 13px 22px; border: none; border-radius: 999px;
  color: #fff; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s;
}
.cs-fab:hover { transform: translateY(-2px); }
.cs-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #eafff1;
  animation: cs-pulse 1.6s infinite;
}
@keyframes cs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75); }
  70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.cs-mask {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15, 17, 28, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; backdrop-filter: blur(3px);
}
.cs-mask[hidden] { display: none; }
.cs-modal {
  position: relative; width: 360px; max-width: 100%; max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 18px; padding: 30px 26px 26px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  animation: cs-pop 0.22s ease;
}
@keyframes cs-pop {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cs-modal h3 { font-size: 20px; }
.cs-close {
  position: absolute; top: 10px; right: 14px;
  border: none; background: none; font-size: 26px; line-height: 1;
  color: #9aa0b4; cursor: pointer;
}
.cs-close:hover { color: var(--ink); }
.cs-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg-alt); box-shadow: var(--shadow);
}
.cs-note { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.cs-qr { margin-top: 16px; }
.cs-qr img {
  width: 200px; max-width: 70%; border-radius: 12px;
  border: 1px solid var(--line); display: block; margin: 0 auto;
}
.cs-qr-tip { margin-top: 6px; color: var(--ink-2); font-size: 12.5px; }
.cs-rows {
  margin-top: 14px; text-align: left;
  background: var(--bg-alt); border-radius: 12px; padding: 14px 16px;
}
.cs-rows p { margin: 6px 0; font-size: 15px; }
.cs-rows b { font-weight: 600; user-select: all; }
.cs-start {
  margin-top: 16px; width: 100%; padding: 12px;
  border: none; border-radius: 999px;
  background: var(--primary); color: #fff;
  font-size: 15.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background 0.2s;
}
.cs-start:hover { background: var(--primary-dark); }
@media (max-width: 640px) {
  .cs-fab { right: 14px; bottom: 16px; padding: 12px 18px; font-size: 14px; }
  .cs-modal { width: 92vw; padding: 26px 20px 22px; }
  .cs-avatar { width: 72px; height: 72px; }
}
