* { box-sizing: border-box; }
:root {
  --bg-dark: #07111f;
  --bg-mid: #0f1f39;
  --surface: rgba(255,255,255,0.96);
  --surface-soft: rgba(255,255,255,0.78);
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #8b5cf6;
  --warning: #f59e0b;
  --danger: #dc2626;
  --success: #059669;
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.18);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.06);
  --page-bg: radial-gradient(circle at top left, rgba(37,99,235,0.34), transparent 28%), radial-gradient(circle at top right, rgba(139,92,246,0.18), transparent 22%), linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 26%, #eef4ff 26%, #f8fbff 100%);
}
:root[data-theme="dark"] {
  --surface: rgba(10,18,32,0.94);
  --surface-soft: rgba(15,23,42,0.86);
  --text: #e5eefc;
  --muted: #94a3b8;
  --line: rgba(148,163,184,0.22);
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --warning: #fbbf24;
  --shadow-lg: 0 24px 64px rgba(2,6,23,0.45);
  --shadow-md: 0 12px 34px rgba(2,6,23,0.34);
  --shadow-sm: 0 8px 20px rgba(2,6,23,0.24);
  --page-bg: radial-gradient(circle at top left, rgba(59,130,246,0.22), transparent 28%), radial-gradient(circle at top right, rgba(139,92,246,0.18), transparent 22%), linear-gradient(180deg, #020617 0%, #0f172a 30%, #0b1220 100%);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: var(--page-bg);
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.is-hidden { display: none !important; }
.site-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner,
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.topbar-inner {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(96, 165, 250, 0.24);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong { font-size: 16px; }
.brand-text small { font-size: 12px; color: rgba(255,255,255,0.72); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-links a,
.theme-toggle {
  color: rgba(255,255,255,0.86);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-links a:hover,
.theme-toggle:hover { background: rgba(255,255,255,0.10); color: #fff; }
.theme-toggle {
  min-height: 42px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}
.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 16px 2px;
}
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 30px;
  padding: 34px 28px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.94), rgba(59,130,246,0.78) 42%, rgba(139,92,246,0.74));
  box-shadow: 0 20px 60px rgba(3, 7, 18, 0.26);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
}
.hero::before { width: 260px; height: 260px; top: -90px; right: -70px; }
.hero::after { width: 180px; height: 180px; left: -40px; bottom: -70px; }
.hero > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 24px;
  align-items: center;
}
.hero-badge, .modal-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  font-size: 13px;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: .02em;
}
.subtitle {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-link-primary {
  color: #0f172a;
  background: #fff;
  border-color: transparent;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-tags span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.12);
  font-size: 13px;
}
.hero-side-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
}
.hero-side-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.hero-side-card ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,0.9); line-height: 1.9; }
.panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  padding: 22px;
  margin-bottom: 18px;
}
.panel-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.strip-label {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
}
.strip-track-wrap {
  overflow: hidden;
  min-width: 0;
}
.strip-track {
  display: inline-block;
  white-space: nowrap;
  color: #475569;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.notice-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,251,235,0.96));
  border-left: 5px solid var(--warning);
}
.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-title-row h2,
.search-intro h2 {
  margin: 0;
  font-size: 22px;
}
.panel-subtext {
  color: var(--muted);
  font-size: 13px;
}
.notice-content {
  color: #334155;
  line-height: 1.9;
  white-space: pre-wrap;
  font-size: 15px;
}
.search-panel {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.98));
}
.search-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.search-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.search-intro-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  font-weight: 700;
}
.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.search-box input,
.captcha-row input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid #d5dbea;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.search-box input:focus,
.captcha-row input:focus {
  border-color: rgba(37,99,235,0.75);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
button {
  height: 54px;
  border: none;
  border-radius: 16px;
  padding: 0 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(37,99,235,0.22);
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
button:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ghost-btn {
  background: #eef2ff;
  color: #1f2937;
  box-shadow: none;
}
.helper-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.helper-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.hot-keywords-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8eef8;
}
.hot-title {
  font-weight: 800;
  line-height: 36px;
  color: #c2400c;
}
.hot-keywords {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hot-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid #dbe3f4;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0 12px 0 8px;
  cursor: pointer;
  box-shadow: none;
  height: auto;
}
.hot-tag:hover {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}
.hot-rank {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}
.hot-tag em {
  margin-left: 6px;
  color: #64748b;
  font-style: normal;
}
.feature-panel { padding: 18px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #ebf0f8;
  box-shadow: var(--shadow-sm);
}
.feature-card strong { font-size: 16px; }
.feature-card span { color: var(--muted); line-height: 1.8; font-size: 14px; }
.result-panel.is-empty #results { display: none; }
.status-message {
  color: var(--muted);
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #dbe3f4;
  line-height: 1.7;
}
#results {
  display: grid;
  gap: 16px;
}
.result-card {
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.result-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.result-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.result-meta,
.result-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.result-note { margin-top: 4px; }
.resource-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  font-weight: 700;
}
.item-list { display: grid; gap: 12px; }
.item-card {
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 14px;
}
.item-top { margin-bottom: 10px; }
.item-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
}
.item-title {
  font-weight: 700;
  margin-bottom: 12px;
  word-break: break-all;
  line-height: 1.75;
  color: #0f172a;
}
.link-group { display: flex; gap: 8px; flex-wrap: wrap; }
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}
.link-baidu { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.link-xunlei { background: linear-gradient(135deg, #0f172a, #334155); }
.link-quark { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.link-alipan { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.link-empty { color: #94a3b8; font-size: 14px; }
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(5px);
}
.modal-dialog {
  position: relative;
  width: min(92vw, 560px);
  margin: max(6vh, 32px) auto 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  box-shadow: none;
  padding: 0;
}
.modal-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.modal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.modal-keyword-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.modal-keyword-row span {
  color: var(--muted);
  font-size: 14px;
}
.modal-keyword-row strong {
  color: #0f172a;
  word-break: break-all;
}
.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px auto;
  gap: 10px;
  align-items: center;
}
#captcha-image {
  width: 128px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid #dbe3f4;
  background: #f8fafc;
  cursor: pointer;
  object-fit: cover;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.site-footer {
  margin-top: 2px;
  padding: 2px 0 36px;
  background: transparent;
}
.footer-inner {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: flex-start;
  color: #475569;
}
.footer-brand strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 18px; }
.footer-brand p { margin: 0; line-height: 1.8; color: var(--muted); font-size: 12px;}
.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid #e2e8f0;
}
@media (max-width: 960px) {
  .hero-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .topbar-inner,
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .back-to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }

  .page { padding: 14px 12px 46px; }
  .topbar-inner { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .brand-text small { display: none; }
  .hero { padding: 24px 18px; border-radius: 24px; }
  .panel { border-radius: 20px; margin-bottom: 14px; }
  .panel-strip,
  .panel-title-row,
  .search-intro,
  .result-header,
  .modal-keyword-row,
  .hot-keywords-row,
  .footer-inner {
    display: block;
  }
  .strip-label,
  .search-intro-badge,
  .panel-subtext,
  .search-intro p,
  .hot-title { margin-bottom: 10px; display: inline-flex; }
  .search-box,
  .captcha-row { grid-template-columns: 1fr; }
  .search-box button,
  .link-btn,
  .ghost-btn,
  .modal-actions button { width: 100%; }
  .hero-actions,
  .modal-actions { flex-direction: column; }
  .modal-dialog {
    width: calc(100vw - 24px);
    margin-top: 24px;
    padding: 20px 16px;
    border-radius: 22px;
  }
  #captcha-image { width: 100%; }
  .result-name { font-size: 19px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .subtitle { font-size: 14px; }
  .panel-title-row h2,
  .search-intro h2 { font-size: 20px; }
  .search-box input,
  .captcha-row input,
  button { height: 48px; }
  .link-btn { min-height: 38px; }
}

:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .search-panel,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .item-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .modal-dialog,
:root[data-theme="dark"] .footer-brand-card,
:root[data-theme="dark"] .footer-links a,
:root[data-theme="dark"] .theme-toggle-footer,
:root[data-theme="dark"] .status-message,
:root[data-theme="dark"] .modal-keyword-row,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .captcha-row input,
:root[data-theme="dark"] #captcha-image,
:root[data-theme="dark"] .hot-tag,
:root[data-theme="dark"] .helper-pill {
  background-color: rgba(15,23,42,0.92);
  color: var(--text);
  border-color: var(--line);
}
:root[data-theme="dark"] .notice-panel { background: linear-gradient(180deg, rgba(30,41,59,0.98), rgba(24,24,27,0.98)); }
:root[data-theme="dark"] .item-card { background: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(2,6,23,0.92)); }
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .search-panel { background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(2,6,23,0.96)); }
:root[data-theme="dark"] .strip-label { background: rgba(251,191,36,0.14); color: #fbbf24; }
:root[data-theme="dark"] .resource-stamp,
:root[data-theme="dark"] .search-intro-badge,
:root[data-theme="dark"] .hot-rank { background: rgba(96,165,250,0.14); color: #93c5fd; border-color: rgba(96,165,250,0.24); }
.footer-brand-card {
  max-width: 1160px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,248,255,0.96));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow-md);
}
.footer-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-links { align-items: center; }
.theme-toggle-footer {
  background: rgba(255,255,255,0.8);
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  min-height: 38px;
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  padding: 0;
  font-size: 22px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 14px 30px rgba(37,99,235,0.26);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}


