/* 皮皮 AI 导航 —— 通用组件 + 深色模式 + 新页面样式
   必须放在 style.css / detail.css 之后引入 */
:root {
  --nav-blue: #4b56c9;
  --nav-soft: #f4f6fc;
}
[hidden] { display: none !important; }
.rank-list[hidden] { display: none !important; }
.side a.all-link { color: var(--nav-blue); font-size: 12px; margin-top: 4px; border-top: 1px dashed var(--line); border-radius: 0; padding-top: 9px; }
.cmt-body p { white-space: pre-wrap; }
.dtags a {
  font-size: 11px; color: var(--ink-2); background: #f4f6fc;
  border: 1px solid #e9edf7; border-radius: 14px; padding: 3px 10px;
}
html[data-theme="dark"] .dtags a { background: #202840; border-color: var(--line); color: var(--ink-2); }
html[data-theme="dark"] .side a.all-link { color: #aab6ff; }
html[data-theme="dark"] .nd-item:hover, html[data-theme="dark"] .ns-item:hover { background: #252d45; }
/* ---------------- 深色模式 ---------------- */
html[data-theme="dark"] {
  --ink: #e8ecf8; --ink-2: #b7c1d8; --muted: #8d97b2;
  --line: #2b3348; --bg: #101522; --card: #1a2133;
  --accent-soft: #3a2129;
  --shadow: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow-hover: 0 10px 26px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .quick-box { background: rgba(26, 33, 51, .92); border-color: var(--line); }
html[data-theme="dark"] .quick-box a { background: #202840; border-color: #2b3348; color: var(--ink-2); }
html[data-theme="dark"] .quick-box a:hover { background: #28324d; }
html[data-theme="dark"] .np-box { background: rgba(26, 33, 51, .92); border-color: var(--line); }
html[data-theme="dark"] .np-card { background: #202840; border-color: #2b3348; }
html[data-theme="dark"] .np-card:hover { background: #28324d; border-color: #3a4566; }
html[data-theme="dark"] .np-hd b { color: var(--ink); }
html[data-theme="dark"] .np-hd span { color: var(--ink-2); }
html[data-theme="dark"] .np-t b { color: var(--ink); }
html[data-theme="dark"] .np-t span { color: #8f9ab5; }
html[data-theme="dark"] .quick-box .qh b,
html[data-theme="dark"] .panel-hd h2, html[data-theme="dark"] .dbox h2,
html[data-theme="dark"] .nfbox h1, html[data-theme="dark"] .footer .fbrand { color: var(--ink); }
html[data-theme="dark"] .notice { background: rgba(26, 33, 51, .95); color: var(--ink-2); }
html[data-theme="dark"] .hero-search { background: #202840; }
html[data-theme="dark"] .hero-search input { color: var(--ink); }
html[data-theme="dark"] .hero-search input::placeholder { color: #7c87a5; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel, html[data-theme="dark"] .side,
html[data-theme="dark"] .dbox, html[data-theme="dark"] .footer,
html[data-theme="dark"] .rank-ad, html[data-theme="dark"] .nfbox,
html[data-theme="dark"] .relcard { background: var(--card); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .card:hover, html[data-theme="dark"] .relcard:hover { border-color: #3c4763; }
html[data-theme="dark"] .card > img, html[data-theme="dark"] .relcard > img,
html[data-theme="dark"] .rank-item > img, html[data-theme="dark"] .hotlist img,
html[data-theme="dark"] .quick-box a img { background: #242c42; }
html[data-theme="dark"] .card .cn, html[data-theme="dark"] .rank-item .rn,
html[data-theme="dark"] .relcard b, html[data-theme="dark"] .infotable td { color: var(--ink); }
html[data-theme="dark"] .side a:hover, html[data-theme="dark"] .side a.act { background: #252d45; color: #aab6ff; }
html[data-theme="dark"] .badge { background: #3a2129; border-color: #5a3038; }
html[data-theme="dark"] .grp-tags span, html[data-theme="dark"] .chip,
html[data-theme="dark"] .dtags span, html[data-theme="dark"] .loadMore,
html[data-theme="dark"] .dsearch input, html[data-theme="dark"] .nfsearch input,
html[data-theme="dark"] .all-search input, html[data-theme="dark"] .sub-input,
html[data-theme="dark"] .all-select { background: #202840; border-color: var(--line); color: var(--ink-2); }
html[data-theme="dark"] .infotable th { background: #1e2537; color: var(--muted); }
html[data-theme="dark"] .infotable th, html[data-theme="dark"] .infotable td { border-color: var(--line); }
html[data-theme="dark"] .dsec .dtip { background: #202840; }
html[data-theme="dark"] .rank-panel { background: linear-gradient(180deg, #33212b, var(--card) 90px); border-color: #4a2b34; }
html[data-theme="dark"] .rank-item:hover, html[data-theme="dark"] .rank-more:hover { background: #2c2330; }
html[data-theme="dark"] .rank-more { background: #3a2129; }
html[data-theme="dark"] .dbtn.ghost { background: #202840; border-color: var(--line); color: var(--ink-2); }
html[data-theme="dark"] .dhead { background: rgba(26, 33, 51, .98); border-color: var(--line); }
html[data-theme="dark"] .dlogo { background: #242c42; }
html[data-theme="dark"] .dbadge { background: #3a2129; border-color: #5a3038; }
html[data-theme="dark"] .toTop { background: #202840; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .nfnum { color: #39435d; }
html[data-theme="dark"] .cbadge.free { background: #173328; border-color: #24513d; }
html[data-theme="dark"] .cbadge.pay { background: #3a2c1c; border-color: #574027; }
html[data-theme="dark"] .all-page, html[data-theme="dark"] .sub-page { background: var(--bg); }
html[data-theme="dark"] .all-card, html[data-theme="dark"] .sub-card,
html[data-theme="dark"] .go-card, html[data-theme="dark"] .all-filter,
html[data-theme="dark"] .all-list-row { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .all-chip { background: #202840; border-color: var(--line); color: var(--ink-2); }
html[data-theme="dark"] .all-chip.act { background: var(--accent-soft); border-color: #5a3038; color: var(--accent); }
html[data-theme="dark"] .all-list-row .lr-cat { background: #252d45; color: #aab6ff; }
html[data-theme="dark"] .all-view button { background: #202840; border-color: var(--line); color: var(--ink-2); }
html[data-theme="dark"] .all-more { background: #202840; border-color: var(--line); color: var(--ink-2); }
html[data-theme="dark"] .nav-suggest, html[data-theme="dark"] .nav-drawer,
html[data-theme="dark"] .nav-ctx, html[data-theme="dark"] .nm-box,
html[data-theme="dark"] .nav-modal { background: var(--card); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .nav-suggest a, html[data-theme="dark"] .nav-drawer a,
html[data-theme="dark"] .nav-ctx a, html[data-theme="dark"] .nav-ctx button { color: var(--ink); }
html[data-theme="dark"] .nav-suggest .ns-item:hover, html[data-theme="dark"] .nav-ctx a:hover,
html[data-theme="dark"] .nav-ctx button:hover { background: #252d45; }
html[data-theme="dark"] .nm-form input { background: #202840; border-color: var(--line); color: var(--ink); }

/* ---------------- 顶栏工具按钮 ---------------- */
.topbar .tools { align-items: center; gap: 4px; }
.topbar .tools .tbtn {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: transparent; color: #e9edff; font-size: 15px; cursor: pointer;
  position: relative; transition: background .2s;
}
.topbar .tools .tbtn:hover { background: rgba(255, 255, 255, .18); }
.topbar .tools .tbtn i {
  position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 8px; background: var(--accent); color: #fff; font-size: 9px; font-style: normal;
  line-height: 15px; text-align: center; display: none;
}
.topbar .tools .tbtn.has i { display: block; }

/* ---------------- Toast / 进度条 ---------------- */
.nav-toast {
  position: fixed; left: 50%; bottom: 42px; transform: translate(-50%, 12px);
  background: rgba(23, 28, 45, .94); color: #fff; padding: 9px 18px; border-radius: 20px;
  font-size: 13px; z-index: 1000; opacity: 0; pointer-events: none; transition: all .22s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
.nav-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nav-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 999;
  background: linear-gradient(90deg, #4b56c9, #ff4d5a); transition: width .1s linear;
}

/* ---------------- 收藏抽屉 ---------------- */
.nav-mask {
  position: fixed; inset: 0; background: rgba(10, 14, 30, .42); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.nav-mask.show { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 92vw; z-index: 201;
  background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(20, 26, 50, .16);
  transform: translateX(100%); transition: transform .24s; display: flex; flex-direction: column;
}
.nav-drawer.show { transform: translateX(0); }
.nd-hd { display: flex; align-items: center; gap: 9px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.nd-hd b { font-size: 15px; }
.nd-num { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.nd-hd button { margin-left: auto; border: 0; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.nd-list { flex: 1; overflow: auto; padding: 10px 12px; }
.nd-empty { font-size: 12.5px; color: var(--muted); line-height: 1.9; padding: 14px 6px; }
.nd-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 9px; border-bottom: 1px dashed var(--line); }
.nd-item:hover { background: var(--nav-soft); }
.nd-item img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #f4f6fc; flex: 0 0 32px; }
.nd-t { min-width: 0; flex: 1; }
.nd-t b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-t small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.nd-x { color: var(--muted); font-size: 16px; padding: 2px 6px; cursor: pointer; }
.nd-x:hover { color: var(--accent); }
.nd-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.nd-ft a { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.nd-ft button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.nd-ft button:hover { color: var(--accent); border-color: #ffd0d5; }

/* ---------------- 搜索联想 ---------------- */
.nav-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 26, 50, .16); padding: 8px; display: none;
  max-height: 380px; overflow: auto; text-align: left;
}
.nav-suggest.show { display: block; }
.hero-search, .all-search, .dsearch, .nfsearch, .sub-search { position: relative; }
.ns-label { font-size: 11px; color: var(--muted); padding: 4px 8px 6px; }
.ns-tip { font-size: 12px; color: var(--muted); padding: 10px 8px; }
.ns-words { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 6px; }
.ns-words span { font-size: 12px; background: var(--nav-soft); border-radius: 12px; padding: 3px 10px; cursor: pointer; color: var(--ink-2); }
.ns-words span:hover { color: var(--accent); }
.ns-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; }
.ns-item:hover, .ns-item.act { background: var(--nav-soft); }
.ns-item img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; background: #f4f6fc; flex: 0 0 30px; }
.ns-item div { min-width: 0; flex: 1; }
.ns-item b { display: block; font-size: 13px; color: var(--ink); }
.ns-item small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-item em { font-style: normal; font-size: 10px; color: var(--muted); flex: 0 0 auto; }

/* ---------------- 右键菜单 ---------------- */
.nav-ctx {
  position: fixed; z-index: 300; width: 190px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20, 26, 50, .2); display: none; font-size: 12.5px;
}
.nav-ctx.show { display: block; }
.nav-ctx a, .nav-ctx button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--ink-2); font-size: 12.5px;
}
.nav-ctx a:hover, .nav-ctx button:hover { background: var(--nav-soft); color: var(--accent); }

/* ---------------- 弹窗（二维码 / 登录） ---------------- */
.nav-modal {
  position: fixed; inset: 0; z-index: 400; background: rgba(10, 14, 30, .5);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.nav-modal.show { display: flex; }
.nm-box {
  width: min(380px, 96vw); max-height: calc(100vh - 40px);
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(10, 14, 30, .3); overflow: hidden;
  display: flex; flex-direction: column;
}
.nm-hd { display: flex; align-items: center; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); flex: none; }
.nm-hd b { font-size: 15px; }
.nm-hd .nm-close {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px; border: 1px solid #ffc9cd; border-radius: 16px;
  background: #ffecee; color: #d32f3c; font-size: 12.5px; font-weight: 600;
  line-height: 1; white-space: nowrap; cursor: pointer;
  box-shadow: 0 2px 8px rgba(211, 47, 60, .14);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.nm-hd .nm-close i { font-style: normal; font-size: 14px; font-weight: 700; }
.nm-hd .nm-close:hover {
  background: #d32f3c; border-color: #d32f3c; color: #fff;
  transform: scale(1.05); box-shadow: 0 4px 12px rgba(211, 47, 60, .3);
}
.nm-hd .nm-close:focus-visible { outline: 3px solid #ffb3b8; outline-offset: 2px; }
.nm-bd { padding: 18px; flex: 1 1 auto; overflow-y: auto; }
html[data-theme="dark"] .nm-hd .nm-close { background: #c8394a; border-color: #e05a68; color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .nm-hd .nm-close:hover { background: #e04555; border-color: #e04555; color: #fff; }
.qr-wrap { text-align: center; }
.qr-wrap #navQr { display: flex; justify-content: center; padding: 10px; background: #fff; border-radius: 10px; margin-bottom: 12px; }
.qr-wrap #navQr img, .qr-wrap #navQr canvas { display: block; margin: 0 auto; }
.qr-wrap p { font-size: 11.5px; color: var(--muted); word-break: break-all; margin: 0 0 14px; }
.nm-btn { border: 1px solid var(--line); background: var(--nav-soft); color: var(--ink-2); border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.nm-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; margin-top: 6px; }
.nm-btn:hover { opacity: .88; }
.nm-tip { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin: 0 0 14px; }
.nm-tip.small { margin: 14px 0 0; font-size: 11.5px; }
.nm-tip a { color: var(--accent); }
.nm-form label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 12px; }
.nm-form input {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; background: #fafbfe; color: var(--ink); outline: none;
}
.nm-form input:focus { border-color: #b9c1f5; }

/* ---------------- 顶栏账号区 ---------------- */
.nav-account { display: inline-flex; align-items: center; gap: 5px; margin-left: 3px; }
.acct-btn {
  height: 28px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 14px; background: rgba(255, 255, 255, .10); color: #eef1ff;
  font-size: 12px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.acct-btn:hover { background: rgba(255, 255, 255, .24); }
.acct-btn.primary { background: #fff; border-color: #fff; color: #3942b4; font-weight: 600; }
.acct-btn.primary:hover { background: #eef0ff; }
.acct-name {
  font-size: 12px; color: #fff; max-width: 96px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- 登录 / 注册 / 找回密码弹窗 ---------------- */
.nm-tabs { display: flex; gap: 4px; background: var(--nav-soft); border-radius: 9px; padding: 3px; margin-bottom: 16px; }
.nm-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  font-size: 12.5px; padding: 7px 0; border-radius: 7px; cursor: pointer;
}
.nm-tabs button.act { background: #fff; color: var(--accent); font-weight: 600; box-shadow: 0 1px 4px rgba(10, 14, 30, .08); }
.nm-code { display: flex; gap: 8px; align-items: flex-end; }
.nm-code .nm-code-input { flex: 1; min-width: 0; margin-bottom: 12px !important; }
.nm-code-btn {
  height: 35px; margin-bottom: 12px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--nav-soft); color: var(--ink-2);
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.nm-code-btn:disabled { opacity: .6; cursor: default; }
.nm-err {
  color: #d0454c; background: #fff1f1; border: 1px solid #ffd6d8; border-radius: 8px;
  padding: 8px 10px; font-size: 12px; margin: 0 0 10px;
}
.nm-links { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.nm-links button { border: 0; background: transparent; color: var(--accent); font-size: 12px; cursor: pointer; padding: 2px 0; }
html[data-theme="dark"] .nm-tabs { background: #202840; }
html[data-theme="dark"] .nm-tabs button.act { background: #2c3654; color: #b9c3ff; }
html[data-theme="dark"] .nm-code-btn { background: #202840; color: var(--ink-2); }
html[data-theme="dark"] .nm-err { background: #3a2129; border-color: #5a3038; color: #ffb3b8; }
@media (max-width: 900px) {
  .nav-account { gap: 3px; margin-left: 0; }
  .acct-btn { padding: 0 8px; font-size: 11px; }
  .acct-name { max-width: 68px; }
}
@media (max-width: 620px) {
  /* 窄屏优先保证登录 / 注册按钮完整可读，收起会被挤压成半个字的导航链接 */
  .topbar .navs { display: none; }
  .topbar .tools { margin-left: auto; }
}
@media (max-width: 420px) {
  .acct-name { display: none; }
  .acct-btn { padding: 0 7px; }
  .nm-hd .nm-close { height: 30px; padding: 0 10px; }
}

/* ---------------- 卡片星标 ---------------- */
.fav-star {
  position: absolute; top: 3px; right: 5px; z-index: 2; font-size: 14px; line-height: 1;
  color: #c3cad9; cursor: pointer; opacity: 0; transition: opacity .18s, color .18s;
}
.card:hover .fav-star, .site-card:hover .fav-star, .fav-star.on { opacity: 1; }
.fav-star.on { color: #f5b301; }
.fav-star:hover { color: var(--accent); }

/* ---------------- 详情页新增组件 ---------------- */
.dtoolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.dtoolbar .dbtn { font-size: 11px; padding: 6px 2px; white-space: nowrap; }
.dtoolbar .dbtn.soft { background: #f4f6fc; color: var(--ink-2); border-color: var(--line); }
.dtoolbar .dbtn.soft:hover { background: #e9edfb; color: var(--accent); border-color: #ffd0d5; }
html[data-theme="dark"] .dtoolbar .dbtn.soft { background: #202840; color: var(--ink-2); border-color: var(--line); }
html[data-theme="dark"] .dtoolbar .dbtn.soft:hover { background: #2a3450; color: var(--accent); }
@media (max-width: 980px) { .dtoolbar { width: 100%; } }
.dprevnext { display: flex; gap: 10px; margin-top: 4px; }
.dprevnext a {
  flex: 1 1 0; min-width: 0; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: #fafbfe; font-size: 12px; color: var(--ink-2);
}
.dprevnext a:hover { border-color: #ffd0d5; color: var(--accent); }
.dprevnext b { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-bottom: 2px; }
.dprevnext span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dprevnext a.next { text-align: right; }
.dtags a { transition: color .2s, border-color .2s; }
.dtags a:hover { color: var(--accent); border-color: #ffd0d5; }
.cmt-list { display: flex; flex-direction: column; gap: 12px; }
.cmt-item { display: flex; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.cmt-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cmt-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #f4f6fc; flex: 0 0 34px; }
.cmt-body { min-width: 0; flex: 1; }
.cmt-body .cmt-meta { display: flex; gap: 10px; align-items: baseline; font-size: 11px; color: var(--muted); }
.cmt-body .cmt-meta b { font-size: 12.5px; color: var(--ink); }
.cmt-body p { margin: 5px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; word-break: break-word; }
.cmt-form textarea {
  width: 100%; min-height: 74px; resize: vertical; padding: 10px 12px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; color: var(--ink); outline: none;
}
.cmt-form textarea:focus { border-color: #b9c1f5; background: #fff; }
.cmt-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.cmt-foot .dbtn { font-size: 12.5px; padding: 7px 18px; }
.cmt-foot small { color: var(--muted); font-size: 11px; }
.cmt-empty { font-size: 12.5px; color: var(--muted); padding: 6px 0 12px; }

/* ---------------- 网址库页 /all/ ---------------- */
.all-page { min-height: 100vh; background: var(--bg); }
.all-hero {
  padding: 18px 20px 26px; background: linear-gradient(180deg, #0b1030, #202a55);
  position: relative; overflow: hidden;
}
.all-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(120, 110, 255, .2), transparent 60%); pointer-events: none; }
.all-hero > * { position: relative; z-index: 2; }
.all-hero .all-hero-in { max-width: 1400px; margin: 0 auto; text-align: center; }
.all-hero h1 { color: #fff; font-size: 27px; margin: 26px 0 6px; letter-spacing: 1px; }
.all-hero p { color: #b9c2e4; font-size: 12.5px; margin: 0 0 18px; }
.all-search {
  width: min(620px, 94%); height: 44px; margin: 0 auto; display: flex;
  background: #fff; border-radius: 10px; overflow: visible;
  box-shadow: 0 12px 30px rgba(5, 10, 40, .3);
}
.all-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; background: transparent; color: var(--ink); border-radius: 10px 0 0 10px; }
.all-search button { width: 56px; border: 0; border-radius: 0 10px 10px 0; background: var(--accent); color: #fff; font-size: 17px; cursor: pointer; }
.all-wrap { max-width: 1400px; margin: 0 auto; padding: 20px 20px 44px; }
.all-filter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.all-frow { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.all-frow + .all-frow { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; }
.all-frow > b { flex: 0 0 56px; font-size: 12px; color: var(--muted); font-weight: 500; padding-top: 5px; }
.all-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.all-chip {
  font-size: 12px; color: var(--ink-2); background: var(--nav-soft); border: 1px solid transparent;
  border-radius: 16px; padding: 4px 11px; cursor: pointer; white-space: nowrap; transition: all .18s;
}
.all-chip:hover { color: var(--accent); }
.all-chip.act { background: var(--accent-soft); color: var(--accent); border-color: #ffd0d5; font-weight: 600; }
.all-select {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px;
  background: #fafbfe; color: var(--ink-2); outline: none;
}
.all-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.all-bar { display: flex; align-items: center; gap: 12px; margin: 16px 2px 12px; flex-wrap: wrap; }
.all-bar h2 { margin: 0; font-size: 16px; }
.all-bar .cnt { font-size: 12px; color: var(--muted); }
.all-bar .spacer { flex: 1; }
.all-view { display: flex; gap: 4px; }
.all-view button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 7px; padding: 5px 9px; cursor: pointer; font-size: 12px; }
.all-view button.act { color: var(--accent); border-color: #ffd0d5; background: var(--accent-soft); }
.all-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.site-card {
  position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #dfe4f5; }
.site-card img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; object-fit: contain; background: #f7f9fd; }
.site-card .sc-t { min-width: 0; }
.site-card .sc-t b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-card .sc-t small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.site-card .sc-free { position: absolute; right: 7px; bottom: 7px; font-size: 9px; padding: 2px 5px; border-radius: 4px; background: #edf9f2; color: #1e9e63; border: 1px solid #d6efe2; }
.site-card .sc-free.pay { background: #fff7ed; color: #d97d20; border-color: #ffe3c2; }
.all-list { display: flex; flex-direction: column; gap: 8px; }
.all-list-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.all-list-row:hover { border-color: #dfe4f5; }
.all-list-row img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #f7f9fd; flex: 0 0 36px; }
.all-list-row .lr-main { min-width: 0; flex: 1; }
.all-list-row .lr-main b { font-size: 13.5px; }
.all-list-row .lr-main p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.all-list-row .lr-cat { font-size: 11px; color: var(--nav-blue); background: #eef1ff; border-radius: 12px; padding: 3px 9px; white-space: nowrap; }
.all-list-row .lr-price { font-size: 11px; color: var(--muted); max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.all-list-row .lr-go { font-size: 12px; color: var(--accent); font-weight: 600; }
.all-more { display: block; margin: 20px auto 0; padding: 9px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink-2); font-size: 13px; cursor: pointer; }
.all-more:hover { color: var(--accent); border-color: #ffd0d5; }
.all-empty { text-align: center; padding: 46px 20px; color: var(--muted); font-size: 13px; }
.all-empty b { display: block; font-size: 32px; color: #d7dcec; margin-bottom: 8px; }
.all-tips { margin-top: 22px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.9; }
.all-tips kbd { background: var(--nav-soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 11px; }

/* ---------------- 投稿页 /submit ---------------- */
.sub-page { min-height: 100vh; background: var(--bg); }
.sub-hero { padding: 12px 20px 60px; background: linear-gradient(180deg, #0b1030, #232b55); }
.sub-card {
  max-width: 660px; margin: -38px auto 50px; position: relative; z-index: 3;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 44px rgba(20, 26, 50, .14); padding: 28px 30px 30px;
}
.sub-card h1 { margin: 0 0 6px; font-size: 22px; }
.sub-card .sub-lead { margin: 0 0 22px; font-size: 12.5px; color: var(--muted); }
.sub-form label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 16px; font-weight: 600; }
.sub-form label span { color: var(--accent); }
.sub-input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; color: var(--ink); outline: none;
}
.sub-input:focus { border-color: #b9c1f5; background: #fff; }
.sub-code { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.sub-code .sub-input { flex: 1; margin: 0; }
.sub-code img { width: 190px; height: 60px; border: 1px solid var(--line); border-radius: 8px; object-fit: fill; cursor: pointer; background: #fff; flex: 0 0 190px; }
.sub-submit { width: 100%; border: 0; background: var(--accent); color: #fff; border-radius: 9px; padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sub-submit:disabled { opacity: .6; cursor: wait; }
.sub-ok { text-align: center; padding: 18px 0; }
.sub-ok b { display: block; font-size: 40px; color: #1e9e63; }
.sub-ok h2 { margin: 8px 0 6px; font-size: 19px; }
.sub-ok p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.sub-rules { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sub-rules h3 { margin: 0 0 8px; font-size: 13px; }
.sub-rules ul { margin: 0; padding-left: 20px; font-size: 12px; color: var(--muted); line-height: 2; }
.sub-links { display: flex; justify-content: center; gap: 14px; margin-top: 16px; font-size: 12px; }
.sub-links a { color: var(--nav-blue); }

/* ---------------- 跳转中间页 /go_out ---------------- */
.go-page { min-height: 100vh; background: var(--bg); }
.go-hero { padding: 12px 20px 76px; background: linear-gradient(180deg, #0b1030, #232b55); }
.go-card {
  max-width: 620px; margin: -48px auto 60px; position: relative; z-index: 3; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 44px rgba(20, 26, 50, .16); padding: 32px 30px 28px;
}
.go-card .go-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: contain; background: #f5f7fc; border: 1px solid var(--line); padding: 7px; margin: 0 auto 14px; }
.go-card h1 { margin: 0 0 6px; font-size: 21px; }
.go-card .go-url { font-size: 12px; color: var(--muted); word-break: break-all; margin: 0 0 16px; }
.go-card .go-hint { font-size: 13px; color: var(--ink-2); background: var(--nav-soft); border-radius: 9px; padding: 10px 12px; margin-bottom: 18px; }
.go-card .go-hint b { color: var(--accent); font-size: 16px; }
.go-acts { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.go-acts .dbtn { font-size: 13px; padding: 9px 16px; }
.go-acts .dbtn.ghost { border-color: var(--line); background: var(--card); }
.go-qr { display: flex; justify-content: center; margin: 20px 0 4px; }
.go-qr #goQr { padding: 10px; background: #fff; border-radius: 10px; }
.go-note { font-size: 11.5px; color: var(--muted); margin: 18px 0 0; line-height: 1.8; }
.go-links { display: flex; justify-content: center; gap: 16px; margin-top: 14px; font-size: 12px; }
.go-links a { color: var(--nav-blue); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1240px) { .all-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .topbar .slogan { display: none; }
  .all-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .all-list-row .lr-price { display: none; }
}
@media (max-width: 620px) {
  .all-hero h1 { font-size: 21px; }
  .all-wrap { padding: 14px 12px 32px; }
  .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .all-frow > b { flex-basis: 100%; padding-top: 0; }
  .all-list-row .lr-cat { display: none; }
  .sub-card, .go-card { margin-left: 12px; margin-right: 12px; padding: 22px 18px 24px; }
  .sub-code img { width: 150px; height: 47px; flex-basis: 150px; }
  .nav-drawer { width: 300px; }
  .fav-star { opacity: 1; }
}
