:root {
  --primary: #2f5cff;
  --primary-dark: #1d3fdb;
  --primary-soft: #e8eeff;
  --primary-soft-2: #c8d6ff;
  --ink: #111827;
  --ink-2: #1a1f2e;
  --body: #5a6278;
  --muted: #8a92a8;
  --bg: #f5f7fc;
  --white: #ffffff;
  --line: #e8ecf4;
  --line-2: #edf1f8;
  --radius-card: 14px;
  --radius-btn: 10px;
  --pad-x: 40px;
  --pad-y: 72px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0; }
ul { margin: 0; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container-narrow { max-width: 880px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
  backdrop-filter: saturate(180%) blur(8px);
}
.topbar-inner {
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 9px; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--body); font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.text-link { color: var(--body); font-size: 15px; }
.text-link:hover { color: var(--primary); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px;
  border-radius: var(--radius-btn);
  font-size: 15px; font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 20px rgba(47, 92, 255, .24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 92, 255, .32); }
.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--primary-soft-2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-light {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .18);
}
.btn-light:hover { transform: translateY(-2px); }

/* hero */
.hero { padding: var(--pad-y) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(47, 92, 255, .55);
  animation: pulse 2.4s infinite;
  display: inline-block;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 92, 255, .5); }
  70% { box-shadow: 0 0 0 8px rgba(47, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 92, 255, 0); }
}
h1 {
  margin: 20px 0 18px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -1px;
}
.grad {
  background: linear-gradient(135deg, var(--primary), #6b8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 520px; font-size: 16px; color: var(--body); }
.cta-group { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* dashboard */
.dashboard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .08), 0 2px 6px rgba(17, 24, 39, .04);
}
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.dash-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.dash-date { font-size: 12px; color: var(--muted); }
.dash-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric { background: var(--bg); border-radius: 12px; padding: 16px 14px; }
.metric-label { font-size: 12px; color: var(--muted); }
.metric-value { font-size: 24px; font-weight: 800; color: var(--ink); margin: 4px 0 2px; }
.metric-trend { font-size: 12px; color: var(--muted); }
.metric-trend.up { color: #17a673; }
.metric-trend.warn { color: #d97706; }
.dash-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.avatars { display: flex; }
.avatars span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff; margin-left: -8px;
}
.avatars span:first-child { margin-left: 0; }
.dash-foot-text { font-size: 12px; color: var(--muted); }

/* sections */
.section { padding: var(--pad-y) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; }
.section-head p { max-width: 640px; margin: 14px auto 0; font-size: 15px; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-soft-2);
  box-shadow: 0 12px 28px rgba(47, 92, 255, .12);
}
.icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: var(--primary-soft);
}
.icon-blue { background: #e8eeff; }
.icon-green { background: #e4f7ee; }
.icon-orange { background: #fff1e2; }
.icon-purple { background: #f0eaff; }
.icon-cyan { background: #e2f6f9; }
.icon-pink { background: #ffe8f1; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.65; }

/* stats */
.stats { background: #111827; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: #fff; line-height: 1.2; }
.stat-num span { font-size: 18px; font-weight: 700; color: #8a94a8; margin-left: 2px; }
.stat-label { margin-top: 6px; font-size: 14px; color: #8a94a8; }

/* trust */
.trust-list { display: flex; flex-direction: column; gap: 24px; }
.trust-item {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.trust-b { background: var(--bg); }
.trust-side h3 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.trust-body p { font-size: 15px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 16px; }
.tag-list li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px; font-weight: 600;
}

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
}
.faq-list summary {
  font-size: 15px; font-weight: 700; color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--primary); font-weight: 700; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.faq-list details p { font-size: 14px; margin-top: 12px; }

/* cta band */
.cta-band {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
.cta-band p { max-width: 620px; margin: 14px auto 26px; color: rgba(255, 255, 255, .84); }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line-2); padding: 40px 0; text-align: center; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; font-size: 14px; color: var(--body); align-items: center; }
.footer-top .brand-name { font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0; font-size: 14px; }
.copyright { font-size: 13px; color: var(--muted); }

/* responsive */
@media (max-width: 1200px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --pad-x: 24px; --pad-y: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: none; }
  h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .trust-item { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 16px; --pad-y: 48px; }
  .nav-links { display: none; }
  .nav-actions .text-link { display: none; }
  h1 { font-size: 28px; letter-spacing: -.6px; }
  h2 { font-size: 24px !important; }
  .section-head h2 { font-size: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 30px; }
  .cta-band h2 { font-size: 24px; }
  .btn { height: 44px; padding: 0 22px; }
  .dashboard { padding: 18px; }
}

/* brand logo & hero visual */
.brand-logo { height: 36px; width: auto; }
.hero-visual {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .10);
}

/* news cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-soft-2);
  box-shadow: 0 12px 28px rgba(47, 92, 255, .12);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef2fb;
  border-bottom: 1px solid var(--line-2);
}
.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  flex: 1;
}
.news-cat {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}
.news-card h3 { font-size: 17px; line-height: 1.45; letter-spacing: -.2px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { font-size: 13.5px; line-height: 1.65; }
.news-date { margin-top: auto; font-size: 12px; color: var(--muted); }
.news-card--text .news-card-body { padding: 22px 22px 20px; }
.news-more { margin-top: 34px; text-align: center; }

/* news listing page */
.page-hero { padding: 56px 0 8px; text-align: center; }
.page-hero h1 { font-size: 34px; letter-spacing: -.8px; margin: 0 0 14px; }
.page-hero p { max-width: 660px; margin: 0 auto; }

/* article page */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.article { padding: 36px 0 64px; }
.article-wrap { max-width: 820px; margin: 0 auto; }
.article h1 { font-size: 34px; line-height: 1.32; letter-spacing: -.6px; margin: 14px 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.article-cover { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 28px; }
.article-body p { margin: 0 0 18px; font-size: 16px; line-height: 1.85; color: #414a60; }
.article-body h2 { font-size: 22px; letter-spacing: -.4px; margin: 30px 0 14px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.article-tags li { padding: 4px 11px; border-radius: 999px; background: #eef2fb; color: #4a5878; font-size: 12px; }
.article-cta { margin-top: 40px; padding: 26px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.article-cta p { margin-bottom: 16px; }
.related { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin-bottom: 14px; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-list a { font-size: 15px; }

@media (max-width: 1200px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  #home-news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  #home-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid, #home-news-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 0 4px; }
  .page-hero h1, .article h1 { font-size: 26px; }
  .article { padding: 24px 0 48px; }
}
