/* ============================================================
   云掌狮网络科技有限公司 官网样式
   主题：蓝-青渐变 · 现代 · 响应式
   ============================================================ */

:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-400: #60a5fa;
  --cyan-300: #22d3ee;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, .18);
  --shadow-lg: 0 20px 50px -12px rgba(37, 99, 235, .35);
  --max: 1200px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 12px; font-size: 16px; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: none; cursor: pointer;
}
.btn-primary { color: #fff; background: var(--blue-600); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===================== 导航 ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(15, 23, 42, .94); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; }
.brand-mark { display: inline-flex; }
.brand-text { white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #cbd5e1; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--cyan-300); }
.main-nav a.nav-cta {
  color: #fff; background: var(--blue-600); margin-left: 8px;
  padding: 9px 18px; border-radius: 10px; font-weight: 600;
}
.main-nav a.nav-cta:hover { background: var(--blue-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--slate-900); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.9));
}
.hero-inner {
  position: relative; z-index: 1; text-align: center; padding: 140px 24px 120px;
  max-width: 900px; margin: 0 auto;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(37,99,235,.22); border: 1px solid rgba(96,165,250,.4);
  color: #93c5fd; font-size: 14px; font-weight: 600; letter-spacing: 1px; margin-bottom: 24px;
}
.hero-title {
  color: #fff; font-size: clamp(34px, 5.5vw, 64px); font-weight: 800;
  line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px;
}
.grad-text { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #cbd5e1; font-size: clamp(16px, 2vw, 20px); max-width: 720px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================== 数据统计 ===================== */
.stats { position: relative; z-index: 10; margin-top: -72px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--gray-100); overflow: hidden;
}
.stat { padding: 36px 24px; text-align: center; border-right: 1px solid var(--gray-100); }
.stat:last-child { border-right: none; }
.stat-num { display: block; font-size: 34px; font-weight: 800; color: var(--blue-600); line-height: 1.1; }
.stat-label { display: block; font-size: 15px; font-weight: 600; color: var(--slate-900); margin-top: 6px; }
.stat-desc { display: block; font-size: 13px; color: var(--slate-500); margin-top: 4px; }

