:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: #182540;
  background: #f6f8fd;
  --muted: #52627d;
  --blue: #254ad8;
  --border: #e1e7f1;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #5877ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-row { height: 72px; display: flex; align-items: center; gap: 52px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; line-height: 1.1; letter-spacing: .02em; font-weight: 800; white-space: nowrap; }
.brand small { display: block; margin-top: 5px; font-size: 8px; color: var(--muted); letter-spacing: .17em; font-weight: 750; }
.brand-mark { width: 37px; height: 37px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 8px; border-radius: 11px; background: var(--blue); }
.brand-mark i { background: #fff; border-radius: 2px; }
.brand-mark i:nth-child(2) { background: #9fbbff; }
nav { display: flex; align-items: center; gap: 29px; font-size: 14px; color: var(--muted); white-space: nowrap; }
nav a[aria-current], nav a:hover { color: var(--blue); }
nav a[aria-current] { font-weight: 700; }
.preview { margin-left: auto; padding: 7px 11px; background: #eef2fe; color: #364d97; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.preview i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5472eb; vertical-align: 2px; }
.hero { isolation: isolate; overflow: hidden; position: relative; margin-top: 29px; border-radius: 25px; color: white; background: #141f83; }
.hero::before { position: absolute; inset: 0 0 0 40%; content: ""; z-index: -2; background: url("assets/hero.webp") center 49% / cover no-repeat; }
.hero::after { position: absolute; inset: 0; content: ""; z-index: -1; background: linear-gradient(90deg, #141f83 35%, #141f83ee 42%, #141f8300 64%); }
.hero-content { padding: 68px 54px 65px; }
.hero h1 { font-size: clamp(36px, 4.3vw, 64px); font-weight: 850; letter-spacing: -.055em; line-height: 1.2; }
.hero h1 span { color: #bdceff; }
.hero p { color: #e0e7ff; font-size: 16px; margin-top: 15px; line-height: 1.6; }
.hero form { max-width: 465px; display: flex; gap: 11px; width: 100%; align-items: center; margin-top: 28px; padding: 5px 5px 5px 17px; border-radius: 12px; background: #fff; color: #192740; }
.search-icon { width: 15px; height: 15px; border: 2px solid #61718f; border-radius: 50%; flex: none; position: relative; margin-right: 3px; }
.search-icon::after { content: ""; height: 2px; width: 6px; background: #61718f; position: absolute; right: -5px; bottom: -2px; transform: rotate(45deg); }
.hero input { border: 0; width: 100%; min-width: 0; padding: 7px 0; border-radius: 3px; background: white; color: #182540; font-size: 15px; }
.hero input::placeholder { color: #61718f; }
.hero button { flex: none; border: 0; color: white; background: var(--blue); border-radius: 8px; padding: 11px 22px; font-size: 14px; font-weight: 700; }
.hero button:hover, .resource-links a:hover { background: #1637b8; }
.catalog { margin-top: 37px; padding-bottom: 56px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.section-heading h2 { font-size: 24px; letter-spacing: -.035em; }
.categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category { display: flex; align-items: center; justify-content: flex-start; gap: 11px; padding: 10px 12px; text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 12px; font-size: 15px; font-weight: 650; color: #283754; }
.category:hover, .category[aria-pressed="true"] { border-color: #94aafa; color: #2346c3; background: #edf2ff; }
.category-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; font-size: 22px; line-height: 1; }
.blue { color: #3154d0; background: #dce6ff; }
.violet { color: #773cd1; background: #f0e6ff; }
.sky { color: #09668d; background: #e3f5fc; }
.peach { color: #ad541f; background: #fff0e1; }
.green { color: #217455; background: #dff6e9; }
.rose { color: #ac3d68; background: #fce8f0; }
.results-heading { margin-top: 34px; }
.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; color: var(--muted); font-size: 13px; }
.text-button { border: 0; padding: 4px 0; color: var(--blue); background: none; }
.text-button:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 15px; transition: border-color 150ms, box-shadow 150ms; }
.card:hover { border-color: #a7b6ed; box-shadow: 0 9px 24px #232e6616; }
.card-link { display: block; border-radius: inherit; }
.cover-wrap { position: relative; border-radius: 14px 14px 0 0; overflow: hidden; }
.cover { display: block; aspect-ratio: 1.72; width: 100%; height: auto; object-fit: cover; }
.tag { position: absolute; top: 12px; left: 12px; border-radius: 6px; padding: 4px 9px; background: #fff; color: #2b3e60; font-size: 12px; font-weight: 700; }
.card-content { padding: 16px; }
.card h3 { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.65; min-height: 2lh; margin: 7px 0 13px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.card-meta span { display: grid; place-items: center; border-radius: 50%; width: 25px; height: 25px; background: #eef3ff; font-size: 15px; color: var(--blue); }
.empty { border: 1px dashed #cad5ea; border-radius: 15px; padding: 42px 25px; text-align: center; background: white; }
.empty p { color: var(--muted); margin-top: 9px; }
.site-footer { border-top: 1px solid var(--border); background: white; margin-top: auto; }
.footer-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.footer-row strong { color: #182540; }
.detail-page { padding-block: 30px 60px; }
.back-link { display: inline-block; color: var(--blue); margin-bottom: 20px; padding: 5px 0; }
.back-link:hover { text-decoration: underline; }
.detail-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; padding: 32px; background: #fff; border: 1px solid var(--border); border-radius: 22px; }
.detail-cover { width: 100%; height: auto; border-radius: 14px; }
.detail-category { color: var(--blue); background: #eef2ff; border-radius: 6px; padding: 5px 9px; font-size: 13px; }
.detail-content h1 { font-size: clamp(25px, 3.4vw, 42px); margin: 14px 0 8px; overflow-wrap: anywhere; }
.detail-content time { color: var(--muted); font-size: 13px; }
.description { line-height: 1.8; color: #394863; margin-block: 20px; }
.detail-content h2 { font-size: 18px; margin-bottom: 10px; }
.resource-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.resource-links > * { border-radius: 8px; padding: 9px 12px; color: var(--muted); background: #edf1f8; }
.resource-links a { color: white; background: var(--blue); }
.website-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.website-tags a { padding: 4px 8px; border-radius: 6px; background: #edf2ff; color: #254ad8; font-size: 12px; overflow-wrap: anywhere; }
.website-tags a:hover { text-decoration: underline; }
.card > .website-tags { padding: 0 16px 16px; }
.detail-content > .website-tags { margin-bottom: 20px; }
.website-specs { margin-bottom: 20px; }
.website-specs ul { padding-left: 20px; line-height: 1.65; color: var(--muted); }
.home-pagination { justify-content: center; }
.detail-card.without-cover { display: block; }
.without-cover .detail-content { max-width: 720px; }
.archive-page { padding-block: 35px 55px; }
.archive-heading h1 { font-size: clamp(28px, 4vw, 44px); }
.archive-heading p { margin-top: 7px; color: var(--muted); }
.archive-filters { display: grid; grid-template-columns: minmax(220px, 1.8fr) repeat(4, minmax(115px, 1fr)); gap: 12px; margin: 24px 0; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.archive-filters label { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.archive-search span { display: flex; gap: 6px; }
.archive-filters input, .archive-filters select, .pagination input { min-width: 0; width: 100%; min-height: 39px; padding: 6px 9px; color: #182540; background: #fff; border: 1px solid #cdd7e7; border-radius: 7px; font-size: 14px; }
.archive-filters button, .pagination button { border: 0; flex: none; border-radius: 7px; padding: 7px 12px; color: #fff; background: var(--blue); font-size: 13px; }
.records { padding: 0 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.records-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; }
.records-heading h2 { font-size: 22px; }
.table-wrap { overflow-x: auto; }
.records table { width: 100%; border-collapse: collapse; font-size: 14px; }
.records th { background: #eef2fa; color: #3d4e6d; font-size: 13px; text-align: left; }
.records th, .records td { padding: 11px 13px; }
.records td { border-bottom: 1px solid #e9edf5; color: var(--muted); }
.records :is(th, td):not(:first-child) { white-space: nowrap; }
.records td a { display: block; color: #182540; font-weight: 650; overflow-wrap: anywhere; }
.records td a:hover { color: var(--blue); text-decoration: underline; }
.records .archive-links a { display: inline-block; padding: 2px 5px; color: var(--blue); border-radius: 5px; }
.archive-links a:hover, .archive-links a:focus-visible { background: #edf2ff; }
.records tbody tr:hover { background: #f7f9fe; }
.records table time { font-variant-numeric: tabular-nums; }
.records > .empty { margin-bottom: 20px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 17px; color: var(--muted); font-size: 13px; }
.pagination nav, .pagination form { display: flex; align-items: center; gap: 6px; margin: 0; }
.pagination nav > * { display: grid; place-items: center; min-height: 34px; min-width: 34px; border: 1px solid var(--border); padding: 6px; border-radius: 7px; }
.pagination nav a:hover { background: #edf2ff; }
.pagination nav [aria-current] { color: #fff; background: var(--blue); border-color: var(--blue); font-weight: 700; }
.pagination nav [aria-disabled] { color: #687990; background: #f6f8fd; }
.pagination nav .page-gap { border-color: transparent; min-width: 20px; }
.pagination input { width: 57px; min-height: 34px; }

@media (max-width: 900px) {
  .archive-filters { grid-template-columns: repeat(4, 1fr); }
  .archive-search { grid-column: 1 / -1; }
  .shell { width: calc(100% - 44px); }
  .hero-content { padding: 53px 34px; }
  .hero form { max-width: 385px; }
  .category { padding-inline: 8px; gap: 6px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card { gap: 24px; }
}
@media (max-width: 620px) {
  .archive-page { padding-block: 23px 35px; }
  .archive-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .records { padding-inline: 10px; }
  .records-heading h2 { font-size: 19px; }
  .records th, .records td { padding: 9px 6px; font-size: 12px; }
  .records nav { order: 3; width: 100%; flex-wrap: wrap; }
  .shell { width: calc(100% - 32px); }
  .header-row { height: 60px; gap: 14px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand-mark { width: 30px; height: 30px; padding: 6px; }
  .brand small { font-size: 7px; }
  nav { gap: 14px; margin-left: auto; font-size: 13px; }
  .preview { display: none; }
  .hero { margin-top: 16px; border-radius: 18px; }
  .hero-content { padding: 123px 18px 24px; }
  .hero::before { inset: 0 0 31% 15%; background-position: center 42%; }
  .hero::after { background: linear-gradient(0deg, #141f83 40%, #141f8300 80%); }
  .hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .hero p { font-size: 13px; margin-top: 8px; }
  .hero form { margin-top: 18px; }
  .hero input { font-size: 14px; }
  .hero button { padding-inline: 14px; }
  .catalog { margin-top: 26px; padding-bottom: 35px; }
  .section-heading h2 { font-size: 20px; }
  .categories { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .category { font-size: 14px; gap: 8px; }
  .category-icon { width: 29px; height: 29px; font-size: 18px; }
  .results-heading { margin-top: 26px; }
  .grid { gap: 10px; }
  .card-content { padding: 11px; }
  .card h3 { font-size: 15px; }
  .card p { font-size: 12px; }
  .tag { top: 7px; left: 7px; }
  .detail-page { padding-block: 17px 35px; }
  .detail-card { grid-template-columns: 1fr; padding: 15px; }
}
