:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #1f2329;
  --muted: #8a919f;
  --line: #e8eaed;
  --brand: #2f6bff;
  --quark: #2f6bff;
  --baidu: #2e7fff;
  --xunlei: #14b8a6;
  --warn: #ff7a1a;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 58px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand-sub { color: var(--muted); font-size: 13px; }
.cats { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.cat-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 5px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; text-decoration: none;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand); }

/* catalog grid */
.section-title { font-size: 15px; color: var(--muted); margin: 26px 0 12px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow); cursor: pointer; transition: .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.card h3 { margin: 0; font-size: 16px; }
.card .summary { color: var(--muted); font-size: 13px; }
.card .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.tag { background: #eef3ff; color: var(--brand); border-radius: 6px; padding: 2px 8px; font-size: 12px; }

/* detail */
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); margin-top: 22px; }
.detail h1 { margin: 0 0 6px; font-size: 24px; }
.detail .desc { color: #566; }
.locked {
  margin: 16px 0; padding: 14px 16px; border: 1px dashed var(--warn); border-radius: 12px;
  background: #fff8f1; color: #8a4b12; font-size: 14px;
}
.locked.unlocked { border-style: solid; background: #f0fbf5; color: #146c43; border-color: #b7e4c7; }
.transfer-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin: 18px 0; }
.btn-transfer {
  flex: 1; min-width: 150px; border: none; border-radius: 12px; padding: 14px 16px;
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; display: flex;
  flex-direction: column; gap: 2px; align-items: flex-start;
}
.btn-transfer small { font-weight: 400; opacity: .85; font-size: 12px; }
.btn-transfer.quark { background: var(--quark); }
.btn-transfer.baidu { background: var(--baidu); }
.btn-transfer.xunlei { background: var(--xunlei); }
.btn-transfer:hover { filter: brightness(1.05); }
.qr {
  width: 132px; border: 1px solid var(--line); border-radius: 12px; display: flex;
  align-items: center; justify-content: center; color: var(--muted); font-size: 12px;
  text-align: center; padding: 10px;
}
.after-transfer { margin-top: 18px; padding: 16px; border-radius: 12px; background: #f3f6ff; }
.after-transfer h4 { margin: 0 0 8px; }
.after-transfer a { color: var(--brand); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #1f2329; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px;
  box-shadow: var(--shadow); z-index: 50;
}
.wish-cta { margin-top: 40px; }
.wish-inner {
  background: #fff; border: 1px dashed var(--line); border-radius: 14px;
  padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.wish-inner strong { font-size: 15px; }
.wish-sub { color: var(--muted); font-size: 13px; margin-left: 8px; }
.btn-wish {
  margin-left: auto; background: var(--brand); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.btn-wish:hover { filter: brightness(1.05); }

/* bundle（合集） */
.bundle-top { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.bundle-top h1, .bundle-top h3 { margin:0; }
.tier {
  font-size:11px; padding:2px 9px; border-radius:999px; font-weight:600;
  background:var(--greenbg, #eaf3de); color:#146c43; border:1px solid #b7e4c7;
}
.sub-title {
  font-size:14px; font-weight:600; color:var(--ink);
  margin:22px 0 10px; padding-left:10px; border-left:3px solid var(--brand);
}
.bundle-foot { font-size:12px; color:var(--muted); margin-top:2px; }
.card.bundle { gap:6px; }

/* 合集详情 */
.sec { margin:18px 0 8px; font-size:14px; color:var(--ink); }
pre.tree {
  background:#0f1720; color:#d7e3f4; padding:14px 16px; border-radius:10px;
  overflow-x:auto; font-size:12.5px; line-height:1.7; margin:0;
  font-family:ui-monospace,Consolas,"Courier New",monospace;
}
ul.items { margin:0; padding-left:20px; font-size:13.5px; line-height:1.9; }
ul.items a { color:var(--brand); text-decoration:none; }
ul.items a:hover { text-decoration:underline; }

.bundle-cta {
  margin:14px 0; padding:12px 14px; border-radius:10px;
  background:#f3f6ff; border:1px solid #d7e2ff; font-size:13.5px;
}
.bundle-cta a { color:var(--brand); font-weight:600; text-decoration:none; margin-left:6px; }
.latest { color:#146c43; font-weight:600; }
.empty { color:var(--muted); padding:30px 0; text-align:center; }

.site-footer { margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--line); color: #566; font-size: 13px; }
.site-footer .muted { color: var(--muted); }
.code { background: #eef; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.back { color: var(--brand); cursor: pointer; font-size: 14px; text-decoration: none; }

/* 常见问题（单文件页 FAQ，配合 FAQPage JSON-LD） */
.faq { margin: 0; }
.faq-item { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.faq-item:last-child { border-bottom: none; }
.faq-item b { color: var(--ink); }
.faq-item p { margin: 6px 0 0; color: #566; line-height: 1.7; }
