:root {
  --paper: #f7f6f2;
  --paper-2: #fffefb;
  --ink: #15171c;
  --ink-2: #2b2f38;
  --muted: #60646d;
  --line: #e4e1d8;
  --line-2: #d5d1c6;
  --brand: #b23a2d;
  --brand-2: #8f2b21;
  --brand-soft: #f7e8e4;
  --gold: #b58a3c;
  --green: #1f7a54;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 23, 28, .04), 0 8px 24px -12px rgba(21, 23, 28, .18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #f0d4cd; }

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }

/* ------------------------------- 顶栏 ------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: #f8e9c9;
  display: grid; place-items: center; font-family: var(--serif); font-size: 17px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-name { font-family: var(--serif); font-size: 19px; }
.nav { display: flex; gap: 4px; margin-left: 4px; }
.nav a { padding: 6px 11px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--ink); background: #efece4; }
.nav a.on { color: var(--ink); background: #eae6dc; font-weight: 600; }
.topbar .spacer { flex: 1; }
.search-mini { position: relative; width: 250px; }
.search-mini input {
  width: 100%; height: 38px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--paper-2); padding: 0 62px 0 34px; outline: none; font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}
.search-mini input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(21,23,28,.06); }
.search-mini .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.mini-go {
  position: absolute; right: 4px; top: 4px; height: 30px; padding: 0 10px; border-radius: 7px;
  border: none; background: #efebe1; color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer;
}
.mini-go:hover { background: #e6e1d4; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: .15s; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { background: #fff; border-color: var(--ink-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; }
.menu-btn { display: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; color: var(--ink-2); }
.mobile-nav { display: none; position: fixed; top: 66px; left: 0; right: 0; z-index: 49;
  background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 8px 14px 12px;
  box-shadow: 0 14px 24px -18px rgba(0,0,0,.35); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 6px; font-size: 14px; border-bottom: 1px dashed var(--line); }
.mobile-nav a:last-child { border-bottom: none; }

/* ------------------------------- 首页 Hero ------------------------------- */
.hero {
  position: relative; margin: 26px 0 0; border-radius: 20px; overflow: hidden;
  background: #16181d; color: #f4f1e8;
  padding: 54px 48px 44px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -110px; top: -150px;
  background: radial-gradient(circle, rgba(178,58,45,.5), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: #d9c9a3; border: 1px solid rgba(217,201,163,.3);
  border-radius: 99px; padding: 4px 12px; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.22;
  margin: 0 0 14px; font-weight: 700; letter-spacing: .01em;
}
.hero h1 em { font-style: normal; color: #e8b7a9; }
.hero p.lead { color: #b9b6ad; margin: 0 0 26px; font-size: 15.5px; max-width: 560px; }
.hero-search { display: flex; gap: 10px; max-width: 620px; }
.hero-search .box {
  flex: 1; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 0 16px; height: 52px;
  transition: .2s;
}
.hero-search .box:focus-within { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.4); }
.hero-search input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 15px; }
.hero-search input::placeholder { color: #8d8b84; }
.hero-search .btn { height: 52px; padding: 0 26px; border-radius: 12px; font-size: 15px; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .item { display: flex; flex-direction: column; }
.hero-stats .num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2; }
.hero-stats .lbl { font-size: 12px; color: #8f8d85; letter-spacing: .08em; }
.hero-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 9px 8px; }
.hero-tags a {
  font-size: 12.5px; color: #d5d1c7; border: 1px solid rgba(255,255,255,.16);
  border-radius: 99px; padding: 4px 12px; line-height: 1.5; transition: .15s;
}
.hero-tags a:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }

/* ------------------------------- 通用区块 ------------------------------- */
.section { margin: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 {
  font-family: var(--serif); font-size: 24px; margin: 0; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before { content: ""; width: 4px; height: 20px; background: var(--brand); border-radius: 2px; display: inline-block; }
.section-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.section-head .more { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--brand); }

/* 分类磁贴 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line); transition: .16s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cat-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px;
  background: var(--tint, #eee); flex-shrink: 0;
}
.cat-tile .nm { font-weight: 600; font-size: 14.5px; }
.cat-tile .ct { font-size: 12px; color: var(--muted); }

/* 资源卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(21,23,28,.4); border-color: #cfcbc0; }
.card-cover { position: relative; aspect-ratio: 16 / 8.6; overflow: hidden; background: #e9e6dd; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-cover img { transform: scale(1.04); }
.cover-gen {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px 14px; overflow: hidden;
  background: linear-gradient(135deg, rgba(10,10,12,.12), rgba(10,10,12,.42)), linear-gradient(135deg, var(--c1), var(--c2));
}
.cover-gen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .25;
}
.cover-gen::after {
  content: ""; position: absolute; right: -46px; bottom: -78px; width: 190px; height: 190px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%; pointer-events: none;
}
.cg-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255,255,255,.82); letter-spacing: .08em; }
.cg-ico { font-size: 14px; filter: saturate(.9); }
.cg-no { font-family: var(--mono); font-size: 9.5px; color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.2); border-radius: 4px; padding: 1px 5px; letter-spacing: .04em; }
.cg-title { position: relative; z-index: 1; font-family: var(--serif); font-weight: 700;
  font-size: 15px; line-height: 1.38; color: rgba(255,255,255,.95); letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.18); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; max-width: 88%; min-height: 2.76em; }
.cg-rule { position: relative; z-index: 1; width: 30px; height: 1px; background: rgba(255,255,255,.4); margin-top: 7px; }
.cover-gen.small { padding: 7px 9px; }
.cover-gen.small .cg-title { font-size: 10.5px; line-height: 1.3; max-width: 100%; min-height: 2.6em; }
.cover-gen.small .cg-ico { font-size: 11px; }
.cover-gen.small .cg-no, .cover-gen.small .cg-rule { display: none; }
.kate {
  position: absolute; left: 12px; top: 11px; z-index: 2; font-size: 11px; color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 1px 8px; backdrop-filter: blur(4px);
}
.badge-featured {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  background: #f8e9c9; color: #6b4a12; font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 2px 9px; letter-spacing: .04em;
}
.card-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 11.5px; color: var(--brand); font-weight: 600; letter-spacing: .04em; }
.card-title {
  font-family: var(--serif); font-size: 16.5px; font-weight: 700; line-height: 1.42; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-desc {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.providers { display: flex; gap: 4px; flex-wrap: wrap; }
.pv {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #4a4e57;
  background: #f1efe8; border-radius: 5px; padding: 2px 6px; white-space: nowrap;
}
.pv i { width: 5px; height: 5px; border-radius: 50%; background: var(--dot, #888); display: inline-block; }
.meta-sm { font-size: 11.5px; color: #969aa2; display: flex; align-items: center; gap: 5px; white-space: nowrap; }

/* 筛选条 */
.filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 18px;
}
.filters .lbl { font-size: 12.5px; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink-2);
}
.chip:hover { border-color: var(--line-2); background: #faf9f5; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { font-size: 11px; opacity: .6; }
.filters .sep { width: 1px; height: 20px; background: var(--line); }
.sort-links { display: flex; gap: 2px; margin-left: auto; }
.sort-links a { font-size: 13px; color: var(--muted); padding: 5px 10px; border-radius: 7px; }
.sort-links a.on { color: var(--ink); background: #eeeae0; font-weight: 600; }

/* 列表行（搜索页 / 分类页紧凑模式） */
.row-list { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: flex; gap: 16px; padding: 14px 16px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 12px; transition: .15s;
}
.row-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.row-thumb { width: 92px; height: 64px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: #eee; position: relative; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main { flex: 1; min-width: 0; }
.row-main h3 { margin: 0 0 3px; font-family: var(--serif); font-size: 16px; }
.row-main p { margin: 0; font-size: 12.8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; flex-shrink: 0; }

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 34px 0 10px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; padding: 0 8px; color: var(--ink-2);
}
.pager a:hover { border-color: var(--ink-2); }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .dis { opacity: .4; pointer-events: none; }
.pager .info { border: none; background: none; color: var(--muted); font-size: 12.5px; }

/* ------------------------------- 详情页 ------------------------------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 24px 0 16px; }
.crumb a:hover { color: var(--brand); }
.crumb span.sep { color: var(--line-2); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 26px; align-items: start; }
.detail-main { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px 26px; }
.detail-head h1 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.35; margin: 0 0 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px dashed var(--line-2); }
.detail-meta .dot { color: var(--line-2); }
.summary-box {
  background: #f6f2e7; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 22px 0; font-size: 14.5px; color: #4a4335; line-height: 1.75;
}
.summary-box .t { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--gold); margin-bottom: 5px; }
.detail-body { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.detail-body p { margin: 0 0 14px; }
.detail-body h3 { font-family: var(--serif); font-size: 18px; margin: 26px 0 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tag {
  font-size: 12px; color: #5c5f68; background: #f1efe8; border-radius: 6px; padding: 3px 9px;
}
.tag:hover { background: #e9e5d8; color: var(--ink); }

/* 网盘面板 */
.netdisk-panel { margin: 26px 0 0; }
.netdisk-panel .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.netdisk-panel .hd h3 { font-family: var(--serif); font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.netdisk-panel .hd .hint { font-size: 11.5px; color: var(--muted); }
.nd-list { display: flex; flex-direction: column; gap: 10px; }
.nd-item {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden;
  border-left: 3px solid var(--nd, #888);
}
.nd-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.nd-name { font-size: 13px; font-weight: 700; color: var(--nd, #444); white-space: nowrap; }
.nd-url { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: #6b6f76; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-code {
  font-family: var(--mono); font-size: 12px; background: #f4f2ea; border: 1px dashed var(--line-2);
  border-radius: 5px; padding: 1px 7px; white-space: nowrap;
}
.nd-code b { color: var(--brand); letter-spacing: .08em; }
.nd-actions { display: flex; gap: 6px; padding: 0 14px 12px; }
.nd-actions .btn-sm { height: 28px; font-size: 12px; }
.nd-actions .open { background: var(--ink); color: #fff; }
.nd-actions .open:hover { background: #000; }
.nd-note { padding: 0 14px 10px; font-size: 11.5px; color: #8b8f97; }

.side-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.side-card h4 { font-family: var(--serif); font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.rel-item { display: block; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rel-item:last-child { border-bottom: none; }
.rel-item .t { font-size: 13.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-item:hover .t { color: var(--brand); }
.rel-item .m { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.notice-card { background: #16181d; color: #c9c6bd; border: none; }
.notice-card h4 { color: #f4f1e8; }
.notice-card p { font-size: 12.5px; line-height: 1.7; margin: 0 0 8px; }
.notice-card a { color: #e8b7a9; }
.stat-mini { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.stat-mini:last-child { border: none; }
.stat-mini b { color: #fff; font-family: var(--mono); }

/* ------------------------------- 表单 ------------------------------- */
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px; max-width: 760px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--brand); }
.field .help { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
  padding: 9px 12px; font-size: 14px; outline: none; transition: .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(21,23,28,.06); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #16181d; color: #fff; font-size: 13.5px; padding: 9px 18px; border-radius: 99px;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); animation: toastIn .2s ease;
}
.toast.err { background: #8f2b21; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* Modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,17,21,.5); z-index: 150;
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px);
}
.modal {
  background: var(--paper-2); border-radius: 16px; width: min(560px, 100%);
  max-height: 88vh; overflow: auto; padding: 26px 28px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
}
.modal h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.modal .m-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }
.modal-close { position: absolute; }

/* 空状态 / 加载 */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty .ico { font-size: 34px; margin-bottom: 10px; opacity: .6; }
.empty h3 { font-family: var(--serif); color: var(--ink-2); margin: 0 0 6px; font-size: 17px; }
.loading { padding: 60px; text-align: center; color: var(--muted); font-size: 13px; }
.skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px,1fr)); gap: 18px; }
.skel .s { height: 270px; border-radius: var(--radius); background: linear-gradient(90deg, #efece4 25%, #f7f5ef 37%, #efece4 63%); background-size: 400% 100%; animation: sh 1.3s infinite; }
@keyframes sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 页脚 */
.footer { margin-top: 70px; border-top: 1px solid var(--line); background: #f2f0e9; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 40px 0 26px; }
.footer h5 { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; text-transform: uppercase; }
.footer a { display: block; font-size: 13px; color: #4c5058; padding: 3px 0; }
.footer a:hover { color: var(--brand); }
.footer .about { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 340px; }
.footer .brand { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--line-2); padding: 14px 0; display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: #8b8f97; flex-wrap: wrap; }

@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 38px 26px 32px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .nav, .search-mini { display: none; }
  .menu-btn { display: block; }
  .topbar-inner { gap: 10px; }
  .hero h1 { font-size: 27px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: 18px; }
  .hero-tags a:nth-child(n+7) { display: none; }
  .cat-tile .ct { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
  .detail-main { padding: 22px 18px; }
  .form-card { padding: 22px 18px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-title { font-size: 15px; }
  .card-desc { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
  .row-thumb { display: none; }
  .sort-links { margin-left: 0; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .card-desc { display: -webkit-box; }
  .cat-tile { padding: 11px 12px; gap: 9px; }
  .cat-ico { width: 34px; height: 34px; font-size: 16px; }
  .cat-tile .ct { display: none; }
  .hero { padding: 30px 20px 26px; }
}