/* ===== 设计 Token ===== */
:root {
  --bg-deep: #050A05;
  --bg-card: #0F2B0F;
  --bg-card-2: #163316;
  --bg-elevated: #1A3A1A;
  --accent: #4ADE80;
  --accent-bright: #86EFAC;
  --accent-dim: #2D7A4A;
  --text-primary: #E8F5E9;
  --text-secondary: #81C784;
  --text-muted: #4A7A52;
  --border: rgba(74, 222, 128, 0.15);
  --radius-pill: 9999px;
  --radius-card: 24px;
  --radius-btn: 16px;
  --shadow-glow: 0 0 30px rgba(74, 222, 128, 0.25);
  --font: 'Porsche Next', 'Porsche', 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* 输入框允许正常选择文字 */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

html, body {
  height: 100%;
  height: 100dvh;   /* 动态视口高度，避免移动端地址栏导致底部溢出 */
  background: var(--bg-deep);
  font-family: var(--font);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== 粒子画布背景（保留兼容） ===== */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  display: none;
}

/* ===== 霓虹背景动画 ===== */
:root {
  --nx: 0;
  --ny: 0;
}

.neon-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(calc(var(--nx) * -30px), calc(var(--ny) * -30px), 0);
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.glow-blob-1 {
  top: -30%; left: -20%;
  width: 90vmin; height: 90vmin;
  background: radial-gradient(circle,
    rgba(255, 154, 203, 0.4) 0%,
    rgba(255, 120, 180, 0.28) 30%,
    rgba(168, 85, 247, 0.16) 60%,
    transparent 80%);
  animation: neon-blob1 22s ease-in-out infinite;
}

.glow-blob-2 {
  top: 80%; left: 80%;
  width: 85vmin; height: 85vmin;
  background: radial-gradient(circle,
    rgba(147, 51, 234, 0.32) 0%,
    rgba(99, 102, 241, 0.22) 40%,
    rgba(255, 154, 203, 0.14) 70%,
    transparent 85%);
  animation: neon-blob2 26s ease-in-out infinite;
}

.glow-blob-3 {
  top: 50%; left: 50%;
  margin: -35vmin 0 0 -35vmin;
  width: 70vmin; height: 70vmin;
  background: radial-gradient(circle,
    rgba(125, 211, 252, 0.3) 0%,
    rgba(147, 197, 253, 0.2) 50%,
    rgba(255, 154, 203, 0.12) 70%,
    transparent 85%);
  animation: neon-blob3 19s ease-in-out infinite;
}

@keyframes neon-blob1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  20%  { transform: translate3d(70vw, 80vh, 0) scale(1.2); }
  40%  { transform: translate3d(90vw, 30vh, 0) scale(0.9); }
  60%  { transform: translate3d(40vw, 90vh, 0) scale(1.1); }
  80%  { transform: translate3d(20vw, 50vh, 0) scale(1.15); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes neon-blob2 {
  0%   { transform: translate3d(0, 0, 0) scale(1.1); }
  25%  { transform: translate3d(-80vw, -90vh, 0) scale(0.85); }
  50%  { transform: translate3d(-50vw, -40vh, 0) scale(1.25); }
  75%  { transform: translate3d(-20vw, -70vh, 0) scale(0.95); }
  100% { transform: translate3d(0, 0, 0) scale(1.1); }
}

@keyframes neon-blob3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  15%  { transform: translate3d(-40vw, 20vh, 0) scale(1.15); }
  30%  { transform: translate3d(10vw, 10vh, 0) scale(0.85); }
  45%  { transform: translate3d(20vw, -30vh, 0) scale(1.2); }
  60%  { transform: translate3d(-30vw, -40vh, 0) scale(1.05); }
  75%  { transform: translate3d(-10vw, 30vh, 0) scale(0.8); }
  90%  { transform: translate3d(30vw, -5vh, 0) scale(1.1); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.neon-embers {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(calc(var(--nx) * 12px), calc(var(--ny) * 12px), 0);
}

.neon-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(calc(var(--nx) * 16px), calc(var(--ny) * 16px), 0);
}

.neon-star {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(74, 222, 128, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  animation: neon-twinkle 2s infinite;
}

.neon-star.white {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.neon-star.violet {
  background: rgba(168, 85, 247, 0.9);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.9);
}

.neon-star.cyan {
  background: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
}

@keyframes neon-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.5); }
}

