/* [lqx] 本站自定义增量（原站 app.css 保持原样，便于日后与原站同步） */

/* 弹窗滚动条：更细、更淡（原站为浏览器默认粗滚动条） */
.sheet {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent;
}
.sheet::-webkit-scrollbar { width: 4px; }
.sheet::-webkit-scrollbar-track { background: transparent; }
.sheet::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 42%, transparent);
  border-radius: 2px;
}
.sheet::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--muted) 68%, transparent);
}

/* 返回顶部按钮（原站无此功能） */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  z-index: 15; /* 低于遮罩(30)/弹窗(31)/toast(40)，高于顶栏(10) */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}

/* deals 好价清单（表格版）：原站 app.css 把 a 重置为无色无下划线，这里恢复链接可见性 */
body:has(.deals) { max-width: 1080px; } /* 原站 body 限宽 560px，表格页放宽 */
.deals { padding: 16px 4px 40px; line-height: 1.65; }
.deals a {
  color: #0b57d0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.deals a:hover { color: var(--brand); }
.deals h1 { font-size: 22px; }
.deals h2 { margin: 28px 0 8px; font-size: 18px; }
.deals h3 { margin: 18px 0 4px; font-size: 15px; }
.deals .scroll { overflow-x: auto; }
.deals table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin: 6px 0 14px;
}
.deals th, .deals td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
}
.deals th { background: color-mix(in srgb, var(--text) 6%, transparent); font-weight: 600; }
.deals tbody tr:nth-child(even) { background: color-mix(in srgb, var(--text) 4%, transparent); }
.deals .wrap { white-space: normal; min-width: 140px; }
.deals td.buy a { font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .deals a { color: #7cb0ff; }
}
