:root {
  color-scheme: light;
  --ink: #151b36;
  --paper: #edf1fa;
  --white: #fff;
  --muted: #4b5772;
  --line: #d3daeb;
  --accent: #b5f5ed;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.masthead { background: var(--ink); color: var(--white); border-bottom: .38rem solid var(--accent); }
.masthead-inner { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; padding-block: clamp(2rem, 7vw, 5.5rem) 2rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 7vw, 4.5rem); line-height: 1.12; font-weight: 800; text-wrap: balance; }
.masthead p { margin-top: .85rem; color: #d5def8; }
.counts { display: flex; border-block: 1px solid #5d6a8e; flex: none; }
.counts span { color: #d5def8; padding: .7rem 1rem; }
.counts span + span { border-left: 1px solid #5d6a8e; }
.counts strong { display: block; color: var(--accent); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.toolbar { padding-block: 1.8rem 1rem; display: flex; justify-content: space-between; align-items: start; gap: .75rem; }
.toolbar h2 { font-size: 1.25rem; }
.toolbar p, footer { font-size: .875rem; color: var(--muted); line-height: 1.65; }
.toolbar p { margin-top: .3rem; }
button { border: 1px solid #8490b0; border-radius: .4rem; color: var(--ink); background: var(--white); font: inherit; min-height: 2.75rem; padding: .45rem .85rem; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
button:hover { background: #dce6fd; }
button[aria-disabled="true"] { cursor: wait; }
.site { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr); border: 1px solid var(--line); border-radius: .6rem; background: var(--white); overflow: hidden; }
.site + .site { margin-top: .65rem; }
.site h3 { padding: .85rem 1rem; font-size: .875rem; background: #e2e8f7; overflow-wrap: anywhere; }
.site ul { list-style: none; padding: 0; margin: 0; min-width: 0; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .55rem 1rem; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry a { display: grid; gap: .2rem; padding: .15rem 0; color: #243e83; overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.entry a:hover { color: #101633; }
.url { font-size: .8rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; border-radius: 1rem; padding: .3rem .55rem; color: #354365; background: #e9eef7; white-space: nowrap; }
.badge::before { content: ""; width: .48rem; height: .48rem; border-radius: 50%; background: currentColor; }
.badge.up { color: #145e49; background: #e2f6ee; }
.badge.auth, .badge.redirect { color: #704804; background: #fff1cf; }
.badge.down { color: #8b283d; background: #fbe9ee; }
footer { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-block: .9rem 1.5rem; }
:focus-visible { outline: 3px solid #3c5fd3; outline-offset: 3px; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-150%); z-index: 1; background: var(--white); padding: .5rem; }
.skip:focus { transform: none; }
.home-link { color: var(--accent); display: inline-block; margin-bottom: .85rem; text-underline-offset: .2em; }
.home-link:hover { color: var(--white); }
.launchpad { padding-block: 1.75rem; }
.tool-link { display: block; max-width: 31rem; border: 1px solid var(--line); border-left: .4rem solid #4867b9; border-radius: .6rem; background: var(--white); padding: clamp(1.2rem, 4vw, 2rem); text-decoration: none; color: var(--ink); }
.tool-link:hover { background: #e2e8f7; }
.tool-link h2 { margin-block: .4rem; font-size: clamp(1.35rem, 4vw, 1.8rem); text-decoration: underline; text-underline-offset: .2em; }
.tool-path, .tool-link p { color: var(--muted); line-height: 1.55; }
@media (max-width: 42rem) {
  .masthead-inner { display: grid; justify-content: stretch; }
  .counts { justify-self: start; }
  .site { grid-template-columns: 1fr; }
}
