/* 024 免费资源 · 对齐 002 推荐精品资源与总站门户 */
:root {
  --paper: #F5F7FB;
  --ink: #1B2A4A;
  --ink-soft: #5A6B8C;
  --blue: #2F5FB3;
  --gold: #C9A24B;
  --teal: #2F8C83;
  --accent: #3D7A6A;
  --hairline: #E3E9F4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink); min-height: 100vh; line-height: 1.7;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 36% at 88% 0%, rgba(61, 122, 106, .08), transparent 70%),
    radial-gradient(44% 32% at 0% 12%, rgba(201, 162, 75, .10), transparent 70%),
    radial-gradient(40% 30% at 100% 100%, rgba(201, 162, 75, .06), transparent 70%);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--hairline); font-size: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; letter-spacing: .12em;
  font-size: 15px; font-weight: 600;
}
.brand:hover { text-decoration: none; color: var(--blue); }
.account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-soft); }
.account .who b { color: var(--blue); font-weight: 600; }
.btn {
  display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: 13.5px; text-decoration: none;
  border: 1px solid var(--hairline); color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--blue); box-shadow: 0 4px 14px -6px rgba(47, 95, 179, .35); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #28509c; }
.btn.ghost { border-color: transparent; color: var(--ink-soft); background: transparent; }
.btn.ghost:hover { color: var(--blue); border-color: var(--hairline); box-shadow: none; }

