/* ===== 全局 ===== */
/* logo 字体:ZCOOL KuaiLe(OFL 授权)按需子集自托管,避免境内访问 Google Fonts 阻塞首屏渲染 */
@font-face {
  font-family: 'ZCOOL KuaiLe';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/zcool-kuaile-logo.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000;
  --text: #ccc;
  --text-muted: #8888a0;
  --border: #1a1a2e;
  --card-bg: #0a0a12;
  --nav-bg: rgba(0, 0, 0, 0.9);
  --input-bg: rgba(255, 255, 255, 0.05);
}

body.light {
  --bg: #fff;
  --text: #222;
  --text-muted: #666;
  --border: #e5e5e5;
  --card-bg: #f5f5f5;
  --nav-bg: rgba(255, 255, 255, 0.12);
  --input-bg: rgba(0, 0, 0, 0.03);
}

body.eye-care {
  --bg: #F0EDE6;
  --text: #3a3a3a;
  --text-muted: #6a6a6a;
  --border: #d5d0c8;
  --card-bg: #e8e4dc;
  --nav-bg: rgba(240, 237, 230, 0.12);
  --input-bg: rgba(0, 0, 0, 0.04);
}

body.light .navbar,
body.eye-care .navbar {
  background:
    linear-gradient(135deg, rgba(255, 120, 160, 0.10) 0%, rgba(120, 200, 255, 0.10) 50%, rgba(160, 120, 255, 0.10) 100%),
    rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 64px;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow-x: hidden;
}

/* 液态玻璃背景 */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 15% 25%, rgba(255, 100, 150, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(100, 200, 255, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 35% 75%, rgba(180, 100, 255, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 30%, rgba(100, 255, 200, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 180, 100, 0.15) 0%, transparent 50%);
  animation: liquid-flow 20s ease-in-out infinite;
  filter: blur(100px);
}

body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 70% 40%, rgba(255, 150, 200, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, rgba(100, 220, 255, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 80%, rgba(150, 255, 150, 0.14) 0%, transparent 45%);
  animation: liquid-flow-reverse 25s ease-in-out infinite;
  filter: blur(120px);
}

@keyframes liquid-flow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes liquid-flow-reverse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-25px, 25px) scale(0.95);
  }
  66% {
    transform: translate(35px, -15px) scale(1.05);
  }
}

a { color: inherit; text-decoration: none; }

/* 滚动条：彩色渐变，呼应液态玻璃配色 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4a9eff 0%, #a78bfa 50%, #ff6b9d 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6ab0ff 0%, #b9a3fb 50%, #ff87b0 100%);
}
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: #a78bfa transparent; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background:
    linear-gradient(135deg, rgba(255, 120, 160, 0.08) 0%, rgba(120, 200, 255, 0.08) 50%, rgba(160, 120, 255, 0.08) 100%),
    rgba(10, 10, 16, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.05);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 36px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 20px;
  background: linear-gradient(90deg, #4a9eff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s, filter 0.2s;
  flex-shrink: 0;
}

.nav-item:hover { color: var(--text); }
.nav-item:hover svg {
  stroke: #4a9eff;
  filter: drop-shadow(0 0 3px rgba(74, 158, 255, 0.4));
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #4a9eff, #00d4ff);
  transition: width 0.2s;
}

.nav-item:hover::after { width: 100%; }

/* ===== 关于下拉 ===== */
.nav-about-wrap { position: relative; }

.nav-about-wrap .nav-item .arrow-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.25s;
}

.nav-about-wrap.open .nav-item .arrow-icon { transform: rotate(90deg); }

/* ===== 下拉菜单（文章/工具） ===== */
.nav-dropdown-wrap { position: relative; }

.nav-dropdown-wrap .nav-item .arrow-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.25s;
}

.nav-dropdown-wrap.open .nav-item .arrow-icon { transform: rotate(90deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background:
    linear-gradient(135deg, rgba(255, 120, 160, 0.12) 0%, rgba(120, 200, 255, 0.12) 50%, rgba(160, 120, 255, 0.12) 100%),
    rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 8px;
  margin-top: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.3s, border-color 0.3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.05);
  z-index: 102;
  pointer-events: auto;
}

