:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #172033;
  --muted: #657184;
  --border: #dbe3ee;
  --primary: #2454d6;
  --primary-dark: #183b9e;
  --accent: #14a38b;
  --shadow: 0 20px 45px rgba(23, 32, 51, .08);
  --radius: 22px;
  --container: 1160px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 13px;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(36,84,214,.24);
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--primary); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 14px; }
.lang-switch { font-size: 13px; color: var(--muted); }

.hero, .product-hero, .page-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(36,84,214,.16), transparent 34%),
    linear-gradient(180deg, #fff, var(--bg));
}
.hero-grid, .product-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; padding: 86px 0; }
.hero-copy h1, .product-hero h1, .page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.hero-copy p, .product-hero p, .page-hero p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent;
}
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 12px 28px rgba(36,84,214,.24); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { color: var(--primary); background: #fff; border-color: var(--border); }
.btn-block { width: 100%; margin-top: 12px; }
.hero-panel, .side-panel {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-panel { display: grid; gap: 8px; }
.hero-panel strong { font-size: 1.05rem; }
.hero-panel span { color: var(--muted); margin-bottom: 14px; }

.section { padding: 72px 0; }
.section-muted { background: var(--surface-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading h2, .split h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
.section-heading p, .split p { color: var(--muted); max-width: 640px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card, .article-card, .article-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(23,32,51,.05);
}
.product-card { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.product-card-main img { width: 54px; height: 54px; object-fit: contain; margin-bottom: 16px; }
.product-badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #ecf4ff; color: var(--primary); font-size: 12px; font-weight: 700; }
.product-card h3, .article-card h3 { margin: 12px 0 8px; line-height: 1.35; }
.product-card p, .article-card p, .article-row p { color: var(--muted); margin: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card-tags span { padding: 4px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card a { display: block; padding: 22px; }
.article-card span, .article-row span, .article-header span { color: var(--primary); font-size: 13px; font-weight: 700; }
.article-card time, .article-row time, .article-header time { color: var(--muted); font-size: 13px; }

.product-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-title-row img { width: 58px; height: 58px; object-fit: contain; }
.product-title-row span { padding: 5px 12px; border-radius: 999px; background: #ecf4ff; color: var(--primary); font-weight: 700; }
.product-shot { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); }
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; font-weight: 700; text-align: center; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.markdown-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: 0 8px 28px rgba(23,32,51,.04); }
.markdown-body.narrow { max-width: 860px; }
.markdown-body h2 { margin-top: 2.2em; line-height: 1.3; }
.markdown-body h2:first-child { margin-top: 0; }
.markdown-body img { border-radius: 16px; border: 1px solid var(--border); margin: 18px 0; }
.markdown-body blockquote { margin: 22px 0; padding: 16px 18px; border-left: 4px solid var(--primary); background: #f3f7ff; border-radius: 12px; color: #35435a; }
.side-panel { position: sticky; top: 96px; }
.side-panel h2 { margin-top: 0; }
.side-panel dt { font-weight: 800; margin-top: 14px; }
.side-panel dd { margin: 4px 0 0; color: var(--muted); }

.page-hero .container { padding: 70px 0 46px; }
.search-box { display: grid; gap: 8px; max-width: 520px; margin-top: 24px; color: var(--muted); }
.search-box input { min-height: 48px; border: 1px solid var(--border); border-radius: 999px; padding: 0 18px; font: inherit; background: #fff; color: var(--text); }
.article-list { display: grid; gap: 14px; }
.article-row a { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px; }
.article-row h2 { margin: 6px 0; font-size: 1.25rem; }
.article-detail { padding-bottom: 72px; }
.article-header { padding: 64px 0 30px; }
.article-header h1 { max-width: 920px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.15; margin: 12px 0; }
.back-link { color: var(--primary); font-weight: 700; }

.site-footer { background: #111827; color: #d8dee9; padding: 52px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d8dee9; }

@media (max-width: 920px) {
  .hero-grid, .product-hero-grid, .split, .content-layout { grid-template-columns: 1fr; }
  .product-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .side-panel { position: static; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 14px; right: 14px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 10px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; border-radius: 12px; }
  .lang-switch { display: none; }
  .hero-grid, .product-hero-grid { padding: 56px 0; gap: 28px; }
  .product-grid, .article-grid, .feature-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .article-row a { grid-template-columns: 1fr; }
  .markdown-body { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
