/**
 * 湾區茶馆 - App主框架样式文件
 * 仿iOS风格底部导航栏
 * 创建时间：2024年
 */

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== 主框架容器 ===== */
.app-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
}

/* ===== iframe主内容区 ===== */
.main-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  border: none;
  z-index: 1;
}

/* ===== 底部安全区域（适配iPhone底部刘海） ===== */
.safe-area-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: env(safe-area-inset-bottom);
  background: #0a0a0a;
  z-index: 999;
}

/* ===== 底部导航栏 - iOS风格 ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(18, 18, 18, 0.98);
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

/* ===== 导航项 ===== */
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20%;
  height: 100%;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 活动状态 - 金色高亮 */
.tab-item.active {
  color: #f0c040;
}

/* 悬停状态 */
.tab-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

.tab-item.active:hover {
  color: #f0c040;
}

/* ===== 图标容器 ===== */
.tab-icon-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

/* 图标样式 */
.tab-icon {
  width: 100%;
  height: 100%;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

/* 活动状态图标缩放 */
.tab-item.active .tab-icon {
  transform: scale(1.05);
}

/* ===== 标签文字 ===== */
.tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

/* ===== 选中高亮小圆点 ===== */
.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 4px;
  height: 4px;
  background: #f0c040;
  border-radius: 50%;
}

/* ===== 选中高亮光晕效果 ===== */
.tab-item.active {
  position: relative;
}

.tab-item.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, rgba(240, 192, 64, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tab-item.active::before {
  opacity: 1;
}