/* ===== 首页渐变标题 ===== */
.hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #4ade80 30%, #38bdf8 60%, #a855f7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-gradient-shift 5s ease infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.3));
}

@keyframes hero-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== 手机容器 ===== */
.phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;   /* 动态视口高度，避免移动端地址栏导致底部溢出 */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== 状态栏 ===== */
.status-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 14px 24px 8px;
  flex-shrink: 0;
  background: transparent;
  opacity: 0;
  animation: fadeDown 0.6s ease 0.2s forwards;
}
.status-bar .left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.status-bar .pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
.status-bar #clock {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-bright);
  line-height: 1;
  vertical-align: middle;
}

/* ===== 主内容区 ===== */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px 110px;
  scrollbar-width: none;
}
.content::-webkit-scrollbar { display: none; }

/* ===== 视图切换 ===== */
.view { display: none; animation: viewIn 0.35s ease; }
.view.active { display: block; }

/* 只用透明度淡入，避免 transform 导致 backdrop-filter 毛玻璃延迟/闪烁 */
@keyframes viewIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Hero 标题区 ===== */
.hero {
  text-align: center;
  padding: 32px 0 24px;
  opacity: 0;
  animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-bright);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero-badge .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
.hero h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.hero p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 首页统计卡片 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0;
  opacity: 0;
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
.stat-item {
  text-align: center;
  padding: 12px 4px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.09) 0%,
    rgba(255,255,255,0.03) 100%),
    rgba(35, 28, 48, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1.2;
}
.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 余额卡片 ===== */
.balance-card {
  width: 100%;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.balance-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.05), transparent);
  animation: shimmer 4s ease-in-out infinite;
}
.balance-header { margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.balance-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.balance-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.balance-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.balance-value {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.5px;
}

/* ===== 多账号余额网格 ===== */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.account-item {
  text-align: center;
  padding: 10px 6px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
}
.account-item:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.account-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.account-balance {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1.2;
}
.account-balance .acc-currency {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-right: 1px;
}
.account-balance.status-unknown {
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
}
.account-balance.status-error {
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
}

/* ===== 首页每日一句 ===== */
.daily-sentence {
  text-align: center;
  padding: 16px 20px;
  opacity: 0;
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}
.daily-sentence .quote-mark {
  color: var(--accent-dim);
  font-size: 18px;
}
.daily-sentence .sentence-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

/* ===== 页面标题 ===== */
.page-header {
  padding: 20px 0 16px;
  opacity: 0;
  animation: heroIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.page-header h2 {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.page-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  opacity: 0;
  animation: cardIn 0.5s ease 0.4s forwards;
  transition: border-color 0.2s, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search-bar:focus-within {
  border-color: rgba(74,222,128,0.4);
  box-shadow: 0 0 20px rgba(74,222,128,0.1);
}
.search-bar svg { width: 16px; height: 16px; fill: none; stroke: var(--text-muted); stroke-width: 2.5; flex-shrink: 0; }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar kbd {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font);
}

/* ===== 工具分类区 ===== */
.cat-section {
  margin-bottom: 24px;
  opacity: 0;
  animation: cardIn 0.5s ease forwards;
}
.cat-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 4px;
}
.cat-accent {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== 工具卡片网格 ===== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,222,128,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tool-card:hover {
  border-color: rgba(74, 222, 128, 0.35);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 20px rgba(74,222,128,0.08);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:active { transform: scale(0.96); }
.tool-card-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
}
.tool-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tool-info { flex: 1; min-width: 0; }
.tool-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.tool-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-card.hidden { display: none; }

/* ===== 大卡片（文件/分享页） ===== */
.large-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.large-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.large-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,222,128,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.large-card:hover {
  border-color: rgba(74, 222, 128, 0.35);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 24px rgba(74,222,128,0.1);
}
.large-card:hover::before { opacity: 1; }
.large-card:active { transform: scale(0.95); }
.large-card .lc-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.large-card .lc-name {
  font-size: 15px;
  font-weight: 700;
}
.large-card .lc-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== 关于页 ===== */
.about-intro {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 20px;
  opacity: 0;
  animation: cardIn 0.5s ease 0.4s forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
/* 二维码浮动在右侧，文字环绕并延伸到其下方 */
.about-qr-box {
  float: right;
  margin: 0 0 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.about-qr {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.about-qr-caption {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}
.about-intro p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}
.about-intro p:last-child { margin-bottom: 0; }
.about-intro strong { color: var(--accent-bright); }
.about-slogan {
  text-align: center;
  font-size: 14px !important;
  color: var(--accent) !important;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 14px !important;
}

.about-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 12px;
  padding-left: 4px;
  opacity: 0;
  animation: cardIn 0.5s ease forwards;
}

/* ===== 快捷键列表 ===== */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  opacity: 0;
  animation: cardIn 0.5s ease 0.6s forwards;
}
.shortcut-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
}
.shortcut-item:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.shortcut-item kbd {
  background: rgba(74, 222, 128, 0.12);
  color: var(--accent-bright);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  min-width: 28px;
  text-align: center;
}
.shortcut-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 底部导航（顶级液态玻璃） ===== */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px 12px;
  /* 兼容 iOS 旧版（constant）与标准（env）安全区 */
  padding-bottom: constant(safe-area-inset-bottom, 12px);
  padding-bottom: env(safe-area-inset-bottom, 12px);
  z-index: 10;
}
.nav-container {
  position: relative;
  display: flex;
  padding: 4px;
  gap: 2px;
  border-radius: var(--radius-pill);
  /* 液态玻璃：更通透的渐变（高光 → 半透明底） */
  background: linear-gradient(180deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.06) 30%,
    rgba(16, 34, 19, 0.42) 70%,
    rgba(12, 28, 15, 0.38) 100%);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    /* 外部悬浮阴影 */
    0 12px 40px rgba(0,0,0,0.45),
    0 4px 12px rgba(0,0,0,0.3),
    /* 顶部高光折射 */
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    /* 内部辉光 */
    inset 0 0 20px rgba(255,255,255,0.04);
  overflow: hidden;
}
/* 液态玻璃高光反射带 */
.nav-container::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.5) 20%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0.5) 80%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
/* 底部厚度折射（无圆弧，平铺） */
.nav-container::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.03) 55%,
    rgba(255,255,255,0.06) 100%);
  pointer-events: none;
}