/* ===================== 通用 section ===================== */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin: 0 0 40px; }
.eyebrow {
  display: inline-block; color: var(--blue-600); font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.section-head p { color: var(--slate-600); font-size: 17px; }

/* ===================== 产品中心 ===================== */
.products { background: var(--gray-50); }
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; background: #fff; border-radius: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--gray-100); margin-bottom: 40px;
}
.product:last-child { margin-bottom: 0; }
.product-reverse .product-media { order: 2; }
.product-media { position: relative; }
.product-media img { width: 100%; height: 340px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-sm); }
.product-badge {
  position: absolute; top: 16px; left: 16px; padding: 6px 14px; border-radius: 999px;
  background: rgba(37,99,235,.92); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.product-badge-new { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.product-body h3 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.product-sub { color: var(--blue-600); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.product-desc { color: var(--slate-600); font-size: 16px; margin-bottom: 20px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.product-tags span {
  padding: 6px 12px; border-radius: 8px; background: var(--gray-50);
  border: 1px solid var(--gray-200); color: var(--slate-600); font-size: 13px;
}
.product-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-bottom: 30px; }
.product-features li { display: flex; gap: 12px; }
.product-features svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; color: var(--blue-600); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-features strong { display: block; font-size: 15px; color: var(--slate-900); }
.product-features span { font-size: 13.5px; color: var(--slate-500); line-height: 1.5; }

/* ===================== 解决方案 ===================== */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16/10; box-shadow: var(--shadow-sm);
}
.solution-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.solution-card:hover img { transform: scale(1.06); }
.solution-mask {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,.85));
  padding: 20px; transition: background .3s;
}
.solution-mask span { color: #fff; font-size: 18px; font-weight: 700; }

/* ===================== 特色功能 ===================== */
.features { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-grid-sm { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dbeafe; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--slate-500); font-size: 14.5px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(34,211,238,.12));
  color: var(--blue-600); margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== 小程序自定义 ===================== */
.mini { background: var(--gray-50); }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-card {
  background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-card img { width: 100%; height: auto; }

/* ===================== 左右分栏 ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-reverse .section-head.left { order: 2; }
.split-img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); margin-top: 24px; }
.split-media img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.split-list { display: flex; flex-direction: column; gap: 18px; }
.split-item {
  background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 12px;
  padding: 20px 24px; transition: border-color .2s, box-shadow .2s;
}
.split-item:hover { border-color: #dbeafe; box-shadow: var(--shadow-sm); }
.split-item h4 { font-size: 18px; font-weight: 700; color: var(--blue-600); margin-bottom: 4px; }
.split-item p { color: var(--slate-500); font-size: 14.5px; }
.pricing { background: #fff; }
.marketing { background: var(--gray-50); }

/* ===================== 复购与转化 ===================== */
.growth { background: #fff; }
.growth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.growth-card {
  background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 32px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.growth-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.growth-card .feature-icon { margin: 0 auto 16px; }
.growth-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.growth-card p { color: var(--slate-500); font-size: 14.5px; }

.order-block {
  display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center;
  background: var(--gray-50); border-radius: 24px; padding: 40px; border: 1px solid var(--gray-100);
}
.order-media img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-sm); }
.order-body h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.order-body > p { color: var(--slate-600); margin-bottom: 24px; }
.order-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-card {
  background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--gray-100);
}
.order-card strong { display: block; color: var(--blue-600); margin-bottom: 6px; }
.order-card span { color: var(--slate-500); font-size: 14px; }

/* ===================== 连锁增长 ===================== */
.chain { background: var(--gray-50); }
.more-features { background: #fff; }

/* ===================== 智能硬件 ===================== */
.hardware { background: var(--slate-900); }
.hardware .section-head h2 { color: #fff; }
.hardware .section-head p { color: #94a3b8; }
.hardware .eyebrow { color: var(--cyan-300); }
.scene-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.scene { position: relative; border-radius: 16px; overflow: hidden; }
.scene img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s ease; }
.scene:hover img { transform: scale(1.06); }
.scene span {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.9));
  color: #fff; font-weight: 600;
}
.hardware .feature-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.hardware .feature-card h3 { color: #fff; }
.hardware .feature-card p { color: #94a3b8; }

/* ===================== 合作伙伴 ===================== */
.partners { background: var(--gray-50); }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.partner {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 1px solid var(--gray-100); border-radius: 12px;
  padding: 22px 12px; font-weight: 600; color: var(--slate-600); font-size: 15px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #dbeafe; color: var(--blue-600); }

/* ===================== 交付流程 ===================== */
.process { background: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.process-step { position: relative; padding: 30px 24px; text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; font-weight: 800; font-size: 18px;
  background: var(--slate-800); color: var(--blue-400); margin-bottom: 18px;
  transition: background .25s, color .25s;
}
.process-step:hover .step-num { background: var(--blue-600); color: #fff; }
.process-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--slate-500); font-size: 14px; }

/* ===================== 联系我们 ===================== */
.contact { background: var(--slate-900); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info .eyebrow { color: var(--cyan-300); }
.contact-info h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.contact-info > p { color: #94a3b8; margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 3px; color: var(--blue-400); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list span { display: block; color: #64748b; font-size: 13px; margin-bottom: 2px; }
.contact-list a, .contact-list strong { color: #fff; font-size: 16px; font-weight: 600; }
.contact-list a:hover { color: var(--blue-400); }

.contact-form {
  background: #fff; border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 22px; font-weight: 800; margin-bottom: 22px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.form-field em { color: #ef4444; font-style: normal; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--slate-900); transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-field textarea { resize: vertical; }
.form-tip { margin-top: 12px; font-size: 13px; color: var(--slate-400); text-align: center; }
.contact-form.success { box-shadow: 0 0 0 3px rgba(34,197,94,.4); }

/* ===================== Footer ===================== */
.site-footer { background: #0b1220; border-top: 1px solid rgba(255,255,255,.08); padding: 48px 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand .brand-text { color: #fff; font-size: 20px; font-weight: 800; }
.footer-brand p { color: #64748b; font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #94a3b8; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy p { color: #64748b; font-size: 13px; }

/* ===================== 浮动客服 ===================== */
.float-widget { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform .2s;
}
.float-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-toggle:hover { transform: scale(1.06); }
.float-panel {
  display: none; flex-direction: column; gap: 6px; background: #fff; border-radius: 14px;
  padding: 10px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); min-width: 170px;
}
.float-panel.open { display: flex; animation: pop .2s ease; }
.float-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--slate-700); transition: background .2s; }
.float-item:hover { background: var(--gray-50); color: var(--blue-600); }
.float-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.back-top {
  position: fixed; left: 24px; bottom: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gray-200);
  background: #fff; color: var(--slate-600); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); color: var(--blue-600); }
.back-top svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== 入场动画 ===================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .product { grid-template-columns: 1fr; }
  .product-reverse .product-media { order: 0; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .section-head.left { order: 0; }
  .order-block { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(15,23,42,.98); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 12px; font-size: 16px; border-radius: 8px; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }

  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 16px; border-bottom: 1px solid var(--gray-100); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--gray-100); }
  .stat:nth-child(3) { border-bottom: none; }
  .feature-grid, .feature-grid-sm, .growth-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product { padding: 24px; }
  .product-features { grid-template-columns: 1fr; }
  .scene-strip { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .order-cards { grid-template-columns: 1fr; }
  .back-top { display: none; }
}
