*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: #222; background: #f5f6f7; font: 16px/1.8 Arial, "Microsoft YaHei", sans-serif; }
a { color: #315efb; text-decoration: none; }
a:hover { text-decoration: underline; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; background: #fff; color: #315efb; padding: 6px 10px; }
.skip:focus { top: 8px; }
.site-header, .site-footer { width: 100%; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #e5e6eb; }
.header-inner { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nav a { color: #222; text-decoration: none; font-size: 14px; line-height: 32px; }
.nav a:hover, .nav a.active { color: #315efb; text-decoration: none; }
.search-form { display: flex; flex: 0 0 auto; }
.search-form input { width: 168px; border: 1px solid #e5e6eb; border-right: 0; border-radius: 4px 0 0 4px; padding: 6px 10px; font: inherit; font-size: 14px; line-height: 1.4; color: #222; background: #fff; }
.search-form button { border: 1px solid #315efb; background: #315efb; color: #fff; border-radius: 0 4px 4px 0; padding: 6px 12px; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
.search-form button:hover { background: #214ed6; }
.page { flex: 1 0 auto; width: 100%; max-width: 960px; margin: 0 auto; padding: 32px 20px 64px; }
.brand { color: #315efb; font-size: 20px; font-weight: 600; text-decoration: none; }
.brand:hover { text-decoration: none; }
h1 { margin: 24px 0 16px; font-size: 30px; line-height: 1.35; }
.answer { padding: 28px 32px 8px; background: #fff; border: 1px solid #e5e6eb; border-radius: 4px; }
.answer p { margin: 0 0 16px; }
.answer h2 { margin: 28px 0 12px; font-size: 22px; line-height: 1.4; }
.answer ul { margin: 0 0 16px; padding-left: 1.4em; }
.answer li { margin: 0 0 8px; }
.answer strong { font-weight: 700; }
.time { margin-top: 20px; color: #86909c; font-size: 13px; }
.section-title { margin: 32px 0 12px; font-size: 18px; line-height: 1.4; }
.result-count { margin: -4px 0 16px; color: #86909c; font-size: 14px; }
.crumb { margin: -4px 0 8px; color: #86909c; font-size: 13px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 8px; color: #86909c; font-size: 13px; }
.tag { display: inline-block; color: #315efb; background: #eef2ff; border-radius: 4px; padding: 0 8px; font-size: 12px; line-height: 22px; text-decoration: none; }
a.tag:hover { text-decoration: none; background: #e2e9ff; }
.category-grid, .card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.category-grid > li, .card-grid > li { margin: 0; min-width: 0; }
.category-card, .card { display: block; height: 100%; background: #fff; border: 1px solid #e5e6eb; border-radius: 4px; padding: 18px 20px 16px; color: inherit; text-decoration: none; }
.category-card:hover, .card:hover { border-color: #315efb; text-decoration: none; }
.category-card strong, .card h3 { display: block; margin: 8px 0; color: #222; font-size: 18px; line-height: 1.45; font-weight: 700; }
.category-card span, .card p { display: block; margin: 0; color: #4e5969; font-size: 14px; line-height: 1.7; }
.category-card em, .card .meta { display: block; margin-top: 10px; color: #86909c; font-style: normal; font-size: 13px; line-height: 1.6; }
.card:hover h3 { color: #315efb; }
.card-grid.has-feature > li:first-child { grid-column: 1 / -1; }
.card-grid.has-feature > li:first-child h3 { font-size: 22px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; }
.pager a, .pager span { display: inline-block; min-width: 36px; padding: 4px 10px; border: 1px solid #e5e6eb; border-radius: 4px; background: #fff; color: #222; text-align: center; text-decoration: none; font-size: 14px; line-height: 1.6; }
.pager a:hover { border-color: #315efb; color: #315efb; text-decoration: none; }
.pager .current { border-color: #315efb; background: #315efb; color: #fff; }
.neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.neighbors a, .neighbors .placeholder { display: block; min-height: 88px; background: #fff; border: 1px solid #e5e6eb; border-radius: 4px; padding: 14px 16px; color: inherit; text-decoration: none; }
.neighbors a:hover { border-color: #315efb; text-decoration: none; }
.neighbors .placeholder { background: transparent; border-color: transparent; }
.neighbors span { display: block; color: #86909c; font-size: 13px; line-height: 1.4; }
.neighbors strong { display: block; margin-top: 4px; color: #222; font-size: 15px; line-height: 1.5; font-weight: 700; }
.neighbors .next { text-align: right; }
.site-footer { border-top: 1px solid #e5e6eb; background: #fff; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 28px 20px 36px; }
.footer-inner p { margin: 8px 0; color: #4e5969; font-size: 14px; }
.footer-links a { margin-right: 14px; }
.footer-note { color: #86909c; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #315efb; outline-offset: 2px; }
@media (max-width: 720px) {
    .header-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .search-form { width: 100%; }
    .search-form input { flex: 1; width: auto; min-width: 0; }
    .page { padding: 24px 16px 48px; }
    h1 { font-size: 24px; }
    .answer { padding: 20px 16px 4px; }
    .category-grid, .card-grid, .neighbors { grid-template-columns: 1fr; }
    .neighbors .next { text-align: left; }
    .neighbors .placeholder { display: none; }
}
@media print {
    .site-header, .site-footer, .skip, .neighbors, .pager { display: none; }
    body { background: #fff; }
    .answer { border: 0; }
}
