:root {
  color-scheme: light;
  --ink: #292329;
  --muted: #62565c;
  --accent: #8e284d;
  --line: #e8dce1;
  --paper: #fffdfd;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #6c346b; outline-offset: 4px; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; background: white; padding: .5rem; z-index: 5; }
.skip:not(:focus) { transform: translateY(-200%); }
.site-head { border-bottom: 1px solid var(--line); }
.head-inner, .brand, nav { display: flex; align-items: center; }
.head-inner { min-height: 4.5rem; justify-content: space-between; gap: 1rem; }
.brand { gap: .55rem; color: var(--ink); font-size: 1.28rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; background: var(--accent); color: white; width: 2.1rem; height: 2.1rem; border-radius: .6rem; font-size: 1rem; }
.brand-sub, nav a { font-size: .9rem; }
.brand-sub { color: var(--muted); font-weight: 500; }
nav { gap: clamp(.8rem, 3vw, 2.25rem); }
nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; }
.hero { background: #f9eaf0; }
.hero-inner { padding-block: clamp(2rem, 5vw, 4.6rem); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(1.5rem, 8vw, 7rem); }
.eyebrow { color: var(--accent); font-weight: 700; margin-bottom: .7rem; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-weight: 850; letter-spacing: -.055em; line-height: 1.1; }
.intro { max-width: 31em; margin-top: 1.2rem; color: var(--muted); }
.feature { border-radius: 1rem; background: #65283f; color: #fff7fa; padding: clamp(1.3rem, 4vw, 2.4rem); box-shadow: 0 12px 30px #67244226; }
.feature-label { font-size: .9rem; color: #f6ccdc; }
.feature h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.28; margin-block: .7rem; }
.feature a { display: inline-block; color: #65283f; background: #fff7fa; border-radius: .45rem; padding: .52rem .95rem; margin-top: 1.15rem; font-weight: 700; text-decoration: none; }
.feature a:hover { background: #f6ccdc; }
.feature a:focus-visible { outline-color: #fff7fa; }
.mini-code-dialog { width: min(21rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; color: var(--ink); background: white; }
.mini-code-dialog::backdrop { background: #2915219e; }
.mini-code-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.mini-code-dialog p { margin-top: .4rem; color: var(--muted); }
.mini-code-dialog img { display: block; width: 100%; height: auto; margin: .55rem auto 0; }
.content { padding-block: 2.4rem 3.5rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; }
h2 { font-size: 1.55rem; line-height: 1.3; }
.search { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.search input { width: min(12rem, 53vw); border: 1px solid #a78e99; background: white; color: var(--ink); border-radius: .48rem; font: inherit; font-size: 1rem; padding: .45rem .62rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
button { cursor: pointer; border: 1px solid var(--line); border-radius: 2rem; background: white; color: var(--ink); padding: .42rem .86rem; font: inherit; font-size: .9rem; }
button:hover { border-color: var(--accent); }
button[aria-pressed="true"] { color: white; background: var(--accent); border-color: var(--accent); }
.count { color: var(--muted); font-size: .9rem; margin-block: .9rem .65rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: .85rem; }
.cards.masonry { grid-auto-rows: 8px; grid-auto-flow: row dense; row-gap: 0; }
.cards.masonry:not(:has(.card)) { grid-auto-rows: auto; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: white; }
.card-content { display: flex; flex-direction: column; gap: .55rem; padding: .95rem; overflow-wrap: anywhere; }
.card h3 { font-size: 1.16rem; line-height: 1.45; }
.card p { color: var(--muted); }
.card .meta { font-size: .875rem; color: var(--accent); }
.card h3 a { color: var(--ink); text-decoration-color: var(--line); }
.card h3 a:hover { color: var(--accent); text-decoration-color: currentColor; }
.card .source { font-size: .875rem; margin-top: auto; padding-top: .25rem; }
.more-results { height: 1px; }
.empty { grid-column: 1 / -1; padding: 1rem; background: #f9eaf0; border-radius: .75rem; }
footer { border-top: 1px solid var(--line); padding-block: 1.3rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 66rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 52rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner, .cards { grid-template-columns: 1fr; }
  .cards.masonry { grid-auto-rows: auto; row-gap: .85rem; }
  .cards.masonry > .card { grid-row-end: auto !important; }
  .head-inner { min-height: 3.7rem; }
  .brand { font-size: 1.05rem; gap: .35rem; }
  .brand-sub { display: none; }
}
.cover-slot { background: #f6eef2; }
.news-cover { display: block; max-width: 100%; height: auto; margin-inline: auto; }