.nav-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.nav-btn:focus { outline: none; }
.nav-btn:active { transform: scale(0.86); }
.nav-btn svg {
  width: 18px; height: 18px;
  fill: currentColor;
  transition: all 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  filter: drop-shadow(0 0 0 transparent);
}
.nav-btn.active {
  color: #fff;
  text-shadow: 0 0 16px rgba(74,222,128,0.6);
}
.nav-btn.active svg {
  fill: var(--accent-bright);
  filter: drop-shadow(0 0 8px rgba(74,222,128,0.6));
}
/* 选中态的玻璃气泡 */
.nav-btn.active::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg,
    rgba(74,222,128,0.2) 0%,
    rgba(74,222,128,0.08) 100%);
  border: 1px solid rgba(74,222,128,0.25);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  z-index: -1;
  animation: navBubbleIn 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
@keyframes navBubbleIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent-bright);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 通用动画 ===== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.shake { animation: shake 0.4s cubic-bezier(0.34, 1.4, 0.64, 1); }

/* ===== 响应式 ===== */
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .tool-grid { gap: 8px; }
  .tool-card { padding: 10px; }
  .stat-num { font-size: 16px; }
}

/* ===== 左下角胶囊音乐播放器 ===== */
.music-player {
  position: absolute;
  bottom: 92px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 5px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.03) 50%,
    rgba(255,255,255,0.06) 100%);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);   /* 固定 9999px：48×48 时是完美圆，展开时是胶囊圆角，永不变 */
  z-index: 20;
  width: auto;
  min-width: 48px;
  height: 48px;
  max-width: 48px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(16px);
  animation: mpSlideIn 0.6s cubic-bezier(0.16,1,0.3,1) 1.1s forwards;
  /* 从右往左挤压：max-width 缓慢缩小，右侧内容被 overflow:hidden 逐级裁掉 */
  transition: max-width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              justify-content 0.6s ease;
}
@keyframes mpSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* 展开态 */
.music-player.expanded {
  max-width: 280px;
  padding: 7px 12px 7px 7px;
  gap: 10px;
  border-radius: var(--radius-pill);
  justify-content: flex-start;
}

