:root {
  --navy: #0b1c3f;
  --navy-2: #002b4d;
  --blue: #2f6fe0;
  --blue-light: #6cb8f0;
  --ink: #1c2536;
  --muted: #5b6678;
  --bg: #f5f7fb;
  --bg-alt: #eef2f9;
  --white: #ffffff;
  --line: #e3e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 28, 63, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 顶部信息条 */
.topbar { background: var(--navy); color: #cdd9ee; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar b { color: #fff; font-weight: 600; }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; height: 84px; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--navy); }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.nav-menu { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-menu a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy); }

/* 顶部预约上门演示（含表单，导航栏下方） */
.demo-cta { background: linear-gradient(135deg, #123a6b 0%, #002b4d 100%); color: #fff; }
.demo-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 24px; text-align: center; }
.demo-cta-head { display: flex; align-items: center; gap: 12px; }
.demo-cta-icon { font-size: 26px; line-height: 1; }
.demo-cta-head h3 { font-size: 22px; font-weight: 800; }
.demo-cta-form { width: 100%; max-width: 820px; }
.demo-cta .inline-form input { flex: 1 1 180px; }
.demo-cta .form-msg { margin-top: 6px; color: #cfe0f5; }

/* 按钮 */
/* 立体按钮：渐变面 + 底部压边 + 外投影 + 悬浮抬升 + 按下回压 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; position: relative; letter-spacing: .5px; }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: linear-gradient(180deg, #4f8cff 0%, #2f6fe0 55%, #2159c4 100%); color: #fff; box-shadow: 0 6px 0 #1746a0, 0 10px 22px rgba(31,86,190,0.35), inset 0 1px 0 rgba(255,255,255,0.35); text-shadow: 0 1px 1px rgba(0,0,0,0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #1746a0, 0 14px 28px rgba(31,86,190,0.45), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #1746a0, 0 5px 12px rgba(31,86,190,0.35), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 12px rgba(0,0,0,0.18); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 18px rgba(0,0,0,0.25); }
.btn-ghost:active { transform: translateY(1px); }
.btn-outline { background: linear-gradient(180deg, #ffffff, #f2f6fd); color: var(--navy); border: 1.5px solid var(--blue); box-shadow: 0 4px 0 rgba(47,111,224,0.25), 0 6px 14px rgba(47,111,224,0.15), inset 0 1px 0 #fff; }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 rgba(27,64,140,0.35), 0 10px 20px rgba(47,111,224,0.3); }
.btn-outline:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(27,64,140,0.3), 0 4px 10px rgba(47,111,224,0.25); }

/* 首屏 */
.hero { background: linear-gradient(135deg, #123a6b 0%, #002b4d 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding: 92px 24px; }
.hero-tag { display: inline-block; padding: 8px 16px; border-radius: 100px; background: rgba(255,255,255,0.09); border: 1px solid rgba(108,184,240,0.28); font-size: 13px; color: var(--blue-light); margin-bottom: 22px; }
.hero-title { font-size: 50px; line-height: 1.2; font-weight: 800; }
.hero-sub { margin: 22px 0 30px; font-size: 17px; color: #a3b6d6; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; }
.stat-num { font-size: 34px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: #9fb3d6; margin-top: 4px; }

.hero-visual { display: flex; justify-content: center; }
.dash { width: 100%; max-width: 420px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; padding: 18px; backdrop-filter: blur(4px); }
.dash-head { display: flex; gap: 6px; margin-bottom: 16px; }
.dash-head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dash-body { display: flex; flex-direction: column; gap: 14px; }
.dash-row { display: flex; justify-content: space-between; font-size: 14px; color: #c7d6ef; }
.dash-row b { color: #fff; }
.dash-row .warn { color: #ff9a76; }
.dash-bars { display: flex; align-items: flex-end; gap: 12px; height: 90px; margin-top: 10px; }
.dash-bars i { flex: 1; background: linear-gradient(180deg, var(--blue-light), var(--blue)); border-radius: 6px 6px 0 0; }

/* 通用区块 */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag { color: var(--blue); font-weight: 700; letter-spacing: 1px; font-size: 14px; margin-bottom: 10px; }
.section-title { font-size: 32px; font-weight: 800; color: var(--navy); }
.section-desc { color: var(--muted); margin-top: 10px; font-size: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.badge { background: rgba(47,111,224,0.1); color: var(--blue); padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; }

/* 公司简介 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-visual img { width: 100%; border-radius: 20px; box-shadow: 0 24px 50px rgba(10,37,64,0.28); display: block; }
.about-text .about-cards { margin-top: 24px; }
.mini-card { transition: transform .2s, box-shadow .2s; }
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(10,37,64,0.14); }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 16px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.mini-card h4 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.mini-card p { color: var(--muted); font-size: 14px; }

/* 行业新闻 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; }
.news-card:has(.news-cover) { padding: 0; overflow: hidden; }
.news-card:has(.news-cover) .news-body { padding: 22px 26px 26px; }
.news-cover { aspect-ratio: 16 / 9; overflow: hidden; background: #eef2f8; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-subtitle { color: #4a5d7d !important; font-weight: 600; margin: -4px 0 8px; }
.news-card:hover { transform: translateY(-4px); border-color: var(--blue-light); }
.news-meta { color: var(--blue); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.news-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.news-card p { color: var(--muted); font-size: 14px; }
.news-more { display: inline-block; margin-top: 14px; color: var(--blue); font-size: 13px; font-weight: 600; }

/* 新闻详情弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(7,20,43,0.6); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.modal-box { background: #fff; max-width: 720px; width: 100%; max-height: 84vh; overflow-y: auto; border-radius: 16px; padding: 40px 36px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-close { position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; border: none; background: #f0f3f8; border-radius: 50%; font-size: 22px; line-height: 1; color: #5a6b86; cursor: pointer; }
.modal-close:hover { background: #e3e8f0; }
.news-modal-meta { color: var(--blue); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
#newsModalTitle { font-size: 24px; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.news-modal-sub { color: #4a5d7d; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.news-modal-img { width: 100%; border-radius: 12px; margin-bottom: 20px; display: block; }
.news-modal-body p { color: #3a4a63; font-size: 15px; line-height: 1.9; margin-bottom: 14px; white-space: pre-wrap; }

/* 后台：封面图上传与缩略图 */
.cover-upload { display: flex; flex-direction: column; gap: 10px; }
.cover-upload img { max-width: 280px; max-height: 160px; border-radius: 8px; border: 1px solid #2a3a56; object-fit: cover; }
.cover-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-cover-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 4px; display: block; }

/* 产品 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: .2s; border-top: 3px solid var(--blue); position: relative; overflow: hidden; }
.product-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(47,111,224,0.08), transparent 70%); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(10,37,64,0.16); border-top-color: var(--blue-light); }
.p-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #eaf2ff, #dceaff); color: var(--blue); margin-bottom: 16px; box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(47,111,224,0.15); }
.p-icon svg { width: 28px; height: 28px; }
.product-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; min-height: 42px; }
.product-tag { display: inline-block; background: var(--bg-alt); color: var(--blue); font-size: 12px; padding: 5px 12px; border-radius: 100px; font-weight: 600; }

/* 试用 */
.trial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trial-entry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; transition: transform .2s, box-shadow .2s; }
.trial-entry:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(10,37,64,0.14); }
.entry-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #123a6b, #2f6fe0); color: #7fd3ff; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(31,86,190,0.3), inset 0 1px 0 rgba(255,255,255,0.3); }
.trial-visual { margin-top: 40px; display: flex; justify-content: center; }
.trial-visual img { max-width: 720px; width: 100%; border-radius: 20px; box-shadow: 0 24px 50px rgba(10,37,64,0.25); }
.trial-entry h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.trial-entry p { color: var(--muted); font-size: 14px; margin-bottom: 18px; min-height: 42px; }
.trial-form-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-intro h3 { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.form-intro p { color: var(--muted); }
.trial-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--ink); font-weight: 600; }
.field input, .inline-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; }
.field input:focus, .inline-form input:focus { outline: none; border-color: var(--blue); }
.form-note { font-size: 12px; color: var(--muted); }
.form-msg { font-size: 14px; font-weight: 600; }
.form-msg.ok { color: #1a9e6b; }
.form-msg.err { color: #d9453d; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ci-label { font-size: 13px; color: var(--muted); }
.ci-value { font-size: 17px; color: var(--navy); font-weight: 600; }
.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 280px; box-shadow: 0 20px 44px rgba(10,37,64,0.28); }
.contact-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-cta { background: linear-gradient(135deg, #123a6b, #002b4d); color: #fff; border-radius: var(--radius); padding: 40px; text-align: center; }
.contact-cta h3 { font-size: 24px; margin-bottom: 20px; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.inline-form input { flex: 1; min-width: 160px; }
.contact-cta .form-msg { margin-top: 14px; }

/* 服务承诺 */
.promise { background: var(--navy); color: #fff; }
.promise-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 24px; text-align: center; }
.promise-item { font-size: 17px; font-weight: 600; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.promise-item svg { color: #38bdf8; flex: 0 0 auto; }
.promise-item:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 1px; height: 24px; background: rgba(255,255,255,0.2); transform: translateY(-50%); }

/* 页脚 */
.footer { background: #07142b; color: #aebed8; padding: 60px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .brand-name { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; max-width: 320px; margin-bottom: 14px; }
.footer-hotline { font-size: 14px; }
.footer-hotline b { color: var(--blue-light); font-size: 18px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #8fa3c4; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #6f82a3; }

/* 响应式 */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .hero-title { font-size: 36px; }
  .about-grid, .trial-form-wrap, .contact-grid { grid-template-columns: 1fr; }
  .news-grid, .product-grid, .trial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .promise-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
}
