/* ═══════════════════════════════════════
   Small 3 个人领域 · 全站样式
   （含主页样式 + 设置面板样式）
   ═══════════════════════════════════════ */
:root {
  --accent: #60a5fa;
  --accent-2: #3b82f6;
  --accent-green: #10B981;
  --muted: rgba(200, 210, 220, 0.85);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: #05070d;
  color: #f0f4fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
html.locked, body.locked { overflow: hidden; }

/* ═══════════ 背景层 ═══════════ */
.bg-image {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transform-origin: center;
  transition: opacity 1.4s ease, filter 0.35s ease, transform 0.35s ease;
  z-index: -2;
  pointer-events: none;
}
.bg-image.loaded { opacity: 1; }
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease, filter 0.35s ease;
  pointer-events: none;
}
.bg-video.loaded { opacity: 1; }
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(13, 21, 38, 0.35) 0%, rgba(5, 7, 13, 0.85) 70%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.45) 0%, rgba(5, 7, 13, 0.88) 100%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ═══════════ 简洁模式（Overlay）═══════════ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ov-avatar {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  overflow: hidden;
  border: 2px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 16px 48px rgba(96, 165, 250, 0.22);
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ov-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ov-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 44px;
  letter-spacing: 1px;
  text-align: center;
  background: linear-gradient(to right, #ffffff, #b8d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ov-search {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 800px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.overlay.entered .ov-avatar { opacity: 1; transform: none; transition-delay: 0s; }
.overlay.entered .ov-title  { opacity: 1; transform: none; transition-delay: 0.12s; }
.overlay.entered .ov-search { opacity: 1; transform: none; transition-delay: 0.24s; }
.overlay.entered .scroll-hint { opacity: 1; transform: none; transition-delay: 0.55s; }

/* 下滑提示 */
.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(200, 210, 225, 0.55);
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}
.scroll-hint .arrow {
  font-size: 18px;
  animation: bounceDown 1.9s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ═══════════ 搜索框（两模式共用）═══════════ */
.search-form { flex: 1; display: flex; gap: 10px; min-width: 0; }
.search-input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f0f4fa;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  font-family: inherit;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
  background: rgba(0, 0, 0, 0.42);
}
.search-input::placeholder { color: rgba(200, 210, 225, 0.45); }

.search-button {
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
  font-family: inherit;
}
.search-button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35); }
.search-button:active { transform: translateY(0) scale(0.98); }
.green-button { background: linear-gradient(135deg, var(--accent-green), #0ea271); }
.green-button:hover { box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35); }

/* ═══════════ 完整模式页面 ═══════════ */
.page {
  min-height: 100vh;
  padding: 32px 16px 60px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.page.show { opacity: 1; }

.wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(var(--card-blur, 12px));
  -webkit-backdrop-filter: blur(var(--card-blur, 12px));
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page .anim {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.page .anim.in { opacity: 1; transform: none; }

header.page-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.avatar {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 70px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.25);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(to right, #ffffff, #c8dfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle { margin: 6px 0 0 0; color: var(--muted); font-size: 14px; }

.content { margin-top: 24px; }

/* 模糊控制 */
.blur-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}
.blur-control > span:first-child {
  font-size: 13px; color: rgba(200, 210, 225, 0.85); white-space: nowrap;
}
.blur-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.blur-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease;
}
.blur-slider::-webkit-slider-thumb:active { transform: scale(1.15); }
.blur-value { font-size: 13px; color: rgba(200, 210, 225, 0.85); min-width: 42px; text-align: right; font-weight: 600; }
.blur-reset-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: rgba(200, 210, 225, 0.85);
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.blur-reset-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* 信息栏 */
.info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.info-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.info-card:hover { background: rgba(0, 0, 0, 0.34); transform: translateY(-2px); }
#dateInfoCard { cursor: pointer; border-color: rgba(255, 215, 0, 0.18); }
#dateInfoCard:hover { border-color: rgba(255, 215, 0, 0.5); }
.info-icon { font-size: 26px; flex-shrink: 0; }
.info-label {
  font-size: 11px; color: rgba(200, 210, 225, 0.7);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px;
}
.info-value { font-size: 16px; font-weight: 600; color: #fff; }
#dateInfoCard:hover .info-value { color: #fcd34d; }

/* 快捷按钮 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.quick-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: #f0f4fa;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  font-family: inherit;
}
.quick-action-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.quick-action-btn:active { transform: translateY(0) scale(0.98); }

.intro {
  background: rgba(96, 165, 250, 0.08);
  padding: 16px 18px;
  border-radius: var(--radius);
  color: #e8f0fe;
  font-size: 15px;
  margin-bottom: 22px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  position: relative;
}
.intro::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
}

.search-zone {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* 搜索结果面板（iframe 嵌入） */
.search-container { position: relative; margin-bottom: 22px; }
.search-results {
  width: 100%;
  max-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.15);
}
.search-results.active { max-height: 720px; opacity: 1; }
.embed-hint {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  font-size: 12px;
  color: rgba(200, 210, 225, 0.75);
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}
.embed-hint.show { display: flex; }
.embed-hint a { color: var(--accent); cursor: pointer; text-decoration: none; }
.embed-hint a:hover { text-decoration: underline; }
.results-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}
.results-header.show { display: flex; }
.results-title { font-weight: 600; color: #f0f4fa; font-size: 15px; }
.close-results {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 6px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: #fca5a5;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease;
  font-family: inherit;
}
.close-results:hover { background: rgba(239, 68, 68, 0.36); }
.results-iframe { width: 100%; height: 600px; border: none; display: none; }
.loading {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: rgba(200, 210, 225, 0.9);
  flex-direction: column;
  align-items: center;
}
.loading.show { display: flex; }
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(96, 165, 250, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.initial-message {
  text-align: center;
  padding: 50px 20px;
  color: rgba(200, 210, 225, 0.8);
}
.initial-message h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.initial-message p { margin: 0; font-size: 14px; }

/* 站点卡片 */
.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.links a { text-decoration: none; color: inherit; }
.card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.36);
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}
.card .title { font-weight: 600; color: #fff; font-size: 16px; }
.card .desc { font-size: 13px; color: rgba(200, 210, 225, 0.85); }

footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(200, 210, 225, 0.75);
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* 设置按钮 / 彩蛋入口按钮 */
.settings-btn, .easter-entry-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(200, 210, 225, 0.85);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}
.settings-btn:hover, .easter-entry-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* 悬浮设置按钮（页脚隐藏时的兜底入口） */
.settings-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1200;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  font-family: inherit;
}
.settings-fab:hover { background: rgba(0, 0, 0, 0.75); transform: rotate(45deg); }

