/* ============ 设计变量 ============ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: #0b1437;
  --border: #e6ebf3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --maxw: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  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; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  padding: 11px 22px; border-radius: 999px; transition: all .22s ease; white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, .45); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 16px rgba(37,99,235,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; color: var(--ink); }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text); position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--primary); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; color: #fff; padding: 70px 0 90px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6,182,212,.45), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(37,99,235,.5), transparent 55%),
    linear-gradient(135deg, #0b1437 0%, #15296b 45%, #1e3a8a 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: 13px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.18; font-weight: 800; letter-spacing: -.5px; }
.hero-sub { margin: 22px 0 30px; font-size: 17px; color: rgba(255,255,255,.86); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 30px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.75); }

.hero-panel { display: flex; justify-content: center; }
.hero-card { width: 100%; max-width: 380px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 20px; padding: 20px; backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); }
.hc-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.18); }
.hc-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hc-body { min-height: 150px; padding: 14px 4px; font-size: 14px; color: rgba(255,255,255,.92); }
.hc-body .bubble { background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.hc-body .bubble.user { background: linear-gradient(135deg, var(--primary-light), var(--accent)); margin-left: 24px; }
.hc-foot { font-size: 12px; color: rgba(255,255,255,.65); text-align: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }

/* ============ 通用区块 ============ */
.section { padding: 84px 0; scroll-margin-top: calc(var(--header-h) + 12px); }
#home { scroll-margin-top: 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(24px, 3vw, 36px); color: var(--ink); font-weight: 800; letter-spacing: -.5px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ============ 公司介绍 ============ */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.about-paragraphs p { margin-bottom: 18px; font-size: 16px; color: var(--text); }
.about-aside { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.about-aside h3 { color: var(--ink); margin-bottom: 16px; font-size: 18px; }
.adv-list { list-style: none; display: grid; gap: 14px; }
.adv-list li { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border-left: 3px solid var(--primary); }
.adv-list b { display: block; color: var(--ink); margin-bottom: 3px; }
.adv-list span { font-size: 14px; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.timeline .tl { position: relative; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.timeline .tl b { font-size: 22px; color: var(--primary); }
.timeline .tl span { display: block; font-size: 14px; color: var(--text); margin-top: 6px; }

/* ============ 产品案例 ============ */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--text); transition: all .2s; }
.tab:hover { border-color: var(--primary-light); color: var(--primary); }
.tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; cursor: pointer; transition: all .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pc-cover { font-size: 34px; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #eef3ff, #e0f2fe); margin-bottom: 16px; }
.pc-cat { font-size: 12px; color: var(--primary); font-weight: 700; }
.pc-title { font-size: 18px; color: var(--ink); font-weight: 700; margin: 4px 0 8px; }
.pc-summary { font-size: 14.5px; color: var(--muted); flex: 1; }
.pc-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.pc-tags span { font-size: 12px; background: var(--bg-soft); color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.pc-more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* ============ 体验中心 ============ */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: all .25s; }
.exp-card.clickable { cursor: pointer; }
.exp-card.clickable:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.exp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.exp-icon { font-size: 32px; margin-bottom: 14px; }
.exp-cat { font-size: 12px; font-weight: 700; color: var(--accent); }
.exp-title { font-size: 18px; color: var(--ink); font-weight: 700; margin: 6px 0 8px; }
.exp-desc { font-size: 14.5px; color: var(--muted); }

/* ============ 行业解决方案 ============ */
.sol-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.sol-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 8px; }
.sol-nav button { text-align: left; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); transition: all .2s; display: flex; align-items: center; gap: 10px; }
.sol-nav button .ic { font-size: 20px; }
.sol-nav button:hover { border-color: var(--primary-light); }
.sol-nav button.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(37,99,235,.3); }
.sol-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); min-height: 400px; }
.sol-head h3 { font-size: 24px; color: var(--ink); }
.sol-head p { color: var(--muted); margin: 10px 0 22px; }
.sol-block { margin-bottom: 24px; }
.sol-block h4 { font-size: 15px; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sol-block ul { list-style: none; display: grid; gap: 8px; }
.sol-block ul li { padding-left: 22px; position: relative; font-size: 14.5px; color: var(--text); }
.sol-block ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sol-content-sec { border-left: 3px solid var(--border); padding-left: 16px; margin-bottom: 16px; }
.sol-content-sec b { color: var(--ink); }
.sol-content-sec p { font-size: 14.5px; color: var(--text); margin-top: 4px; }
.benefit-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.benefit-tags span { background: linear-gradient(135deg, #ecfdf5, #e0f2fe); color: #047857; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }

/* ============ 联系方式 ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.contact-info { background: linear-gradient(135deg, #0b1437, #1e3a8a); color: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-info h3 { font-size: 22px; margin-bottom: 22px; }
.ci-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ci-item:last-child { border-bottom: none; }
.ci-icon { font-size: 22px; }
.ci-item b { display: block; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }
.ci-item span { font-size: 16px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--bg-soft); transition: border .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-tip { font-size: 14px; margin-top: 12px; min-height: 20px; }
.form-tip.ok { color: #047857; }
.form-tip.err { color: #dc2626; }

/* 留言验证码 */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-box {
  flex: 0 0 auto; min-width: 96px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: border .2s, background .2s;
  display: flex; align-items: center; justify-content: center; user-select: none;
}
.captcha-box:hover { border-color: var(--primary); background: #fff; }
.captcha-box:active { transform: scale(.98); }

/* ============ 页脚 ============ */
.site-footer { background: var(--bg-deep); color: #cbd5e1; padding: 54px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand strong { font-size: 20px; color: #fff; }
.footer-brand p { font-size: 13px; margin-top: 6px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 14px; color: #94a3b8; padding: 4px 0; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #64748b; text-align: center; }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(8,12,30,.55); backdrop-filter: blur(3px); }
.modal-panel { position: relative; width: 100%; max-width: 640px; max-height: 86vh; overflow: auto; background: #fff; border-radius: 20px; padding: 38px; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--bg-soft); font-size: 22px; cursor: pointer; color: var(--muted); }
.modal-close:hover { background: #fee2e2; color: #dc2626; }
#modalBody h3 { font-size: 24px; color: var(--ink); }
#modalBody .m-cat { color: var(--primary); font-weight: 700; font-size: 13px; }
#modalBody .m-desc { margin: 14px 0 18px; color: var(--text); }
#modalBody .m-sec { margin: 16px 0; }
#modalBody .m-sec b { color: var(--ink); }
#modalBody ul { margin: 8px 0 0 18px; color: var(--text); }
#modalBody ul li { margin-bottom: 6px; }

/* ============ AI 对话悬浮窗 ============ */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 80; }
.chat-fab { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; border-radius: 999px; padding: 13px 20px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 30px rgba(37,99,235,.45); transition: transform .2s; }
.chat-fab:hover { transform: translateY(-3px); }
.chat-panel { position: absolute; bottom: 76px; right: 0; width: 360px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s ease; }
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; }
.chat-title { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.chat-title strong { font-size: 15px; }
.chat-title em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.8); }
.chat-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: linear-gradient(135deg, var(--primary-light), var(--accent)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px 0; }
.chat-quick button { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--primary); cursor: pointer; transition: all .2s; }
.chat-quick button:hover { background: var(--primary); color: #fff; border-color: transparent; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-family: inherit; }
.chat-input input:focus { outline: none; border-color: var(--primary); }
.chat-send { background: var(--primary); color: #fff; border: none; border-radius: 999px; padding: 0 18px; font-weight: 600; cursor: pointer; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .product-grid, .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-layout { grid-template-columns: 1fr; }
  .sol-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .sol-nav button { flex: 1 1 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s; border-bottom: 1px solid var(--border); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
  .product-grid, .exp-grid, .timeline { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .section { padding: 60px 0; }
  .sol-content { padding: 22px; }
  .chat-panel { height: 70vh; }
}