.crumb { margin: 16px 0 0; font-size: 13px; color: var(--ink-soft); }
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--blue); }
.crumb span { margin: 0 8px; color: #C6D2E8; }

.hero { position: relative; padding: 36px 0 10px; }
.home-hero, .cat-hero { text-align: center; padding-top: 46px; }
.hero .num {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #3D7A6A, #2F8C83); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(61, 122, 106, .6);
}
.hero .num i { font: 700 13px/1 ui-monospace, Consolas, monospace; letter-spacing: .3em; color: #E8D9AE; font-style: normal; }
.hero .num b { font: 700 17px/1 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.hero .eyebrow {
  margin-top: 18px; font-size: 12.5px; letter-spacing: .42em; color: var(--gold);
  text-indent: .42em; font-weight: 600;
}
.item-hero .eyebrow { margin-top: 0; }
.hero h1 {
  margin: 14px 0 12px;
  font-family: "Songti SC", "STSong", Georgia, "SimSun", serif;
  font-size: clamp(28px, 5vw, 44px); font-weight: 700; letter-spacing: .1em; line-height: 1.35;
}
.item-hero h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: .06em; }
.hero .lead { color: var(--ink-soft); font-size: 15.5px; letter-spacing: .04em; line-height: 1.9; max-width: 46em; }
.home-hero .lead, .cat-hero .lead { margin-left: auto; margin-right: auto; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.home-hero .hero-meta, .cat-hero .hero-meta { justify-content: center; }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--hairline); color: var(--ink-soft); font-size: 12.5px;
}
.pill.ok { color: var(--teal); border-color: #c9e6e1; background: #f3faf8; }
.pill.warn { color: #9A5B14; border-color: #ead49b; background: #fff8e8; }

.col-search {
  display: flex; gap: 10px; justify-content: center; max-width: 560px;
  margin: 22px auto 0;
}
.col-search input[type="search"] {
  flex: 1; min-width: 0; padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 15px;
  border: 1px solid var(--hairline); background: #fff; color: var(--ink); outline: none;
}
.col-search input[type="search"]:focus { border-color: var(--blue); box-shadow: 0 4px 14px -6px rgba(47, 95, 179, .35); }
.col-search button { cursor: pointer; }
.search-empty { text-align: center; color: var(--ink-soft); padding: 30px 0; display: none; }
.search-empty.is-on { display: block; }

.anchors {
  position: sticky; top: 0; z-index: 50; margin-top: 26px; padding: 12px 0 10px;
  background: rgba(245, 247, 251, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.anchors .inner { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.anchors a {
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; text-decoration: none;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--hairline);
}
.anchors a:hover, .anchors a.is-on { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.anchors a .cnt { color: var(--gold); font-weight: 600; margin-left: 4px; }

section.cat { padding: 40px 0 6px; scroll-margin-top: 68px; }
.cat-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 12px;
}
.cat-head .idx { font: 700 13px/1 ui-monospace, Consolas, monospace; letter-spacing: .2em; color: var(--gold); }
.cat-head h2 { font-size: 24px; font-weight: 700; letter-spacing: .08em; }
.cat-head .desc { color: var(--ink-soft); font-size: 13px; margin-left: auto; max-width: 36em; line-height: 1.7; }
.cat-head .more { font-size: 13.5px; font-weight: 600; white-space: nowrap; }

.callout {
  margin: 18px 0 8px; padding: 16px 18px; background: #fff8e8;
  border: 1px solid #ead49b; border-radius: 14px; font-size: 14.5px;
}
.callout.info { background: #edf3ff; border-color: #9bb7eb; }
.callout strong { display: block; margin-bottom: 4px; }

.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; padding-bottom: 18px;
}
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 0 0 18px;
  border-radius: 14px; background: #fff; border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold); color: inherit;
  box-shadow: 0 2px 10px -6px rgba(27, 42, 74, .12);
  transition: transform .18s ease, box-shadow .22s;
  text-decoration: none;
  overflow: hidden;
}
.card-cover {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: #e8eef6; text-decoration: none;
}
.card-cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
.card-cover.is-logo { background: #1B2A4A; }
.card-cover.is-logo img { object-fit: cover; object-position: center; }
.card .head, .card .intro, .card .scene, .card .note, .card .tags, .card .entries {
  margin-left: 20px; margin-right: 20px;
}
.card .head { padding-top: 16px; }
.item-shot {
  margin: 18px 0 8px; background: #fff;
  border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden;
}
.item-shot img {
  display: block; width: 100%; max-height: 520px;
  object-fit: contain; background: #eef2f8;
}
.item-shot.is-logo img {
  max-height: 280px; object-fit: cover;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -16px rgba(27, 42, 74, .28); text-decoration: none; }
.card .head { display: flex; align-items: center; gap: 12px; }
.card .icon-fb {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EEF3FB, #F8EFDC); color: var(--blue);
  font-weight: 700; font-size: 20px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  border: 1px solid var(--hairline);
}
.card h3 { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.card .intro { font-size: 13px; line-height: 1.8; color: var(--ink-soft); flex: 1; }
.card .scene {
  font-size: 12px; color: var(--teal); background: rgba(47, 140, 131, .08);
  border-radius: 999px; padding: 3px 10px; align-self: flex-start;
}
.card .note {
  font-size: 12px; color: var(--ink-soft); background: var(--paper);
  border-radius: 8px; padding: 7px 10px; line-height: 1.7;
}
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card .tags i, .tag-list i {
  font-style: normal; font-size: 11.5px; color: var(--gold);
  border: 1px solid rgba(201, 162, 75, .45); border-radius: 999px; padding: 1px 8px;
}
.entries {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  border-top: 1px dashed var(--hairline); padding-top: 12px; margin-top: auto;
}
.entries .use {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.entries .use:hover { background: #28509c; text-decoration: none; }
.entries a.sec {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--ink-soft); font-size: 12px;
  text-decoration: none; white-space: nowrap;
}
.entries a.sec:hover { color: var(--blue); border-color: var(--blue); background: #F5F8FD; text-decoration: none; }

.section { margin: 36px 0; }
.section-head { margin-bottom: 16px; }
.kicker { display: block; font-size: 12px; letter-spacing: .18em; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.section h2 { font-size: 22px; letter-spacing: .04em; }
.section .sub { color: var(--ink-soft); margin-top: 6px; font-size: 14.5px; }

.item-hero { padding-top: 24px; }
.item-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.blocks { display: grid; gap: 12px; margin: 20px 0; }
.block {
  background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px;
}
.block h2 { font-size: 15px; margin-bottom: 8px; }
.block p { color: var(--ink); font-size: 14.5px; }
.steps { list-style: none; display: grid; gap: 12px; }
.steps li {
  background: #fff; border: 1px solid var(--hairline); border-radius: 14px;
  padding: 16px 18px 16px 58px; position: relative;
}
.steps .n {
  position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: #edf3ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font: 700 12px/1 ui-monospace, Consolas, monospace;
}
.steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 14.5px; }
.steps a, .block a { overflow-wrap: anywhere; }

.pager {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 28px;
}
.pager a {
  display: inline-block; padding: 10px 16px; border-radius: 12px; background: #fff;
  border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; max-width: 48%;
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .dir { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 2px; }
.pager .next { margin-left: auto; text-align: right; }

.site-footer, .footer {
  position: relative; margin: 48px 0 0; padding: 40px 0 46px; text-align: center;
  color: var(--ink-soft); font-size: 12.5px; letter-spacing: .08em; line-height: 2;
}
.footer .rule { width: 56px; height: 1px; margin: 0 auto 18px; background: var(--hairline); }
.footer a { color: var(--ink-soft); }
.ph-home {
  position: fixed; right: 16px; bottom: 16px; z-index: 900;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--hairline); color: var(--ink-soft);
  font-size: 13px; text-decoration: none;
  box-shadow: 0 4px 14px -6px rgba(27, 42, 74, .25);
}
.ph-home:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .cat-head .desc { display: none; }
  .hero, .home-hero { padding-top: 32px; }
  .pager a { max-width: 100%; }
  .ph-home { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
