/* =========================================================
   起滕出海 · 高端科技主题（深色首屏 + 浅色玻璃内容）
   Loaded after main.css — overrides the mirrored theme.
   ========================================================= */

:root {
  --qth-bg: #f5f7fb;
  --qth-ink: #0f172a;
  --qth-muted: #64748b;
  --qth-line: rgba(15, 23, 42, .08);
  --qth-primary: #2563eb;
  --qth-cyan: #06b6d4;
  --qth-navy: #070d1a;
  --qth-navy-2: #0b1428;
  --qth-card: #ffffff;
  --qth-grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 55%, #8b5cf6 100%);
  --qth-grad-btn: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --qth-radius: 18px;
  --qth-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 34px -16px rgba(37, 99, 235, .22);
  --qth-font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html { background-color: var(--qth-bg); }
html.dark { background-color: #080e1c; }

body {
  font-family: var(--qth-font);
  background-color: var(--qth-bg) !important;
  color: var(--qth-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: .01em;
}
html.dark body { background-color: #080e1c !important; }

::selection { background: rgba(6, 182, 212, .28); color: inherit; }

main h1, main h2, main h3 { letter-spacing: -.015em; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
#qth-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 13, 26, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  transition: background .25s ease, box-shadow .25s ease;
}
#qth-header.qth-scrolled {
  background: rgba(7, 13, 26, .94);
  box-shadow: 0 18px 48px -22px rgba(2, 6, 23, .85);
}
.qth-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.qth-nav { height: 68px; display: flex; align-items: center; gap: 10px; }

.qth-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.qth-brand img {
  width: 38px; height: 38px; border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 26px -10px rgba(6, 182, 212, .65);
}
.qth-brand-name {
  font-size: 19px; font-weight: 800; letter-spacing: .04em; line-height: 1;
  background: linear-gradient(92deg, #67e8f9 0%, #93c5fd 48%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.qth-brand-tag {
  font-size: 11px; color: #94a3b8; letter-spacing: .08em;
  border: 1px solid rgba(148, 163, 184, .28); border-radius: 999px;
  padding: 3px 9px; white-space: nowrap;
}

.qth-menu { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.qth-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: #c3cede;
  background: transparent; border: 0; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.qth-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.qth-link.qth-active { color: #fff; }
.qth-link.qth-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--qth-grad);
}
.qth-link svg { width: 13px; height: 13px; opacity: .7; transition: transform .2s ease; }
.qth-drop:hover .qth-link svg { transform: rotate(180deg); }

.qth-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px; padding: 9px 17px; border-radius: 999px;
  font-size: 14px; font-weight: 650; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  box-shadow: 0 10px 26px -12px rgba(16, 185, 129, .8);
  transition: transform .18s ease, box-shadow .18s ease;
}
.qth-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px rgba(6, 182, 212, .9); }

.qth-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.qth-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(148, 163, 184, .18);
  color: #cbd5e1; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.qth-icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.qth-icon-btn svg { width: 19px; height: 19px; }
.qth-mobile-btn { display: none; }

.qth-drop { position: relative; }
.qth-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 236px;
  padding: 8px; border-radius: 16px;
  background: rgba(10, 17, 33, .98);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: 0 30px 70px -24px rgba(2, 6, 23, .9);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1002;
}
.qth-drop:hover .qth-drop-menu,
.qth-drop:focus-within .qth-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.qth-drop-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: #c3cede; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.qth-drop-menu a:hover { background: rgba(59, 130, 246, .16); color: #fff; }
.qth-drop-menu a .qth-count { font-size: 11.5px; color: #64748b; }
.qth-drop-menu .qth-sep { height: 1px; margin: 6px 8px; background: rgba(148, 163, 184, .14); }
.qth-drop-menu a.qth-more { color: #67e8f9; font-weight: 600; }

.qth-mobile {
  display: none;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 12px 20px 22px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  background: rgba(7, 13, 26, .98);
}
.qth-mobile .qth-m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px; border-radius: 10px;
  color: #d4dde9; font-size: 15px; text-decoration: none;
}
.qth-mobile .qth-m-link:hover { background: rgba(255, 255, 255, .06); }
.qth-mobile .qth-m-title {
  margin: 14px 12px 6px; font-size: 11.5px; letter-spacing: .14em;
  color: #64748b; text-transform: uppercase;
}
.qth-mobile .qth-m-link small { color: #64748b; font-size: 12px; }

@media (max-width: 1080px) {
  .qth-menu { display: none; }
  .qth-mobile-btn { display: inline-flex; }
  .qth-mobile:not(.hidden) { display: block; }
  .qth-brand-tag { display: none; }
}

/* ------------------------------------------------------------------
   Home hero
   ------------------------------------------------------------------ */
.qth-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 76px;
  background:
    radial-gradient(1100px 560px at 8% -20%, rgba(37, 99, 235, .38) 0%, transparent 62%),
    radial-gradient(900px 520px at 92% -8%, rgba(6, 182, 212, .22) 0%, transparent 58%),
    radial-gradient(700px 420px at 55% 118%, rgba(139, 92, 246, .18) 0%, transparent 60%),
    var(--qth-navy);
}
.qth-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.qth-hero::after {
  content: "";
  position: absolute; left: 50%; bottom: -180px; transform: translateX(-50%);
  width: 900px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(6, 182, 212, .28), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.qth-hero-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; text-align: center; }

.qth-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(34, 211, 238, .28);
  color: #7dd3fc; font-size: 13px; letter-spacing: .04em;
  box-shadow: 0 0 0 1px rgba(6, 182, 212, .04), 0 12px 30px -18px rgba(6, 182, 212, .7);
}
.qth-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .16);
  animation: qth-pulse 2.4s ease-in-out infinite;
}
@keyframes qth-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); } 50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, .04); } }

