/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-alt: #f6f8fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --grad: linear-gradient(120deg, #2563eb, #7c3aed);
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 600; padding: 10px 22px;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.btn-outline { border-color: #cbd5e1; color: var(--ink-2); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ 导航栏 ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .7);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(15, 23, 42, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 19px;
}
.brand-text { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .06em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--primary); border-radius: 2px; transition: width .25s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ============ Hero ============ */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 320px at 80% 10%, rgba(124, 58, 237, .14), transparent 60%),
    radial-gradient(700px 380px at 10% 90%, rgba(37, 99, 235, .13), transparent 60%),
    linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; }
.hero-content { max-width: 760px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #dbeafe; color: var(--primary);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 56px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-content > p { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 30px; font-weight: 800; color: var(--ink); }
.hero-stats span { color: var(--muted); font-size: 14px; }

/* ============ Section 通用 ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--primary); margin-bottom: 10px;
}
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -.01em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ============ 产品 ============ */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; cursor: pointer; transition: all .25s ease; position: relative; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: var(--pc, var(--primary)); opacity: 0; transition: opacity .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover::before { opacity: 1; }
.pc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pc-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 28px; background: color-mix(in srgb, var(--pc, var(--primary)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--pc, var(--primary)) 22%, transparent);
}
.pc-head h3 { font-size: 20px; font-weight: 700; }
.pc-head .pc-cat { font-size: 12px; color: var(--muted); }
.pc-summary { color: var(--ink-2); font-size: 14.5px; min-height: 66px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pc-tags span {
  font-size: 12px; color: var(--ink-2); background: var(--bg-alt);
  padding: 4px 10px; border-radius: 6px;
}
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pc-price { font-weight: 700; font-size: 15px; color: var(--ink); }
.pc-more { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.pc-more::after { content: "→"; transition: transform .2s; }
.product-card:hover .pc-more::after { transform: translateX(4px); }
.loading { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ============ 核心能力 ============ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: all .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 34px; }
.feature-card h3 { margin: 16px 0 10px; font-size: 19px; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ============ 关于 ============ */
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-visual { position: relative; min-height: 420px; }
.about-card-deco {
  position: absolute; inset: 20px 40px auto 0; height: 320px; border-radius: 20px;
  background: var(--grad); opacity: .14; transform: rotate(3deg);
}
.about-card {
  position: absolute; top: 30px; left: 10px; right: 20px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about-card-head {
  display: flex; align-items: center; gap: 12px; padding: 20px 24px;
  background: linear-gradient(120deg, #eff6ff, #f5f3ff); border-bottom: 1px solid var(--line);
}
.about-card-head strong { font-size: 18px; display: block; }
.about-card-head small { color: var(--muted); font-size: 12px; }
.about-card-body { padding: 22px 24px; }
.about-card-body p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; }
.about-card-body ul { list-style: none; }
.about-card-body li { font-size: 14px; color: var(--ink-2); padding: 5px 0; }
.about-content h2 { font-size: 34px; font-weight: 800; line-height: 1.35; margin-bottom: 20px; }
.about-content > p { color: var(--ink-2); margin-bottom: 14px; }
.about-points { display: flex; gap: 36px; margin-top: 30px; }
.about-points span { font-size: 26px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--primary); }
.about-points p { font-weight: 700; font-size: 15px; margin-top: 4px; }
.about-points small { font-weight: 400; color: var(--muted); font-size: 13px; }

/* ============ 联系 ============ */
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; max-width: 960px; margin: 0 auto; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 14.5px; font-family: inherit;
  background: #fafbff; color: var(--ink); transition: all .2s; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.contact-info { display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 4px 12px rgba(15,23,42,.05);
}
.contact-item strong { font-size: 15px; }
.contact-item p { color: var(--muted); font-size: 14px; }

/* ============ 页脚 ============ */
.footer { background: #0f172a; color: #94a3b8; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer .brand-text { color: #fff; }
.footer p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { display: block; color: #94a3b8; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .15); padding: 18px 0; font-size: 13px; }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); }
.modal-body {
  position: relative; z-index: 1; background: #fff; border-radius: 18px;
  width: calc(100% - 40px); max-width: 420px; margin: 8vh auto 0;
  padding: 28px; box-shadow: var(--shadow-lg); max-height: 84vh; overflow-y: auto;
}
.modal-body.modal-lg { max-width: 720px; padding: 36px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: var(--bg-alt); color: var(--ink-2);
  font-size: 20px; cursor: pointer; transition: all .2s; z-index: 2;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }

/* 产品详情 */
.product-detail .pd-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.product-detail .pd-icon {
  width: 68px; height: 68px; border-radius: 16px; display: grid; place-items: center;
  font-size: 34px; background: color-mix(in srgb, var(--pc, var(--primary)) 12%, #fff);
}
.product-detail h3 { font-size: 26px; font-weight: 800; }
.product-detail .pd-cat { color: var(--primary); font-size: 13px; font-weight: 600; }
.product-detail .pd-summary { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.product-detail h4 { font-size: 16px; font-weight: 700; margin: 20px 0 12px; color: var(--ink); }
.pd-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-features li {
  list-style: none; font-size: 14px; color: var(--ink-2);
  background: var(--bg-alt); border-radius: 8px; padding: 9px 12px; display: flex; gap: 8px; align-items: center;
}
.pd-features li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pd-tags span { background: #eff6ff; color: var(--primary); font-size: 12.5px; padding: 4px 10px; border-radius: 6px; }
.pd-price { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; }
.pd-price strong { font-size: 22px; color: var(--primary); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; font-size: 14px; padding: 12px 26px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 300; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero { padding: 130px 0 70px; }
  .hero h1 { font-size: 38px; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 18px 24px; gap: 14px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-110%); transition: transform .3s; z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .about-inner, .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { min-height: 380px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .section-head h2 { font-size: 30px; }
  .hero-stats { gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
