@font-face { font-family: Figtree; src: url('/assets/figtree-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url('/assets/figtree-semibold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
:root {
  color-scheme: light;
  --ground: #fff;
  --surface: #f4f6f5;
  --text: #1f201d;
  --muted: #636361;
  --border: #d9dfdc;
  --accent: #1b6e66;
  --gap: 16px;
  font-family: Figtree, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  background: var(--ground);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
img { display: block; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.frame { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.site-label, .footer { color: var(--muted); font-size: 12px; }
.page-title { padding-block: 64px 36px; }
h1 { font-size: 28px; font-weight: 400; letter-spacing: -.02em; line-height: 1.35; }
.page-title p { margin-top: 12px; color: var(--muted); font-size: 14px; }
/* 桌面列宽合计为 1100 - 2×32 内边距 - 11×16 间隔 = 860px；按 7/5 列分栏。 */
.tool { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); background: var(--surface); border-radius: 22px; padding: 32px; }
.tool-intro { grid-column: span 7; align-self: center; }
.category { font-size: 12px; color: var(--accent); }
h2 { margin-top: 10px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.description { margin-top: 14px; font-size: 14px; }
.tool-domain { margin-top: 24px; color: var(--muted); font-size: 12px; }
.tool-actions { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; }
.tool-link { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: 24px 0; min-height: 88px; border-radius: 4px; }
.tool-link + .tool-link { border-top: 1px solid var(--border); }
.tool-link strong { font-size: 16px; font-weight: 600; }
.link-detail { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.arrow { color: var(--accent); font-size: 22px; transition: transform 150ms ease; }
.tool-link:hover .arrow { transform: translate(2px, -2px); }
.tool-link:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.footer { display: flex; justify-content: space-between; gap: var(--gap); padding-block: 28px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px 16px; background: var(--text); color: var(--ground); transform: translateY(-160%); z-index: 1; }
.skip-link:focus { transform: none; }
.not-found { padding-block: 64px; }
.not-found p { margin-block: 16px; color: var(--muted); }
.back { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) {
  .frame { width: calc(100% - 40px); }
  .page-title { padding-block: 40px 28px; }
  .tool { padding: 24px; }
  .tool-intro, .tool-actions { grid-column: 1 / -1; }
  .tool-actions { margin-top: 8px; }
  .tool-domain { margin-top: 14px; }
}
@media (max-width: 480px) {
  .topbar { min-height: 72px; }
  .site-label { display: none; }
  h1 { font-size: 24px; }
  .tool { padding: 24px 20px; }
  .link-detail { font-size: 13px; }
  .tool-link { padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) { .arrow { transition: none; } }
