:root {
  color-scheme: light;
  --bg: #f6f8f2;
  --paper: #ffffff;
  --ink: #102a1d;
  --body: #35473b;
  --muted: #637066;
  --line: #dce4d7;
  --green: #087a34;
  --lime: #c5ee77;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.wrap { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; padding: 12px max(40px, calc((100vw - 1280px) / 2)); border-bottom: 1px solid var(--line); background: #fffffff2; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; }
.brand img { width: 230px; height: auto; display: block; }
.brand-caption { border-left: 1px solid var(--line); padding-left: 18px; color: var(--muted); font-size: 12px; }
.header-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
.header-nav a { padding-block: 10px; }
.header-nav a:hover { color: var(--green); }
.header-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 15px; min-height: 44px; border-radius: 7px; background: var(--ink); color: white; font-size: 13px; font-weight: 600; }
.header-cta span { color: var(--lime); }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding-block: 56px 52px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.small-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.16; font-weight: 750; letter-spacing: -.045em; }
h1 > span:not(.heading-dot) { color: var(--green); }
.heading-dot { color: var(--green); }
.hero-description { margin: 20px 0 22px; color: var(--body); font-size: 15px; line-height: 1.85; }
.hero-meta { display: flex; gap: 24px; margin: 0; font-size: 12px; color: var(--muted); }
.hero-meta strong { margin-right: 4px; font-size: 16px; color: var(--ink); }
.new-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.new-heading h2 { font-size: 15px; margin: 0; }
.new-heading > span { color: var(--muted); font-size: 11px; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.featured-card { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 254px; padding: 24px; border: 1px solid transparent; border-radius: 14px; background: #e9efdf; transition: transform .18s, border-color .18s; }
.featured-card:hover { transform: translateY(-3px); border-color: var(--green); }
.featured-mahjong { background: #e9efdf; }
.featured-lumi { background: #e5edf1; }
.featured-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feature-mark { display: inline-grid; place-items: center; width: 46px; height: 49px; font-weight: 800; font-size: 28px; border-radius: 9px; color: var(--green); background: #ffffffcf; }
.mahjong-mark { color: var(--green); background: #fffefa; box-shadow: 0 3px 0 #b9c9a9; font-family: "Songti SC", serif; transform: rotate(-7deg); }
.lumi-mark { color: #2a566d; background: #ffffffcf; font-family: Georgia, serif; font-style: italic; }
.featured-card h3 { margin: 0 0 7px; font-size: 22px; letter-spacing: -.025em; }
.featured-card p { margin: 0; color: var(--body); font-size: 12px; line-height: 1.85; }
.featured-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; }
.featured-link > span { font-size: 19px; }
.badge { display: inline-block; padding: 3px 8px; border: 1px solid #c5d1c4; border-radius: 5px; font-size: 10px; line-height: 1.7; white-space: nowrap; color: #435c48; background: #ffffff85; }
.badge-new { background: #e8f5da; border-color: #c5dfaa; color: #285f27; }
.badge-planned { color: #665f50; background: #f2eee5; border-color: #e0d9ca; }
.directory { border-top: 1px solid var(--line); padding-top: 32px; }
.directory-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.directory-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
.directory-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.directory-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.directory-layout { display: flex; align-items: flex-start; gap: 32px; }
.category-rail { position: sticky; top: 102px; flex: 0 0 168px; }
.rail-label { margin: 0 0 12px 12px; color: var(--muted); font-size: 11px; }
.category-list { display: flex; flex-direction: column; gap: 5px; }
.category-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; width: 100%; border: 1px solid transparent; border-radius: 7px; padding: 10px 12px; background: transparent; color: var(--body); font-size: 13px; text-align: left; }
.category-button:hover { background: #eaf0e4; }
.category-button.is-active { color: white; background: var(--ink); }
.category-count { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
.rail-note { margin: 24px 12px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.directory-main { flex: 1; min-width: 0; }
.directory-controls { margin-bottom: 19px; }
.search-form { display: flex; align-items: center; position: relative; gap: 12px; }
.search-box { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; min-height: 50px; background: white; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px #087a3414; }
.search-box > span:first-child { color: var(--green); font-size: 23px; }
.search-box input { width: 100%; min-width: 0; padding: 12px 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #727e72; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box kbd { display: inline-grid; place-items: center; min-width: 22px; height: 24px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; color: var(--muted); }
.clear-search { padding: 10px 7px; min-height: 44px; border: 0; background: transparent; color: var(--green); font-size: 12px; flex-shrink: 0; }
.filter-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.status-filters { display: flex; align-items: center; gap: 6px; }
.status-button { min-height: 38px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.status-button span { margin-left: 4px; font-size: 10px; opacity: .8; }
.status-button:hover { color: var(--green); }
.status-button.is-active { color: var(--ink); border-color: var(--line); background: white; font-weight: 700; }
#result-count { margin: 0; font-size: 11px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; min-height: 226px; border: 1px solid var(--line); border-radius: 10px; background: white; transition: border-color .18s, box-shadow .18s, transform .18s; }
a.project-card:hover { border-color: #9abb99; box-shadow: 0 6px 20px #16331e09; transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.project-icon { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: #edf3e8; color: var(--green); font-size: 15px; font-weight: 750; }
[data-category="tools"] .project-icon { background: #eaf0f4; color: #345e72; }
[data-category="collection"] .project-icon { background: #f5eedf; color: #7b5928; }
[data-category="gaokao"] .project-icon { background: #f4ebe9; color: #8a5049; }
[data-category="culture"] .project-icon { background: #eeebf3; color: #6a507e; }
.project-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.45; letter-spacing: -.02em; }
.card-description { margin: 0 0 21px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0e9; font-size: 10px; color: var(--muted); }
.card-action { flex-shrink: 0; color: var(--green); font-weight: 700; }
.card-action > span { margin-left: 7px; font-size: 16px; }
.is-planned { background: #f8f9f5; border-style: dashed; }
.is-planned .card-action { color: var(--green); font-weight: 700; }
.stage { margin: -7px 0 18px; color: #706750; font-size: 11px; }
.empty-state { padding: 56px 20px; border: 1px dashed var(--line); text-align: center; border-radius: 10px; }
.empty-mark { font-size: 40px; color: var(--green); }
.empty-state h3 { margin: 9px 0; font-size: 19px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.reset-button { min-height: 44px; margin-top: 10px; padding: 10px 16px; border: 1px solid var(--green); border-radius: 6px; background: white; color: var(--green); font-size: 13px; }
.noscript-note { padding: 14px 18px; margin-top: 0; border: 1px solid var(--line); font-size: 13px; background: white; }
.about { display: flex; align-items: center; gap: 42px; padding-block: 40px; margin-top: 54px; border-top: 1px solid var(--line); }
.about > div { flex-shrink: 0; }
.about .eyebrow { margin-bottom: 8px; font-size: 9px; }
.about h2 { font-size: 19px; margin: 0; letter-spacing: -.03em; }
.about > p { color: var(--muted); font-size: 12px; max-width: 470px; }
.about > a { font-size: 12px; white-space: nowrap; margin-left: auto; min-height: 44px; display: flex; align-items: center; gap: 16px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
@media (min-width: 1450px) { .hero { gap: 110px; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { padding-inline: 24px; gap: 16px; }
  .brand-caption { display: none; }
  .hero { gap: 32px; }
  .featured-card { padding: 20px; }
  .directory-layout { gap: 22px; }
  .category-rail { flex-basis: 146px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { gap: 24px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 86px; }
  .header-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 34px; }
  h1 { font-size: 38px; }
  h1 br { display: none; }
  .hero-description br { display: none; }
  .hero-description { margin: 14px 0 16px; font-size: 14px; }
  .hero-meta { gap: 20px; }
  .new-heading { margin-bottom: 12px; }
  .featured-card { min-height: 212px; gap: 16px; padding: 20px; }
  .directory-heading { margin-bottom: 22px; }
  .directory-heading > p { display: none; }
  .directory-layout { flex-direction: column; gap: 18px; }
  .category-rail { position: static; flex: auto; width: 100%; min-width: 0; }
  .rail-label, .rail-note { display: none; }
  .category-list { flex-direction: row; overflow-x: auto; gap: 7px; padding: 4px 0 10px; scrollbar-width: thin; }
  .category-button { width: auto; flex: 0 0 auto; gap: 12px; min-height: 44px; border-color: var(--line); background: white; padding: 9px 12px; font-size: 12px; }
  .directory-main { width: 100%; }
  .about { flex-wrap: wrap; gap: 10px 24px; margin-top: 38px; padding-block: 28px; }
  .about > p { margin-block: 10px; }
  .about > a { margin-left: 0; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 68px; padding: 10px 16px; gap: 10px; }
  .brand img { width: 176px; }
  .header-cta { padding: 9px 11px; gap: 8px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
  h1 { font-size: 32px; line-height: 1.25; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .hero-meta { font-size: 11px; gap: 18px; }
  .featured-grid { gap: 12px; }
  .featured-card { padding: 16px; min-height: 220px; }
  .featured-card h3 { font-size: 19px; }
  .featured-card p { font-size: 11px; }
  .feature-mark { width: 36px; height: 40px; font-size: 25px; }
  .featured-top .badge { font-size: 9px; padding: 2px 6px; }
  .directory { padding-top: 24px; }
  .directory-heading h2 { font-size: 23px; }
  .search-box { padding-inline: 12px; gap: 9px; }
  .search-box input { font-size: 16px; }
  .search-box input::placeholder { font-size: 12px; }
  .search-box kbd { display: none; }
  .filter-line { gap: 9px; }
  .status-filters { width: 100%; justify-content: space-between; gap: 0; }
  .status-button { min-height: 44px; padding-inline: 12px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card { padding: 20px; min-height: 205px; }
  .card-top { margin-bottom: 14px; }
  .project-card h3 { font-size: 17px; }
  .card-description { font-size: 13px; margin-bottom: 18px; }
  .card-bottom { font-size: 11px; }
  .site-footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
