:root {
  --bg: #0b0d12;
  --bg-soft: #10131b;
  --card: #151923;
  --card-hover: #1b202c;
  --border: #252b3a;
  --border-soft: #1e2331;
  --text: #e9ebf2;
  --muted: #8a92a6;
  --muted-2: #6b7386;
  --accent: #4f8cff;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(79, 140, 255, 0.13);
  --danger: #ff5c72;
  --success: #2ecc8f;
  --warn: #ffb020;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --topbar-bg: rgba(11, 13, 18, 0.82);
  --catbar-bg: rgba(11, 13, 18, 0.9);
  --overlay: rgba(5, 7, 12, 0.72);
  --accent-line: rgba(79, 140, 255, 0.3);
  --accent-text: #9dc0ff;
  --qr-bg: #ffffff;
  --brand-title: #5b8cff;
  --brand-sub: #7ea6f7;
  --contact-btn-bg: #e9ebfb;
  --contact-btn-fg: #6366f1;
  --toast-ok-bg: #10b981;
  --toast-ok-line: rgba(16, 185, 129, .5);
  --toast-ok-fg: #ffffff;
  color-scheme: dark;
}

/* 浅色主题 */
html[data-theme='light'] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-hover: #f2f4f9;
  --border: #dfe3ec;
  --border-soft: #e9ecf3;
  --text: #1c2030;
  --muted: #5c6478;
  --muted-2: #8a92a6;
  --accent: #2f6fe4;
  --accent-2: #7048d8;
  --accent-soft: rgba(47, 111, 228, 0.1);
  --danger: #d92d4b;
  --success: #17936a;
  --warn: #b3730b;
  --shadow: 0 12px 34px rgba(28, 32, 48, 0.1);
  --shadow-sm: 0 4px 14px rgba(28, 32, 48, 0.08);
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --catbar-bg: rgba(255, 255, 255, 0.92);
  --overlay: rgba(28, 32, 48, 0.42);
  --accent-line: rgba(47, 111, 228, 0.28);
  --accent-text: #2f6fe4;
  --qr-bg: #ffffff;
  --brand-title: #2f61d8;
  --brand-sub: #6b8fd6;
  --contact-btn-bg: #eef0fd;
  --contact-btn-fg: #4f52d8;
  --toast-ok-bg: #10b981;
  --toast-ok-line: rgba(16, 185, 129, .5);
  --toast-ok-fg: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; }

/* 品牌 Logo：蓝色渐变圆角方块 + 白色斜体 Z */
.brand-logo {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5181eb 0%, #2f61d8 55%, #194cc0 100%);
  box-shadow: 0 4px 14px rgba(46, 92, 200, 0.34);
  line-height: 0;
}
.brand-logo svg { display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brand-title);
}
.brand-text em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--brand-sub);
}

.topnav { display: flex; align-items: center; gap: 8px; }
.topnav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: .18s;
}
.topnav a:hover { color: var(--text); background: var(--card); }

/* 顶部「反馈/问题」按钮 */
.feedback-btn {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: .18s;
}
.feedback-btn:hover {
  color: var(--text);
  background: var(--card);
}

/* 主题切换按钮 */
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  transition: .18s;
  padding: 0;
}
.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.theme-btn .icon-sun { display: none; }
.theme-btn .icon-moon { display: block; }
html[data-theme='light'] .theme-btn .icon-sun { display: block; }
html[data-theme='light'] .theme-btn .icon-moon { display: none; }

/* ---------- layout ---------- */
.view { flex: 1; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 56px;
  padding: 30px 0 34px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
/* 页脚上行：关于本站 / 版权说明 / 隐私政策 */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  transition: color .18s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copyright {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
}
.footer-feedback {
  color: var(--muted-2);
  font-size: 13.5px;
}
.footer-feedback a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.footer-feedback a:hover { text-decoration: underline; }

/* ---------- 站点说明页 ---------- */
.policy { max-width: 760px; margin: 0 auto; padding-bottom: 20px; }
.policy-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.policy-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: -.5px;
}
.policy-lead {
  margin: 0 0 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.policy-body { display: flex; flex-direction: column; gap: 30px; }
.policy-sec h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.policy-sec h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: -1px;
}
.policy-sec p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.policy-sec p:last-child { margin-bottom: 0; }

