/* 芋见杯 - 移动端统一设计基线（严格遵循微信小程序规范 & 无外壳真实路径） */
:root {
  --primary-red: #E93323;
  --primary-red-hover: #d12214;
  --bg-gray: #F6F7F9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  --border-light: #f1f5f9;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: #e2e8f0; /* PC宽屏下的外层清爽淡灰，手机端不可见 */
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 核心移动端视口：绝无手机黑壳/外框，手机浏览器自然100%全屏，PC居中呈现干净原型 */
.app-viewport {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg-gray);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding-bottom: 74px; /* 避让底部 TabBar */
}

/* 微信小程序标准顶栏 (44px 导航区 + 预留原生右上角胶囊 87px x 32px) */
.wx-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.wx-capsule {
  width: 87px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  flex-shrink: 0;
}
.wx-capsule.capsule-dark {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
}
.wx-capsule .dot-three {
  display: flex;
  gap: 3px;
  align-items: center;
}
.wx-capsule .dot-three span {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: currentColor;
}
.wx-capsule .capsule-divider {
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: 0.2;
}
.wx-capsule .circle-target {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wx-capsule .circle-target::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* 紫色“直播中”呼吸浮标 (右侧常驻) */
.live-badge-floating {
  position: fixed;
  right: calc(50% - 205px);
  bottom: 120px;
  z-index: 45;
  width: 48px;
  height: 54px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: livePulse 2.4s infinite ease-in-out;
}
@media (max-width: 430px) {
  .live-badge-floating {
    right: 12px;
  }
}
.live-badge-floating:hover {
  transform: scale(1.05);
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(124, 58, 237, 0.7); }
}

/* 动效声波柱 */
.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  margin-bottom: 2px;
}
.sound-bars span {
  width: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  animation: soundWave 1.2s infinite ease-in-out;
}
.sound-bars span:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.sound-bars span:nth-child(2) { height: 15px; animation-delay: 0.3s; }
.sound-bars span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
@keyframes soundWave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* 底部原生 TabBar */
.wx-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid #f0f1f4;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 10px;
  text-decoration: none;
  position: relative;
  transition: color 0.15s ease;
}
.tab-item i {
  font-size: 19px;
  margin-bottom: 2px;
}
.tab-item.active {
  color: var(--primary-red);
  font-weight: 600;
}

/* 中间凸起大红“生活秀”按钮 */
.tab-center-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d4f 0%, #E93323 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
  box-shadow: 0 6px 16px rgba(233, 51, 35, 0.38);
  border: 3px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.tab-center-btn:hover {
  transform: scale(1.04);
}
.tab-center-btn span {
  font-family: "PingFang SC", "Songti SC", "SimSun", serif;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.5px;
}

/* 微信卡片通用样式 */
.wx-card {
  background: #ffffff;
  border-radius: 12px;
  margin: 10px 12px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
