:root {
  --brand: #2b7fff;
  --brand-dark: #1b5fd0;
  --ink: #1f2a37;
  --ink-2: #4a5a6a;
  --muted: #8593a3;
  --line: #e7edf5;
  --bg: #f5f8fc;
  --card: #fff;
  --quark: #2f6bff;
  --baidu: #2b6cff;
  --xunlei: #1f9bf0;
  --aliyun: #ff6a00;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: 1180px; max-width: calc(100% - 32px); margin: 0 auto; }

/* ---------- 头部（移动端吸顶） ---------- */
.head { background: #fff; border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #2b7fff, #6aa8ff);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.brand .bname { letter-spacing: .2px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; }
.search input[type=search] {
  flex: 1; height: 44px; border: 1px solid var(--line); background: #f8fafd; border-radius: 999px;
  padding: 0 18px; font-size: 15px; color: var(--ink); outline: none; transition: .15s;
}
.search input[type=search]:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(43,127,255,.12); }
.search button {
  height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 15px; cursor: pointer; white-space: nowrap;
}
.search button:hover { background: var(--brand-dark); }
.head-link { color: var(--ink-2); font-size: 14px; white-space: nowrap; margin-left: auto; }

/* ---------- 分类 ---------- */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.cats a {
  padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px;
}
.cats a:hover { border-color: var(--brand); color: var(--brand); }
.cats a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 网盘筛选 ---------- */
.ndbar { display: flex; gap: 8px; align-items: center; margin: 10px 0 18px; flex-wrap: wrap; }
.ndbar span { color: var(--muted); font-size: 13px; }
.ndbar a { padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ndbar a.on { border-color: var(--brand); color: var(--brand); font-weight: 600; }

/* ---------- 列表 ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); transition: .15s;
}
.row:hover { border-color: #cfe0fa; box-shadow: 0 4px 16px rgba(31,71,133,.07); }
.row .nd {
  flex: none; width: 54px; height: 54px; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; text-align: center; line-height: 1.2;
}
.nd-quark { background: var(--quark); }
.nd-baidu { background: var(--baidu); }
.nd-xunlei { background: var(--xunlei); }
.nd-aliyun { background: var(--aliyun); }
.nd-other { background: #8a99ad; }
.row .body { flex: 1; min-width: 0; }
.row .t { font-size: 16px; font-weight: 600; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t:hover { color: var(--brand); }
.row .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 5px; }
.row .meta b { color: var(--ink-2); font-weight: 600; }
.row .d { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; background: #eef3fb; color: #4a6795; }
.tag.pwd { background: #fff4e6; color: #b26a00; }
.tag.free { background: #eaf7ee; color: #1d7a43; }

/* ---------- 空状态 ---------- */
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin: 24px 0 8px; }
.pager a, .pager span {
  min-width: 38px; height: 36px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 14px; color: var(--ink-2);
}
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager span.dis { color: #c3ccd8; }

/* ---------- 详情 ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card + .card { margin-top: 16px; }
.d-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.d-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.d-meta b { color: var(--ink); font-weight: 600; }
.getbox {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 10px;
  background: linear-gradient(135deg, #eef5ff, #f7fbff); border: 1px solid #d8e6fb;
}
.btn-get {
  flex: none; height: 48px; padding: 0 34px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 600;
}
.btn-get:hover { background: var(--brand-dark); }
.btn-get:disabled { background: #9fbbef; cursor: progress; }
.getbox .hint { color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.sec-h { font-size: 16px; font-weight: 700; margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.prose { color: var(--ink-2); font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.files { margin: 0; padding: 0; list-style: none; }
.files li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.files li:last-child { border-bottom: 0; }
.files li i { color: var(--muted); font-style: normal; font-size: 13px; white-space: nowrap; }
.report { margin-top: 14px; color: var(--muted); font-size: 13px; }
.report a { color: var(--brand); }
.side .card { padding: 18px; }
.side h3 { font-size: 15px; margin: 0 0 12px; }
.side .mini { display: block; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .mini:last-child { border-bottom: 0; }
.side .mini:hover { color: var(--brand); }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(15,26,40,.45); display: none; place-items: center; z-index: 60; padding: 20px; }
.mask.on { display: grid; }
.modal { width: 420px; max-width: 100%; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 20px 60px rgba(15,26,40,.3); }
.modal h4 { margin: 0 0 6px; font-size: 17px; }
.modal p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.linkline { display: flex; gap: 8px; margin-bottom: 10px; }
.linkline input {
  flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 13.5px;
  color: var(--ink-2); background: #f8fafd;
}
.linkline button, .modal .copy { height: 42px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; font-size: 14px; }
.modal .row2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.modal .ttl { color: var(--muted); font-size: 12.5px; }
.modal .close { border: 0; background: #eef2f8; color: var(--ink-2); height: 38px; padding: 0 16px; border-radius: 8px; cursor: pointer; }
.modal .err { color: #d0342c; font-size: 14px; margin: 6px 0 0; }

/* ---------- 页脚 ---------- */
.foot { margin: 40px 0 30px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.9; }
.foot a { color: var(--ink-2); }

/* ---------- 移动端 ---------- */
.mget {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(31,71,133,.08);
}
.mget .btn-get { width: 100%; height: 46px; }
@media (max-width: 900px) {
  .head { position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(31,71,133,.06); }
  .head-in { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 18px; }
  .head-link { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .search input[type=search], .search button { height: 42px; }
  .search button { padding: 0 18px; }
  .wrap { max-width: calc(100% - 24px); }
  .detail { grid-template-columns: 1fr; }
  .side { display: none; }
  .row { padding: 12px; gap: 10px; }
  .row .nd { width: 46px; height: 46px; font-size: 11px; }
  .row .t { font-size: 15px; }
  .d-title { font-size: 19px; }
  .card { padding: 16px; }
  .getbox { display: none; }
  .mget { display: block; }
  body.has-mget { padding-bottom: 72px; }
  .pager a, .pager span { min-width: 34px; height: 34px; padding: 0 10px; font-size: 13px; }
}