:root {
  color: #18201d;
  background: #f4f5f1;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #18201d;
  --muted: #69716c;
  --line: #d7dbd5;
  --paper: #ffffff;
  --green: #176b50;
  --green-soft: #dcebe4;
  --yellow: #f2c94c;
  --coral: #df6b57;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(244, 245, 241, .94);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 800; }
.brand-mark { width: 26px; height: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; padding: 5px; background: var(--ink); }
.brand-mark span { display: block; background: white; }
.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 100%; background: var(--yellow); }
.brand-mark span:nth-child(3) { height: 68%; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a4aaa6; }
.status.online .status-dot { background: #2b9a6e; box-shadow: 0 0 0 4px rgba(43, 154, 110, .12); }
.status.error .status-dot { background: var(--coral); }

main { max-width: 1180px; margin: 0 auto; padding: 72px 24px 80px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 48px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0; }
h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: 0; }
.subtitle { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.summary { min-width: 122px; padding-left: 22px; border-left: 3px solid var(--yellow); }
.summary strong { display: block; font-size: 34px; line-height: 1; }
.summary span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.search { width: min(440px, 100%); height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--paper); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 107, 80, .1); }
.search svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search kbd { border: 1px solid var(--line); padding: 2px 6px; color: var(--muted); background: #f7f8f5; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filter { height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.filter:hover { background: white; color: var(--ink); }
.filter.active { background: var(--ink); color: white; }

.group { padding-top: 42px; }
.group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.group-head h2 { margin: 0; font-size: 13px; text-transform: uppercase; }
.group-head span { color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.page-card { min-height: 190px; position: relative; display: flex; flex-direction: column; padding: 22px; color: var(--ink); text-decoration: none; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .16s ease, transform .16s ease; }
.page-card:hover { z-index: 1; background: #fbfcf9; box-shadow: inset 0 0 0 2px var(--green); }
.card-top { display: flex; justify-content: space-between; align-items: start; }
.icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.icon.proxy { background: #fde9e4; color: #a84535; }
.icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.open-icon { width: 18px; color: #8c948f; }
.page-card h3 { margin: 22px 0 7px; font-size: 17px; overflow-wrap: anywhere; }
.page-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; color: #7e8681; font-size: 11px; }
.type-tag { padding: 3px 6px; background: #f0f2ef; color: #59625d; font-weight: 700; }
.copy { position: absolute; right: 18px; bottom: 16px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: #737b76; cursor: pointer; }
.copy:hover { background: #eef1ed; color: var(--ink); }
.copy svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.empty, .error-panel { margin-top: 42px; padding: 64px 24px; border: 1px dashed #bfc5c0; text-align: center; color: var(--muted); }
.empty strong, .error-panel strong { display: block; margin-bottom: 8px; color: var(--ink); }
.loading { height: 240px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.loading span { width: 7px; height: 7px; background: var(--green); animation: pulse 1s infinite alternate; }
.loading span:nth-child(2) { animation-delay: .2s; }
.loading span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { to { opacity: .2; transform: translateY(-5px); } }

footer { max-width: 1180px; margin: 0 auto; padding: 22px 24px 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.toast { position: fixed; right: 22px; bottom: 22px; padding: 11px 14px; background: var(--ink); color: white; font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  main { padding-top: 48px; }
  .intro { align-items: start; flex-direction: column; }
  .summary { padding-left: 14px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .topbar { padding: 0 18px; }
  main { padding: 38px 18px 64px; }
  h1 { font-size: 38px; }
  .intro { padding-bottom: 34px; }
  .grid { grid-template-columns: 1fr; }
  .page-card { min-height: 176px; }
  footer { margin: 0 18px; padding-left: 0; padding-right: 0; }
}

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