.policy-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.policy-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}
.policy-nav a { color: var(--muted); text-decoration: none; }
.policy-nav a:hover { color: var(--accent); }
.policy-nav .dot { opacity: .45; }

/* ---------- 联系客服弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--overlay);
  backdrop-filter: blur(3px);
  animation: modal-fade .18s ease;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.contact-modal {
  position: relative;
  width: 100%;
  max-width: 402px;
  padding: 26px 30px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  animation: modal-pop .2s ease;
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .18s;
}
.contact-close:hover { background: var(--card-hover); color: var(--text); }
.contact-title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.contact-desc {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.85;
}
.contact-btn {
  display: inline-block;
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--contact-btn-bg);
  color: var(--contact-btn-fg);
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: .18s;
}
.contact-btn:hover { filter: brightness(.97); }

/* ---------- hero ---------- */
.hero { padding: 54px 0 30px; text-align: center; }

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(26px, 4.4vw, 40px);
  letter-spacing: -.5px;
  font-weight: 700;
}

/* 首屏三行文案：标题 → 说明 → 链接
   参考图节奏：三行内部行距一致（16px），整体与大标题有明显分隔 */
.hero .brand-sub {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}
.hero .sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero .sub-link {
  margin: 0 0 30px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}
.hero .sub-link:hover { text-decoration: underline; }

.searchbar {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  transition: border-color .18s;
}
.searchbar:focus-within { border-color: var(--accent); }

.searchbar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 10px 12px;
  font-size: 15px;
}
.searchbar input::placeholder { color: var(--muted-2); }

.searchbar select {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  outline: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  max-width: 140px;
}
.searchbar select:focus { border-color: var(--accent); }

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  background: var(--card-hover);
  color: var(--text);
  transition: .18s;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover { background: var(--card-hover); filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 140, 255, .3);
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: rgba(255, 92, 114, .12); }
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card-hover); }

.hot {
  margin: 20px auto 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 720px;
}
.hot-label { color: var(--muted-2); font-size: 13px; align-self: center; }
.chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: .16s;
}
.chip:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- category bar ---------- */
.catbar {
  position: sticky;
  top: 62px;
  z-index: 40;
  background: var(--catbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.catbar-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: .16s;
}
.catbar a:hover { color: var(--text); background: var(--card); }
.catbar a.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

/* ---------- result list ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 16px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.section-head .meta { color: var(--muted-2); font-size: 13px; }

.list { display: flex; flex-direction: column; gap: 12px; }

.item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: .18s;
}
.item:hover { border-color: var(--border); background: var(--card-hover); transform: translateY(-1px); }

/* 竖版海报封面 2:3，对齐参考图 */
.item-cover {
  width: 86px;
  height: 129px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79,140,255,.16), rgba(139,92,246,.16));
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 26px;
}
.item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-cover-empty {
  font-size: 26px;
  opacity: .55;
  background: linear-gradient(135deg, rgba(79,140,255,.10), rgba(139,92,246,.10));
}