.qth-hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.qth-grad-text {
  background: var(--qth-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.qth-hero-sub {
  max-width: 780px; margin: 0 auto;
  color: #a8b6cc; font-size: 16.5px; line-height: 1.9;
}
.qth-hero-sub strong { color: #dbeafe; font-weight: 600; }

.qth-search { position: relative; max-width: 720px; margin: 34px auto 0; text-align: left; }
.qth-search-icon {
  position: absolute; left: 19px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: #67e8f9; pointer-events: none;
}
.qth-search input,
.qth-search #pagefind-search-input {
  width: 100%; height: 58px;
  padding: 0 20px 0 52px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .3);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; font-size: 16px;
  outline: none;
  box-shadow: 0 24px 60px -30px rgba(6, 182, 212, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.qth-search input::placeholder { color: #7d8ba3; }
.qth-search input:focus {
  border-color: rgba(34, 211, 238, .65);
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .14), 0 28px 64px -30px rgba(6, 182, 212, .95);
}
.qth-search #pagefind-search-results {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -26px rgba(2, 6, 23, .55);
}
.qth-search #pagefind-search-results.show { display: block; }
.qth-search .pagefind__result { display: block; padding: 12px 16px; text-decoration: none; color: #0f172a; border-bottom: 1px solid #eef2f8; }
.qth-search .pagefind__result:last-child { border-bottom: 0; }
.qth-search .pagefind__result:hover { background: #f4f8ff; }
.qth-search .pagefind__result-title { font-weight: 650; font-size: 14.5px; }
.qth-search .pagefind__result-excerpt { color: #64748b; font-size: 12.5px; margin-top: 3px; line-height: 1.6; }

.qth-hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.qth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 13px;
  font-size: 15px; font-weight: 650; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.qth-btn-primary {
  color: #fff; background: var(--qth-grad-btn);
  box-shadow: 0 16px 38px -14px rgba(37, 99, 235, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.qth-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -14px rgba(6, 182, 212, .8); }
.qth-btn-ghost {
  color: #e2e8f0; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.qth-btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

.qth-hero-stats {
  display: flex; justify-content: center; margin-top: 46px;
}
.qth-hero-stats .qth-stat { padding: 0 38px; border-left: 1px solid rgba(148, 163, 184, .18); }
.qth-hero-stats .qth-stat:first-child { border-left: 0; }
.qth-hero-stats strong {
  display: block; font-size: 28px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1.2;
  background: linear-gradient(180deg, #fff, #bfdbfe);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.qth-hero-stats span { font-size: 12.5px; color: #8fa1bd; letter-spacing: .12em; }

@media (max-width: 640px) {
  .qth-hero { padding: 74px 0 56px; }
  .qth-hero h1 { margin-top: 18px; }
  .qth-hero-sub { font-size: 15px; line-height: 1.8; }
  .qth-search { margin-top: 26px; }
  .qth-search input, .qth-search #pagefind-search-input { height: 52px; font-size: 15px; }
  .qth-hero-btns { gap: 10px; }
  .qth-btn { height: 46px; padding: 0 20px; font-size: 14px; flex: 1 1 44%; }
  .qth-hero-stats { margin-top: 34px; }
  .qth-hero-stats .qth-stat { padding: 0 20px; }
  .qth-hero-stats strong { font-size: 22px; }
  .qth-hero-stats span { font-size: 11px; letter-spacing: .04em; }
}

/* ------------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------------ */
.qth-trust {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%) !important;
  border-bottom: 1px solid var(--qth-line) !important;
}
html.dark .qth-trust { background: linear-gradient(180deg, #0b1428 0%, #080e1c 100%) !important; }
.qth-trust .grid { gap: 18px; }
.qth-trust .grid > div {
  padding: 22px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--qth-line);
  box-shadow: var(--qth-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.qth-trust .grid > div:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -18px rgba(37, 99, 235, .28); }
html.dark .qth-trust .grid > div { background: rgba(17, 26, 46, .85); border-color: rgba(148, 163, 184, .14); }
.qth-trust .grid > div > div:first-child {
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .16)) !important;
  border: 1px solid rgba(37, 99, 235, .14);
}

/* ------------------------------------------------------------------
   Inner page heroes (tools / categories / tags)
   ------------------------------------------------------------------ */
main > section.bg-gradient-to-br {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -35%, rgba(37, 99, 235, .4) 0%, transparent 62%),
    radial-gradient(760px 400px at 88% -12%, rgba(6, 182, 212, .24) 0%, transparent 60%),
    var(--qth-navy) !important;
  color: #fff;
}
main > section.bg-gradient-to-br::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 10%, transparent 78%);
  pointer-events: none;
}
main > section.bg-gradient-to-br > .container { position: relative; z-index: 1; }
main > section.bg-gradient-to-br .bg-white\/20 { background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .18); }
main > section.bg-gradient-to-br .text-primary-100 { color: #b6c6de !important; }
main > section.bg-gradient-to-br .text-primary-200 { color: #8fa6c4 !important; }

/* ------------------------------------------------------------------
   List page headers (links / blog / search)
   ------------------------------------------------------------------ */
main.qth-list-page > section:first-of-type {
  position: relative;
  padding-top: 52px !important;
  background:
    radial-gradient(700px 300px at 50% -30%, rgba(37, 99, 235, .1) 0%, transparent 70%),
    transparent;
}
main.qth-list-page > section:first-of-type h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
}
main.qth-list-page > section:first-of-type h1::after {
  content: "";
  display: block;
  width: 56px; height: 4px; margin: 16px auto 0;
  border-radius: 4px;
  background: var(--qth-grad-btn);
}
main.qth-list-page > section:first-of-type p {
  color: var(--qth-muted);
}

/* ------------------------------------------------------------------
   Cards / sidebar / content
   ------------------------------------------------------------------ */
.card-hover {
  position: relative;
  border-radius: var(--qth-radius) !important;
  border: 1px solid rgba(15, 23, 42, .07) !important;
  background: #fff !important;
  box-shadow: var(--qth-shadow) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
.card-hover::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--qth-radius) var(--qth-radius) 0 0;
  background: var(--qth-grad-btn);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .22) !important;
  box-shadow: 0 26px 56px -24px rgba(37, 99, 235, .38) !important;
}
.card-hover:hover::before { opacity: 1; }
html.dark .card-hover { background: #0f1a30 !important; border-color: rgba(148, 163, 184, .13) !important; }

.link-card .w-12, .link-card .w-10 { border-radius: 12px; }
.link-card img { box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .28); }
.link-card .line-clamp-2 { line-height: 1.65; }

.tool-card .rounded-lg.flex.items-center.justify-center {
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(6, 182, 212, .16)) !important;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 13px;
}
.tool-card:hover .rounded-lg.flex.items-center.justify-center { box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .5); }

main aside .bg-white, main aside .dark\:bg-gray-800 {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: var(--qth-shadow);
}
html.dark main aside .bg-white { background: #0f1a30 !important; border-color: rgba(148, 163, 184, .13); }
main aside .sticky > div { padding: 6px; }

main .bg-white.rounded-xl, main .bg-white.rounded-2xl { border-color: rgba(15, 23, 42, .06); }
html.dark main .bg-white.rounded-xl, html.dark main .bg-white.rounded-2xl { background-color: #0f1a30; }

/* filter bar on links page */
#filter-bar {
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: var(--qth-shadow) !important;
}
html.dark #filter-bar { background: #0f1a30 !important; }

main input[type="text"], main input[type="search"], main input[type="number"], main select, main textarea {
  border-radius: 11px;
  border-color: #dbe3f0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
html.dark main input[type="text"], html.dark main input[type="search"], html.dark main input[type="number"], html.dark main select, html.dark main textarea {
  border-color: rgba(148, 163, 184, .24);
  background-color: #0c1629;
}
main input[type="text"]:focus, main input[type="search"]:focus, main input[type="number"]:focus, main select:focus, main textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

main button.bg-primary-500, main button.bg-primary-600,
main a.bg-primary-500, main a.bg-primary-600,
main .bg-primary-500.rounded-lg, main .bg-primary-600.rounded-lg {
  box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .65);
}

main table { border-radius: 14px; overflow: hidden; }
main table thead th { background: #f2f6fe; }
html.dark main table thead th { background: #0c1629; }

/* Blog article typography */
main article .prose { font-size: 16.5px; line-height: 1.9; }
main article .prose h2 { margin-top: 2.2em; padding-left: 14px; border-left: 4px solid #3b82f6; }
main article .prose h3 { margin-top: 1.8em; }
main article .prose a { color: #2563eb; }

/* Wide tables scroll horizontally instead of breaking mobile layout */
@media (max-width: 768px) {
  main article .prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  main article .prose table th,
  main article .prose table td { white-space: normal; min-width: 120px; }
}

/* Quick-nav pills */
main .section-link { transition: background .16s ease, color .16s ease, padding-left .16s ease; }
main .section-link:hover { padding-left: 16px; }

/* Section titles inside content */
main .container h2.text-xl, main .container h2.text-2xl { letter-spacing: -.01em; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
footer.bg-black {
  position: relative;
  background: linear-gradient(180deg, #070d1a 0%, #0a1224 100%) !important;
  border-top: 1px solid rgba(148, 163, 184, .14);
}
footer.bg-black::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(6, 182, 212, .8) 35%, rgba(139, 92, 246, .8) 65%, transparent 95%);
}
footer.bg-black .container { position: relative; z-index: 1; }
footer.bg-black h3 { font-size: 14px; letter-spacing: .06em; }
footer.bg-black a { transition: color .16s ease; }
footer.bg-black a:hover { color: #67e8f9 !important; }
footer.bg-black .border-gray-800 { border-color: rgba(148, 163, 184, .14) !important; }

/* ------------------------------------------------------------------
   Floating utility buttons (history / share)
   ------------------------------------------------------------------ */
#history-toggle-btn, #history-share-btn {
  background: var(--qth-grad-btn) !important;
  box-shadow: 0 16px 34px -14px rgba(6, 182, 212, .8) !important;
}
#history-panel { border-left: 1px solid rgba(148, 163, 184, .16); }

/* ------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------ */
.qth-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.qth-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .qth-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------
   Search page
   ------------------------------------------------------------------ */
.qth-search-page-wrap { max-width: 820px; margin: 0 auto; }
.qth-search-page-wrap .qth-search { margin-top: 0; }
.qth-search-page-wrap .qth-search input {
  background: #fff; color: var(--qth-ink);
  border-color: #dbe3f0; box-shadow: var(--qth-shadow);
}
.qth-search-page-wrap .qth-search input::placeholder { color: #94a3b8; }
.qth-search-page-wrap .qth-search input:focus {
  background: #fff; border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.qth-search-page-wrap .qth-search-icon { color: #2563eb; }
#qth-search-page-results { margin-top: 22px; }
#qth-search-page-results .qth-result-item {
  display: block; padding: 18px 20px; margin-bottom: 12px;
  border-radius: 16px; background: #fff; text-decoration: none;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: var(--qth-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#qth-search-page-results .qth-result-item:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, .22);
  box-shadow: 0 22px 48px -20px rgba(37, 99, 235, .35);
}
#qth-search-page-results .qth-result-title { font-size: 16.5px; font-weight: 650; color: #0f172a; }
#qth-search-page-results .qth-result-excerpt { margin-top: 5px; font-size: 13.5px; color: #64748b; line-height: 1.7; }
#qth-search-page-results .qth-result-url { margin-top: 6px; font-size: 12px; color: #94a3b8; }
#qth-search-page-results .qth-result-item mark { background: rgba(6, 182, 212, .18); color: inherit; padding: 0 2px; border-radius: 3px; }
#qth-search-page-results .qth-result-empty { padding: 48px 0; text-align: center; color: #64748b; }
html.dark #qth-search-page-results .qth-result-item { background: #0f1a30; border-color: rgba(148, 163, 184, .13); }
html.dark #qth-search-page-results .qth-result-title { color: #e2e8f0; }
