:root {
  --blue: #1666ff;
  --blue-600: #0f4fd1;
  --blue-700: #0a3fb0;
  --blue-soft: #eaf1ff;
  --ink: #0f1b2d;
  --text: #1f2a3d;
  --muted: #667085;
  --line: #e6ecf5;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 60, 140, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 60, 140, 0.14);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  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 { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 14px; } .mt-3 { margin-top: 28px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: all .2s ease; white-space: nowrap;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(22,102,255,.25); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { background: #eef3ff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: -0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 17px; color: var(--ink); }
.brand-text small { font-size: 10px; letter-spacing: 2px; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #0a1733 0%, #102a6b 55%, #1666ff 130%); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(22,102,255,.35), transparent 40%),
                    radial-gradient(circle at 80% 0%, rgba(10,63,176,.5), transparent 45%);
}
.hero-inner { position: relative; padding: 90px 20px 70px; max-width: var(--maxw); margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); margin-bottom: 22px;
}
.hero-title { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: -1px; }
.hero-sub { margin: 20px 0 30px; font-size: 17px; color: rgba(255,255,255,.82); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(4px); }
.stat-num { font-size: 30px; font-weight: 800; }
.stat-num span { font-size: 15px; font-weight: 600; margin-left: 3px; opacity: .85; }
.stat-label { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; font-weight: 800; color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.section-title { font-size: 24px; font-weight: 800; color: var(--ink); margin: 28px 0 22px; }
.h-underline { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 16px; position: relative; padding-left: 14px; }
.h-underline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--blue); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-lg .card-detail { color: var(--muted); font-size: 14px; margin-top: 6px; }
.card h3 { font-size: 18px; color: var(--ink); margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft);
  display: grid; place-items: center; font-size: 22px;
}
.icon-wechat::before { content: "💬"; }
.icon-archive::before { content: "🗄️"; }
.icon-scrm::before { content: "👥"; }
.icon-cloud::before { content: "☁️"; }
.icon-flow::before { content: "🔀"; }
.icon-chart::before { content: "📊"; }

/* ---------- Two col ---------- */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.lead { font-size: 16px; color: var(--text); }
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.mission div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.mission strong { color: var(--blue); font-size: 13px; }
.mission p { margin-top: 6px; font-size: 14px; color: var(--text); }
.stats-box { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat-card .stat-num { color: var(--blue); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 10px; padding-left: 30px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding: 0 0 30px 6px; }
.timeline-year { font-weight: 800; color: var(--blue); font-size: 18px; }
.timeline-dot { position: absolute; left: -39px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.timeline-text { color: var(--text); margin-top: 4px; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-row { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.news-row:hover { transform: translateX(4px); border-color: var(--blue); }
.news-date { text-align: center; min-width: 64px; color: var(--blue); }
.news-date span { display: block; font-size: 22px; font-weight: 800; }
.news-date em { font-style: normal; font-size: 13px; color: var(--muted); }
.news-body { flex: 1; }
.news-body h3 { font-size: 17px; color: var(--ink); margin: 6px 0; }
.news-body p { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; background: var(--blue-soft); color: var(--blue-700); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.news-arrow { color: var(--blue); font-size: 20px; }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article-cover { border-radius: var(--radius); margin-bottom: 22px; }
.article-content { margin-top: 14px; color: var(--text); white-space: pre-wrap; }
.news-meta { color: var(--muted); margin-top: 10px; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, #0a3fb0, #1666ff); color: #fff; padding: 64px 0; }
.cta-inner { text-align: center; }
.cta h2 { font-size: 30px; font-weight: 800; }
.cta p { margin: 12px 0 26px; opacity: .9; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(160deg, #0a1733, #102a6b 60%, #1666ff); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: 38px; font-weight: 800; }
.page-hero p { margin-top: 10px; opacity: .85; }
.page-hero .tag { margin-bottom: 14px; }

/* ---------- Contact ---------- */
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-info li { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.contact-info span { width: 48px; color: var(--muted); font-size: 14px; }
.contact-info b { font-size: 16px; color: var(--ink); }
.contact-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.form-card { padding: 26px; }
.qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); text-align: center; max-width: 420px;
}
.qr-card h3 { margin-bottom: 16px; color: var(--ink); font-size: 17px; }
.qr-card-items { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 24px; flex-wrap: nowrap; }
.qr-card-items div { display: flex; flex-direction: column; align-items: center; }
.qr-card img { width: 140px; height: 140px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.qr-card p { color: var(--muted); font-size: 13px; margin: 0; }
.form-card h3 { margin-bottom: 16px; color: var(--ink); }
#contact-form label { display: block; font-size: 14px; color: var(--text); margin-bottom: 14px; font-weight: 500; }
#contact-form input, #contact-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: var(--text); transition: border-color .2s;
}
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--blue); }
.form-msg { margin-top: 12px; font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm); display: none; }
.form-msg.ok { display: block; background: #e9f8ef; color: #1a7f4b; }
.form-msg.err { display: block; background: #fdeeee; color: #c0392b; }

/* ---------- Cases ---------- */
.case-card { display: flex; flex-direction: column; align-items: flex-start; color: var(--text); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-tag {
  display: inline-block; background: var(--blue-soft); color: var(--blue-700);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.case-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }
.case-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.case-more { margin-top: 14px; color: var(--blue); font-size: 14px; font-weight: 600; }
.case-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.case-related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-related h3 { font-size: 20px; color: var(--ink); margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #c7d0e0; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr 1fr; gap: 30px; }
.brand-footer { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer-slogan { font-size: 14px; color: #8b97ad; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { display: block; color: #9aa6bd; font-size: 14px; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14px; color: #9aa6bd; margin: 4px 0; }
.footer-bottom { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #7a8499; }
.footer-bottom a { color: #9aa6bd; text-decoration: none; }
.footer-bottom a:hover { color: #c9d4e6; text-decoration: underline; }
.footer-qr img { width: 104px; height: 104px; border-radius: var(--radius-sm); background: #fff; padding: 6px; margin-bottom: 8px; }
.footer-qr p { font-size: 12px; color: #9aa6bd; margin: 0; }
.footer-qr .qr-items { display: flex; gap: 12px; }
.footer-qr .qr-item { display: flex; flex-direction: column; align-items: center; }
.error-code { font-size: 84px; font-weight: 900; color: var(--blue); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-title { font-size: 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-head h2 { font-size: 26px; }
  .news-row { flex-wrap: wrap; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
