/* ============================================================
   拓客宝官网样式
   主色: #2f6bff → #7a5cff 渐变；深色区块 #0d1526
   ============================================================ */

:root {
  --primary: #2f6bff;
  --primary-dark: #1f4fd8;
  --accent: #7a5cff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --dark: #0d1526;
  --dark-2: #111c33;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, .06);
  --shadow: 0 18px 44px rgba(16, 24, 40, .10);
  --shadow-lg: 0 30px 70px rgba(16, 24, 40, .18);
  --container: 1160px;
  --font: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

[hidden] { display: none !important; }

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

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 107, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(47, 107, 255, .42); }
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-white {
  background: #fff;
  color: var(--primary-dark);
  padding: 11px 24px;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.btn-white:hover { transform: translateY(-2px); }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background-color .25s ease, box-shadow .25s ease;
  background: rgba(255, 255, 255, 0);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(16, 24, 40, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-text { font-size: 21px; font-weight: 800; letter-spacing: .5px; color: #fff; }
.site-header.is-scrolled .brand-text,
.site-header.is-open .brand-text { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: right .25s ease;
  border-radius: 2px;
}
.nav-links a:hover::after { right: 0; }
.site-header.is-scrolled .nav-links a,
.site-header.is-open .nav-links a { color: var(--ink-2); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  padding: 0 10px;
}
.menu-toggle span { height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.is-scrolled .menu-toggle, .site-header.is-open .menu-toggle { border-color: var(--line); background: #fff; }
.site-header.is-scrolled .menu-toggle span, .site-header.is-open .menu-toggle span { background: var(--ink); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  margin-top: -74px;
  padding: 170px 0 110px;
  background: radial-gradient(1100px 620px at 12% -10%, #2b3f8f 0%, transparent 60%),
              radial-gradient(900px 520px at 92% 8%, #5b3fd6 0%, transparent 55%),
              linear-gradient(160deg, #0b1222 0%, #0d1526 55%, #101a31 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 600px at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero .eyebrow { color: #93b4ff; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: .5px;
}
.hero-sub {
  margin-top: 22px;
  font-size: 17px;
  color: rgba(226, 232, 245, .82);
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-facts {
  display: flex;
  gap: 36px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 16px; }
.hero-facts span { font-size: 13px; color: rgba(226, 232, 245, .6); }

.hero-visual { position: relative; }
.window-mock {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 90px rgba(3, 8, 20, .55);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .5s ease;
}
.hero-visual:hover .window-mock { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f2f4f8;
  border-bottom: 1px solid #e5e8ef;
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 12px; color: #8a94a6; }
.window-mock img { display: block; max-width: 100%; }

/* 首屏图片轮播 */
.carousel-track {
  display: flex;
  transition: transform .62s cubic-bezier(.25, .8, .3, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f6;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; }
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.hero-dot {
  width: 26px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, .5); }
.hero-dot.is-active { width: 44px; background: #fff; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: 13px;
}
.float-card b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.float-card em { font-style: normal; font-weight: 800; font-size: 15px; color: var(--primary-dark); }
.float-card .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(47, 107, 255, .15);
}
.float-card .dot-green { background: #12b76a; box-shadow: 0 0 0 5px rgba(18, 183, 106, .15); }
.float-card-a { top: 6%; left: -34px; animation: floatY 5s ease-in-out infinite; }
.float-card-b { bottom: 8%; right: -26px; animation: floatY 6s ease-in-out .8s infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------- 通用 section ---------------- */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .3px;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.section-head.light { color: #fff; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(226, 232, 245, .72); }
.section-head.light .eyebrow { color: #93b4ff; }

/* ---------------- 功能矩阵 ---------------- */
.features { background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 107, 255, .28);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  font-weight: 800;
  font-size: 15px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(47, 107, 255, .14), rgba(122, 92, 255, .14));
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ---------------- 效果展示 ---------------- */
.showcase { background: var(--bg-soft); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: start;
}
.showcase-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.showcase-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.showcase-item img { width: 100%; cursor: zoom-in; }

/* 效果图与教程配图统一画框：同一宽高比 4:3，contain 保证截图不被裁切 */
.showcase-item img,
.step-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f5f7fb;
  cursor: zoom-in;
}
.showcase-item figcaption { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 2px; }
.showcase-item figcaption b { font-size: 15px; }
.showcase-item figcaption span { font-size: 13px; color: var(--muted); }
.showcase-video {
  margin-top: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.showcase-video video { width: 100%; display: block; }

/* ---------------- 下载 ---------------- */
.download {
  background: linear-gradient(160deg, #0c1322 0%, #111d36 60%, #16254a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  right: -220px; top: -300px;
  background: radial-gradient(circle, rgba(47, 107, 255, .35) 0%, transparent 62%);
  pointer-events: none;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  position: relative;
}
.download-grid.is-single {
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}
.download-card:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(147, 180, 255, .45);
  transform: translateY(-4px);
}
.download-icon {
  flex: 0 0 62px;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.download-body { flex: 1; min-width: 0; }
.download-body h3 { font-size: 19px; margin-bottom: 6px; }
.download-desc { font-size: 13.5px; color: rgba(226, 232, 245, .7); }
.download-meta { margin-top: 10px; font-size: 12px; color: rgba(180, 196, 224, .62); }
.download-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  position: relative;
}
.tip-item { font-size: 13.5px; color: rgba(214, 224, 242, .78); }
.tip-item b {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(47, 107, 255, .25);
  color: #a9c1ff;
  font-size: 12px;
}

/* ---------------- 教程 ---------------- */
.tutorial { background: #fff; }
.tutorial-steps { display: flex; flex-direction: column; gap: 18px; }
.tutorial-step {
  display: grid;
  grid-template-columns: 120px 1fr 300px;
  gap: 28px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #fafbff);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.tutorial-step:hover { box-shadow: var(--shadow-sm); border-color: rgba(47, 107, 255, .25); }
.step-no {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(47, 107, 255, .12), rgba(122, 92, 255, .12));
  padding: 8px 14px;
  border-radius: 999px;
  justify-self: start;
}
.step-body h3 { font-size: 19px; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 14.5px; }
.step-shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.download-fallback {
  margin-top: 8px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(147, 180, 255, .45);
  background: rgba(47, 107, 255, .08);
  color: rgba(214, 224, 242, .85);
  font-size: 14.5px;
  text-align: center;
}
.tutorial-extra {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.tutorial-extra img { border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }

/* ---------------- 客服 ---------------- */
.contact { background: var(--bg-soft); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
}
.contact-copy h2 { font-size: clamp(26px, 3.1vw, 36px); line-height: 1.32; font-weight: 800; }
.contact-copy p { margin-top: 16px; color: var(--muted); font-size: 15.5px; max-width: 520px; }
.contact-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.contact-points li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink-2);
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(18, 183, 106, .14);
  box-shadow: inset 0 0 0 1px rgba(18, 183, 106, .35);
}
.contact-points li::after {
  content: "";
  position: absolute;
  left: 5px; top: 12px;
  width: 7px; height: 4px;
  border-left: 2px solid #12b76a;
  border-bottom: 2px solid #12b76a;
  transform: rotate(-45deg);
}
.qrcode-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 320px;
  justify-self: center;
}
.qrcode-card img { border-radius: 12px; margin: 0 auto; cursor: zoom-in; }
.qrcode-card figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--dark);
  color: rgba(214, 224, 242, .74);
  padding: 54px 0 26px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin-top: 10px; font-size: 13.5px; max-width: 420px; color: rgba(180, 196, 224, .6); }
.footer-links { display: flex; gap: 26px; font-size: 14px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(160, 176, 204, .55);
  flex-wrap: wrap;
}

/* ---------------- 图片预览 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  background: rgba(6, 10, 20, .88);
  backdrop-filter: blur(6px);
}
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* ---------------- 回到顶部 ---------------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 30px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(16, 24, 40, .2);
  cursor: pointer;
  transition: transform .2s ease;
}
.back-top:hover { transform: translateY(-3px); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .header-inner { gap: 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 140px; }
  .hero-visual { max-width: 680px; }
  .window-mock { transform: none; }
  .float-card-a { left: 8px; }
  .float-card-b { right: 8px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .tutorial-step { grid-template-columns: 100px 1fr; }
  .step-shot { grid-column: 1 / -1; max-width: 560px; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .qrcode-card { justify-self: start; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 68px 0; }
  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 24px 22px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(16, 24, 40, .12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    margin-left: 0;
  }
  .site-header.is-open .nav-links { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav-links a { color: var(--ink-2); font-size: 16px; width: 100%; padding: 10px 0; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero { padding: 120px 0 78px; }
  .hero-facts { gap: 22px; flex-wrap: wrap; }
  .feature-grid, .showcase-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { flex-wrap: wrap; }
  .download-card .btn { width: 100%; }
  .download-tips { grid-template-columns: 1fr; }
  .tutorial-step { grid-template-columns: 1fr; gap: 16px; }
  .step-shot { max-width: 100%; }
  .footer-inner { flex-direction: column; gap: 24px; }
}