/* ==========================================================================
   小龙天天 · 基础样式（前台按 葡萄/putao 风格；后台/快捷页复用本文件的变量与组件）
   ========================================================================== */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eef4ff;
  --accent: #7c3aed;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e6e8ef;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.05);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
  --content: 1180px;

  /* 后台 / 快捷页兼容别名 */
  --ink: #111827;
  --ink-2: #374151;
  --faint: #9aa2b1;
  --surface-2: #f9fafc;
  --surface-3: #f3f4f6;
  --brand-ink: #1d4ed8;
  --line-2: #f1f2f7;
  --dark-btn: #111827;
  --wrap: 1080px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-md: 0 18px 44px -22px rgba(23, 37, 84, 0.28);
  --shadow-lg: 0 34px 70px rgba(23, 37, 84, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
img { max-width: 100%; }
ul { margin: 0; padding: 0; }
::selection { background: rgba(37, 99, 235, 0.18); }

.container, .wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap { max-width: var(--wrap); }

[hidden] { display: none !important; }

/* ---------- 背景装饰（后台/快捷页用） ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(760px 320px at 50% -80px, #e6eeff 0, rgba(230, 238, 255, 0) 72%),
    linear-gradient(180deg, #f4f7fd, #f6f7fb 60%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; pointer-events: none; }
.orb-a { width: 560px; height: 560px; background: #d7e0ff; top: -280px; left: -180px; }
.orb-b { width: 480px; height: 480px; background: #e7d9ff; top: -220px; right: -140px; }
.orb-c { width: 620px; height: 620px; background: #d6f2ff; bottom: -420px; left: 38%; opacity: 0.4; }

/* ---------- 顶部栏 ---------- */

.site-header, .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 232, 239, 0.9);
}

.site-header__inner, .topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}
.site-header__inner--center { justify-content: center; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  flex-shrink: 0;
  min-width: 0;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  letter-spacing: 0;
}
.brand--center { font-size: 21px; letter-spacing: 3px; }

