* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f6f8fc;
  color: #0f172a;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 10px; }

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 99, 235, .35); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
  color: #e2e8f0;
}

.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }

.btn-demo {
  background: rgba(56, 189, 248, .14);
  border-color: rgba(56, 189, 248, .5);
  color: #7dd3fc;
  font-weight: 600;
}

.btn-demo:hover {
  background: rgba(56, 189, 248, .24);
  border-color: #38bdf8;
  color: #fff;
}

.site-nav.scrolled .btn-demo {
  background: rgba(37, 99, 235, .08);
  border-color: rgba(37, 99, 235, .35);
  color: #2563eb;
}

.btn-outline {
  background: #fff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-outline:hover { border-color: #2563eb; color: #2563eb; }

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s, box-shadow .25s;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; }

.site-nav.scrolled .nav-brand { color: #0f172a; }

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.nav-logo.small { width: 30px; height: 30px; font-size: 11px; }

.nav-links { display: flex; gap: 26px; flex: 1; }

.nav-links a { color: rgba(255, 255, 255, .82); font-size: 14px; transition: color .2s; }

.site-nav.scrolled .nav-links a { color: #475569; }

.nav-links a:hover { color: #38bdf8; }

.site-nav.scrolled .nav-links a:hover { color: #2563eb; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 24px 100px;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(56, 189, 248, .22), transparent 60%),
    radial-gradient(700px 420px at 12% 82%, rgba(37, 99, 235, .24), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #0f1b33 55%, #0b1729 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .08);
  color: #7dd3fc;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero h1 { font-size: 52px; line-height: 1.18; margin: 0 0 20px; font-weight: 800; letter-spacing: -1px; }

.hero h1 span {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc { font-size: 16px; line-height: 1.8; color: rgba(226, 232, 240, .78); max-width: 520px; margin: 0 0 32px; }

.hero-actions { display: flex; gap: 12px; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 40px; }

.stat b { display: block; font-size: 24px; font-weight: 800; }

.stat span { font-size: 12px; color: rgba(148, 163, 184, .85); }

/* Hero 示意 */
.hero-visual { position: relative; }

.panel {
  position: relative;
  border-radius: 18px;
  padding: 20px;
  background: rgba(15, 23, 42, .78);
  border: 1px solid rgba(148, 163, 184, .2);
  box-shadow: 0 30px 70px rgba(2, 6, 23, .55);
}

.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(226, 232, 240, .9); margin-bottom: 18px; }

.live-dot {
  font-size: 11px;
  color: #4ade80;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .25);
}

.panel-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.metric { background: rgba(148, 163, 184, .08); border-radius: 10px; padding: 12px 10px; }

.metric span { font-size: 11px; color: rgba(148, 163, 184, .9); }

.metric b { display: block; font-size: 22px; margin: 4px 0 2px; }

.metric b em { font-size: 12px; font-style: normal; font-weight: 500; color: rgba(148, 163, 184, .9); margin-left: 2px; }

.metric i { font-size: 10px; font-style: normal; }

.metric i.up { color: #4ade80; }

.metric i.down { color: #f87171; }

.panel-chart { width: 100%; height: 96px; display: block; margin: 14px 0; }

.panel-alarm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fbbf24;
  background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: 8px;
  padding: 8px 10px;
}

.panel-alarm em { margin-left: auto; font-style: normal; color: rgba(148, 163, 184, .8); font-size: 11px; }

.alarm-dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, .16); }

.float-card {
  position: absolute;
  right: -14px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(2, 6, 23, .28);
}

.float-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(37, 99, 235, .1);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.float-card b { display: block; font-size: 18px; }

.float-card span { font-size: 11px; color: #64748b; }

/* ---------- 通用区块 ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 96px 24px; }

.section.alt { max-width: none; background: #eef2f9; }

.section.alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: #2563eb;
  background: rgba(37, 99, 235, .08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 { font-size: 34px; margin: 0 0 12px; font-weight: 800; letter-spacing: -.5px; }

.section-head p { color: #64748b; font-size: 15px; margin: 0; line-height: 1.7; }

/* 功能 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card { background: #fff; border: 1px solid #e6ebf3; border-radius: 16px; padding: 26px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }

.feature-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, .3); box-shadow: 0 18px 40px rgba(37, 99, 235, .12); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .09);
  color: #2563eb;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 17px; margin: 0 0 8px; }

.feature-card p { font-size: 13px; line-height: 1.75; color: #64748b; margin: 0; }

/* 行业 */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.industry-card { background: #fff; border-radius: 16px; border: 1px solid #e1e8f2; overflow: hidden; transition: transform .2s, box-shadow .2s; }

.industry-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(37, 99, 235, .12); }

.industry-thumb { height: 124px; background-size: cover; background-position: center; }

.industry-body { padding: 20px 24px 24px; }

.industry-card h3 { display: flex; align-items: center; gap: 12px; font-size: 16px; margin: 0 0 12px; }

.industry-card h3 span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(56, 189, 248, .18));
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.industry-card p { font-size: 13px; line-height: 1.75; color: #64748b; margin: 0 0 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tags span { font-size: 11px; color: #2563eb; background: rgba(37, 99, 235, .07); padding: 3px 9px; border-radius: 999px; }

.industry-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }

.industry-demo {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  transition: color .2s;
}

.industry-demo:hover { color: #1d4ed8; }

.industry-demo.liquid { color: #0ea5e9; }

.industry-demo.liquid:hover { color: #0284c7; }

/* 套餐 */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 18px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}

.price-card.featured { border-color: #2563eb; box-shadow: 0 24px 60px rgba(37, 99, 235, .18); transform: translateY(-6px); }

.price-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  padding: 3px 10px;
  border-radius: 999px;
}

.price-card h3 { font-size: 17px; margin: 0 0 12px; }

.price { display: flex; align-items: baseline; gap: 4px; }

.price b { font-size: 30px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }

.price span { color: #64748b; font-size: 13px; }

.price-desc { font-size: 12px; color: #94a3b8; margin: 6px 0 20px; }

.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }

.price-card li { font-size: 13px; color: #475569; padding: 7px 0 7px 22px; position: relative; }

.price-card li::before { content: '✓'; position: absolute; left: 0; color: #2563eb; font-weight: 700; }

.price-card .btn { width: 100%; }

.pricing-note { text-align: center; font-size: 12px; color: #94a3b8; margin-top: 26px; }

.pricing-contact-line { text-align: center; margin: 12px 0 0; font-size: 14px; color: #475569; }

.pricing-contact-line a { color: #2563eb; font-weight: 700; }

.price-contact { margin: 10px 0 0; text-align: center; font-size: 12px; color: #64748b; }

.price-contact a { color: #2563eb; }

.footer-contact { margin: 6px 0 0; font-size: 12px; color: rgba(203, 213, 225, .75); }

.footer-contact a { color: #7dd3fc; }

/* CTA / 页脚 */
.cta { background: linear-gradient(120deg, #0b1220, #15294a); color: #fff; padding: 64px 24px; }

.cta-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.cta h2 { font-size: 28px; margin: 0 0 8px; }

.cta p { margin: 0; color: rgba(203, 213, 225, .8); font-size: 14px; }

.site-footer { background: #080f1c; color: rgba(203, 213, 225, .7); padding: 46px 24px 26px; }

.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-brand b { color: #fff; font-size: 15px; }

.footer-brand p { margin: 4px 0 0; font-size: 12px; max-width: 420px; }

.footer-links { display: flex; gap: 22px; font-size: 13px; }

.footer-links a { color: rgba(203, 213, 225, .7); }

.footer-links a:hover { color: #38bdf8; }

.footer-copy {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-copy a { color: rgba(203, 213, 225, .7); }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .feature-grid, .industry-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 120px 20px 70px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .section { padding: 64px 20px; }
  .section-head h2 { font-size: 25px; }
  .feature-grid, .industry-grid, .pricing-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
