:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172e4d;
  background: #f3f7fd;
  font-synthesis: none;
  --muted: #62758e;
  --line: #dce7f5;
  --link: #245fd5;
  --pale: #edf5ff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 30px;
}
.home-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 36px;
  max-width: 1320px;
}
.home-content {
  min-width: 0;
}
.home-sidebar {
  position: sticky;
  top: 28px;
  margin-top: 52px;
}
.sidebar-caption {
  margin: 0 12px 12px;
  color: #91a1b3;
  font-size: 11px;
  letter-spacing: 0.8px;
}
#home-navigation {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
#home-navigation a {
  padding: 10px 12px;
  gap: 11px;
  white-space: nowrap;
}
#home-navigation a[aria-current="location"] {
  color: var(--link);
  background: #e4efff;
  font-weight: 600;
  box-shadow: inset 3px 0 #4581e7;
}
.home-content > section[id] {
  scroll-margin-top: 12px;
}
.home-content > section[id]:focus-visible {
  outline: 2px solid #7caceb;
  outline-offset: 4px;
}
.home-page .site-header {
  padding-inline: max(30px, calc((100vw - 1260px) / 2));
}
.home-page .site-footer {
  max-width: 1320px;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 15px;
  background: #fff;
  padding: 10px;
  z-index: 2;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  max-width: none;
  padding-inline: max(28px, calc((100vw - 1020px) / 2));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #16365b;
  font-size: 19px;
  font-weight: 650;
  text-decoration: none;
}
.brand img {
  flex-shrink: 0;
}
.version {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--pale);
}
nav {
  display: flex;
  gap: 8px;
  font-size: 13px;
  align-items: center;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 7px;
}
nav a:hover {
  color: var(--link);
  background: var(--pale);
  text-decoration: none;
}
.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
nav a[aria-current="page"] {
  color: var(--link);
  background: var(--pale);
  font-weight: 600;
}
.eyebrow {
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.intro {
  padding-block: 55px 37px;
}
.intro-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.intro-icon {
  display: block;
  flex: none;
}
@media (max-width: 600px) {
  .intro-heading {
    gap: 14px;
  }
  .intro-icon {
    width: 60px;
    height: 60px;
  }
}
h1 {
  margin: 0 0 17px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.4;
  letter-spacing: -0.7px;
  font-weight: 650;
}
p {
  margin: 12px 0;
}
.lead {
  font-size: 17px;
  max-width: 720px;
}
.intro > p:not(.lead) {
  color: var(--muted);
  font-size: 14px;
}
.intro > p.eyebrow {
  color: var(--link);
  font-size: 12px;
}
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  align-items: center;
  margin: 25px 0 15px;
  font-size: 14px;
}
.download {
  display: inline-block;
  padding: 8px 17px;
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.download:hover {
  background: #1d4ed8;
}
.intro > p.release-note {
  font-size: 12px;
  margin-top: 13px;
}
.download-address {
  overflow-wrap: anywhere;
}
.section.install {
  margin-top: 24px;
}
.visually-hidden,
.install-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.install-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 0;
  margin: 18px 0 0;
  border: 0;
}
.install-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.6;
}
.install-option strong,
.install-option-copy,
.install-option-detail {
  display: block;
}
.install-option-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}
.install-option-copy {
  min-width: 0;
}
.install-option-detail {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.install-option:hover {
  border-color: var(--link);
}
.install-choice:checked + .install-option {
  background: var(--pale);
  border-color: var(--link);
  box-shadow: inset 0 0 0 1px var(--link);
}
.install-choice:focus-visible + .install-option {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
.install-panels {
  grid-column: 1 / -1;
}
.install-panel {
  display: none;
  padding: 18px 0 4px;
}
#install-chrome:checked ~ .install-panels #install-chrome-panel,
#install-userscript:checked ~ .install-panels #install-userscript-panel {
  display: block;
}
.install-panel h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.install-panel .download-row {
  margin: 17px 0;
}
.offline-install {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.screenshots {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
h2 {
  font-size: 21px;
  font-weight: 650;
  margin: 0 0 14px;
  line-height: 1.5;
}
.screenshots > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 19px;
}
figure {
  margin: 0;
}
figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}
figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}
.extra-screenshot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  width: fit-content;
}
.extra-screenshot figure {
  margin-top: 15px;
}
.section {
  border: 1px solid var(--line);
  padding: 28px;
  margin-top: 24px;
  border-radius: 16px;
  background: #fff;
}
.cache-statistics {
  padding: 24px 28px;
  border: 1px solid #d3e4ff;
  border-radius: 16px;
  background: #eaf3ff;
}
.stat-values {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin: 0;
}
.stat-values dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.stat-values dd {
  margin: 4px 0 0;
  font-size: clamp(20px, 3vw, 29px);
  font-weight: 600;
  color: #204b87;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.cache-statistics .note {
  margin: 12px 0 0;
}
.steps {
  padding-left: 23px;
  margin: 0;
}
.steps li {
  padding-left: 5px;
  margin-block: 12px;
}
code {
  color: #30363d;
  background: #eff4fb;
  padding: 2px 5px;
  border-radius: 3px;
  font:
    0.9em/1.6 ui-monospace,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.note {
  color: var(--muted);
  font-size: 13px;
}
.features {
  margin: 0;
}
.features > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding-block: 10px;
}
dt {
  font-weight: 600;
  font-size: 14px;
}
dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.notes h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 23px 0 3px;
}
.notes p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.notes > p:last-child {
  margin-top: 26px;
}
.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 45px;
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 12px;
  color: var(--muted);
}
.site-footer nav {
  gap: 18px;
  font-size: 12px;
}
.site-footer .brand {
  font-size: 16px;
}
.privacy-page {
  padding-top: 35px;
  padding-bottom: 28px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.privacy-page h1 {
  font-size: 31px;
}
.privacy-page .updated {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 25px;
}
.privacy-page h2 {
  margin-top: 30px;
  font-size: 21px;
}
.privacy-page ul {
  padding-left: 24px;
}
.privacy-page li {
  margin-block: 12px;
}
.privacy-page p,
.privacy-page li {
  color: var(--muted);
  font-size: 14px;
}
.privacy-page strong {
  color: #172e4d;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #c8daf4;
  border-radius: 8px;
  background: #fff;
  color: var(--link);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--pale);
  border-color: #97b9ed;
}
.button:disabled {
  cursor: default;
  color: #899ab0;
  background: #f4f7fb;
  border-color: var(--line);
}
[hidden] {
  display: none !important;
}
.demo-result {
  padding: 22px;
  margin: 22px 0;
  border-radius: 12px;
  background: #f2f7ff;
  border: 1px solid #dce8fb;
}
.demo-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.demo-result h3 {
  margin: 14px 0 18px;
  font-size: 18px;
  line-height: 1.6;
}
.demo-result h3 a {
  color: #163b70;
  text-decoration: none;
}
.demo-values {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 18px;
  margin: 0;
}
.demo-values dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.demo-values dd {
  color: #214b86;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.demo-reason {
  color: #49627f;
  font-size: 14px;
  margin: 18px 0;
}
.demo-reason strong {
  margin-right: 12px;
}
.demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-result > .note {
  margin-bottom: 0;
  font-size: 12px;
}
.demo-result h3 a:hover {
  color: var(--link);
  text-decoration: underline;
}
.result-badge {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #d7e5f9;
  border-radius: 6px;
  background: #edf5ff;
  color: #35669e;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .wrap {
    padding-inline: 20px;
  }
  .site-header {
    min-height: 72px;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px 10px;
  }
  .brand {
    font-size: 18px;
    gap: 6px;
  }
  .brand .version {
    display: none;
  }
  nav {
    gap: 3px;
    font-size: 12px;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }
  .site-header nav a {
    gap: 4px;
    padding: 7px 5px;
  }
  .nav-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .intro {
    padding-top: 33px;
    padding-bottom: 27px;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.5px;
  }
  .lead {
    font-size: 15px;
  }
  .download-row {
    gap: 17px;
    font-size: 13px;
  }
  .intro > p.release-note {
    font-size: 11px;
  }
  .features > div {
    display: block;
    margin-bottom: 8px;
  }
  dt {
    margin-bottom: 3px;
  }
  .steps {
    font-size: 14px;
  }
  .install-option {
    padding: 11px 10px;
    gap: 8px;
  }
  .install-option strong {
    font-size: 14px;
    word-break: keep-all;
  }
  .install-option-icon {
    width: 24px;
    height: 24px;
  }
  .section {
    padding: 21px;
    margin-top: 20px;
  }
  .screenshots,
  .cache-statistics {
    padding: 21px;
  }
  .stat-values {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .demo-result {
    padding: 16px;
  }
  .demo-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .demo-values {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .demo-values > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }
  .demo-result h3 {
    font-size: 16px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 2px 20px;
  }
  .site-footer p {
    margin: 5px 0;
  }
  .privacy-page {
    padding-top: 33px;
  }
}
@media (max-width: 360px) {
  .site-header nav {
    gap: 0;
    font-size: 11px;
  }
  .site-header .brand img {
    width: 25px;
    height: 25px;
  }
  .site-header .brand {
    font-size: 17px;
  }
  h1 {
    font-size: 25px;
  }
}
@media (max-width: 960px) {
  .home-layout {
    display: block;
  }
  .home-sidebar {
    top: 0;
    margin-top: 0;
    padding: 10px 0;
    z-index: 3;
    background: #f3f7fd;
    box-shadow: 0 1px 0 var(--line);
  }
  .sidebar-caption {
    display: none;
  }
  #home-navigation {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 3px;
  }
  #home-navigation a {
    padding: 8px 10px;
    gap: 7px;
    flex: none;
  }
  .home-content > section[id],
  .home-content h2[id] {
    scroll-margin-top: 72px;
  }
}
@media (max-width: 600px) {
  .home-page .site-header {
    padding-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
