/* ===== 大眼·找物 PWA 样式 ===== */
/* 设计原则：视障友好 — 超大字号、高对比度、零噪音 */

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

:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --accent: #4da3ff;
  --accent-press: #2b7fd9;
  --danger: #ff5252;
  --ok: #4caf50;
  --card: #1a1a1a;
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  height: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 100vh;
}

/* 品牌区 */
.brand { text-align: center; margin-top: 12px; }
.brand h1 { font-size: 48px; font-weight: 800; letter-spacing: 4px; }
.subtitle { font-size: 20px; color: #888; margin-top: 4px; }

/* 状态栏（TTS 念的内容同步显示在这里） */
.status {
  width: 100%;
  min-height: 80px;
  padding: 18px 20px;
  background: var(--card);
  border-radius: 16px;
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
  border: 1px solid #333;
}

/* 巨型语音按钮 */
.voice-btn {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 8px 30px rgba(77,163,255,0.4);
  transition: transform 0.15s, background 0.15s;
}
.voice-btn:active, .voice-btn.recording {
  background: var(--accent-press);
  transform: scale(0.95);
}
.voice-btn:focus-visible,
.camera-btn:focus-visible,
#memoryList li:focus-visible {
  outline: 4px solid #ffd54f;
  outline-offset: 4px;
}
.voice-btn:disabled,
.camera-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}
.voice-btn .icon { font-size: 64px; }
.voice-btn .label { font-size: 22px; }

/* 拍照按钮 */
.camera-btn {
  width: 100%;
  height: 90px;
  border-radius: 16px;
  border: 2px solid #333;
  background: var(--card);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}
.camera-btn .icon { font-size: 36px; }
.camera-btn:active { background: #252525; }

/* 记忆列表 */
.memories { width: 100%; }
.memories h2 { font-size: 20px; margin-bottom: 12px; color: #aaa; }
#memoryList { list-style: none; }
#memoryList li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 18px;
}
#memoryList li img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
#memoryList li .meta { flex: 1; }
#memoryList li[role="button"] { cursor: pointer; }
#memoryList li[role="button"]:active { background: #252525; }
#memoryList li .memory-name { font-size: 20px; font-weight: 700; }
#memoryList li .memory-location { color: #ddd; margin-top: 4px; }
#memoryList li .time { font-size: 14px; color: #777; }

/* 空列表提示 */
.empty { color: #555; font-size: 16px; padding: 20px; text-align: center; }

/* 录音中脉冲 */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,82,82,0.6); }
  100% { box-shadow: 0 0 0 40px rgba(255,82,82,0); }
}
.recording { animation: pulse 1s infinite; background: var(--danger) !important; }

@media (prefers-reduced-motion: reduce) {
  .recording { animation: none; }
  .voice-btn { transition: none; }
}
