/* ============================================================
   main.css - imsyy/home v10 风格（完整重写）
   包含：壁纸展示、设置面板、音乐播放器、时光胶囊增强、响应式完善
   ============================================================ */

/* === CSS 变量 === */
:root {
  --bg-body: #333;
  --bg-card: rgba(255, 255, 255, 0.1);
  --bg-card-hover: rgba(255, 255, 255, 0.18);
  --bg-modal: rgba(0, 0, 0, 0.6);
  --bg-input: rgba(255, 255, 255, 0.08);
  --text-primary: #efefef;
  --text-secondary: #ddd;
  --text-muted: #aaa;
  --accent: rgb(57, 159, 255);
  --accent-hover: rgb(90, 175, 255);
  --accent-gradient: linear-gradient(135deg, var(--accent), #a855f7);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
  --blur: blur(20px);
  --blur-light: blur(10px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 25px;
  --font-family: 'HarmonyOS_Regular', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'UnidreamLED', 'Courier New', monospace;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
  --bg-body: #1a1a2e; --bg-card: rgba(255,255,255,0.06); --bg-card-hover: rgba(255,255,255,0.1);
  --text-primary: #e0e0e0; --text-secondary: #b0b0b0; --text-muted: #808080;
  --accent: #00b4d8; --accent-hover: #0096c7; --accent-gradient: linear-gradient(135deg, var(--accent), #0077b6);
  --border: rgba(255,255,255,0.06); --border-light: rgba(255,255,255,0.1);
}
[data-theme="forest"] {
  --bg-body: #1a2f1a; --bg-card: rgba(100,180,100,0.1); --bg-card-hover: rgba(100,180,100,0.15);
  --text-primary: #e8f5e9; --text-secondary: #c8e6c9; --text-muted: #81c784;
  --accent: #66bb6a; --accent-hover: #4caf50; --accent-gradient: linear-gradient(135deg, var(--accent), #388e3c);
  --border: rgba(100,180,100,0.15); --border-light: rgba(100,180,100,0.25);
}
[data-theme="ocean"] {
  --bg-body: #0d1b2a; --bg-card: rgba(100,180,220,0.08); --bg-card-hover: rgba(100,180,220,0.12);
  --text-primary: #e0f7fa; --text-secondary: #b2ebf2; --text-muted: #80deea;
  --accent: #00bcd4; --accent-hover: #00acc1; --accent-gradient: linear-gradient(135deg, var(--accent), #006064);
  --border: rgba(100,180,220,0.12); --border-light: rgba(100,180,220,0.2);
}
[data-theme="warm"] {
  --bg-body: #2d1f1a; --bg-card: rgba(220,160,100,0.1); --bg-card-hover: rgba(220,160,100,0.15);
  --text-primary: #fff3e0; --text-secondary: #ffccbc; --text-muted: #ffab91;
  --accent: #ff8a65; --accent-hover: #ff7043; --accent-gradient: linear-gradient(135deg, var(--accent), #d84315);
  --border: rgba(220,160,100,0.15); --border-light: rgba(220,160,100,0.25);
}

/* === 全局重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body {
  width: 100%; height: 100%; background-color: var(--bg-body);
  color: var(--text-primary); font-family: var(--font-family); line-height: 1.6;
  overflow-x: hidden; user-select: none;
  transition: background var(--transition-slow), color var(--transition-normal);
}
a { color: var(--text-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }
button { font-family: var(--font-family); cursor: pointer; border: none; outline: none; background: none; }
input, textarea { font-family: var(--font-family); outline: none; }

/* === 自定义字体 === */
@font-face {
  font-family: "HarmonyOS_Regular"; font-display: swap;
  src: url("https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css") format("truetype");
}

/* === 滚动条 === */
::-webkit-scrollbar { width: 6px; height: 6px; background-color: transparent; }
::-webkit-scrollbar-thumb { border-radius: 10px; background-color: rgba(238,238,238,0.5); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(238,238,238,0.8); }
::-webkit-scrollbar-track { background-color: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(238,238,238,0.5) transparent; }

/* === 全屏背景图层（imsyy 风格：模糊+暗化）=== */
.bg-layer {
  position: fixed; inset: 0; z-index: 0;
  background: center/cover no-repeat;
  background-color: var(--bg-body);
  transition: background var(--transition-slow);
}
.bg-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  transition: opacity 1.5s, backdrop-filter 1.5s;
}
.bg-overlay.hidden {
  opacity: 0;
}
body.has-bg .bg-overlay { background: rgba(0,0,0,0.4); }

/* === 壁纸展示模式（imsyy 风格）=== */
.bg-cover-show {
  position: fixed; inset: 0; z-index: 999;
}
.bg-cover-show img {
  width: 100%; height: 100%; object-fit: cover;
  animation: fadeBlurIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.bg-download {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 14px; color: #fff; padding: 16px 24px; border-radius: 8px;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(10px);
  transition: all 0.3s; z-index: 1000;
}
.bg-download:hover { background: rgba(0,0,0,0.5); transform: translateX(-50%) scale(1.05); }
.bg-download:active { transform: translateX(-50%) scale(1); }

/* === 毛玻璃卡片（imsyy 风格）=== */
.cards {
  background-color: var(--bg-card);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}
.cards:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.cards:active { transform: scale(1); }

/* === 主界面容器 === */
#mainContent {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  animation: fadeBlurIn 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
  z-index: 1;
}
.container { width: 100%; height: 100vh; margin: 0 auto; padding: 0 0.5vw; position: relative; }
.all {
  width: 100%; height: 100%; padding: 0 0.75rem;
  display: flex; flex-direction: row;
  justify-content: center; align-items: center;
}

/* === 页脚（imsyy 风格）=== */
.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  text-align: center; padding: 12px; font-size: 12px;
  color: var(--text-muted); z-index: 2;
  animation: fadeIn 0.5s;
}

