/* 二创样式（深空玻璃）：中央搜索框重做 + 动效层
   动效由本文件的 @keyframes 与 fx.js 驱动；系统开启“减少动态效果”时自动降级为静态。 */

/* 渐变边框旋转所需（Chrome 85+ / Safari 16.4+ / Firefox 128+）；不支持时边框保持静态渐变 */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --accent: #a5b4fc;
  --accent-2: #6366f1;
  --grad: linear-gradient(120deg, #818cf8, #6366f1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #0c1024;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 120;
  background: linear-gradient(90deg, transparent, #a1a9ff, transparent);
  opacity: .4;
}

/* 轻微噪点纹理，增加质感（SVG 内嵌，不发起额外请求） */
body::after {
  content: "";
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus-visible {
  outline: 2px solid rgba(165, 180, 252, .85);
  outline-offset: 3px;
}

/* ==================== 背景层 ==================== */
.starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.ambient {
  position: fixed;
  pointer-events: none;
  opacity: .44;
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
.ambient-one { width: 380px; height: 380px; top: 12%; left: -250px; background: #2d377b; }
.ambient-two {
  width: 400px; height: 360px; bottom: 20%; right: -250px; background: #39306f;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, .2), rgba(99, 102, 241, .07) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .6s ease;
  will-change: transform;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a5b4fc, #c084fc);
  box-shadow: 0 0 12px rgba(165, 180, 252, .7);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 130;
  pointer-events: none;
}

/* ==================== 顶部导航 ==================== */
.top-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 32px;
  min-height: 80px;
}
.site-id { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  background: linear-gradient(135deg, #a9abff, #646de4);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 5px 28px rgba(99, 106, 223, .35);
}
.mark-dot {
  position: absolute;
  right: 5px; top: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #b6ffe8;
  animation: dotPulse 2.4s ease-in-out infinite;
}
.nav-wordmark { font-size: 16px; }
.nav-caption { color: var(--text-dim); font-size: 11px; letter-spacing: 1.8px; border-left: 1px solid rgba(255, 255, 255, .16); padding-left: 17px; }

/* ==================== 首页品牌区 ==================== */
.home { flex: 1; width: 100%; max-width: 940px; padding: 0 24px; }

.brand {
  display: grid;
  justify-items: center;
  gap: 17px;
  padding-top: 6vh;
  text-align: center;
  transition: transform .45s var(--ease-out), padding .45s var(--ease-out);
}
.brand > * { animation: rise .9s var(--ease-out) backwards; }
.brand > :nth-child(2) { animation-delay: .08s; }
.brand > :nth-child(3) { animation-delay: .16s; }
.brand > :nth-child(4) { animation-delay: .24s; }

.brand-logo-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: radial-gradient(circle at 20% 10%, #a9b6ff, #626ce0 58%, #2e3473);
  box-shadow: 0 26px 65px rgba(72, 80, 177, .4);
  font-size: 44px;
  font-weight: 800;
  animation: floaty 6s ease-in-out infinite;
}
/* logo 光泽扫过：用 transform 动画，避免触发布局 */
.brand-logo-art::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
.brand-logo-art span { position: absolute; right: 16px; top: 7px; color: #c5ffe1; font-size: 28px; }

.overline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a7adf7;
  letter-spacing: 2.5px;
  font-size: 10px;
  font-weight: 750;
}
.status-point {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7eeac7;
  box-shadow: 0 0 10px #7eeac7;
}
.status-point::after {
  content: "";
  position: absolute;
  top: -4px; right: -4px; bottom: -4px; left: -4px;
  border-radius: 50%;
  border: 1px solid #7eeac7;
  animation: ping 2s ease-out infinite;
}

.brand-slogan { font-size: 34px; font-weight: 750; letter-spacing: -.3px; line-height: 1.3; color: #fff; text-shadow: 0 2px 24px rgba(139, 140, 248, .35); }
.brand-slogan-strong {
  background: linear-gradient(90deg, #a5b4fc, #60a5fa, #c084fc, #a5b4fc);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textShimmer 6s linear infinite;
}

.brand-subtitle { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; color: var(--text-sub); font-size: 14px; }
.brand-subtitle-item { display: inline-flex; align-items: center; gap: 6px; }

/* ==================== 中央搜索框 ==================== */
.search { position: relative; margin-top: 36px; animation: rise .9s var(--ease-out) .3s backwards; }

.search-form {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
  padding: 0 10px 0 22px;
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(165, 180, 252, .16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025)),
    rgba(12, 16, 42, .55);
  box-shadow: 0 24px 60px -18px rgba(4, 6, 24, .75), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: box-shadow .45s var(--ease-out), border-color .45s, transform .45s var(--ease-out);
}

/* 旋转渐变描边：只露出 1px 环（mask 镂空中间） */
.search-form::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(165, 180, 252, .15), rgba(99, 102, 241, .75), rgba(192, 132, 252, .7), rgba(96, 165, 250, .6), rgba(165, 180, 252, .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .5;
  pointer-events: none;
  transition: opacity .45s;
}

.search-form:hover,
.search-form:focus-within {
  background:
    radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(165, 180, 252, .2), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
    rgba(14, 18, 48, .6);
  border-color: transparent;
  box-shadow: 0 28px 70px -20px rgba(79, 70, 229, .55), 0 0 0 4px rgba(99, 102, 241, .1), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.search-form:hover::before,
.search-form:focus-within::before {
  opacity: 1;
  animation: ringSpin 4.5s linear infinite;
}
.search-form:focus-within { transform: translateY(-2px); }

.search-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #a5b4fc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease-spring), stroke .3s;
}
.search-form:focus-within .search-icon { stroke: #fff; transform: scale(1.08) rotate(-8deg); }

.search-input {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 17px;
  letter-spacing: .3px;
  caret-color: #c7d2fe;
}
.search-input::placeholder { color: rgba(233, 236, 255, .42); transition: color .3s; }
.search-input:focus::placeholder { color: rgba(233, 236, 255, .22); }
/* 隐藏浏览器原生清除按钮，避免与自定义 × 重复 */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }

.search-kbd {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--text-sub);
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
  transition: opacity .25s, transform .3s var(--ease-out);
}
.search-form:focus-within .search-kbd,
.search-form.has-value .search-kbd { opacity: 0; transform: translateY(4px) scale(.9); }

.search-clear {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--text-sub);
  cursor: pointer;
  transition: background .2s, color .2s, transform .35s var(--ease-spring);
}
.search-clear svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.search-clear:hover { background: rgba(255, 255, 255, .18); color: #fff; transform: rotate(90deg); }

.search-btn {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 46px;
  min-width: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 55%, #8b5cf6 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 10px 26px -6px rgba(99, 102, 241, .75), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .25s var(--ease-out), box-shadow .3s, filter .3s;
}
/* 按钮高光扫过 */
.search-btn::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-130%) skewX(-20deg);
  transition: transform .7s var(--ease-out);
  pointer-events: none;
}
.search-btn:hover::before { transform: translateX(260%) skewX(-20deg); }
.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -8px rgba(99, 102, 241, .9), inset 0 1px 0 rgba(255, 255, 255, .45);
  filter: none;
}
.search-btn:active { transform: scale(.96); }
.search-btn:disabled { opacity: .7; cursor: default; }
.search-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease-spring);
}
.search-btn:hover .search-arrow { transform: translateX(3px); }
.search-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
/* 检索中：按钮换成转圈，框内一道光带左右扫描 */
.search-form.is-loading .search-arrow { display: none; }
.search-form.is-loading .search-spinner { display: block; }
.search-form.is-loading::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(165, 180, 252, .22), transparent) no-repeat;
  background-size: 40% 100%;
  background-position: -40% 0;
  pointer-events: none;
  animation: scan 1.2s ease-in-out infinite;
}