/* ═══════════ Toast ═══════════ */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════ 音乐播放器 ═══════════ */
.music-toggle-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  font-family: inherit;
}
.music-toggle-btn:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.06); }
.music-toggle-btn.playing { border-color: var(--accent); box-shadow: 0 0 16px rgba(96, 165, 250, 0.45); }

.music-panel {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 300px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.music-panel.show { opacity: 1; visibility: visible; transform: translateY(0); }

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 6px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.ctrl-btn:hover { background: rgba(255, 255, 255, 0.1); }
.ctrl-btn:active { transform: scale(0.92); }
.ctrl-btn.play-btn { font-size: 22px; }
.loop-btn { font-size: 14px; }
.loop-btn.active { color: var(--accent); }

.music-progress-row { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.music-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
}
.music-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; }
.music-time { font-size: 10px; color: rgba(255, 255, 255, 0.6); min-width: 32px; text-align: center; }
.music-now-playing {
  font-size: 12px;
  color: var(--accent);
  text-align: center;
  padding: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.song-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.song-item:hover { background: rgba(255, 255, 255, 0.08); }
.song-item.active { background: rgba(96, 165, 250, 0.15); border-color: rgba(96, 165, 250, 0.3); color: #fff; }
.song-num { font-size: 10px; color: rgba(255, 255, 255, 0.4); min-width: 18px; text-align: center; }
.song-icon { font-size: 13px; flex-shrink: 0; }
.song-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════ 彩蛋弹窗 ═══════════ */
.easter-egg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.easter-egg-overlay.active { opacity: 1; visibility: visible; }
.easter-egg-panel {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  width: 90vw;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.easter-egg-overlay.active .easter-egg-panel { transform: translateY(0) scale(1); }
.easter-egg-close-btn {
  position: absolute;
  top: 16px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.easter-egg-close-btn:hover { background: rgba(255, 70, 70, 0.2); color: #fca5a5; }

.ee-date-display { text-align: center; margin-bottom: 22px; }
.ee-date-cn {
  font-size: 26px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(to right, #e0f2fe, #bae6fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ee-time-cn { font-size: 17px; color: #b0c4de; margin-top: 6px; }
.progress-group { margin: 14px 0; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 13px; margin-bottom: 6px; color: #cfddee;
}
.progress-bar { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #60a5fa, #a78bfa); border-radius: 6px; width: 0%; transition: width 0.4s ease; }
.festival-name { font-weight: 600; color: #facc15; }

.thaw-card {
  margin-top: 22px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.thaw-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: #fcd34d; }
.thaw-img-wrap {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 12px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.thaw-img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.ice-layer {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 30%),
    linear-gradient(180deg, rgba(90, 170, 250, 0.9) 0%, rgba(70, 150, 240, 0.9) 40%, rgba(50, 130, 220, 0.85) 100%),
    repeating-linear-gradient(30deg, transparent, transparent 8px, rgba(255, 255, 255, 0.15) 8px, rgba(255, 255, 255, 0.15) 9px),
    repeating-linear-gradient(-60deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.1) 7px);
  box-shadow: inset 0 -10px 15px rgba(255, 255, 255, 0.5), 0 0 15px rgba(100, 180, 255, 0.6);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.ice-layer::before {
  content: '';
  position: absolute;
  top: -4px; left: 0;
  width: 100%; height: 8px;
  background:
    radial-gradient(ellipse 20px 8px at 10% 50%, rgba(255,255,255,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 18px 8px at 35% 50%, rgba(255,255,255,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 15px 8px at 55% 50%, rgba(200,230,255,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 22px 8px at 80% 50%, rgba(255,255,255,0.7) 0%, transparent 70%);
  filter: blur(1px);
}
.thaw-percent { font-size: 14px; color: #cbd5e1; }

.easter-egg-panel::-webkit-scrollbar { width: 4px; }
.easter-egg-panel::-webkit-scrollbar-track { background: transparent; }
.easter-egg-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }

/* ═══════════════════════════════════════
   设置面板
   ═══════════════════════════════════════ */
.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: #0a0e17;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.settings-panel.open { transform: translateX(0); visibility: visible; }

.settings-topbar {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}
.settings-topbar h2 { font-size: 16px; margin: 0; font-weight: 600; }
.settings-topbar .saved-hint {
  margin-left: auto;
  font-size: 12px;
  color: rgba(200, 210, 225, 0.5);
}
.settings-body { flex: 1; display: flex; min-height: 0; }

.settings-nav {
  flex: none;
  width: 200px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(200, 210, 225, 0.85);
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  text-align: left;
  font-family: inherit;
}
.settings-nav-item:hover { background: rgba(255, 255, 255, 0.06); }
.settings-nav-item.active {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  color: #fff;
}

.settings-content { flex: 1; overflow-y: auto; padding: 24px 28px 60px; }
.settings-content.anim-fade { animation: contentIn 0.3s ease; }
@keyframes contentIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 功能区选择（胶囊） */
.set-funcs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; max-width: 720px; }
.set-func-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(220, 228, 240, 0.85);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.set-func-pill:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.set-func-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.set-group {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  max-width: 720px;
}
.set-group h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.set-group .set-group-desc { font-size: 12px; color: rgba(200, 210, 225, 0.55); margin: 0 0 12px; }

.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.set-row:last-child { border-bottom: none; }
.set-row .set-label { flex: 1; font-size: 13.5px; color: rgba(220, 228, 240, 0.92); }
.set-row .set-desc { font-size: 11.5px; color: rgba(200, 210, 225, 0.55); margin-top: 2px; }
.set-row input[type="text"],
.set-row input[type="number"],
.set-row input[type="url"],
.set-row select,
.set-row textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f0f4fa;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.set-row input:focus, .set-row select:focus, .set-row textarea:focus { border-color: var(--accent); }
.set-row input[type="color"] { padding: 2px; width: 60px; height: 34px; flex: none; background: transparent; }
.set-row input[type="range"] { accent-color: var(--accent); }

/* 开关 */
.switch { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.25s;
}
.switch .slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 通用按钮 */
.set-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(220, 228, 240, 0.9);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}
.set-btn:hover { background: rgba(255, 255, 255, 0.16); }
.set-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
  font-weight: 600;
}
.set-btn.danger { border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.set-btn.danger:hover { background: rgba(239, 68, 68, 0.15); }
.set-btn.mini { padding: 4px 8px; font-size: 11.5px; }
.set-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 列表条目（搜索/工具/链接/一言/背景列表共用） */
.set-list { display: flex; flex-direction: column; gap: 8px; }
.set-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: itemIn 0.28s ease;
}
.set-item.removing { animation: itemOut 0.2s ease forwards; }
@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes itemOut { to { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.set-item .set-item-head { display: flex; align-items: center; gap: 8px; }
.set-item .set-item-title { flex: 1; font-weight: 600; font-size: 13.5px; color: #fff; }
.set-item .set-item-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.set-item .set-item-fields label { font-size: 11px; color: rgba(200, 210, 225, 0.6); display: block; margin-bottom: 3px; }
.set-item .set-item-fields input,
.set-item .set-item-fields select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f0f4fa;
  padding: 7px 9px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}
.set-item .set-item-fields input:focus, .set-item .set-item-fields select:focus { border-color: var(--accent); }
.set-item .set-item-fields input[type="color"] { padding: 2px; height: 32px; }
.set-item .set-item-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.set-empty { color: rgba(200, 210, 225, 0.5); font-size: 12.5px; text-align: center; padding: 14px; }

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 768px) {
  .wrap { padding: 16px 12px; border-radius: 12px; }
  .page { padding: 12px 8px 32px; }

  .ov-avatar { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 14px; }
  .ov-title { font-size: 19px; margin-bottom: 24px; }
  .ov-search { gap: 8px; flex-direction: column; }
  .ov-search .search-input { padding: 10px 12px; font-size: 14px; }
  .ov-search .search-button { padding: 10px 12px; font-size: 13px; }
  .scroll-hint { bottom: 24px; font-size: 11px; }

  .info-bar { grid-template-columns: 1fr; gap: 8px; }
  .info-card { padding: 10px 12px; gap: 8px; }
  .info-icon { font-size: 20px; }
  .info-value { font-size: 13px; }
  .info-label { font-size: 10px; }

  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .quick-action-btn { padding: 8px 4px; font-size: 11px; gap: 3px; }

  .blur-control { padding: 8px 10px; gap: 8px; }
  .blur-control > span:first-child { font-size: 11px; }
  .blur-slider { height: 5px; }
  .blur-slider::-webkit-slider-thumb { width: 16px; height: 16px; }
  .blur-value { font-size: 11px; min-width: 34px; }
  .blur-reset-btn { padding: 3px 8px; font-size: 11px; }

  .intro { padding: 10px 12px; font-size: 13px; }

  .search-zone { flex-direction: column; gap: 8px; }
  .search-input { padding: 10px 12px; font-size: 14px; }
  .search-button { padding: 10px 14px; font-size: 13px; }

  .links { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 12px; gap: 4px; }
  .card .title { font-size: 14px; }
  .card .desc { font-size: 12px; }

  header.page-header { gap: 12px; margin-bottom: 12px; padding-bottom: 12px; }
  .avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; }
  .avatar-fallback { font-size: 18px; }
  h1 { font-size: 17px; }
  .subtitle { font-size: 12px; }

  footer { font-size: 12px; padding-top: 14px; margin-top: 18px; }

  .music-panel { width: 260px; right: 8px; bottom: 68px; }
  .music-toggle-btn { width: 40px; height: 40px; bottom: 16px; right: 8px; font-size: 17px; }

  /* 设置面板移动端 */
  .settings-nav { width: 64px; padding: 10px 6px; }
  .settings-nav-item { justify-content: center; padding: 10px 4px; }
  .settings-nav-item .nav-text { display: none; }
  .settings-content { padding: 16px 12px 40px; }
}

@media (max-width: 480px) {
  .ov-avatar { width: 56px; height: 56px; border-radius: 14px; }
  .ov-title { font-size: 17px; margin-bottom: 20px; }

  header.page-header { flex-direction: column; align-items: center; text-align: center; }
  .avatar { width: 48px; height: 48px; flex: 0 0 48px; }
  h1 { font-size: 16px; }

  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .quick-action-btn { padding: 7px 3px; font-size: 10px; }

  .info-card { padding: 8px 10px; }
  .info-icon { font-size: 18px; }
  .info-value { font-size: 12px; }

  .search-input { padding: 9px 10px; font-size: 13px; }
  .search-button { padding: 9px 10px; font-size: 12px; }

  .card { padding: 10px; }
  .card .title { font-size: 13px; }
  .card .desc { font-size: 11px; }
}

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