.nav-dropdown::before {
  display: none;
}

.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown .dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s;
}

.nav-dropdown .dropdown-link:hover {
  color: #4a9eff;
  background: rgba(74, 158, 255, 0.08);
}

/* ===== 主题切换 ===== */
.theme-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: auto;
  transition: transform 0.2s;
}

.theme-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.theme-btn:hover svg { stroke: #4a9eff; }
.theme-btn:hover { transform: scale(1.1); }

/* 语言切换按钮（导航最右侧） */
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  margin-left: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: transform 0.2s;
}
.lang-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}
.lang-btn:hover { transform: scale(1.08); }
.lang-btn:hover svg { stroke: #4a9eff; }
.lang-btn:hover .lang-label { color: #4a9eff; }

.about-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background:
    linear-gradient(135deg, rgba(255, 120, 160, 0.12) 0%, rgba(120, 200, 255, 0.12) 50%, rgba(160, 120, 255, 0.12) 100%),
    rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.3s, border-color 0.3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.05);
  z-index: 102;
  pointer-events: auto;
}

.about-dropdown::before {
  display: none;
}

body.light .nav-dropdown,
body.light .about-dropdown,
body.eye-care .nav-dropdown,
body.eye-care .about-dropdown {
  background:
    linear-gradient(135deg, rgba(255, 120, 160, 0.14) 0%, rgba(120, 200, 255, 0.14) 50%, rgba(160, 120, 255, 0.14) 100%),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.6);
}

body.light .nav-dropdown::before,
body.light .about-dropdown::before,
body.eye-care .nav-dropdown::before,
body.eye-care .about-dropdown::before {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.6);
}

.nav-about-wrap.open .about-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.about-dropdown .dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s;
}

.about-dropdown .dropdown-link:hover {
  color: #4a9eff;
  background: rgba(74, 158, 255, 0.08);
}

.about-dropdown .divider,
.nav-dropdown .divider {
  height: 1px;
  background: var(--border);
  margin: 4px 14px;
}

.about-dropdown .footer-info {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 4px 14px 2px;
}

/* ===== 页面通用 ===== */
.page-content {
  padding-top: 64px;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  transition: border-color 0.3s;
}

.footer .highlight {
  color: #4a9eff;
  font-weight: 500;
}

.footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer a:hover { color: #4a9eff; }

/* 页脚联系方式（邮箱图标，不展示明文地址） */
.footer-contact { margin-top: 8px; }

/* 页脚致谢:服务器 / CDN 支持方(带 logo) */
.footer-thanks {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px 14px;
}
.footer-thanks a {
  color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.footer-thanks a:hover { color: #4a9eff; }
.ft-logo { height: 14px; width: auto; border-radius: 3px; vertical-align: middle; opacity: 0.9; }
.ft-logo-light { background: #fff; padding: 2px 5px; height: 18px; border-radius: 4px; }
.ft-sep { opacity: 0.5; }
.footer-mail {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px; border-radius: 8px; cursor: pointer;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.footer-mail:hover { color: #4a9eff; background: rgba(74, 158, 255, 0.08); }
.footer-mail svg { width: 16px; height: 16px; }

/* 页脚天气（IP 定位 + Open-Meteo） */
.footer-weather {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.fw-loc { color: var(--text); font-weight: 500; }
.fw-now { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.fw-days { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.fw-day { display: inline-flex; align-items: center; gap: 4px; }
.fw-ic { flex-shrink: 0; }
.fw-now .fw-ic { width: 15px; height: 15px; }
.fw-day .fw-ic { width: 13px; height: 13px; }
.fw-ic-sun, .fw-ic-sun-cloud { color: #f6b73c; }
.fw-ic-cloud, .fw-ic-fog { color: #9aa7bf; }
.fw-ic-rain { color: #4a9eff; }
.fw-ic-snow { color: #8ecdf5; }
.fw-ic-storm { color: #a78bfa; }

/* ===== 页面切换光带：导航栏下方一闪而过 ===== */
.nav-flash {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 99;
  pointer-events: none;
  overflow: hidden;
}
.nav-flash::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #4a9eff 25%, #a78bfa 50%, #ff6b9d 75%, transparent);
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.55);
  animation: nav-sweep 0.9s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}
@keyframes nav-sweep {
  0% { transform: translateX(-110%); opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(245%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-flash { display: none; }
}

/* ===== 页面标题 ===== */
.page-title {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}

.page-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.card {
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

/* ===== 白框面板（全站统一：首页三件套 / 镜像工具卡 / 赞赏 / 致谢） ===== */
.panel {
  background:
    linear-gradient(135deg, rgba(255,120,160,0.12) 0%, rgba(120,200,255,0.12) 50%, rgba(160,120,255,0.12) 100%),
    rgba(18,18,26,0.95);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 24px 26px;
  margin-bottom: 20px;
}
body.light .panel,
body.eye-care .panel {
  background:
    linear-gradient(135deg, rgba(255,120,160,0.14) 0%, rgba(120,200,255,0.14) 50%, rgba(160,120,255,0.14) 100%),
    rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.6);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.55);
}

body .url-input-group input,
body .result-url input,
body .proxy-controls input {
  background: transparent;
}

/* 页面内自定义下拉（代理池）：实背景 + 白框，防止内容穿透 */
body .custom-select .select-trigger,
body .custom-select .select-options {
  background:
    linear-gradient(135deg, rgba(255, 120, 160, 0.12) 0%, rgba(120, 200, 255, 0.12) 50%, rgba(160, 120, 255, 0.12) 100%),
    rgba(18, 18, 26, 0.95);
  border-color: rgba(255, 255, 255, 0.85);
}

body.light .custom-select .select-trigger,
body.light .custom-select .select-options,
body.eye-care .custom-select .select-trigger,
body.eye-care .custom-select .select-options {
  background:
    linear-gradient(135deg, rgba(255, 120, 160, 0.14) 0%, rgba(120, 200, 255, 0.14) 50%, rgba(160, 120, 255, 0.14) 100%),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.6);
}

.card h3 {
  font-size: 16px;
  color: #4a9eff;
  margin-bottom: 12px;
}

.card p,
.card li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.card ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.card li {
  margin-bottom: 6px;
}

.card strong {
  color: var(--text);
  font-weight: 600;
}

.card a {
  color: #4a9eff;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.muted {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  opacity: 0.8;
}

/* ===== 响应式 ===== */
/* 平板（≤1024px）：收紧导航与容器留白 */
@media (max-width: 1024px) {
  .navbar { padding: 0 20px; }
  .nav-logo { margin-right: 18px; }
  .nav-links { gap: 20px; }
  .nav-item { font-size: 15px; }
  .nav-item svg { width: 20px; height: 20px; }
  .container { padding: 32px 20px; }
}

/* 大屏手机（≤768px）：隐藏站名文字，导航全面收紧 */
@media (max-width: 768px) {
  .logo-text { display: none; }
  .nav-logo { margin-right: 10px; }
  .nav-logo img { width: 34px; height: 34px; }
  .nav-links { gap: 16px; }
  .nav-item { font-size: 13px; gap: 5px; }
  .nav-item svg { width: 16px; height: 16px; }
  .nav-item .arrow-icon { width: 10px; height: 10px; }
  .nav-dropdown, .about-dropdown { min-width: 176px; }
  .container { padding: 28px 16px; }
  .page-title { font-size: 22px; }
  .page-desc { font-size: 13px; margin-bottom: 24px; }
  .card { padding: 18px; }
  .panel { padding: 18px 16px; }
  .footer { padding: 20px 14px; margin-top: 40px; }
  .footer-weather { font-size: 12px; gap: 4px 12px; }
}

/* 小屏手机（≤560px）：纯图标导航，点图标即达 */
@media (max-width: 560px) {
  .nav-label { display: none; }
  .nav-item .arrow-icon { display: none; }
  .nav-links { gap: 14px; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-logo img { width: 30px; height: 30px; }
  .theme-btn svg { width: 19px; height: 19px; }
  body { padding-top: 56px; }
  .navbar { height: 56px; }
  .page-content { padding-top: 56px; }
  .nav-flash { top: 56px; }
  .container { padding: 24px 12px; }
  .page-title { font-size: 20px; }
  .card h3 { font-size: 15px; }
  .card p, .card li { font-size: 13px; }
}

/* ===== 移动端性能优化：关闭高开销滤镜与背景动画（观感基本不变） ===== */
@media (max-width: 860px) {
  body::before, body::after { filter: none; animation: none; }
  .navbar,
  .nav-dropdown,
  .about-dropdown { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .navbar {
    background:
      linear-gradient(135deg, rgba(255, 120, 160, 0.08) 0%, rgba(120, 200, 255, 0.08) 50%, rgba(160, 120, 255, 0.08) 100%),
      rgba(10, 10, 16, 0.94);
  }
  body.light .navbar,
  body.eye-care .navbar {
    background:
      linear-gradient(135deg, rgba(255, 120, 160, 0.10) 0%, rgba(120, 200, 255, 0.10) 50%, rgba(160, 120, 255, 0.10) 100%),
      rgba(255, 255, 255, 0.96);
  }
}

/* 系统开启"减少动态效果"时同样停掉背景动画 */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

/* ===== QQ 交流群：右侧悬浮入口(全站显示,配色与站内白框面板一致,无图标) ===== */
.qq-float {
  position: fixed;
  right: 0;
  top: 55%;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,120,160,0.12) 0%, rgba(120,200,255,0.12) 50%, rgba(160,120,255,0.12) 100%),
    rgba(18,18,26,0.95);
  border: 1px solid rgba(255,255,255,0.85);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 16px rgba(0,0,0,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.qq-float:hover { color: #4a9eff; border-color: #4a9eff; }
body.light .qq-float,
body.eye-care .qq-float {
  background:
    linear-gradient(135deg, rgba(255,120,160,0.14) 0%, rgba(120,200,255,0.14) 50%, rgba(160,120,255,0.14) 100%),
    rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.6);
}
@media (max-width: 560px) {
  .qq-float { padding: 8px 11px; font-size: 12px; }
}

/* QQ 悬浮:点击弹出的加群小面板(打开/关闭为淡入 + 从右侧轻滑,不再硬切) */
.qq-pop {
  position: fixed;
  right: 10px;
  top: 55%;
  z-index: 95;
  width: min(240px, calc(100vw - 24px));
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255,120,160,0.12) 0%, rgba(120,200,255,0.12) 50%, rgba(160,120,255,0.12) 100%),
    rgba(18,18,26,0.97);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  /* 默认隐藏:由 .open 切换,过渡结束后才真正不可见(visibility 延迟) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(10px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.qq-pop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .qq-pop { transition: none; }
}
.qq-pop-h { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.qq-pop-n {
  font-family: 'Courier New', monospace; font-size: 18px; font-weight: 700;
  color: #4a9eff; letter-spacing: 1px; margin-bottom: 10px;
}
.qq-pop-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.qq-pop-btn {
  font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  color: var(--text-muted); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18); text-decoration: none;
  transition: color 0.2s, border-color 0.2s; font-family: inherit;
}
.qq-pop-btn:hover { color: #4a9eff; border-color: #4a9eff; }
.qq-pop-main { color: #4a9eff; border-color: rgba(74,158,255,0.45); background: rgba(74,158,255,0.12); }
.qq-pop-tip { font-size: 11.5px; color: var(--text-muted); line-height: 1.7; margin-top: 10px; }
body.light .qq-pop,
body.eye-care .qq-pop {
  background:
    linear-gradient(135deg, rgba(255,120,160,0.14) 0%, rgba(120,200,255,0.14) 50%, rgba(160,120,255,0.14) 100%),
    rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.6);
}
body.light .qq-pop-btn,
body.eye-care .qq-pop-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.18); }
