:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #292d29;
  --secondary: #596159;
  --muted: #687068;
  --line: #dedfd7;
  --accent: #35634e;
  --wash: #eaf0e9;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
::selection { color: var(--ink); background: #d8e6d8; }
.page { max-width: 1200px; margin: auto; padding: 0 40px; }
a { color: inherit; text-decoration: none; }
header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--ink);
}
.name {
  font-family: "Songti SC", SimSun, serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.3;
}
header span { font-size: 13px; color: var(--muted); }
main { padding-top: 40px; }
h1 { margin: 0 0 12px; font-size: 28px; font-weight: 600; line-height: 1.4; }
.site-intro { max-width: 48em; margin: 0 0 32px; color: var(--secondary); line-height: 1.85; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; gap: 24px; }
button, input { font: inherit; }
button { cursor: pointer; }
.filters button {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--secondary);
  font-size: 14px;
}
.filters button.selected { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.filters button:hover { color: var(--accent); }
input[type="search"] {
  width: 208px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  caret-color: var(--accent);
  font-size: 14px;
}
input::placeholder { color: var(--muted); opacity: 1; }
input[type="search"]:hover { border-color: var(--muted); }
.list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.card { min-width: 0; border-bottom: 1px solid var(--line); }
.card > a {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  padding-bottom: 24px;
}
.thumbnail {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top;
  background: var(--wash);
}
.thumbnail-app { object-fit: contain; background: #142234; }
.card h2 { margin: 16px 0 0; font-size: 19px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.card p { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--secondary); }
.address { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.address span { margin-left: 4px; }
.card a:hover h2 { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.card a:hover .address { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.empty { padding: 40px 0 48px; text-align: center; color: var(--secondary); }
.empty p { margin: 0 0 16px; }
.empty button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--accent); border-radius: 6px; background: transparent; color: var(--accent); }
.empty button:hover { background: var(--wash); }
.site-faq { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ink); }
.site-faq h2 { margin: 0 0 16px; font-size: 21px; font-weight: 600; line-height: 1.5; }
.site-faq details { border-bottom: 1px solid var(--line); }
.site-faq summary { padding: 16px 0; cursor: pointer; font-weight: 500; }
.site-faq summary:hover, .site-faq details[open] summary { color: var(--accent); }
.site-faq p { max-width: 48em; margin: 0 0 24px; color: var(--secondary); line-height: 1.9; }
.site-faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
footer { padding: 24px 0 40px; font-size: 12px; color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .page { padding-inline: 32px; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 600px) {
  .page { padding-inline: 20px; }
  header { padding: 24px 0 20px; }
  main { padding-top: 28px; }
  h1 { font-size: 24px; }
  .site-intro { font-size: 14px; margin-bottom: 24px; }
  .toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
  .filters { width: 100%; gap: 28px; }
  input[type="search"] { width: 100%; font-size: 16px; }
  .list { gap: 28px 20px; }
  .card h2 { font-size: 17px; margin-top: 12px; }
  .card p { font-size: 14px; }
  .address { margin-top: 12px; }
  .site-faq { margin-top: 40px; }
}
@media (max-width: 480px) {
  .list { grid-template-columns: minmax(0, 1fr); }
  .card h2 { font-size: 19px; }
}