.search-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 10px;
  color: var(--text-dim);
  font-size: 11px;
}
.search-hint span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.search-hint span:first-child::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #7eeac7;
  box-shadow: 0 0 8px #7eeac7;
  animation: blink 2.6s ease-in-out infinite;
}

/* ==================== 分类 ==================== */
.category-list { margin-top: 28px; margin-bottom: 34px; text-align: center; }
.category-title { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.category-title-main {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 6px;
  background: linear-gradient(90deg, #a5b4fc, #c084fc, #60a5fa, #a5b4fc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleShimmer 3s linear infinite;
}
.category-title-sub { font-size: 12px; color: var(--text-dim); letter-spacing: 2px; }

.category-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* 入场动画只播放一次（分类按钮不再随筛选重建）；用 backwards 避免结束后锁死 hover 变换 */
.category-item {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
  opacity: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s, color .35s, background .35s;
  animation: categoryPop .6s var(--ease-out) backwards;
  animation-delay: min(calc(var(--i, 0) * 45ms), 600ms);
}
.category-item:hover {
  color: #fff;
  border-color: rgba(165, 180, 252, .6);
  background: linear-gradient(135deg, rgba(139, 140, 248, .32), rgba(99, 102, 241, .3));
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(99, 102, 241, .75);
}
.category-item:active { transform: translateY(0) scale(.97); }
.category-item.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 10px 26px -8px rgba(99, 102, 241, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* ==================== 结果区 ==================== */
.result-main { margin-top: 36px; padding-bottom: 50px; }
.list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 3px 12px; }
.section-kicker { color: #a7adf7; letter-spacing: 2.5px; font-size: 10px; font-weight: 750; }
.list-heading h2 { margin-top: 8px; font-size: 22px; font-weight: 750; }
.result-meta {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .05);
  color: var(--text-sub);
  font-size: 12px;
}

.tabbar {
  display: flex;
  gap: 10px;
  padding: 4px 0 16px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.tabbar::-webkit-scrollbar { display: none; }
.tab-item {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: var(--text-sub);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease-out), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.tab-item:hover { color: #fff; border-color: rgba(165, 180, 252, .5); transform: translateY(-1px); }
.tab-item.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .9);
}

.tabpanel { display: flex; flex-direction: column; gap: 12px; }

/* 结果卡片：依次入场 + 鼠标处高光（--mx/--my 由 fx.js 写入） */
.result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(129, 140, 248, .16), transparent 60%),
    rgba(255, 255, 255, .045);
  box-shadow: 0 12px 36px -14px rgba(3, 5, 20, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
  animation: cardIn .6s var(--ease-out) backwards;
  animation-delay: min(calc(var(--i, 0) * 70ms), 700ms);
}
.result-card::before {
  content: "";
  position: absolute;
  top: 0; left: 15px; right: 15px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 201, 255, .35), transparent);
}
.result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(165, 180, 252, .42);
  box-shadow: 0 22px 50px -18px rgba(79, 70, 229, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  background:
    radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(129, 140, 248, .2), transparent 60%),
    rgba(255, 255, 255, .065);
}