/* === 左侧区域（imsyy 风格）=== */
.left {
  width: 50%; padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative;
}

/* === Logo（Pacifico 手写字体）=== */
.logo-wrapper {
  text-align: center; margin-bottom: 2rem;
  animation: fade 0.5s;
}
.logo-pacifico {
  font-family: 'Pacifico', cursive; font-size: 2.25rem;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  letter-spacing: 1px;
}
.logo-pacifico .logo-bg { font-size: inherit; }
.logo-pacifico .logo-sm {
  font-size: 0.5em; opacity: 0.7; vertical-align: super;
}
.logo-desc {
  font-size: 0.9rem; color: var(--text-muted);
  margin-top: 8px; max-width: 300px;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* === 一言卡片（imsyy 风格：含音乐入口）=== */
.hitokoto {
  width: 100%; max-width: 460px; padding: 20px;
  animation: fade 0.5s; cursor: pointer;
  margin-bottom: 1rem; position: relative; overflow: hidden;
}
.hitokoto-content {
  height: 100%; display: flex; flex-direction: column;
  justify-content: space-evenly;
}
.hitokoto-text {
  font-size: 1.1rem; word-break: break-all;
  text-overflow: ellipsis; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.hitokoto-from {
  margin-top: 10px; font-weight: bold;
  align-self: flex-end; font-size: 1rem;
  opacity: 0.8;
}
/* 音乐入口按钮（imsyy 风格：悬停出现） */
.open-music {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2); padding: 4px 0;
  border-radius: 10px 10px 0 0;
  font-size: 0.95rem; gap: 6px;
  opacity: 0; transition: opacity 0.3s;
}
.hitokoto:hover .open-music { opacity: 1; }

/* === 音乐播放器（imsyy 风格）=== */
.music-player {
  width: 100%; max-width: 460px; padding: 20px;
  animation: fade 0.5s; margin-bottom: 1rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
}
.music-btns {
  display: flex; align-items: center; gap: 20px; margin-bottom: 12px;
}
.music-btns span {
  font-size: 24px; cursor: pointer; padding: 8px;
  border-radius: 6px; transition: background 0.2s;
}
.music-btns span:hover { background: rgba(255,255,255,0.15); }
.music-state { font-size: 32px !important; }
.music-info {
  font-size: 14px; text-align: center;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
  width: 100%; margin-bottom: 8px;
}
.music-actions {
  display: flex; gap: 12px;
}
.music-actions span {
  font-size: 13px; padding: 2px 10px;
  background: rgba(255,255,255,0.15); border-radius: 6px;
  cursor: pointer; transition: background 0.2s;
}
.music-actions span:hover { background: rgba(255,255,255,0.25); }

/* === 天气+时间 卡片 === */
.weather-time {
  width: 100%; max-width: 460px; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  animation: fade 0.5s; cursor: default;
  margin-bottom: 1rem;
}
.wt-left { display: flex; align-items: center; gap: 8px; }
.wt-icon { font-size: 22px; }
.wt-text { font-size: 0.95rem; }
.wt-right { text-align: right; }
.wt-time { font-size: 1.6rem; font-weight: 700; font-family: var(--font-mono); letter-spacing: 2px; }
.wt-date { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* === 时光胶囊（增强版：含详情）=== */
.time-capsule {
  width: 100%; max-width: 460px;
  animation: fade 0.5s; margin-bottom: 1rem;
}
.capsule-title {
  font-size: 1.1rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 6px;
}
.capsule-item { margin-bottom: 0.8rem; }
.capsule-label {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; margin-bottom: 4px;
}
.capsule-pct { color: var(--accent); font-weight: 600; }
.capsule-bar {
  height: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden;
}
.capsule-fill {
  height: 100%; border-radius: 4px;
  background: var(--accent-gradient);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.capsule-detail {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted);
  margin-top: 2px;
}
.capsule-detail .remaining { font-style: oblique; opacity: 0.6; font-size: 0.75rem; }
.capsule-start { margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }

/* === 社交链接（imsyy 风格）=== */
.social {
  margin-top: 1rem; display: flex; align-items: center;
  justify-content: space-between; max-width: 460px;
  width: 100%; height: 42px;
  background-color: transparent; border-radius: 6px;
  backdrop-filter: blur(0); animation: fade 0.5s;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}
.social:hover { background-color: rgba(0,0,0,0.25); backdrop-filter: blur(5px); }
.social-link-row { display: flex; align-items: center; justify-content: center; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  margin: 0 12px; font-size: 20px; transition: transform 0.3s; cursor: pointer;
}
.social-icon:hover { transform: scale(1.1); }
.social-icon:active { transform: scale(1); }
.social-icon img { transition: transform 0.3s; }
.social-tip {
  display: none; margin-right: 12px; font-size: 0.85rem;
  color: var(--text-muted); animation: fade 0.5s;
}
.social:hover .social-tip { display: block; }

/* === 左侧操作按钮 === */
.left-actions {
  position: absolute; top: 1.5rem; right: 1.5rem;
  display: flex; gap: 8px;
}
.action-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.2); backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-primary);
  transition: all var(--transition-normal); cursor: pointer;
}
.action-btn:hover { background: rgba(0,0,0,0.35); border-color: var(--accent); color: var(--accent); transform: scale(1.05); }

