/* ========== 主框架样式 ========== */

/* 顶部导航栏 */
.top-bar {
  height: 50px;
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.98) 0%, rgba(15, 12, 28, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(139, 34, 82, 0.25);
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.top-bar-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.top-bar-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200, 180, 220, 0.8);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.3s;
}

.top-bar-btn:active {
  background: rgba(139, 34, 82, 0.3);
}

.top-bar-btn svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 3px currentColor);
}

/* 页面容器 */
.page-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f18 100%);
}

/* 底部导航栏 - 夜店风格 */
.bottom-nav {
  height: 60px;
  background: linear-gradient(180deg, rgba(15, 10, 25, 0.98) 0%, rgba(10, 8, 18, 0.99) 100%);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(139, 34, 82, 0.3);
  flex-shrink: 0;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(200, 180, 220, 0.6);
  cursor: pointer;
  transition: all 0.3s;
  padding: 6px 0;
  position: relative;
}

.nav-item.active {
  color: rgba(255, 150, 180, 1);
}

.nav-item svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 3px currentColor);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(255, 100, 150, 0.6));
}

.nav-item span {
  font-size: 11px;
}

/* “酒”字艺术字样式 */
.nav-item[data-page="wine"] span {
  font-family: 'KaiTi', 'STKaiti', '楷体', serif;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b9d 0%, #ffd700 50%, #ff6b9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-item[data-page="wine"].active span {
  background: linear-gradient(135deg, #ffd700 0%, #ff6b9d 30%, #ffd700 60%, #ff6b9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: wineTextGlow 2s ease-in-out infinite;
}

@keyframes wineTextGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 107, 157, 0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)); }
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -18px;
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* 子Tab导航 */
.sub-tabs {
  display: flex;
  background: linear-gradient(180deg, rgba(15, 12, 28, 0.95) 0%, rgba(20, 15, 35, 0.9) 100%);
  border-bottom: 1px solid rgba(139, 34, 82, 0.2);
  flex-shrink: 0;
}

.sub-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: rgba(200, 180, 220, 0.7);
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}

.sub-tab.active {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(139, 34, 82, 0.6);
}

.sub-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 100, 150, 0.8), #fff, rgba(255, 100, 150, 0.8), transparent);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(139, 34, 82, 0.5);
}

/* 子页面 */
.sub-page {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sub-page.active {
  display: flex;
}

/* FAB 悬浮按钮 */
.fab {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 52px;
  height: 52px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 50;
  transition: transform 0.3s;
}

.fab:active {
  transform: scale(0.9);
}

/* 返回按钮头部 */
.detail-header {
  height: 50px;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.btn-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.btn-back svg {
  width: 22px;
  height: 22px;
}

.detail-header-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-right: 36px;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 14px;
}
