:root {
    color-scheme: light;
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --surface: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--surface); font: 16px/1.7 Inter, "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }
a:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 5px; border-radius: 4px; }
.container { width: min(100%, 1280px); margin: 0 auto; padding: 0 24px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 10px 18px; color: #fff; background: var(--primary); border-radius: 8px; }
.skip-link:focus { top: 10px; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 72px; }
.brand { flex-shrink: 0; color: var(--text); font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.brand span { color: var(--primary); }
.header-nav { display: flex; gap: 32px; }
.header-nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.header-nav a:hover { color: var(--primary); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 22px; border: 1px solid var(--primary); border-radius: 8px; color: #fff; background: var(--primary); font-size: 14px; font-weight: 600; line-height: 1.5; transition: background .15s ease; }
.button:hover { color: #fff; background: #1d3590; }
.button-small { min-height: 40px; padding: 9px 18px; }
.page-wrap { padding-bottom: 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 26px 0; color: #64748b; font-size: 13px; }
.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: var(--primary); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 28px; }
.article-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.article-header { padding: 42px 48px 30px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #eff6ff 0%, #fff 72%, #fff7ed 100%); }
.eyebrow { display: block; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1 { margin: 18px 0 20px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.55; letter-spacing: -.02em; }
h1 > span { color: var(--primary); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #64748b; font-size: 12px; }
.article-lead { margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.article-body { padding: 32px 48px 40px; color: #334155; }
.article-body p { margin: 0 0 20px; line-height: 2; }
.article-body h2 { margin: 34px 0 16px; color: var(--text); font-size: 23px; font-weight: 700; line-height: 1.6; }
.article-body section { scroll-margin-top: 20px; }
.workflow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 28px 0 34px; padding: 20px 14px; border: 1px solid #dbeafe; border-radius: 12px; background: #f8fbff; list-style: none; }
.workflow li { text-align: center; font-size: 13px; font-weight: 600; }
.workflow span { display: block; margin-bottom: 5px; color: var(--primary); font-size: 20px; font-weight: 700; }
blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; color: var(--primary); background: #eff6ff; font-size: 17px; font-weight: 600; line-height: 1.9; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.platforms li { padding: 6px 13px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: var(--surface); font-size: 13px; }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 34px 0 24px; padding: 26px; border: 1px solid #dbeafe; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #fff); }
.article-cta > div { flex: 1 1 280px; }
.article-cta h2 { margin: 0 0 7px; font-size: 22px; }
.article-cta p { margin: 0; font-size: 14px; }
.article-body .scope-note { margin-bottom: 14px; color: #64748b; font-size: 12px; line-height: 1.9; }
.article-body .sources { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 0; padding-top: 16px; border-top: 1px solid var(--border); color: #64748b; font-size: 12px; }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
.article-sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }
.product-card { padding: 28px 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; text-align: center; }
.product-card img { display: block; width: 64px; height: 64px; margin: 0 auto 20px; object-fit: contain; }
.product-card h2 { margin: 10px 0; font-size: 22px; }
.product-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.product-card .button { width: 100%; }
.toc { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.toc h2 { margin: 0 0 14px; color: var(--text); font-size: 14px; }
.toc a { display: flex; gap: 12px; padding: 9px 0; color: var(--muted); font-size: 13px; }
.toc a:hover { color: var(--primary); }
.toc a span { color: #94a3b8; font-size: 12px; }
.site-footer { padding: 38px 0; border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner .brand { font-size: 23px; }
.footer-inner p { margin: 6px 0 0; color: #64748b; font-size: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; }

@media (max-width: 1000px) {
    .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; }
    .article-header { padding: 32px; }
    .article-body { padding: 28px 32px 32px; }
    .header-nav { gap: 20px; }
}

@media (max-width: 820px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .header-nav { display: none; }
    h1 { font-size: 32px; }
}

@media (max-width: 520px) {
    html { scroll-padding-top: 84px; }
    .container { padding-right: 16px; padding-left: 16px; }
    .header-inner { gap: 12px; min-height: 64px; }
    .brand { font-size: 23px; }
    .button-small { padding: 8px 12px; font-size: 12px; }
    .breadcrumb { gap: 8px; padding: 20px 0; font-size: 12px; }
    .article-card { border-radius: 12px; }
    .article-header { padding: 26px 22px 24px; }
    h1 { margin: 14px 0 18px; font-size: 25px; line-height: 1.65; }
    .article-lead { margin-top: 20px; font-size: 15px; }
    .article-meta { gap: 5px 16px; font-size: 11px; }
    .article-body { padding: 24px 22px 28px; font-size: 15px; }
    .article-body h2 { margin-top: 28px; font-size: 20px; }
    .workflow { gap: 4px; padding: 16px 6px; }
    .workflow li { font-size: 10px; }
    .workflow span { font-size: 18px; }
    blockquote { padding: 16px; font-size: 16px; }
    .article-cta { padding: 22px 18px; }
    .article-cta .button { width: 100%; }
    .article-sidebar { grid-template-columns: minmax(0, 1fr); }
    .toc { order: -1; }
    .page-wrap { padding-bottom: 36px; }
    .site-footer { padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