.card-top { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.card-content { flex: 1; min-width: 0; }
.resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 140, 248, .3), rgba(99, 102, 241, .14));
  border: 1px solid rgba(165, 180, 252, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #c7d2fe;
  font-size: 18px;
  font-weight: 800;
}
.card-title { font-size: 16px; font-weight: 650; color: var(--text-main); word-break: break-word; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-dim); }
.resource-sub {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 12.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions { display: flex; gap: 8px; flex-shrink: 0; margin: 0; }
.card-actions .btn { padding: 9px 16px; }

.btn {
  position: relative;
  overflow: hidden;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .3s, background .3s, color .3s, filter .3s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .85);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(99, 102, 241, .95); filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255, 255, 255, .07);
  color: var(--text-sub);
  border: 1px solid rgba(255, 255, 255, .12);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* 复制成功：绿色确认态 */
.btn.is-done {
  background: linear-gradient(135deg, #34d399, #10b981);
  border-color: transparent;
  color: #052e1d;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .8);
}

/* 空态 / 加载骨架 */
.empty {
  text-align: center;
  padding: 56px 20px;
  border-radius: 22px;
  border: 1px dashed rgba(165, 180, 252, .25);
  background: radial-gradient(circle at 50% 0%, rgba(129, 140, 248, .14), transparent 60%), rgba(255, 255, 255, .025);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 2;
}
.empty-icon { display: inline-block; margin-bottom: 8px; font-size: 44px; animation: floaty 4s ease-in-out infinite; }
.empty p { margin-top: 6px; color: var(--text-dim); font-size: 12px; }

.skeleton-list { display: flex; flex-direction: column; gap: 12px; }
.skeleton-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .035);
  animation: cardIn .5s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.sk {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
}
.sk::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: translateX(-100%);
  animation: skShine 1.4s ease-in-out infinite;
}
.sk-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; }
.sk-body { flex: 1; min-width: 0; display: grid; gap: 10px; }
.sk-line { height: 12px; border-radius: 6px; }
.w60 { width: 60%; }
.w40 { width: 40%; }