.item-body { flex: 1; min-width: 0; }
.item-title {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}
.item-desc {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--muted);
}
.tag-cat { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.item-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.item-stat { color: var(--muted-2); font-size: 12.5px; text-align: right; white-space: nowrap; }

/* 条目右侧操作区 */
.item-ops {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.item-ops-row {
  display: flex;
  gap: 6px;
}
.item-ops-row .btn {
  font-size: 12px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* 二维码弹层 */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.qr-box {
  width: min(300px, 88vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.qr-box h3 { margin: 0 0 4px; font-size: 15px; }
.qr-box .qr-desc { color: var(--muted-2); font-size: 12.5px; margin: 0 0 16px; }
.qr-box img {
  width: 200px;
  height: 200px;
  background: var(--qr-bg);
  border-radius: 10px;
  padding: 8px;
  display: block;
  margin: 0 auto 16px;
}
.qr-box .qr-url {
  font-size: 11.5px;
  color: var(--muted-2);
  word-break: break-all;
  max-height: 60px;
  overflow: hidden;
  margin: 0 0 14px;
}
.qr-close {
  background: var(--card-hover);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  cursor: pointer;
  color: var(--text);
  width: 100%;
}
.qr-close:hover { background: var(--card-hover); }

/* 复制成功提示 */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--card-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: toast-in .2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 成功提示：顶部居中，绿色带勾 */
.copy-toast-ok {
  top: 26px;
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--toast-ok-bg);
  border-color: var(--toast-ok-line);
  color: var(--toast-ok-fg);
  font-weight: 600;
}
.toast-ico {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
@keyframes toast-in-top {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.copy-toast-ok { animation: toast-in-top .2s ease; }

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 30px 0 10px;
}
.pager button { min-width: 36px; }

/* ---------- 搜索联想 ---------- */
.searchbar { position: relative; }

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
}
.sg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background .12s;
}
.sg-item:hover, .sg-item.active { background: var(--accent-soft); }
.sg-icon { font-size: 13px; opacity: .8; flex: none; }
.sg-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-hint {
  font-size: 12px;
  color: var(--muted-2);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 1px 8px;
  border-radius: 6px;
  flex: none;
}
.sg-del {
  background: none;
  border: 0;
  color: var(--muted-2);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  flex: none;
}
.sg-del:hover { color: var(--danger); background: rgba(255, 92, 114, .12); }

/* ---------- 标签筛选栏 ---------- */
#tagSection { padding: 18px 0 0; }
.tagbar-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.tagbar-label {
  font-size: 13px;
  color: var(--muted-2);
  padding-top: 5px;
  flex: none;
}
.tagbar-items {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  flex: 1;
}
.tag-chip {
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  color: var(--muted);
  cursor: pointer;
  transition: .15s;
  user-select: none;
}
.tag-chip:hover { color: var(--text); border-color: var(--border); }
.tag-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  font-weight: 500;
}
.tag-clear {
  background: none;
  border: 0;
  color: var(--muted-2);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  flex: none;
}
.tag-clear:hover { color: var(--danger); }

.btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- 推荐标识 ---------- */
.item-featured {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #ffb020;
  background: rgba(255, 176, 32, .13);
  border: 1px solid rgba(255, 176, 32, .3);
  padding: 1px 7px;
  border-radius: 5px;
  vertical-align: middle;
}

/* ---------- 详情页 ---------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
  padding: 24px 0 16px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .dot { opacity: .5; }

.detail {
  display: flex;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.detail-cover {
  width: 190px;
  height: 285px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79,140,255,.16), rgba(139,92,246,.16));
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 40px;
}
.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-main { flex: 1; min-width: 0; }
.detail-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
}
.detail-featured {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #ffb020;
  background: rgba(255, 176, 32, .13);
  border: 1px solid rgba(255, 176, 32, .3);
  padding: 2px 9px;
  border-radius: 6px;
  vertical-align: middle;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
}
.detail-pan {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.detail-time { color: var(--muted-2); }
.detail-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.detail-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-tags .tag { text-decoration: none; }
.detail-tags .tag:hover { border-color: var(--accent); color: var(--accent); }
/* 资源信息栏：替代提取码位置，展示适用平台 / 格式 / 大小 / 更新时间 */
.detail-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.detail-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  min-width: 0;
}
.di-icon { font-size: 14px; flex: none; }
.di-label { color: var(--muted-2); flex: none; }
.di-value {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 资源备注 */
.detail-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
}
.dn-icon { flex: none; }

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.detail-related { margin-top: 30px; }
.detail-related h2 { font-size: 17px; margin: 0 0 14px; }
.rel-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.rel-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: .16s;
}
.rel-item:hover { border-color: var(--border); background: var(--card-hover); }
.rel-ico {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 17px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}
.rel-body { min-width: 0; }
.rel-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rel-desc {
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 760px) {
  .detail { flex-direction: column; padding: 20px; gap: 20px; }
  .detail-cover { width: 150px; height: 225px; margin: 0 auto; }
  .detail-title { font-size: 20px; text-align: center; }
  .detail-meta, .detail-tags { justify-content: center; }
  .detail-desc { font-size: 14px; }
  .detail-actions { justify-content: center; }
  .detail-actions .btn { flex: 1; min-width: 120px; }
}
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.empty .ico { font-size: 40px; margin-bottom: 14px; opacity: .55; }
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; }
.empty p { margin: 0; font-size: 14px; }