.logo {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #4d7bff 0%, #7b5bff 55%, #9b5cff 100%);
  box-shadow: 0 10px 22px -10px rgba(80, 96, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.logo span {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(24, 20, 80, 0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 19px; font-weight: 800; letter-spacing: 0.3px; white-space: nowrap; }
.brand-text i { font-style: normal; font-size: 10px; color: var(--faint); letter-spacing: 2.4px; margin-top: 3px; white-space: nowrap; }

.site-header__actions, .top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ghost-btn, .ghost-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.ghost-link { border-color: transparent; color: var(--muted); padding: 8px 12px; }
.ghost-btn:hover, .ghost-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---------- 搜索框 ---------- */

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-box:focus-within { border-color: #b9cdf7; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--text);
  padding: 10px 0;
}
.search-box input::placeholder { color: #9aa2b1; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  border: 0;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.search-box__btn:hover { background: #1f2937; }
.search-box--lg {
  padding: 7px 7px 7px 20px;
  border: 1px solid #e3e8f2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(23, 37, 84, 0.07);
}
.search-box--lg:focus-within { border-color: #b9cdf7; box-shadow: 0 10px 26px rgba(37, 99, 235, 0.12); }
.search-box--lg input { font-size: 15px; padding: 11px 0; }
.search-box--lg .search-box__btn { border-radius: 12px; padding: 12px 26px; font-size: 14.5px; box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16); }
.search-box--lg .search-box__btn:hover { background: #1f2937; box-shadow: 0 12px 24px rgba(17, 24, 39, 0.22); }

/* ---------- 首页 Hero ---------- */

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell > main { flex: 1; }

.home-v2 { padding-bottom: 56px; }

.hero-b {
  position: relative;
  padding: 52px 0 6px;
  background: radial-gradient(760px 320px at 50% -80px, #e6eeff 0, rgba(230, 238, 255, 0) 72%),
    linear-gradient(180deg, #f4f7fd, #f6f7fb 60%);
}

.hero-card {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 46px 56px 38px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fcfdff);
  border: 1px solid #e6eaf4;
  border-radius: 28px;
  box-shadow: 0 34px 70px rgba(23, 37, 84, 0.1), 0 6px 18px rgba(23, 37, 84, 0.05);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -300px;
  left: 50%;
  transform: translate(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1), transparent 62%);
  pointer-events: none;
}
.hero-card--results { padding-bottom: 26px; }

.search-head { position: relative; min-height: 96px; }
.search-head__title {
  margin: 0;
  font-size: 42px;
  line-height: 1.22;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.search-head__title em {
  font-style: normal;
  background: linear-gradient(96deg, #2563eb, #4f46e5 55%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.search-head__sub { margin: 12px 0 0; font-size: 14px; color: #6b7280; }
.search-head__sub strong { color: #111827; }

.hero-sub {
  position: relative;
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.8;
  color: #667085;
}

.hero-card .search-box { position: relative; max-width: 640px; margin: 28px auto 0; }

.hero-hot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero-hot__label { font-size: 12.5px; color: #98a0ae; margin-right: 2px; }
.hero-hot__chip {
  font-size: 12.5px;
  color: #4b5563;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f7f8fc;
  border: 1px solid #ebedf4;
  transition: all 0.15s ease;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-hot__chip:hover { color: #1d4ed8; background: #eef4ff; border-color: #cfddfb; }

.hero-divider {
  position: relative;
  height: 1px;
  margin: 28px 0 24px;
  background: linear-gradient(90deg, transparent, #e7eaf2 20%, #e7eaf2 80%, transparent);
}

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-stat { background: #fbfcff; border: 1px solid #eef1f7; border-radius: 14px; padding: 14px 10px 12px; }
.hero-stat b {
  display: block;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  color: #101828;
}
.hero-stat span { display: block; margin-top: 3px; font-size: 11.5px; color: #8b93a3; }

/* ---------- 结果区（嵌在卡片里） ---------- */

.card-results { position: relative; margin-top: 24px; text-align: left; min-height: 240px; }

.search-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin: 18px auto 0;
}
.search-toolbar .search-tabs { flex: 1; min-width: 0; margin-top: 0; justify-content: flex-start; }

.search-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.search-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: #4b5563;
  transition: all 0.15s ease;
}
.search-tab:hover { border-color: #c7d7fb; color: var(--brand-dark); }
.search-tab.is-active { background: #111827; border-color: #111827; color: #fff; box-shadow: 0 6px 16px rgba(17, 24, 39, 0.16); }

.search-seg { display: inline-flex; flex: none; background: #f3f4f6; border-radius: 999px; padding: 3px; }
.search-seg__btn {
  border: 0;
  background: transparent;
  padding: 5px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-seg__btn:hover { color: #111827; }
.search-seg__btn.is-active { background: #fff; color: #111827; font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }

.card-results .search-tabs { justify-content: center; margin: 0 0 14px; }

.result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #f1f2f6; }
.card-results .result-list { border-top: 1px solid #f1f2f6; }

.result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid #f1f2f7;
  transition: background 0.15s ease;
  animation: fadeSlide 0.22s ease both;
}
.result-item:last-child { border-bottom: 0; }
.result-item:hover { background: #fafbff; }

.result-item__index {
  width: 26px;
  flex-shrink: 0;
  color: #b6bcc9;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.result-item__index.is-top { color: var(--brand); font-weight: 700; }

.result-item__body { flex: 1; min-width: 0; }
.result-item__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  width: 100%;
}
.result-item__title:hover { color: var(--brand); }
.result-item__meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #9aa2b1;
  flex-wrap: wrap;
}

.pan-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  background: #eef4ff;
  color: var(--brand);
}
.pan-tag[data-pan="baidu"] { background: #eef2ff; color: #4338ca; }
.pan-tag[data-pan="quark"] { background: #ecfeff; color: #0e7490; }
.pan-tag[data-pan="uc"] { background: #fff3e8; color: #c2410c; }
.pan-tag[data-pan="xunlei"] { background: #e6f7f8; color: #0e7490; }
.pan-tag[data-pan="aliyun"] { background: #f3e8ff; color: #7c3aed; }
.pan-tag[data-pan="other"] { background: #f1f2f7; color: #6b7280; }

.result-item__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.files-btn {
  border: 1px solid #d6dbe6;
  background: #fff;
  color: #374151;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.files-btn:hover { border-color: var(--brand); color: var(--brand-dark); }

.get-link-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.get-link-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(37, 99, 235, 0.26); }

.result-notice {
  padding: 26px 0 10px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0 2px; }
.page-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #4b5563;
  border-radius: 9px;
  padding: 6px 14px;
  font-size: 13px;
  transition: all 0.15s ease;
}
.page-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.page-btn:disabled { opacity: 0.45; cursor: default; }
.page-info { font-size: 12.5px; color: #9aa2b1; font-variant-numeric: tabular-nums; }

/* ---------- 弹窗 ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.16s ease;
  touch-action: none;
}
.modal {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 22px;
  animation: popIn 0.2s ease;
  max-height: 88vh;
  overflow: auto;
  touch-action: auto;
  overscroll-behavior: contain;
}
.modal--wide { max-width: 560px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal__title { font-size: 17px; font-weight: 700; margin: 0; word-break: break-word; }
.modal__close {
  border: none;
  background: #f3f4f6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #6b7280;
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: none;
}
.modal__close:hover { background: #e5e7eb; color: #111827; }
.modal__hint {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}
.modal__hint b { color: var(--text); }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 26px 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}
.modal-loading p { margin: 2px 0; }
.modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

.lm-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #9aa2b1;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.link-row { display: flex; gap: 8px; }
.link-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  background: #f9fafc;
  color: #111827;
  min-width: 0;
}
.copy-btn {
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--brand-dark); }

.open-link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--brand);
  font-weight: 600;
}
.open-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.open-link.is-disabled { color: #9aa2b1; pointer-events: none; text-decoration: none; }

.pwd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
}
.pwd-chip code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: 1px; }

.files-count { margin: 0 0 10px; font-size: 13px; color: #6b7280; }
.files-count strong { color: #111827; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 240px; overflow: auto; }
.file-list--modal { max-height: 46vh; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px;
  border-bottom: 1px dashed #f0f2f7;
  font-size: 13px;
}
.file-list li:last-child { border-bottom: 0; }
.file-ico { flex-shrink: 0; width: 16px; height: 16px; border-radius: 4px; background: #eef2f8; }
.file-ico.is-dir { background: #eef4ff; border: 1px solid #cfddfb; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex-shrink: 0; font-size: 11.5px; color: #9aa2b1; }
.files-hint { margin: 10px 0 0; font-size: 12.5px; color: #9aa2b1; line-height: 1.8; }
.files-hint--error { color: #dc2626; }

/* ---------- 骨架屏 / 动画 ---------- */

.sk-row { padding: 15px 4px; border-bottom: 1px solid #f1f2f7; }
.sk-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f2f7 25%, #e8eaf1 37%, #f1f2f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk-line + .sk-line { margin-top: 9px; }
.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-line.w20 { width: 20%; }

.spinner {
  position: relative;
  width: 46px;
  height: 46px;
  margin: 2px auto 14px;
  border-radius: 50%;
}
.spinner::before, .spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}
.spinner::before { inset: 0; border-top-color: var(--brand); border-right-color: rgba(37, 99, 235, 0.32); animation: spin 0.9s linear infinite; }
.spinner::after { inset: 9px; border-bottom-color: rgba(37, 99, 235, 0.55); animation: spin 1.4s linear infinite reverse; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  transform: translate(-50%, 14px);
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 求助悬浮按钮 ---------- */

.side-help {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 64px;
  padding: 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #4b5563;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.side-help svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-help span {
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: 600;
}
.side-help:hover {
  border-color: #cfddfb;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
  transform: translateY(-50%) translateX(-2px);
}

.help-card { max-width: 360px; text-align: center; }
.help-sub { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.help-qr {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.help-tip { margin: 0; font-size: 12px; color: #9aa2b1; }

@media (max-width: 560px) {
  .side-help { right: 10px; width: 52px; padding: 10px 0; border-radius: 15px; gap: 6px; }
  .side-help svg { width: 22px; height: 22px; }
  .side-help span { font-size: 12px; letter-spacing: 2px; }
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.9;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--brand); }
.site-footer .sep { margin: 0 8px; color: #d1d5db; }

/* ---------- 通用组件（后台 / 快捷页复用） ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: 0.16s;
  text-decoration: none;
  cursor: pointer;
}
.btn-line { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 8px 16px -10px rgba(37, 99, 235, 0.9); }
.btn-solid:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-lg { height: 44px; padding: 0 20px; border-radius: 12px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  background: #eef4ff;
  color: var(--brand);
  white-space: nowrap;
}
.b-quark { background: #ecfeff; color: #0e7490; }
.b-uc { background: #fff3e8; color: #c2410c; }
.b-baidu { background: #eef2ff; color: #4338ca; }
.b-xunlei { background: #e6f7f8; color: #0e7490; }
.b-aliyun { background: #f3e8ff; color: #7c3aed; }
.b-other { background: #f1f2f7; color: #6b7280; }

.demo-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  color: var(--faint);
  border: 1px dashed var(--line);
}

.agg-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #7c3aed;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero-card { padding: 34px 24px 28px; border-radius: 22px; }
  .search-head__title { font-size: 30px; }
}

@media (max-width: 560px) {
  .hero-b { padding-top: 24px; }
  .hero-card { padding: 26px 18px 22px; border-radius: 18px; }
  .search-head__title { font-size: 23px; }
  .search-head__sub { font-size: 13px; }
  .brand--center { font-size: 19px; letter-spacing: 2px; }
  .hero-sub { font-size: 13.5px; }
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 11px 6px 9px; }
  .hero-stat b { font-size: 19px; }
  .search-head { min-height: 78px; }

  .hero-card .search-box--lg .search-box__btn span { display: none; }
  .hero-card .search-box--lg .search-box__btn { padding: 12px 15px; }
  .hero-card .search-box--lg input { font-size: 14px; }

  .search-toolbar { flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
  .search-toolbar .search-tabs { flex: none; width: auto; justify-content: center; }
  .search-seg { display: inline-flex; align-self: center; }

  .result-item { gap: 10px; }
  .result-item__index { display: none; }
  .result-item__actions { flex-direction: column; align-items: stretch; }
  .files-btn, .get-link-btn { text-align: center; }

  .modal { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- 求助弹窗里的反馈 ---------- */
.help-feedback {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  text-align: left;
}
.help-fb-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.help-feedback textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2, #f5f7fd);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--font);
  resize: vertical;
  outline: none;
}
.help-feedback textarea:focus { border-color: var(--brand); background: #fff; }
.help-fb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.help-fb-count { font-size: 11.5px; color: #9aa2b1; flex: 1; }
.help-fb-row .btn { height: 36px; padding: 0 16px; font-size: 13px; }
.help-fb-msg { min-height: 18px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.help-fb-msg.err { color: #dc2626; }
.help-fb-msg.ok { color: #059669; }

/* 搜索框下方淡提示 */
.search-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #b0b7c3;
  letter-spacing: 0.2px;
  user-select: none;
}