/* 唱片始终参与 flex 布局，收缩时靠对称 padding 自然居中，不跳变 */

/* 唱片 */
.mp-disc {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 0%, #181818 30%, #0a0a0a 70%);
  border: 1px solid rgba(74,222,128,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.15s ease;
}
/* 收缩态：唱片微调居中；展开态：恢复 0 不偏移 */
.music-player:not(.expanded) .mp-disc {
  margin-left: -7px;
  margin-top: 1px;
}
/* 按压反馈改用 filter，避免和旋转动画 transform 冲突导致卡顿 */
.mp-disc:active { filter: brightness(0.85); }
.mp-disc.spinning {
  animation: mpSpin 9s linear infinite;
}
@keyframes mpSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 封面图 */
.mp-disc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}
/* 有封面时隐藏绿色圆心 */
.mp-disc.has-cover .mp-disc-inner {
  display: none;
}

.mp-disc-inner {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  z-index: 2;
  position: relative;
}

/* 可展开内容区（与外壳同步，从右往左被挤压裁切） */
.mp-body {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease,
              gap 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.music-player.expanded .mp-body {
  max-width: 230px;
  opacity: 1;
  gap: 8px;
}

/* 信息区 */
.mp-info {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 90px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mp-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  transition: opacity 0.25s ease, max-width 0.25s ease;
}
.mp-lyric {
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  color: var(--accent-bright);
  line-height: 1.3;
  opacity: 0.75;
}
.mp-lyric-track {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 控制按钮 */
.mp-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mp-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(74,222,128,0.12);
  color: var(--accent-bright);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  padding: 0;
}
.mp-btn:hover {
  background: rgba(74,222,128,0.25);
  transform: scale(1.08);
}
.mp-btn:active { transform: scale(0.92); }
.mp-btn svg { width: 14px; height: 14px; }
.mp-btn .mp-ico-pause { display: none; }
.mp-btn.playing .mp-ico-play { display: none; }
.mp-btn.playing .mp-ico-pause { display: block; }
.mp-btn.liked { color: #ff4d8d; }
.mp-btn.liked svg { fill: currentColor; stroke: none; }

/* 进度条：自动靠右对齐，长度 156px，避开左侧唱片头像 */
.mp-progress {
  position: absolute;
  bottom: 4px;
  left: auto;
  right: 14px;
  width: 156px;
  height: 2px;
  background: rgba(74, 222, 128, 0.1);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.mp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.3s linear;
}
/* 收缩态隐藏进度条 */
.music-player:not(.expanded) .mp-progress {
  opacity: 0;
  pointer-events: none;
}

/* 搜索歌曲面板 */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.search-panel.show { display: flex; }
.search-panel-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.search-panel.show .search-panel-mask { opacity: 1; }
.search-panel-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-deep));
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px 24px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.search-panel.show .search-panel-box { transform: translateY(0); }
.search-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.search-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.search-panel-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.search-panel-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.search-panel-close svg { width: 16px; height: 16px; }
.search-panel-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-panel-input-row input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.search-panel-input-row input:focus { border-color: var(--accent); }
.search-panel-input-row input::placeholder { color: var(--text-muted); }
.search-panel-input-row button {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #052E10;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s;
}
.search-panel-input-row button:active { transform: scale(0.96); }
.search-panel-results {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.search-panel-results::-webkit-scrollbar { display: none; }
.search-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 30px 0;
}
.search-song-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-song-item:hover { background: rgba(74, 222, 128, 0.08); }
.search-song-item:active { background: rgba(74, 222, 128, 0.15); }
.search-song-item .ss-idx {
  font-size: 12px;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.search-song-item .ss-info { flex: 1; min-width: 0; }
.search-song-item .ss-name {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-song-item .ss-artist {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-song-item.playing .ss-name { color: var(--accent-bright); }

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 留言板（透明玻璃质感） ===== */
.message-board {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 8px 24px rgba(0,0,0,0.15);
}
.board-label {
  padding: 12px 18px 8px;
  font-size: 16px; font-weight: 600; color: var(--text-secondary);
}
.danmaku-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.danmaku-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 2px 14px 2px 2px;
  white-space: nowrap;
  will-change: transform;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.danmaku-item.no-avatar {
  padding: 2px 14px;
}
.danmaku-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.danmaku-username {
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.danmaku-colon { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.danmaku-text {
  font-size: 13px; color: var(--text-primary);
  flex-shrink: 0;
}

/* ===== 留言输入（透明玻璃质感） ===== */
.message-input-bar {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 8px 24px rgba(0,0,0,0.15);
}
.input-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.input-avatar:hover { border-color: var(--accent); transform: scale(1.1); }
.input-avatar.no-avatar {
  border: 2px dashed rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2);
  position: relative;
}
.input-avatar.no-avatar::after {
  content: '+';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}
.input-name {
  width: 72px; flex-shrink: 0;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08); outline: none;
  color: var(--text-primary); font-size: 12px;
  padding: 6px 10px; border-radius: 10px;
  transition: border-color 0.2s;
}
.input-name:focus { border-color: rgba(74,222,128,0.3); }
.input-name::placeholder { color: var(--text-muted); }
.input-content {
  flex: 1; min-width: 0;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08); outline: none;
  color: var(--text-primary); font-size: 13px;
  padding: 7px 10px; border-radius: 10px;
  transition: border-color 0.2s;
}
.input-content:focus { border-color: rgba(74,222,128,0.3); }
.input-content::placeholder { color: var(--text-muted); }
.input-send {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #04140a; border: none;
  padding: 7px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.input-send:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(74,222,128,0.3); }
.input-send:active { transform: scale(0.95); }

/* ===== 确认对话框（液态玻璃） ===== */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 22px 24px 16px;
  width: 280px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.modal-title {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 8px;
}
.modal-desc {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 18px; line-height: 1.5;
}
.modal-btns {
  display: flex; gap: 10px;
}
.modal-btn {
  flex: 1; padding: 9px 0;
  border-radius: 10px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.modal-btn.cancel {
  background: #3a3a3a; color: #ccc;
}
.modal-btn.confirm {
  background: #1e88e5; color: #fff;
}

/* ===== 工具分类切换栏 ===== */
.tool-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px;
  background: rgba(15, 43, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.tool-filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.filter-btn:hover {
  color: var(--text);
  background: rgba(74, 222, 128, 0.12);
}
.filter-btn:active {
  transform: scale(0.92);
}
.filter-btn.active {
  background: linear-gradient(135deg, #4ADE80, #2DD4BF);
  color: #050A05;
  box-shadow: 0 2px 12px rgba(74, 222, 128, 0.3);
}
.filter-count {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 500;
}

/* 拖拽滚动时禁止选中文本 */
.tool-filter-bar {
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.tool-filter-bar:active {
  cursor: grabbing;
}

/* 工具卡片响应式 */
@media (max-width: 600px) {
  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ===== 音乐视图 ===== */
#view-music .page-header { margin-bottom: 16px; }

.music-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.music-search-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.music-search-field svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.music-search-field input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(145deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 100%);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.music-search-field input:focus {
  border-color: rgba(74,222,128,0.4);
  box-shadow: 0 0 20px rgba(74,222,128,0.1);
}
.music-search-field input::placeholder {
  color: var(--text-muted);
}
.music-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #04140a;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: 0 4px 14px rgba(74,222,128,0.35);
}
.music-search-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(74,222,128,0.45);
}
.music-search-btn:active {
  transform: scale(0.92);
}
.music-search-btn svg {
  width: 18px;
  height: 18px;
}

.chart-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chart-tabs::-webkit-scrollbar { display: none; }
.chart-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(145deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.02) 100%);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chart-tab.active {
  background: linear-gradient(135deg, rgba(74,222,128,0.25), rgba(74,222,128,0.12));
  color: var(--accent-bright);
  border-color: rgba(74,222,128,0.4);
  box-shadow: 0 4px 14px rgba(74,222,128,0.2);
  font-weight: 600;
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
}
.song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.song-item:active {
  transform: scale(0.98);
}
.song-item:hover {
  border-color: rgba(74,222,128,0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.song-item.playing {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(74,222,128,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}
.song-item .ss-idx {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.song-item.playing .ss-idx {
  color: var(--accent);
}
.song-item .ss-cover {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.song-item .ss-info {
  flex: 1;
  min-width: 0;
}
.song-item .ss-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.song-item.playing .ss-name {
  color: var(--accent-bright);
}
.song-item .ss-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-loading, .song-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}



/* ===== 分类过滤按钮（液态玻璃） ===== */
#toolFilterBar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#toolFilterBar::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(145deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.02) 100%);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.filter-btn:hover {
  border-color: rgba(74,222,128,0.3);
  transform: translateY(-1px) scale(1.03);
}
.filter-btn.active {
  background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(74,222,128,0.1));
  border-color: rgba(74,222,128,0.4);
  color: var(--accent-bright);
  box-shadow: 0 4px 14px rgba(74,222,128,0.15);
}

/* ===== 全局 Q 弹增强 ===== */
* {
  -webkit-tap-highlight-color: transparent;
}
button, a, input {
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ===== 科幻发光文字增强 ===== */
.hero-title-gradient {
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.3)) drop-shadow(0 0 40px rgba(74, 222, 128, 0.1));
}
.page-header h2 {
  filter: drop-shadow(0 0 16px rgba(74, 222, 128, 0.15));
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.4);
}

/* ===== 多形态字体优化 ===== */
body {
  font-feature-settings: "tnum" 1, "kern" 1;
  letter-spacing: 0.01em;
}
.hero h1 {
  font-feature-settings: "ss01" 1, "ss02" 1;
  letter-spacing: -0.02em;
}
.stat-num, .balance-value {
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

/* ===== 液态玻璃全局提示 ===== */
.music-search-field input,
#musicViewSearch {
  background: rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--text-primary) !important;
  transition: border-color 0.2s, box-shadow 0.3s ease !important;
}
.music-search-field input:focus,
#musicViewSearch:focus {
  border-color: rgba(74,222,128,0.4) !important;
  box-shadow: 0 0 20px rgba(74,222,128,0.1) !important;
}

/* ===== 响应式动画降级 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 音乐视图定位容器 ===== */
#view-music {
  position: relative;
}

/* ===== 音乐视图右上角液态玻璃胶囊（常驻固定） ===== */
.music-capsule {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg,
    rgba(255,255,255,0.20) 0%,
    rgba(255,255,255,0.08) 30%,
    rgba(16, 34, 19, 0.45) 70%,
    rgba(12, 28, 15, 0.40) 100%);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  /* 常驻显示，无进入动画 */
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* 高光反射 */
.music-capsule::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.6) 30%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0.6) 70%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(0.5px);
  pointer-events: none;
}

