/* ============================================================
   观众端样式 —— Epoch AI 风格（深色学术科技）
   ============================================================ */
:root {
  --bg: #0b0b0f;
  --bg-elev: #15151c;        /* 卡片底 */
  --bg-elev-2: #1c1c24;      /* hover/激活 */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ececee;
  --text-sub: #b8b8c0;
  --text-muted: #75757f;
  --accent: #5ea0f2;         /* 冷蓝强调色（Epoch 数据蓝） */
  --accent-hover: #79b3ff;
  --accent-dim: rgba(94, 160, 242, 0.14);
  --on-accent: #0b0b0f;      /* 强调色按钮上的文字 */
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  /* 顶部冷蓝光晕，AI 网站常见的氛围手法 */
  background-image: radial-gradient(720px circle at 50% -8%, rgba(94, 160, 242, 0.12), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

/* ===== 顶部品牌区 ===== */
.topbar {
  padding: calc(22px + env(safe-area-inset-top)) 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* logo 标记：强调色小方块 + 发光 */
.mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(94, 160, 242, 0.65);
}
.brand-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.subtitle {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* 实时指示点：呼吸闪烁 */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(94, 160, 242, 0.8);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ===== 内容容器 ===== */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px 48px;
}

/* ===== 卡片列表 ===== */
.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 单条信息卡片 */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: rise 0.3s ease;
}
.card:hover {
  border-color: var(--border-strong);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片内容：保留换行 */
.card .content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.7;
  color: #e4e4e8;
}

/* 卡片底部：复制按钮 + 时间 */
.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.card .time {
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* 复制按钮：默认微填充，点击/已复制变实心强反馈 */
.copy-btn {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(94, 160, 242, 0.35);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 500;
  min-height: 36px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:active {
  transform: scale(0.96);
}
.copy-btn.copied {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* 空状态 */
.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 88px 20px;
  font-size: 14px;
}
.empty .emoji {
  display: block;
  font-size: 38px;
  margin-bottom: 14px;
  opacity: 0.85;
}

/* 复制成功提示 toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  background: rgba(28, 28, 36, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 11px 22px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.toast.show {
  opacity: 1;
}