/* === 右侧区域（imsyy 风格：链接卡片 + 模块面板）=== */
.right {
  width: 50%; margin-left: 0.75rem;
  display: flex; flex-direction: column;
  overflow-y: auto; position: relative;
}

/* === 链接区域（imsyy Links 风格）=== */
.links { width: 100%; animation: fade 0.5s; }
.links-line {
  margin: 0.25rem 0 1rem; font-size: 1.1rem;
  display: flex; align-items: center;
  animation: fade 0.5s;
}
.links-icon { margin-right: 6px; }
.links-title { font-size: 1.15rem; text-shadow: 0 0 5px rgba(0,0,0,0.3); }
.links-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding: 5px 10px;
}
.link-item {
  height: 100px; width: 100%;
  display: flex; align-items: center; flex-direction: row;
  justify-content: center; padding: 0 10px;
  animation: fade 0.5s;
}
.link-item:hover { background: rgba(0,0,0,0.4); }
.link-item:active { transform: scale(1); }
.link-icon { font-size: 26px; margin-right: 10px; flex-shrink: 0; }
.link-name { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === 模块详情面板（右侧替换展示）=== */
.module-panel {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg-card); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.module-panel-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.module-back {
  background: none; border: none; color: var(--text-secondary);
  font-size: 14px; cursor: pointer; padding: 6px 12px;
  border-radius: var(--radius-sm); transition: all 0.2s;
}
.module-back:hover { background: rgba(255,255,255,0.08); color: var(--accent); }
.module-panel-title { font-size: 16px; font-weight: 600; }
.module-panel-body { flex: 1; overflow: hidden; }

/* === 设置面板（imsyy MoreSet 风格）=== */
.more-set {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.set-inner {
  width: 100%; max-width: 480px; max-height: 85vh;
  overflow-y: auto; padding: 28px;
  background: var(--bg-card); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.set-title {
  font-size: 18px; font-weight: 600; margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.set-section {
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.set-section:last-child { border-bottom: none; margin-bottom: 0; }
.set-section-title {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}

/* 背景选项 */
.bg-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.bg-option {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  border: 2px solid transparent; background: rgba(255,255,255,0.06);
  cursor: pointer; transition: all 0.2s; font-size: 13px;
}
.bg-option:hover { background: rgba(255,255,255,0.1); }
.bg-option.active { border-color: var(--accent); background: rgba(57,159,255,0.08); }
.bg-option input { display: none; }

/* 设置项 */
.set-item {
  display: flex; flex-direction: row;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap; font-size: 14px; padding: 8px 0;
}
.set-text { font-size: 14px; }
.set-hint { font-size: 12px; color: var(--text-muted); width: 100%; margin-top: 4px; }

/* 上传区域 */
.bg-upload-area {
  padding: 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  text-align: center; cursor: pointer; font-size: 13px; color: var(--text-muted);
  transition: all 0.2s; margin-top: 10px;
}
.bg-upload-area:hover { border-color: var(--accent); color: var(--accent); }

/* 主题网格 */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.theme-dot {
  width: 100%; padding: 8px 6px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); cursor: pointer; font-size: 12px; text-align: center;
  background: transparent; color: var(--text-primary); transition: all 0.2s; font-family: var(--font-family);
}
.theme-dot.active { border-color: var(--accent); color: var(--accent); font-weight: 600; background: rgba(57,159,255,0.08); }
.theme-dot:hover:not(.active) { border-color: var(--border-light); background: var(--bg-card-hover); }

/* === 邀请码弹窗 === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-modal);
  backdrop-filter: var(--blur-light); -webkit-backdrop-filter: var(--blur-light);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease; padding: 20px;
}
.modal-box {
  background: var(--bg-card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 420px;
  padding: 40px 32px;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-logo { text-align: center; font-size: 48px; margin-bottom: 12px; }
.modal-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.modal-sub { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.modal-msg { font-size: 13px; text-align: center; margin-top: 14px; min-height: 18px; }
.modal-msg.error { color: #e74c3c; }
.modal-msg.success { color: #2ecc71; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.modal-tip { font-size: 12px; color: var(--text-muted); cursor: pointer; }
.modal-tip:hover { color: var(--accent); }

/* === Tab 切换 === */
.auth-tab {
  flex: 1; padding: 8px; border: none; border-radius: 8px;
  cursor: pointer; font-size: 12px; background: transparent;
  transition: var(--transition-fast); font-family: var(--font-family);
  color: var(--text-secondary);
}
.auth-tab.active { background: var(--bg-card); box-shadow: 0 1px 4px rgba(0,0,0,0.08); font-weight: 600; color: var(--accent); }

/* === 按钮 === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 24px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg-card);
  backdrop-filter: var(--blur-light); -webkit-backdrop-filter: var(--blur-light);
  color: var(--text-primary); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all var(--transition-normal);
  text-decoration: none; user-select: none; white-space: nowrap;
}
.btn:hover { transform: scale(1.02); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover); }
.btn-sm { padding: 6px 16px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(57,159,255,0.08); color: var(--accent); border-color: rgba(57,159,255,0.3); }

/* === 输入框 === */
.input-field {
  width: 100%; padding: 12px 18px;
  border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  background: var(--bg-input); color: var(--text-primary);
  font-size: 14px; transition: all var(--transition-fast);
}
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57,159,255,0.15); }
.input-field::placeholder { color: var(--text-muted); }
textarea.input-field { border-radius: var(--radius-md); resize: vertical; min-height: 100px; line-height: 1.6; }
.input-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; margin-bottom: 10px; padding-left: 4px; }

/* === 加载动画 === */
.loading-screen {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-body);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity 0.5s;
}
.loading-logo { font-size: 64px; animation: pulse 1.5s ease-in-out infinite; }
.loading-text { font-size: 16px; color: var(--text-muted); animation: fadeInOut 2s ease-in-out infinite; }
.loading-bar { width: 200px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.loading-bar-inner { height: 100%; background: var(--accent-gradient); border-radius: 2px; transition: width 0.3s; width: 0; }

/* === 移动端菜单 === */
.mobile-menu {
  display: none; position: fixed; bottom: 10%; left: calc(50% - 28px);
  width: 56px; height: 34px; background: rgba(0,0,0,0.2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: 6px; align-items: center; justify-content: center;
  z-index: 999; cursor: pointer; transition: transform 0.3s;
  animation: fadeIn 0.5s; border: 1px solid var(--border);
  color: var(--text-primary); font-size: 18px;
}
.mobile-menu:active { transform: scale(0.95); }

/* === 动画关键帧 === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes fadeInOut { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeBlurIn {
  from { transform: scale(1.2); filter: blur(10px); opacity: 0; }
  to { transform: scale(1); filter: blur(0); opacity: 1; }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0) translateY(-200px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* === 响应式 === */
@media (max-width: 1200px) {
  .container { padding: 0 2vw; }
}

@media (max-width: 840px) {
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .social { max-width: 100%; justify-content: center; }
  .social .social-link-row { width: 90%; justify-content: space-evenly; }
  .social .social-tip { display: none !important; }
}

@media (max-width: 720px) {
  .all { flex-direction: column; }
  .left {
    width: 100%; padding: 1rem; padding-top: 80px;
    min-height: 100vh; justify-content: flex-start;
    display: none;
  }
  .left.show {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100; background: transparent;
  }
  .right { width: 100%; margin-left: 0; padding: 80px 16px 24px; }
  .mobile-menu { display: flex; }
  .logo-pacifico { font-size: 1.8rem; }
  .links-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .link-item { height: 80px; }
  .hitokoto { max-width: 100%; }
  .weather-time { max-width: 100%; }
  .time-capsule { max-width: 100%; }
  .music-player { max-width: 100%; }
  .modal-box { padding: 24px 18px; max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: auto; max-height: 90vh; overflow-y: auto; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .module-panel { border-radius: 0; }
  .set-inner { max-width: 100%; max-height: 100vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: auto; }
  .more-set { align-items: flex-end; }
  .site-footer { display: none; }
}

@media (max-width: 460px) {
  .link-item { flex-direction: column; height: 90px; }
  .link-icon { margin-right: 0; margin-bottom: 4px; }
  .link-name { font-size: 0.95rem; }
  .bg-options { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-height: 720px) {
  #mainContent { overflow-y: auto; overflow-x: hidden; }
  .container { height: 721px; }
  .site-footer { position: relative; }
}

/* === 无障碍 === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(57,159,255,0.3); color: var(--text-primary); }
