/* 首页样式 - H5版本 */
/* 设计系统：深色主题 (Dark Theme) */
/* rpx转px: 1rpx = 0.5px */

.container {
  min-height: 100vh;
  background: #0a0a0f;
  padding-bottom: 70px;
}

/* 页头 */
.page-header {
  padding: 60px 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

/* 欢迎语区域 */
.home-header {
  padding: 10px 16px 40px 16px;
  margin-top: 10px;
}

.home-greeting {
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.home-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.home-subtitle {
  color: #888;
  font-size: 14px;
}

/* Banner卡片 */
.banner-card {
  margin: 0 16px 24px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.banner-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  align-self: flex-start;
}

.banner-content-area {
  margin: 12px 0;
}

.banner-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.banner-desc {
  font-size: 13px;
  opacity: 0.8;
  color: #ffffff;
}

.banner-btn {
  margin-top: 16px;
  padding: 8px 20px;
  background: #ffffff;
  border-radius: 18px;
  color: #667eea;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  align-self: flex-start;
}

/* 分类入口 */
.section-title-sm {
  font-size: 20px;
  font-weight: 700;
  padding: 0 16px;
  margin-bottom: 16px;
  color: #ffffff;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 24px;
}

.cat-card {
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 142, 83, 0.2));
}

.cat-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(68, 160, 141, 0.2));
}

.cat-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(168, 237, 234, 0.2), rgba(254, 214, 227, 0.2));
}

.cat-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cat-card:nth-child(1) .cat-icon {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.cat-card:nth-child(2) .cat-icon {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.cat-card:nth-child(3) .cat-icon {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  color: #333;
}

.cat-card:nth-child(4) .cat-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

/* 热门测试 */
.trending-section {
  padding: 0 16px 24px;
}

.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.trending-title-sm {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.trending-more {
  color: #ff6b6b;
  font-size: 14px;
}

.trending-card {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 16px;
}

.trending-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.trending-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.new-badge {
  padding: 4px 10px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.trending-card-desc {
  color: #888;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.trending-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #666;
}

/* 底部导航栏 */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #1a1a2e;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 200;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 24px;
  color: #666;
  font-size: 11px;
}

.tab-item.active {
  color: #ff6b6b;
}

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

.tab-icon {
  font-size: 22px;
  margin-bottom: 2px;
  opacity: 0.6;
}

.tab-label {
  font-size: 11px;
}