.skeleton {
  height: 92px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: sk 1.3s infinite;
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- go interstitial ---------- */
.go-wrap {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.go-card {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.go-ring {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.go-card h2 { margin: 0 0 8px; font-size: 19px; }
.go-card p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.go-cover-img {
  width: 150px;
  height: 225px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  margin: 0 auto 18px;
  display: block;
}
.go-dest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--accent);
  font-size: 13.5px;
  word-break: break-all;
}
.go-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- admin ---------- */
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 30px 0 18px;
}
.admin-head h1 { margin: 0; font-size: 22px; }
.admin-head .who { color: var(--muted); font-size: 13.5px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-soft); margin-bottom: 22px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 16px; cursor: pointer; color: var(--muted); font-size: 14.5px;
  white-space: nowrap; transition: .16s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

.panel {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.panel h3 { margin: 0 0 4px; font-size: 16px; }
.panel .hint { color: var(--muted-2); font-size: 13px; margin: 0 0 18px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat .k { color: var(--muted-2); font-size: 12.5px; margin-bottom: 6px; }
.stat .v { font-size: 25px; font-weight: 700; letter-spacing: -.5px; }
.stat .v.accent { color: var(--accent); }
.stat .v.green { color: var(--success); }
.stat .v.warn { color: var(--warn); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  outline: none;
  transition: border-color .16s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field small { color: var(--muted-2); font-size: 12px; display: block; margin-top: 5px; }

.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  user-select: none;
}
.check-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
}

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 10px 12px;
  color: var(--muted-2); font-weight: 500; font-size: 12.5px;
  border-bottom: 1px solid var(--border-soft); white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .t-title { font-weight: 500; }
.table .t-sub { color: var(--muted-2); font-size: 12.5px; margin-top: 2px; word-break: break-all; }
.table .ops { display: flex; gap: 6px; white-space: nowrap; }

/* 后台列表封面缩略图 */
.row-thumb {
  width: 40px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79,140,255,.16), rgba(139,92,246,.16));
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-thumb-empty { opacity: .5; }

/* 封面上传 */
.cover-upload { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cover-preview {
  width: 96px;
  height: 144px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  display: grid;
  place-items: center;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-empty { color: var(--muted-2); font-size: 12px; }
.cover-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cover-hint { color: var(--muted-2); font-size: 12.5px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.badge-on { background: rgba(46,204,143,.13); color: var(--success); }
.badge-off { background: rgba(138,146,166,.15); color: var(--muted); }

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid;
}
.notice-err { background: rgba(255,92,114,.09); border-color: rgba(255,92,114,.3); color: #ff9aa8; }
.notice-ok { background: rgba(46,204,143,.09); border-color: rgba(46,204,143,.3); color: #7ee0b5; }
.notice-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }

/* ---------- login ---------- */
.login-wrap { min-height: 66vh; display: grid; place-items: center; padding: 40px 0; }
.login-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.login-card h2 { margin: 0 0 6px; font-size: 19px; }
.login-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.login-card .btn { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12.5px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

.otp-row { display: flex; gap: 8px; }
.otp-row input { flex: 1; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 34px 0 22px; }
  .searchbar { flex-wrap: wrap; }
  .searchbar input { width: 100%; flex-basis: 100%; order: 1; }
  .searchbar select { order: 2; flex: 1; max-width: none; }
  .searchbar .btn { order: 3; }
  .item { flex-direction: column; gap: 12px; }
  .item-side { flex-direction: row; align-items: center; width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
}
