:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --canvas: #f5f7fa;
  --white: #fff;
  --ink: #172735;
  --muted: #536575;
  --line: #d9e2ea;
  --blue: #174cc4;
  --blue-paper: #eaf1ff;
  --mono: "Cascadia Mono", Consolas, monospace;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 14px; }
h1, h2, p { margin: 0; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h1:focus { outline: none; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 72px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand-mark { width: 35px; height: 35px; border-radius: 7px; display: grid; place-items: center; color: white; background: var(--blue); }
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 2; }
.brand-name { font-size: 18px; font-weight: 750; white-space: nowrap; }
.brand-name small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 9px; }
.nav { align-self: stretch; display: flex; gap: 6px; align-items: stretch; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 0 17px; position: relative; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.nav a[aria-current]::after { content: ""; height: 3px; background: var(--blue); position: absolute; bottom: -1px; inset-inline: 12px; }
.nav .icon { width: 16px; height: 16px; }
.mode { display: flex; gap: 7px; align-items: center; justify-self: end; white-space: nowrap; color: var(--muted); font-size: 12px; }
.mode-dot { border-radius: 50%; width: 7px; height: 7px; background: #15835b; box-shadow: 0 0 0 3px #e5f4eb; }
main { flex: 1; }
.titlebar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-block: 46px 27px; }
.context { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.context b { color: var(--blue); }
.context a:hover { color: var(--blue); }
h1 { font-size: 38px; line-height: 1.18; font-weight: 740; }
.titlebar p { margin-top: 11px; color: var(--muted); line-height: 1.6; }
.version { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--white); white-space: nowrap; font: 12px var(--mono); }
.version .icon { color: var(--blue); width: 15px; height: 15px; }
.version b { color: var(--ink); border-left: 1px solid var(--line); padding-left: 7px; }
.product-benefits {
  margin-bottom: 20px;
  padding: 14px 20px 17px;
  background: #eef3fa;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: 7px;
}
.product-benefits h2 { margin-bottom: 9px; font-size: 13px; color: var(--blue); }
.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.benefit-list li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.benefit-list li:not(:last-child) { padding-inline-end: 16px; }
.benefit-list p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); grid-template-areas: "guide download"; gap: 20px; align-items: start; margin-bottom: 35px; }
.artifact-panel, .download-panel, .faq-list { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.artifact-panel { grid-area: guide; }
.download-panel { grid-area: download; }
.panel-heading { min-height: 57px; padding: 0 20px; display: flex; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--line); }
h2 { font-size: 16px; font-weight: 730; line-height: 1.4; }
.usage-steps { margin: 0; padding: 4px 20px 4px 44px; }
.usage-steps li { padding: 12px 0 12px 3px; line-height: 1.6; }
.usage-steps li + li { border-top: 1px solid var(--line); }
.usage-steps li::marker { color: var(--blue); font-weight: 700; }
.usage-steps p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.usage-figure { width: min(100%, 490px); margin: 11px 0 0; }
.usage-figure a { display: block; border-radius: 7px; }
.usage-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: inherit; }
.usage-figure a:hover img { border-color: var(--blue); }
.usage-figure figcaption { margin-top: 4px; color: var(--muted); font-size: 12px; }
.artifact-details { border-top: 1px solid var(--line); }
.artifact-details summary { padding: 11px 20px; color: var(--blue); font-size: 12px; cursor: pointer; }
.file-meta { display: flex; align-items: center; gap: 10px; margin: 14px 18px 0; }
.file-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 5px; color: var(--blue); background: var(--blue-paper); }
.file-info { min-width: 0; flex: 1; display: grid; gap: 3px; }
.file-info > code { font: 600 12px var(--mono); overflow-wrap: anywhere; }
.file-info > span { color: var(--muted); font-size: 11px; }
.icon-button { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--muted); }
.icon-button:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); }
.icon-button:disabled { opacity: .55; }
.icon-button .icon { width: 15px; height: 15px; }
.checksum { display: flex; gap: 8px; align-items: baseline; margin: 13px 18px 16px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.checksum span { flex: 0 0 auto; font-weight: 700; }
.checksum code { overflow-wrap: anywhere; font: 11px/1.45 var(--mono); }
.download-body { padding: 17px 20px 20px; }
.download-file { display: flex; align-items: center; gap: 8px; }
.download-file .icon { color: var(--blue); }
.download-file code { overflow-wrap: anywhere; font: 600 13px var(--mono); }
.download-body p { margin: 7px 0 14px; color: var(--muted); font-size: 13px; }
.download-button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 5px; color: var(--white); background: var(--blue); font-weight: 680; font-size: 13px; text-align: center; }
.download-button:hover { background: #103c9f; }
.redeem-form { display: grid; gap: 7px; }
.redeem-form label { font-size: 12px; font-weight: 650; color: var(--muted); }
.redeem-row { display: flex; gap: 8px; }
.redeem-row input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font: 600 14px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.redeem-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.redeem-row .download-button { flex: 0 0 auto; padding-inline: 20px; }
.redeem-error { margin: 0 !important; color: #b42318 !important; font-size: 12px !important; }
#command-result { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
#command { overflow-wrap: anywhere; }
.command-expiry { margin-top: 0 !important; font-size: 12px !important; }
.panel-links { margin-top: 15px !important; font-size: 12px !important; }
.panel-links a:hover, .shop-cta a:hover { color: var(--blue); }
.shop-cta { margin: 0 !important; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 62px; display: flex; align-items: center; gap: 16px; font-size: 11px; }
.footer-inner > span:first-child { font-weight: 750; color: var(--ink); }
.footer-inner a { margin-left: auto; }
.footer-inner a:hover { color: var(--blue); }
.faq-list { margin-bottom: 34px; }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 10px; padding: 16px 20px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list p { color: var(--muted); padding: 0 20px 16px; line-height: 1.7; }
.toast { position: fixed; z-index: 2; bottom: 18px; right: 18px; padding: 10px 14px; border-radius: 5px; background: var(--ink); color: white; box-shadow: 0 5px 24px #17273538; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; grid-row: 2; margin-top: 3px; }
  .nav a { padding: 12px 11px; }
  .nav a[aria-current]::after { inset-inline: 6px; }
  .mode { grid-column: 2; grid-row: 1; }
  .brand, .mode { margin-top: 10px; }
  .titlebar { padding-block: 28px 20px; align-items: start; flex-direction: column; }
  h1 { font-size: 29px; }
  .product-benefits { margin-bottom: 13px; padding: 10px 14px; }
  .product-benefits h2 { margin-bottom: 7px; }
  .benefit-list { grid-template-columns: minmax(0, 1fr); }
  .benefit-list li:not(:last-child) { padding-inline-end: 0; }
  .benefit-list p { margin-top: 2px; }
  .benefit-list li + li {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding: 6px 0 0;
  }
  .workbench { grid-template-columns: minmax(0, 1fr); grid-template-areas: "download" "guide"; gap: 13px; }
}

@media (max-width: 390px) {
  .nav a { padding-inline: 7px; gap: 4px; font-size: 13px; }
  .file-meta, .checksum { margin-inline: 12px; }
  .footer-inner { gap: 8px; }
  .redeem-row { flex-direction: column; }
}
