/* ============ 单宝科技 官网 公共样式 ============ */
:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --bg-soft: #f8fafc;
  --white:   #ffffff;
  --radius:  14px;
  --shadow:  0 10px 30px rgba(37, 99, 235, .10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .10);
  --maxw: 1140px;
}

* { 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-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #eef2f7;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink-900); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.brand-sub { font-size: 12px; color: var(--ink-500); font-weight: 500; margin-left: 2px; }
.brand-logo { height: 46px; width: auto; display: block; }
.footer .brand-logo { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--ink-700); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-600); }
.nav-cta {
  padding: 9px 20px !important; border-radius: 9px;
  background: var(--blue-600); color: #fff !important; font-weight: 600 !important;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 30px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink-900); margin: 6px 0; border-radius: 2px; }

/* ============ 通用区块 ============ */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--blue-600); background: var(--blue-50); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: 36px; line-height: 1.3; color: var(--ink-900); font-weight: 800; margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--ink-500); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,99,235,.35); }
.btn-ghost { background: #fff; color: var(--ink-900); border: 1px solid var(--ink-300); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-light { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.25); }

/* ============ Hero 首页 ============ */
.hero {
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 60%);
  padding: 80px 0 96px; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--blue-700); background: var(--blue-100); padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--blue-600); border-radius: 50%; }