.mc-tab {
  position: relative;
  z-index: 2;
  padding: 5px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.mc-tab.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(74,222,128,0.5);
}
.mc-tab.active::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg,
    rgba(74,222,128,0.25) 0%,
    rgba(74,222,128,0.1) 100%);
  border: 1px solid rgba(74,222,128,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  z-index: -1;
  animation: mcBubbleIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
@keyframes mcBubbleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== 音乐视图面板切换 ===== */
.music-panel {
  display: none;
  animation: panelIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
.music-panel.active {
  display: block;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 设置面板 ===== */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.setting-item:active {
  transform: scale(0.98);
}
.setting-info {
  flex: 1;
  min-width: 0;
}
.setting-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.setting-desc {
  font-size: 11px;
  color: var(--text-muted);
}
.setting-btn {
  padding: 6px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #04140a;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
  flex-shrink: 0;
}
.setting-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(74,222,128,0.3);
}
.setting-btn:active {
  transform: scale(0.95);
}

/* ===== 公告弹窗（液态玻璃） ===== */
.announcement-mask {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.announcement-mask.show {
  display: flex;
  animation: announceFadeIn 0.3s ease;
}
.announcement-box {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.12);
  overflow: hidden;
  animation: announcePopIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes announceFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes announcePopIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 6px;
}
.announcement-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 0 16px rgba(74,222,128,0.3);
}
.announcement-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.announcement-close:hover {
  background: rgba(255,255,255,0.16);
  transform: scale(1.08);
}
.announcement-close:active { transform: scale(0.9); }
.announcement-body {
  padding: 8px 20px 20px;
}
.announcement-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}
.announcement-img {
  display: block;
  width: 100%;
  border-radius: 14px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ===== 开发者模式面板 ===== */
.dev-mask {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.dev-mask.show {
  display: flex;
  animation: announceFadeIn 0.3s ease;
}
.dev-box {
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
  overflow: hidden;
  animation: announcePopIn 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.dev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}
.dev-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.dev-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.dev-close:hover {
  background: rgba(255,255,255,0.16);
  transform: scale(1.08);
}
.dev-body {
  padding: 8px 16px 18px;
}
.dev-section {
  margin-bottom: 16px;
}
.dev-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-left: 4px;
}
.dev-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.dev-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(4px);
}
.dev-btn:active { transform: scale(0.97); }
.dev-btn.danger {
  border-color: rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.1);
  color: #fca5a5;
}
.dev-btn.danger:hover {
  background: rgba(248,113,113,0.18);
}
.dev-info {
  padding: 8px 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-all;
}