.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: none;
}
.floating-actions .floating-theme-btn {
  pointer-events: auto;
}
.floating-btn {
  width: 54px;
  height: 54px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
  transition: opacity .22s ease, transform .22s ease;
}
.floating-theme-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}
.back-to-top {
  position: static;
  right: auto;
  bottom: auto;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.floating-actions.is-scrolled .back-to-top {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 720px) {
  .floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
    font-size: 18px;
  }
}


/* 2026-04 minimal redesign overrides */
:root {
  --status-bg: #f8fafc;
  --status-border: #dbe3f4;
  --status-error-bg: #fff1f2;
  --status-error-border: #fecdd3;
}
:root[data-theme="dark"] {
  --status-bg: rgba(15,23,42,0.92);
  --status-border: rgba(71,85,105,0.9);
  --status-error-bg: rgba(127,29,29,0.24);
  --status-error-border: rgba(248,113,113,0.35);
}
body {
  background: #f3f4f6;
}
:root[data-theme="dark"] body {
  background: #050816;
}
.topbar { display:none !important; }
.minimal-page {
  max-width: 980px;
  min-height: calc(100vh - 150px);
  padding-top: 42px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-minimal {
  background: transparent;
  box-shadow: none;
  color: var(--text);
  padding: 0;
  margin-bottom: 20px;
}
.hero-minimal::before,
.hero-minimal::after { display:none; }
.hero-center {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 10px;
}
.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 36px;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(135deg,#7dd3fc 0%,#60a5fa 50%,#f472b6 100%);
  box-shadow: 0 10px 24px rgba(96,165,250,.22);
}
:root[data-theme="dark"] .hero-logo {
  color: #020617;
  box-shadow: 0 12px 28px rgba(2,6,23,.45);
}
.hero-center h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.minimal-subtitle {
  max-width: 760px;
  color: var(--muted);
  margin: 0;
}
.minimal-notice,
.minimal-search-panel {
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.minimal-notice {
  padding: 14px 18px;
  border-radius: 18px;
}
.minimal-search-panel {
  padding: 18px;
  border-radius: 24px;
}
.panel {
  border: 1px solid rgba(226,232,240,.9);
}
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .item-card,
:root[data-theme="dark"] .footer-brand-card,
:root[data-theme="dark"] .status-message,
:root[data-theme="dark"] .modal-dialog,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .captcha-row input,
:root[data-theme="dark"] #captcha-image,
:root[data-theme="dark"] .hot-tag {
  background-image: none !important;
  box-shadow: none;
}
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .search-panel,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .item-card,
:root[data-theme="dark"] .footer-brand-card,
:root[data-theme="dark"] .modal-dialog {
  background: #0b1220 !important;
  border-color: rgba(51,65,85,.95) !important;
}
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .item-card {
  box-shadow: 0 12px 28px rgba(2,6,23,.36);
}
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .captcha-row input {
  background: #111827 !important;
  color: #e5eefc;
}
:root[data-theme="dark"] .strip-track,
:root[data-theme="dark"] .footer-brand p,
:root[data-theme="dark"] .result-meta,
:root[data-theme="dark"] .result-note,
:root[data-theme="dark"] .panel-subtext,
:root[data-theme="dark"] .minimal-subtitle,
:root[data-theme="dark"] .status-message {
  color: #94a3b8 !important;
}
:root[data-theme="dark"] .item-title,
:root[data-theme="dark"] .result-name,
:root[data-theme="dark"] .hero-center h1,
:root[data-theme="dark"] .hot-title { color: #e5eefc; }
.minimal-search-box {
  gap: 10px;
}
.minimal-search-box input {
  border-radius: 999px;
  height: 58px;
  padding: 0 20px;
  font-size: 17px;
}
.minimal-search-box button {
  min-width: 110px;
  border-radius: 999px;
  height: 58px;
}
.minimal-hot-row {
  margin-top: 28px;
  padding-top: 28px;
}
.hot-keywords-inline {
  display:flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.hot-keywords-inline::-webkit-scrollbar { display:none; }
.hot-tag {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
}
.status-message {
  background: var(--status-bg);
  border-color: var(--status-border);
}
.result-panel {
  margin-top: 8px;
}
.footer-brand-card {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 16px 18px;
  border-radius: 18px;
}
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1001;
}
.floating-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(15,23,42,.14);
}
.back-to-top {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.floating-actions.is-scrolled .back-to-top {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.minimal-modal {
  width: min(92vw, 430px);
  padding: 22px;
  border-radius: 22px;
}
.minimal-modal-header p {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.minimal-modal-body { margin-top: 18px; }
.minimal-captcha-row {
  grid-template-columns: minmax(0,1fr) 126px;
}
.minimal-modal-actions {
  justify-content: space-between;
}
.minimal-modal-actions button {
  flex: 1 1 0;
}
@media (max-width: 720px) {
  .minimal-page {
    min-height: auto;
    padding-top: 28px;
  }
  .hero-center h1 { font-size: 38px; }
  .minimal-notice,
  .minimal-search-panel,
  .footer-brand-card { max-width: none; }
  .minimal-hot-row,
  .hot-keywords-row { display:block; }
  .hot-title { margin-bottom: 8px; display:block; line-height: 1.4; }
  .minimal-captcha-row { grid-template-columns: 1fr; }
  .minimal-modal-actions { flex-direction: row; }
}


/* v2 result card refinements */
.result-card-minimal {
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e8edf5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.result-card-minimal .item-list {
  gap: 10px;
}
.result-card-minimal .item-card {
  background: #f8fbff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 14px 14px 12px;
}
.result-card-minimal .item-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.8;
}
.result-card-minimal .result-note {
  margin: -2px 0 10px;
}
.result-card-minimal .link-group {
  margin-top: 0;
}
:root[data-theme="dark"] .result-card-minimal {
  background: #0b1220 !important;
  border-color: rgba(51,65,85,.95) !important;
  box-shadow: 0 12px 28px rgba(2,6,23,.36);
}
:root[data-theme="dark"] .result-card-minimal .item-card {
  background: #111827 !important;
  border-color: rgba(51,65,85,.9) !important;
}
:root[data-theme="dark"] .result-card-minimal .item-title {
  color: #e5eefc;
}
:root[data-theme="dark"] .result-card-minimal .result-note {
  color: #94a3b8;
}


/* v3 symmetry adjustments */
.result-panel {
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 18px;
  border-radius: 24px;
}
.result-panel .panel-title-row {
  align-items: baseline;
  margin-bottom: 10px;
}
.result-panel .panel-title-row h2 {
  font-size: 18px;
}
.result-panel .panel-subtext {
  font-size: 13px;
  white-space: nowrap;
}
#results {
  gap: 12px;
}
.status-message {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
}
.result-card-minimal {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
}
.result-card-minimal .item-list {
  gap: 0;
}
.result-card-minimal .item-card {
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.result-card-minimal .item-card + .item-card {
  border-top: 1px solid #edf2f7;
}
.result-card-minimal .item-title {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.75;
}
.result-card-minimal .link-group {
  justify-content: flex-start;
}
.result-card-minimal .link-btn {
  min-width: 96px;
}
:root[data-theme="dark"] .result-card-minimal .item-card + .item-card {
  border-top-color: rgba(51,65,85,.85);
}
@media (max-width: 720px) {
  .result-panel {
    max-width: none;
    padding: 16px;
  }
  .result-panel .panel-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
  }
  .result-panel .panel-subtext {
    white-space: normal;
  }
  .result-card-minimal .item-card {
    padding: 14px;
  }
}

/* v5 dark mode refinements */
:root[data-theme="dark"] {
  color-scheme: dark;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top center, rgba(59,130,246,0.12), transparent 26%),
    radial-gradient(circle at 85% 8%, rgba(139,92,246,0.10), transparent 22%),
    linear-gradient(180deg, #030712 0%, #081120 32%, #0b1324 100%);
}
:root[data-theme="dark"] .hero-minimal {
  color: #eef4ff;
}
:root[data-theme="dark"] .minimal-subtitle {
  color: #9fb0c9 !important;
}
:root[data-theme="dark"] .minimal-notice,
:root[data-theme="dark"] .minimal-search-panel,
:root[data-theme="dark"] .result-panel,
:root[data-theme="dark"] .footer-brand-card {
  background: linear-gradient(180deg, rgba(9,14,26,0.96) 0%, rgba(14,23,40,0.96) 100%) !important;
  border-color: rgba(71,85,105,0.55) !important;
  box-shadow: 0 18px 44px rgba(2,6,23,0.34), inset 0 1px 0 rgba(255,255,255,0.02);
}
:root[data-theme="dark"] .strip-track {
  color: #c7d2e4 !important;
}
:root[data-theme="dark"] .strip-label {
  background: rgba(251,191,36,0.12) !important;
  border: 1px solid rgba(251,191,36,0.18);
  color: #fcd34d !important;
}
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .captcha-row input {
  background: #0f172a !important;
  border-color: rgba(71,85,105,0.9) !important;
  color: #eef4ff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
:root[data-theme="dark"] .search-box input::placeholder,
:root[data-theme="dark"] .captcha-row input::placeholder {
  color: #74839c;
}
:root[data-theme="dark"] .search-box input:focus,
:root[data-theme="dark"] .captcha-row input:focus {
  border-color: rgba(96,165,250,0.95) !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18), inset 0 1px 0 rgba(255,255,255,0.02);
}
:root[data-theme="dark"] button {
  box-shadow: 0 12px 24px rgba(37,99,235,0.24);
}
:root[data-theme="dark"] .ghost-btn {
  background: #111c31 !important;
  color: #dbe7fb !important;
  border: 1px solid rgba(71,85,105,0.78);
  box-shadow: none;
}
:root[data-theme="dark"] .hot-tag {
  background: linear-gradient(180deg, #111c31 0%, #0f172a 100%) !important;
  border-color: rgba(71,85,105,0.76) !important;
  color: #cfe0ff !important;
}
:root[data-theme="dark"] .hot-tag:hover {
  background: linear-gradient(180deg, #16233b 0%, #132033 100%) !important;
  border-color: rgba(96,165,250,0.5) !important;
}
:root[data-theme="dark"] .hot-title {
  color: #e7eefc !important;
}
:root[data-theme="dark"] .status-message {
  background: rgba(10,17,30,0.92) !important;
  border-color: rgba(71,85,105,0.78) !important;
  color: #9fb0c9 !important;
}
:root[data-theme="dark"] .result-card-minimal {
  background: linear-gradient(180deg, rgba(9,14,26,0.98) 0%, rgba(14,23,40,0.98) 100%) !important;
  border-color: rgba(71,85,105,0.5) !important;
  box-shadow: 0 16px 36px rgba(2,6,23,0.34);
}
:root[data-theme="dark"] .result-card-minimal .item-card {
  background: transparent !important;
}
:root[data-theme="dark"] .result-card-minimal .item-card + .item-card {
  border-top-color: rgba(71,85,105,0.55) !important;
}
:root[data-theme="dark"] .item-title {
  color: #eef4ff !important;
}
:root[data-theme="dark"] .link-btn {
  box-shadow: none;
}
:root[data-theme="dark"] .link-baidu {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}
:root[data-theme="dark"] .link-xunlei {
  background: linear-gradient(135deg, #334155, #0f172a);
}
:root[data-theme="dark"] .link-quark {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}
:root[data-theme="dark"] .link-alipan {
  background: linear-gradient(135deg, #f59e0b, #c2410c);
}
:root[data-theme="dark"] .modal-backdrop {
  background: rgba(2,6,23,0.76);
  backdrop-filter: blur(8px);
}
:root[data-theme="dark"] .minimal-modal,
:root[data-theme="dark"] .modal-dialog {
  background: linear-gradient(180deg, rgba(9,14,26,0.98) 0%, rgba(13,20,36,0.98) 100%) !important;
  border: 1px solid rgba(71,85,105,0.6);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
:root[data-theme="dark"] .minimal-modal-header p,
:root[data-theme="dark"] .modal-header p {
  color: #eef4ff;
}
:root[data-theme="dark"] .modal-close {
  background: #131d33;
  color: #dbe7fb;
}
:root[data-theme="dark"] #captcha-image {
  background: #0f172a !important;
  border-color: rgba(71,85,105,0.85) !important;
}
:root[data-theme="dark"] .footer-brand p {
  color: #9fb0c9 !important;
}
:root[data-theme="dark"] .floating-theme-btn {
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  box-shadow: 0 12px 28px rgba(37,99,235,0.26);
}
:root[data-theme="dark"] .back-to-top {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(71,85,105,0.75);
  box-shadow: 0 12px 28px rgba(2,6,23,0.42);
}