.hero h1 { font-size: 50px; line-height: 1.2; color: var(--ink-900); font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 .accent { color: var(--blue-600); }
.hero-lead { font-size: 18px; color: var(--ink-500); margin-bottom: 34px; max-width: 520px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 24px; font-size: 13px; color: var(--ink-500); flex-wrap: wrap; }
.hero-trust b { color: var(--ink-900); font-size: 20px; font-weight: 800; display: block; line-height: 1.2; }

/* 产品界面 mockup */
.mockup {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid #e8eef6; overflow: hidden; transform: perspective(1200px) rotateY(-4deg);
}
.mockup-bar { background: #f8fafc; padding: 12px 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #eef2f7; }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mockup-bar i:nth-child(1){ background:#f87171; } .mockup-bar i:nth-child(2){ background:#fbbf24; } .mockup-bar i:nth-child(3){ background:#34d399; }
.mockup-bar span { margin-left: auto; font-size: 11px; color: var(--ink-500); }
.mockup-body { padding: 20px; }
.mockup-stat { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.mockup-stat div { background: var(--blue-50); border-radius: 10px; padding: 14px; }
.mockup-stat b { display: block; font-size: 22px; color: var(--blue-700); font-weight: 800; }
.mockup-stat small { color: var(--ink-500); font-size: 11px; }
.mockup-rows { border: 1px solid #eef2f7; border-radius: 10px; overflow: hidden; }
.mockup-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr .7fr; gap: 8px; padding: 10px 14px; font-size: 11px; align-items: center; }
.mockup-row:nth-child(odd){ background: #fafbfe; }
.mockup-row.head { background: var(--ink-900); color: #fff; font-weight: 600; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; }
.tag-blue { background: var(--blue-100); color: var(--blue-700); }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-amber { background: #fef3c7; color: #b45309; }

/* ============ 产品概览卡 ============ */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  background: #fff; border: 1px solid #e8eef6; border-radius: var(--radius);
  padding: 40px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.product-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
}
.product-icon.alt { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.product-card h3 { font-size: 24px; color: var(--ink-900); font-weight: 800; margin-bottom: 6px; }
.product-card .en { font-size: 12px; letter-spacing: .1em; color: var(--blue-500); font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.product-card p { color: var(--ink-500); font-size: 15px; margin-bottom: 22px; }
.feature-list { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-700); }
.feature-list li::before { content: "✓"; color: var(--blue-600); font-weight: 800; flex-shrink: 0; }
.link-arrow { color: var(--blue-600); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { gap: 10px; }

/* ============ 价值/优势网格 ============ */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item { text-align: center; padding: 30px 16px; }
.value-icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px;
  background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; font-size: 28px;
}
.value-item h4 { font-size: 18px; color: var(--ink-900); margin-bottom: 8px; font-weight: 700; }
.value-item p { font-size: 14px; color: var(--ink-500); }

/* ============ 步骤流程 ============ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 42px; font-weight: 800; color: var(--blue-100);
}
.step h4 { font-size: 18px; color: var(--ink-900); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-500); }

/* ============ 内页 hero ============ */
.page-hero {
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 70%);
  padding: 70px 0 66px; text-align: center; border-bottom: 1px solid #eef2f7;
}
.page-hero h1 { font-size: 42px; color: var(--ink-900); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 17px; color: var(--ink-500); max-width: 640px; margin: 0 auto; }

/* ============ 详情页产品区块 ============ */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.detail.reverse .detail-text { order: 2; }
.detail-text h2 { font-size: 34px; color: var(--ink-900); font-weight: 800; margin-bottom: 8px; }
.detail-text .en { font-size: 12px; letter-spacing: .1em; color: var(--blue-500); font-weight: 700; text-transform: uppercase; margin-bottom: 18px; }
.detail-text > p { color: var(--ink-500); font-size: 16px; margin-bottom: 24px; }
.detail-list { list-style: none; display: grid; gap: 14px; }
.detail-list li { display: flex; gap: 14px; align-items: flex-start; }
.detail-list .num {
  width: 26px; height: 26px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600);
  font-size: 13px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.detail-list b { display: block; color: var(--ink-900); font-size: 15px; }
.detail-list span { font-size: 14px; color: var(--ink-500); }
.screen-box {
  background: #fff; border: 1px solid #e8eef6; border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px; overflow: hidden;
}
.screen-top { display: flex; gap: 6px; margin-bottom: 14px; }
.screen-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); display: block; }
.screen-inner { background: var(--bg-soft); border-radius: 10px; padding: 18px; min-height: 260px; }
.screen-line { height: 12px; border-radius: 6px; background: #e8eef6; margin-bottom: 12px; }
.screen-line.w70 { width: 70%; } .screen-line.w50 { width: 50%; } .screen-line.w85 { width: 85%; }
.screen-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.screen-cards div { background: #fff; border-radius: 8px; padding: 14px 10px; text-align: center; }
.screen-cards b { display: block; color: var(--blue-700); font-size: 18px; }
.screen-cards small { color: var(--ink-500); font-size: 10px; }
.screen-table { background: #fff; border-radius: 8px; padding: 12px; }
.screen-table .r { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 1px solid #f1f5f9; font-size: 10px; color: var(--ink-500); }
.screen-table .r:last-child { border: 0; }

/* ============ 关于：数据条 ============ */
.stats-band { background: linear-gradient(120deg, var(--blue-700), var(--blue-500)); color: #fff; }
.stats-band .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; padding-top: 54px; padding-bottom: 54px; }
.stats-band b { display: block; font-size: 38px; font-weight: 800; margin-bottom: 4px; }
.stats-band span { font-size: 14px; opacity: .85; }

.about-text { max-width: 760px; margin: 0 auto; }
.about-text p { font-size: 16px; color: var(--ink-500); margin-bottom: 18px; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { background: var(--bg-soft); border-radius: var(--radius); padding: 30px; }
.value-card h4 { color: var(--ink-900); font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--ink-500); }

/* ============ 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info { display: grid; gap: 18px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; background: var(--bg-soft);
  padding: 20px; border-radius: 12px;
}
.contact-item .ci-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.contact-item b { display: block; color: var(--ink-900); font-size: 15px; margin-bottom: 2px; }
.contact-item p { font-size: 14px; color: var(--ink-500); }
.form-card { background: #fff; border: 1px solid #e8eef6; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 22px; color: var(--ink-900); margin-bottom: 6px; }
.form-card > p { font-size: 14px; color: var(--ink-500); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ink-300); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--ink-900); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--ink-500); margin-top: 12px; }
.form-ok { display: none; background: #ecfdf5; color: #065f46; padding: 14px 16px; border-radius: 9px; font-size: 14px; margin-bottom: 18px; }

/* ============ CTA 底部 ============ */
.cta {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-500));
  color: #fff; text-align: center;
}
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 17px; opacity: .9; margin-bottom: 28px; }

/* ============ 页脚 ============ */
.footer { background: var(--ink-900); color: #cbd5e1; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-about p { font-size: 14px; color: #94a3b8; max-width: 280px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; text-align: center; font-size: 13px; color: #64748b; }
.footer-bottom a { color: #94a3b8; }

/* ============ 真实产品截图 ============ */
.shot-frame {
  background: #fff; border: 1px solid #e8eef6; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 10px; overflow: hidden;
}
.shot-frame img {
  width: 100%; height: auto; display: block; border-radius: 8px;
  border: 1px solid #eef2f7;
}
.shot-caption {
  text-align: center; font-size: 13px; color: var(--ink-500); margin-top: 14px;
}

/* ============ 滚动显现 ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .hero .container, .detail, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail.reverse .detail-text { order: 0; }
  .value-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band .container { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: 42px; }
  .mockup { transform: none; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid #eef2f7; padding: 10px 24px 20px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .menu-toggle { display: block; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 16px; }
  .section-head h2, .page-hero h1 { font-size: 28px; }
  .product-grid, .steps, .values-grid, .value-grid, .form-row { grid-template-columns: 1fr; }
  .mockup-stat { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-band b { font-size: 30px; }
  .cta h2 { font-size: 26px; }
  .detail-text h2, .product-card h3 { font-size: 26px; }
}