/* ==================== 分页 ==================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 28px; color: var(--text-sub); font-size: 13px; }
.pagination[hidden] { display: none; }
.page-btn {
  position: relative;
  overflow: hidden;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: var(--text-main);
  cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s, border-color .25s;
}
.page-btn:hover:not(:disabled) { background: rgba(139, 140, 248, .18); border-color: rgba(165, 180, 252, .5); transform: translateY(-1px); }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ==================== 页脚 ==================== */
.site-footer {
  margin: auto auto 0;
  max-width: 1180px;
  width: 100%;
  padding: 34px 32px 24px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.footer-top { margin-bottom: 22px; }
.footer-top p, .footer-bottom { font-size: 12px; line-height: 1.8; }
.footer-logo { display: inline-block; margin-bottom: 8px; color: var(--text-main); font-weight: 750; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 17px; }
.footer-bottom span:first-child { max-width: 720px; }
.footer-bottom span:last-child { white-space: nowrap; }

/* ==================== toast ==================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  z-index: 200;
  max-width: 86vw;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(181, 187, 255, .25);
  background: rgba(34, 40, 72, .92);
  color: #fff;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 16px 50px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(181, 187, 255, .08);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 16px) scale(.96);
  transition: opacity .3s ease, transform .5s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 点击涟漪（由 fx.js 插入） */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  pointer-events: none;
  animation: ripple .7s ease-out forwards;
}
.btn, .search-btn, .tab-item, .category-item, .page-btn { position: relative; overflow: hidden; }