/* ===== 反馈与建议按钮 ===== */
.feedback-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  text-decoration: none;
  background: linear-gradient(135deg,
    rgba(74,222,128,0.18) 0%,
    rgba(56,189,248,0.12) 50%,
    rgba(168,85,247,0.14) 100%);
  border: 1px solid rgba(74,222,128,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 28px rgba(0,0,0,0.35),
    0 0 24px rgba(74,222,128,0.12),
    inset 0 1px 0 rgba(255,255,255,0.2);
  cursor: pointer;
  opacity: 0;
  animation: cardIn 0.5s ease 0.45s forwards;
  transition: all 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.feedback-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 20%,
    rgba(255,255,255,0.15) 45%,
    transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.feedback-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(74,222,128,0.6);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.4),
    0 0 32px rgba(74,222,128,0.2);
}
.feedback-btn:hover::before {
  transform: translateX(100%);
}
.feedback-btn:active {
  transform: scale(0.97);
}
.feedback-icon {
  font-size: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(74,222,128,0.5));
}
.feedback-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(74,222,128,0.3);
}
.feedback-arrow {
  font-size: 20px;
  color: var(--accent-bright);
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.feedback-btn:hover .feedback-arrow {
  transform: translateX(6px);
}

/* ===== 电脑端适配 ===== */
@media (min-width: 768px) {
  /* 移除边框和深色阴影，避免两侧黑边 */
  .phone-frame {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  /* 电脑端内容更宽松 */
  .content {
    padding-left: 28px;
    padding-right: 28px;
  }
  .bottom-nav {
    padding-left: 20px;
    padding-right: 20px;
  }
  /* 电脑端悬浮提示保持 */
  .tool-card:hover,
  .large-card:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

/* ===== 头像裁剪弹窗 ===== */
.crop-mask {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.crop-mask.show { display: flex; }
.crop-box {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  overflow: hidden;
}
.crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 8px;
}
.crop-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.crop-close {
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.crop-close:hover { background: rgba(255,255,255,0.16); transform: scale(1.08); }
.crop-stage {
  display: grid;
  place-items: center;
  padding: 10px 16px;
}
.crop-viewport {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: rgba(0,0,0,0.3);
}
.crop-viewport:active { cursor: grabbing; }
.crop-viewport img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  pointer-events: none;
  will-change: transform;
}
/* 圆形外遮罩（暗化圆形外区域） */
.crop-circle-mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0,0,0,0.55);
  pointer-events: none;
}
/* 圆形边框 */
.crop-circle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
  pointer-events: none;
}
.crop-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 6px;
}
.crop-zoom-label {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.crop-controls input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}
.crop-btns {
  display: flex;
  gap: 10px;
  padding: 6px 18px 18px;
}
.crop-btn {
  flex: 1;
  padding: 11px 0;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.crop-btn.cancel {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
}
.crop-btn.cancel:hover { background: rgba(255,255,255,0.14); }
.crop-btn.confirm {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #04140a;
  box-shadow: 0 4px 14px rgba(74,222,128,0.3);
}
.crop-btn.confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,222,128,0.4); }
.crop-btn:active { transform: scale(0.95); }

