/* 全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  color: #1f2937;
  min-height: 100vh;
  background: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 100%);
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* 通用容器 */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24rpx 24px 64px;
  padding: 24px 24px 64px;
}

@media (max-width: 720px) {
  .page {
    padding: 16px 16px 48px;
  }
}

/* 通用按钮 */
.btn-primary {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 16px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover { opacity: 0.92; }
.btn-primary:active { transform: scale(0.97); }

/* 卡片 */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06);
}

/* 顶部导航 */
.nav-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.nav-top a {
  color: #1e40af;
  text-decoration: none;
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-top .title {
  flex: 1;
  text-align: center;
  color: #1e3a8a;
}

/* 通用提示文字 */
.hint {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 4px 0 16px;
}

.empty {
  text-align: center;
  color: #64748b;
  padding: 80px 0;
  font-size: 15px;
}

/* 加载中 */
.loading {
  text-align: center;
  color: #64748b;
  padding: 60px 0;
  font-size: 15px;
}

/* 通用发光按钮 */
.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
  flex-shrink: 0;
  user-select: none;
}

.audio-btn:hover { transform: scale(1.05); }
.audio-btn:active { transform: scale(0.92); }

.audio-btn.playing {
  animation: pulse 1s ease-in-out infinite;
}

.audio-btn .icon { font-size: 18px; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}