/* ==================== 关键帧 ==================== */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes sheen { 0%, 55% { transform: translateX(-160%) skewX(-18deg); } 90%, 100% { transform: translateX(340%) skewX(-18deg); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, -50px, 0) scale(1.1); } }
@keyframes textShimmer { to { background-position: 250% center; } }
@keyframes titleShimmer { to { background-position: 200% center; } }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(182, 255, 232, .6); } 50% { box-shadow: 0 0 0 4px rgba(182, 255, 232, 0); } }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ringSpin { to { --angle: 360deg; } }
@keyframes scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes categoryPop { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes skShine { to { transform: translateX(230%); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ==================== 响应式 ==================== */
@media (min-width: 768px) {
  /* 桌面结果卡片：左侧内容、右侧按钮，卡片更扁 */
  .result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
  }
  .card-actions { margin: 0; }
  .cursor-glow { display: block; }
}

@media (max-width: 767px) {
  .home { padding: 0 16px; }
  .top-navigation { padding: 12px 16px; min-height: 56px; }
  .nav-caption { display: none; }
  .nav-wordmark { font-size: 14px; }
  .brand { display: none; }
  /* 手机端顶部吸顶搜索栏：只保留搜索框（顶栏已有 logo，避免重复） */
  .search {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -16px;
    padding: 10px 16px;
    background: rgba(12, 15, 36, .78);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    animation: none;
  }
  .search-form { flex: 1; height: 46px; gap: 8px; padding: 0 6px 0 14px; border-radius: 15px; }
  .search-icon { width: 18px; height: 18px; }
  /* 16px 字号可防止 iOS 点击输入框时自动放大页面 */
  .search-input { font-size: 16px; }
  .search-kbd { display: none; }
  .search-btn { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 11px; }
  .search-btn-text { display: none; }
  .search-arrow { width: 16px; height: 16px; }
  .search-hint { display: none; }
  .category-list { margin-top: 22px; }
  .category-item { padding: 7px 13px; font-size: 12px; }
  .list-heading h2 { font-size: 19px; }
  .result-main { margin-top: 20px; }
  /* 手机端卡片较多，去掉模糊以降低滚动卡顿 */
  .result-card { padding: 14px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card-actions { justify-content: flex-start; }
  .card-actions .btn { padding: 9px 13px; font-size: 12.5px; }
  .cursor-glow { display: none; }
  .site-footer { padding: 27px 16px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ==================== 减少动态效果 ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-iteration-count: 1 !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow { display: none; }
}

/* Visitor feedback */
.feedback-entry{color:#bdc8ff;font-size:13px;white-space:nowrap;margin-left:16px;text-decoration:none}
.feedback-entry:hover{color:#fff}.card-actions{flex-wrap:wrap}
.feedback-panel{margin-top:44px;padding:28px;border:1px solid rgba(165,180,252,.2);border-radius:20px;background:rgba(24,30,56,.82);scroll-margin-top:88px}
.feedback-intro{color:#a3aec9;font-size:14px;line-height:1.8;margin:0 0 22px}.feedback-grid{display:grid;grid-template-columns:1fr 2fr;gap:16px}
.feedback-panel label{display:flex;flex-direction:column;gap:9px;color:#d1d9ee;font-size:13px;margin-bottom:18px}
.feedback-panel input,.feedback-panel select,.feedback-panel textarea{box-sizing:border-box;width:100%;min-width:0;font:inherit;color:#edf1ff;background:#131a32;border:1px solid #384361;border-radius:10px;padding:12px 14px;outline:none}
.feedback-panel input:focus,.feedback-panel select:focus,.feedback-panel textarea:focus{border-color:#a5b4fc;box-shadow:0 0 0 3px #818cf822}.feedback-panel textarea{resize:vertical;min-height:120px}.feedback-panel input::placeholder,.feedback-panel textarea::placeholder{color:#8590ad}
.feedback-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.feedback-footer p{font-size:13px;line-height:1.8;color:#a9dfca;flex:1;min-width:180px;margin:0}.feedback-footer p.is-error{color:#ffb1bd}
@media(max-width:600px){.feedback-panel{padding:20px}.feedback-grid{grid-template-columns:1fr;gap:0}.feedback-footer .btn{width:100%}.nav-caption{display:none}}

.announcement-dialog{box-sizing:border-box;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;border:1px solid #57608e;border-radius:20px;background:#171e38;color:#edf1ff;padding:28px;box-shadow:0 30px 100px #0009;margin:auto}
.announcement-dialog:not([open]){display:none}.announcement-dialog::backdrop{background:#060b1fc9;backdrop-filter:blur(5px)}.announcement-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.announcement-close{font:inherit;font-size:28px;line-height:1;background:none;border:0;color:#c4cee9;cursor:pointer;padding:4px 8px}.announcement-dialog h2{font-size:24px;line-height:1.5;margin:16px 0;color:#f4f6ff;overflow-wrap:anywhere}.announcement-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:15px;color:#c6d0e8;margin:0 0 24px}.announcement-footer{display:flex;flex-direction:column;gap:18px}.announcement-footer small{font-size:11px;line-height:1.6;color:#8c9bbd}.announcement-footer .btn{align-self:flex-end}.announcement-close:focus-visible{outline:2px solid #a5b4fc;border-radius:6px}
@media(max-width:600px){.announcement-dialog{padding:22px}.announcement-footer .btn{align-self:stretch}}

/* Multiple share links */
.result-card{display:block}
.link-count{color:#b7bbff}.resource-links{display:grid;gap:10px;margin-top:20px}.resource-link-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #414c704d;border-radius:14px;background:#131b3370}.link-source{display:flex;align-items:center;gap:12px;min-width:0}.drive-badge{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:#e3e9ff;white-space:nowrap}.drive-badge img{object-fit:contain;border-radius:7px;background:#fff;padding:2px}.drive-letter{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#485385;color:#fff;font-size:12px}.link-source small{font-size:11px;color:#8897b8;white-space:nowrap}.link-actions{display:flex;gap:8px;flex-shrink:0}.link-actions .btn{min-height:36px;padding:8px 13px;font-size:12px}.card-feedback{display:flex;justify-content:flex-end;margin-top:10px}.card-feedback .btn{font-size:11px;padding:6px 10px;min-height:30px;color:#99a7c4}
@media(max-width:600px){.resource-link-row{flex-wrap:wrap;padding:13px;gap:12px}.link-source{justify-content:space-between;width:100%}.link-actions{width:100%}.link-actions .btn{flex:1;min-height:40px}.card-meta{flex-wrap:wrap}.resource-links{margin-top:15px}}

/* Resource grid */
.tabpanel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:12px}
.tabpanel>.empty,.tabpanel>.skeleton-list{grid-column:1/-1}
.result-card{min-width:0;padding:16px;display:flex;flex-direction:column;gap:0}
.card-top{align-items:flex-start;flex:0 0 auto}.card-title{line-height:1.5}.resource-links{margin-top:16px;flex:1;align-content:start}
.resource-link-row{display:flex;flex-wrap:wrap;padding:10px;gap:10px}.link-source{width:100%;justify-content:space-between}.link-actions{width:100%}.link-actions .btn{flex:1;padding:8px 6px;white-space:nowrap}.drive-badge{font-size:12px;gap:6px}.card-feedback{margin-top:10px}.recommend-tag{display:inline-block;padding:2px 6px;border-radius:5px;background:#7b70d955;color:#dedbff;font-size:10px;vertical-align:middle}
@media(max-width:1000px){.tabpanel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.tabpanel{grid-template-columns:1fr}}
