:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5b6881;
  --line: #dce5f2;
  --soft: #f4f8fd;
  --blue: #2563eb;
  --cyan: #0891b2;
  --orange: #ea580c;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.7; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--blue); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(220, 229, 242, .9); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.header-inner, .footer-inner { width: min(calc(100% - 40px), var(--max)); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.header-inner { min-height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #172554; font-size: 19px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #06b6d4, #2563eb 58%, #f97316); box-shadow: 0 7px 18px rgba(37, 99, 235, .22); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 8px 11px; border-radius: 9px; color: #475569; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--blue); background: #eff6ff; outline: none; }
.site-nav .language-switch { margin-left: 3px; border: 1px solid #bfd3f2; color: #1d4ed8; background: #f8fbff; }
main { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.blog-hero { position: relative; overflow: hidden; margin: 48px 0 42px; padding: clamp(34px, 6vw, 72px); border: 1px solid #d7e5fb; border-radius: 28px; background: radial-gradient(circle at 86% 18%, rgba(34, 211, 238, .24), transparent 25%), radial-gradient(circle at 12% 92%, rgba(249, 115, 22, .14), transparent 28%), linear-gradient(135deg, #eff6ff, #f8fbff 56%, #ecfeff); box-shadow: 0 18px 52px rgba(35, 74, 140, .1); }
.blog-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -72px; bottom: -95px; border: 34px solid rgba(37, 99, 235, .08); border-radius: 50%; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.blog-hero h1 { max-width: 770px; margin: 12px 0 17px; font-size: clamp(34px, 5vw, 58px); line-height: 1.14; letter-spacing: -.045em; }
.blog-hero > p { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.topic-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.topic-list span { padding: 6px 11px; border: 1px solid #cbdcf5; border-radius: 999px; color: #334e7d; background: rgba(255, 255, 255, .68); font-size: 13px; font-weight: 700; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading span { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.section-heading h2 { margin: 3px 0 0; font-size: 29px; line-height: 1.2; }
.section-heading > a { color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.article-list { margin-bottom: 46px; }
.article-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 16px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-2px); border-color: #b7cef2; box-shadow: 0 14px 38px rgba(30, 64, 175, .08); }
.card-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.card-meta span { color: var(--blue); font-weight: 800; }
.article-card h2 { max-width: 830px; margin: 3px 0 0; font-size: clamp(22px, 3vw, 29px); line-height: 1.32; letter-spacing: -.025em; }
.article-card h2 a { text-decoration: none; }
.article-card h2 a:hover { color: var(--blue); }
.article-card > p { max-width: 900px; margin: 0; color: var(--muted); }
.card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; color: #64748b; font-size: 13px; }
.card-footer a { margin-left: auto; color: var(--blue); font-weight: 800; text-decoration: none; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 48px 0 72px; padding: clamp(28px, 5vw, 48px); border-radius: 24px; color: #fff; background: linear-gradient(120deg, #172554, #1d4ed8 68%, #0891b2); box-shadow: 0 20px 50px rgba(30, 64, 175, .2); }
.cta-panel span { color: #a5f3fc; font-size: 13px; font-weight: 800; }
.cta-panel h2 { margin: 4px 0; font-size: clamp(25px, 4vw, 34px); }
.cta-panel p { margin: 0; color: #dbeafe; }
.primary-button { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 46px; padding: 0 19px; border-radius: 12px; color: #1e3a8a; background: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 7px 20px rgba(15, 23, 42, .14); }
.primary-button:hover, .primary-button:focus-visible { transform: translateY(-1px); outline: 3px solid rgba(165, 243, 252, .45); }
.article-page { max-width: 1020px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 27px 0 20px; color: #64748b; font-size: 13px; }
.breadcrumbs a { color: #475569; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.article-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 15px 50px rgba(30, 58, 95, .08); }
.article-header { padding: clamp(32px, 7vw, 72px) clamp(24px, 8vw, 88px) clamp(28px, 5vw, 48px); background: radial-gradient(circle at 88% 8%, rgba(34, 211, 238, .2), transparent 25%), linear-gradient(145deg, #eff6ff, #fff 66%); }
.article-header h1 { max-width: 830px; margin: 12px 0 17px; font-size: clamp(34px, 5.5vw, 54px); line-height: 1.17; letter-spacing: -.043em; }
.lead { max-width: 820px; margin: 0; color: #4c5d77; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.72; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 25px; color: #64748b; font-size: 13px; }
.article-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 62px); padding: clamp(30px, 6vw, 70px) clamp(24px, 8vw, 88px); }
.toc { position: sticky; top: 96px; align-self: start; padding: 17px; border: 1px solid #dbe7f7; border-radius: 14px; background: var(--soft); }
.toc strong { display: block; margin-bottom: 9px; color: #1e3a8a; font-size: 13px; }
.toc ol { display: grid; gap: 7px; margin: 0; padding-left: 19px; color: #66738b; font-size: 13px; line-height: 1.5; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--blue); }
.article-content { min-width: 0; color: #27364f; font-size: 17px; line-height: 1.88; }
.article-content > :first-child { margin-top: 0; }
.article-content h2 { margin: 2.1em 0 .7em; color: #172554; font-size: clamp(25px, 3.4vw, 32px); line-height: 1.28; letter-spacing: -.025em; }
.article-content h3 { margin: 1.6em 0 .55em; color: #1e3a5f; font-size: 21px; line-height: 1.4; }
.article-content p { margin: 0 0 1.15em; }
.article-content ul, .article-content ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.article-content li { margin: .42em 0; padding-left: .2em; }
.article-content strong { color: #142d57; }
.article-content a { color: #1d4ed8; text-underline-offset: 3px; }
.article-content code { padding: .15em .38em; border-radius: 5px; color: #9f1239; background: #fff1f2; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
.article-content pre { overflow: auto; padding: 18px; border-radius: 13px; color: #e2e8f0; background: #0f172a; font-size: 14px; line-height: 1.65; }
.article-content pre code { padding: 0; color: inherit; background: transparent; }
.note, .warning, .success { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: #eff6ff; }
.note p:last-child, .warning p:last-child, .success p:last-child { margin-bottom: 0; }
.warning { border-color: var(--orange); background: #fff7ed; }
.success { border-color: #059669; background: #ecfdf5; }
.comparison { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 15px; }
.comparison th, .comparison td { padding: 12px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: #1e3a8a; background: #eff6ff; }
.article-cta { margin: 0 clamp(24px, 8vw, 88px) clamp(30px, 6vw, 70px); padding: clamp(24px, 5vw, 38px); border-radius: 20px; color: #fff; background: linear-gradient(125deg, #172554, #1d4ed8 70%, #0891b2); text-align: center; }
.article-cta h2 { margin: 0 0 5px; font-size: clamp(24px, 4vw, 31px); }
.article-cta p { margin: 0 0 18px; color: #dbeafe; }
.related { margin: 32px 0 64px; }
.related h2 { font-size: 25px; }
.related > a { display: flex; flex-direction: column; gap: 3px; margin: 9px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.related > a:hover { border-color: #a9c5ee; background: #f8fbff; }
.related span { color: var(--blue); font-size: 12px; font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); background: #f8fafc; }
.footer-inner { min-height: 94px; gap: 22px; color: #64748b; font-size: 13px; }
.footer-inner nav { display: flex; gap: 17px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--blue); }
.empty-state { padding: 40px; border: 1px dashed #cbd5e1; border-radius: 16px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .header-inner, .footer-inner, main { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 62px; }
  .site-nav a { display: none; }
  .site-nav a[aria-current="page"] { display: block; }
  .site-nav .language-switch { display: block; }
  .blog-hero { margin-top: 24px; border-radius: 21px; }
  .blog-hero h1 { font-size: 35px; }
  .card-footer a { width: 100%; margin-left: 0; }
  .cta-panel { align-items: stretch; flex-direction: column; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .article-header h1 { font-size: 36px; }
  .article-meta { flex-direction: column; gap: 3px; }
  .comparison { display: block; overflow-x: auto; white-space: nowrap; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --ink: #e6edf8; --muted: #a6b2c7; --line: #293650; --soft: #162238; }
  body { background: #0b1220; }
  .site-header { border-color: rgba(41, 54, 80, .9); background: rgba(11, 18, 32, .9); }
  .brand { color: #e0e7ff; }
  .site-nav a { color: #b4c0d5; }
  .site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: #7dd3fc; background: #14223d; }
  .site-nav .language-switch { border-color: #34517a; color: #7dd3fc; background: #111f35; }
  .blog-hero, .article-header { border-color: #253755; background: radial-gradient(circle at 86% 18%, rgba(8, 145, 178, .2), transparent 25%), linear-gradient(135deg, #111d34, #0e1728); }
  .topic-list span { border-color: #344866; color: #c6d7f2; background: rgba(15, 23, 42, .65); }
  .article-card, .article-shell { background: #101a2c; }
  .article-card:hover { border-color: #3d5e8f; }
  .article-card h2 a:hover, .section-heading > a, .breadcrumbs a:hover, .toc a:hover { color: #67e8f9; }
  .article-content { color: #cbd5e1; }
  .article-content h2, .article-content h3, .article-content strong { color: #e2e8f0; }
  .article-content code { color: #fda4af; background: #351825; }
  .note { background: #142746; }
  .warning { background: #392416; }
  .success { background: #102d27; }
  .comparison th { color: #bfdbfe; background: #172743; }
  .site-footer { background: #0f172a; }
  .related > a:hover { border-color: #3d5e8f; background: #111f35; }
}