/* ===== 二次元人物（首页） ===== */
.anime-character {
  display: flex;
  justify-content: center;
  margin: 8px 0 -18px;
  position: relative;
  z-index: 2;
  pointer-events: none;
  animation: animeFloat 3.5s ease-in-out infinite;
}
.anime-character img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(255, 154, 203, 0.45));
}
@keyframes animeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ===== 二次元壁纸背景 ===== */
/* 手机端壁纸 a1.png */
body {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 28, 0.32) 0%,
      rgba(15, 10, 22, 0.45) 100%),
    url('a1.png') center / cover no-repeat,
    var(--bg-deep);
}
/* 电脑端壁纸 s1.png */
@media (min-width: 768px) {
  body {
    background:
      linear-gradient(180deg,
        rgba(20, 12, 28, 0.32) 0%,
        rgba(15, 10, 22, 0.45) 100%),
      url('s1.png') center / cover no-repeat,
      var(--bg-deep);
  }
}

/* ===== 底部导航图片图标（首页 k1.png） ===== */
.nav-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 154, 203, 0.5));
}
.nav-btn.active .nav-icon-img {
  filter: drop-shadow(0 0 8px rgba(255, 154, 203, 0.8));
}

/* ===== 余额卡片折叠展开 ===== */
.balance-toggle {
  cursor: pointer;
}
.balance-card {
  display: none;
}
.balance-card.expanded {
  display: block;
  opacity: 1;
  animation: accountExpand 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
@keyframes accountExpand {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 时钟翻页效果（上下翻动） ===== */
/* 冒号：用两个圆点精确绘制，上下对称居中，不闪烁 */
.clock-colon {
  position: relative;
  display: inline-block;
  width: 0.34em;
  height: 1em;
  vertical-align: top;
  margin: 0 1px;
}
.clock-colon::before,
.clock-colon::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 0.16em;
  height: 0.16em;
  margin-left: -0.08em;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}
.clock-colon::before { top: 22%; }
.clock-colon::after { bottom: 22%; }
.flip-unit {
  position: relative;
  display: inline-block;
  width: 0.72em;
  height: 1em;
  overflow: hidden;
  vertical-align: top;
  line-height: 1;
}
.flip-cur,
.flip-next {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  line-height: 1;
  /* 方正粗体数字字体 */
  font-family: 'Oswald', 'Arial Black', 'Impact', 'Segoe UI Black', 'Helvetica Neue', sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
/* 小时十位（第一个数字）红色 */
.status-bar #clock .flip-unit:first-of-type .flip-cur,
.status-bar #clock .flip-unit:first-of-type .flip-next {
  color: #ff4d4d;
  text-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
}
/* 新数字从上方推入 */
.flip-unit.flipping .flip-next {
  animation: flipInDown 0.42s cubic-bezier(0.4, 0, 0.4, 1) forwards;
}
/* 旧数字向下移出 */
.flip-unit.flipping .flip-cur {
  animation: flipOutDown 0.42s cubic-bezier(0.4, 0, 0.4, 1) forwards;
}
@keyframes flipInDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes flipOutDown {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

/* ===== 状态栏滚动一言 ===== */
.status-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 16px;
  margin-left: 4px;
  background: transparent;
}
.status-marquee-text {
  position: absolute;
  top: 50%;
  left: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transform: translateY(-50%);
  animation: marqueeScroll 26s linear infinite;
}
/* 无缝滚动：内容复制两份，滚动半程后正好接上 */
@keyframes marqueeScroll {
  0%   { transform: translate(0, -50%); }
  100% { transform: translate(-50%, -50%); }
}
