@font-face {
  font-family: SourceHanSerif;
  src: url('./fonts/source-han-serif-sc.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: SourceHanSans;
  src: url('./fonts/source-han-sans-sc.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #f7f9fc;
  --ink: #182a43;
  --muted: #626f80;
  --blue: #385f8c;
  --line: #dce3eb;
  --serif: SourceHanSerif, 'Songti SC', serif;
  --sans: SourceHanSans, 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--serif); }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
::selection { color: var(--ink); background: #dbe6f2; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 12px; padding: 8px 18px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; border-bottom: 1px solid var(--line); }
.wordmark { font: 26px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.8px; }
.wordmark span { font-style: italic; }
.site-header nav { display: flex; gap: 32px; align-items: center; }
.site-header nav a { display: inline-flex; gap: 8px; padding: 10px 0; font-size: 14px; }
.site-header nav a:hover, .text-link:hover, .availability a:hover, .back-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.home-hero { text-align: center; padding: 76px 0 68px; }
h1 { font-size: clamp(40px, 4.5vw, 58px); line-height: 1.5; letter-spacing: -.03em; }
.home-hero > p { font-size: 16px; color: var(--muted); margin-top: 18px; }
.mobile-break { display: none; }
.products { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; }
.product { min-width: 0; }
.product-heading { display: flex; align-items: center; gap: 12px; }
.product-heading img { flex: 0 0 auto; width: 36px; height: 36px; }
.product-heading h2 { font-size: 27px; line-height: 1.3; letter-spacing: -.5px; }
.product-category { color: var(--muted); font-size: 13px; margin-left: auto; }
.product-description { color: var(--muted); font-size: 15px; margin: 14px 0 24px; }
.product-art { display: flex; height: 336px; align-items: center; justify-content: center; overflow: hidden; background: #ecf1f6; border: 1px solid #e3e9f0; border-radius: 5px; }
.papers-art { padding: 16px; }
.papers-art img { width: 100%; max-height: 100%; object-fit: contain; }
.self-art { padding: 16px; }
.self-art img { width: auto; height: 100%; max-width: 100%; border: 3px solid #20272e; border-radius: 19px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.product-bottom > p { font-size: 13px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 13px; font-size: 14px; min-height: 32px; }
.image-note { color: var(--muted); font-size: 12px; margin-top: 24px; }
.download-section { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: 28px; line-height: 1.5; }
.section-heading > p { color: var(--muted); font-size: 14px; }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.download-option + .download-option { padding-left: 40px; border-left: 1px solid var(--line); }
.download-label { display: flex; align-items: center; gap: 12px; }
.download-label h3 { font: 23px/1.5 var(--serif); }
.download-label span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 7px; }
.download-meta { font-size: 13px; color: var(--muted); margin-top: 10px; }
.download-description { font-size: 13px; color: var(--muted); margin-top: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 36px; min-height: 44px; padding: 9px 20px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font-size: 14px; transition: background-color .15s ease, border-color .15s ease; }
.button:hover { background: var(--blue); border-color: var(--blue); }
.button-secondary { background: transparent; color: var(--ink); border-color: #b9c6d5; }
.button-secondary:hover { background: #e9eff6; border-color: var(--blue); }
.download-option .button { margin-top: 22px; }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; padding: 18px 0; font-size: 14px; }
summary::-webkit-details-marker { display: none; }
summary > span { font: 20px/1 var(--sans); color: var(--muted); transition: transform .15s ease; }
details[open] summary > span { transform: rotate(45deg); }
.detail-content { padding: 0 32px 20px 0; max-width: 800px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.detail-content p + p { margin-top: 12px; }
.detail-content strong { color: var(--ink); font-weight: 400; }
.install-note { margin-top: 32px; }
.availability { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 22px 0 0; font-size: 14px; color: var(--muted); }
.availability a { display: inline-flex; gap: 14px; color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 32px; margin-top: 72px; padding-top: 26px; padding-bottom: 32px; font-size: 12px; color: var(--muted); }
.site-footer p > span { margin-left: 16px; }
.back-link { display: inline-flex; padding: 20px 0; margin-top: 12px; color: var(--muted); font-size: 13px; }
.detail-hero { padding: 32px 0 44px; max-width: 680px; }
.detail-hero .product-heading p { font: 22px/1.3 var(--serif); }
.detail-hero h1 { margin-top: 22px; font-size: 48px; line-height: 1.45; }
.detail-hero .lead { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 540px; margin: 22px 0 26px; }
.detail-figure { margin-bottom: 48px; }
.papers-figure img { width: 100%; border: 1px solid var(--line); border-radius: 5px; }
.papers-figure > a { display: block; }
figcaption { color: var(--muted); font-size: 12px; margin-top: 14px; }
figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.feature-list { margin-top: 36px; }
.feature-list article { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 25px 0; border-top: 1px solid var(--line); }
.feature-list h2 { font-size: 23px; line-height: 1.7; }
.feature-list p { color: var(--muted); font-size: 15px; max-width: 620px; line-height: 1.9; }
.help-section { border-bottom: 1px solid var(--line); }
.self-intro { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 80px; padding-bottom: 28px; }
.self-detail-figure { display: flex; flex-direction: column; align-items: center; padding: 32px 24px 20px; background: #ecf1f6; border-radius: 5px; }
.self-detail-figure > a { display: block; max-width: 100%; }
.self-detail-figure img { width: 300px; border: 5px solid #20272e; border-radius: 30px; }
.self-detail-figure figcaption { text-align: center; }
.status-section { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 800px; }
.status-section h2 { font-size: 30px; }
.status-section > p { color: var(--muted); margin: 16px 0 24px; font-size: 15px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .products { grid-template-columns: 1.15fr 1fr; gap: 24px; }
  .product-category { display: none; }
  .product-art { height: 260px; }
  .papers-art { padding: 16px; }
  .self-art img { width: auto; }
  .product-description { min-height: 54px; }
  .downloads { gap: 32px; }
  .download-option + .download-option { padding-left: 32px; }
  .self-intro { gap: 32px; }
  .site-footer p > span { display: block; margin: 4px 0 0; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 76px; }
  .wordmark { font-size: 22px; letter-spacing: -1px; }
  .site-header nav { gap: 20px; }
  .site-header nav a { font-size: 13px; gap: 6px; }
  .home-hero { padding: 48px 0 44px; }
  .home-hero h1 { font-size: 43px; line-height: 1.45; }
  .mobile-break { display: initial; }
  .home-hero > p { font-size: 14px; max-width: 260px; margin: 18px auto 0; line-height: 1.9; text-wrap: balance; }
  .products { grid-template-columns: 1fr; gap: 42px; }
  .product-heading h2 { font-size: 26px; }
  .product-category { display: block; font-size: 12px; }
  .product-description { min-height: 0; font-size: 14px; margin: 12px 0 20px; }
  .product-art { height: 238px; }
  .papers-art { padding: 16px; }
  .self-art { height: 360px; padding: 16px; }
  .self-art img { width: auto; }
  .product-bottom { padding-top: 12px; }
  .product-bottom > p, .text-link { font-size: 13px; }
  .image-note { margin-top: 20px; }
  .download-section { margin-top: 42px; padding-top: 28px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading > p { margin-top: 8px; }
  .downloads { grid-template-columns: 1fr; gap: 28px; }
  .download-option + .download-option { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .download-option .button { width: 100%; justify-content: space-between; }
  .install-note { margin-top: 28px; }
  summary { font-size: 13px; }
  .detail-content { padding-right: 0; font-size: 13px; }
  .availability { display: block; font-size: 13px; }
  .availability a { display: flex; margin-top: 8px; }
  .site-footer { display: block; margin-top: 44px; padding-top: 22px; padding-bottom: 26px; }
  .copyright { margin-top: 14px; }
  .back-link { margin-top: 0; padding: 18px 0; }
  .detail-hero { padding: 24px 0 34px; }
  .detail-hero h1 { font-size: 38px; }
  .detail-hero .lead { font-size: 15px; margin: 18px 0 22px; }
  .detail-figure { margin-bottom: 30px; }
  .feature-list { margin-top: 30px; }
  .feature-list article { display: block; padding: 22px 0; }
  .feature-list h2 { font-size: 23px; margin-bottom: 10px; }
  .feature-list p { font-size: 14px; }
  .self-intro { grid-template-columns: 1fr; gap: 0; }
  .self-detail-figure { padding: 28px 20px 20px; }
  .self-detail-figure img { width: 300px; }
  .status-section { margin-top: 32px; padding-top: 28px; }
  .status-section h2 { font-size: 25px; }
  .status-section > p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.windows-downloads { display: grid; gap: 20px; margin-top: 14px; }
.windows-downloads .button { margin-top: 8px; }
.architecture-help { margin-top: 16px; }
