.container {
  min-height: 100vh;
  padding-bottom: 40px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  background: linear-gradient(135deg, #1a0a2e, #000);
}

.title {
  font-size: 20px;
  font-weight: bold;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.user-name {
  color: #ccc;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout {
  color: #ff4757;
  font-size: 12px;
}

/* 邀请码 */
.invite-section {
  padding: 20px 16px;
}

.invite-input-wrap {
  display: flex;
  gap: 10px;
}

.invite-input-wrap input {
  flex: 1;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.invite-input-wrap input::placeholder {
  color: #666;
  text-transform: none;
  letter-spacing: normal;
}

.invite-input-wrap .btn {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.invite-tip {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  text-align: center;
}

/* 主播功能 */
.anchor-section {
  padding: 0 16px 20px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ccc;
}

.anchor-actions {
  display: flex;
  gap: 12px;
}

.action-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: all 0.2s;
}

.action-card:active {
  transform: scale(0.96);
  background: rgba(255,255,255,0.1);
}

.action-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.action-text {
  font-size: 13px;
  color: #ccc;
}

/* 直播间列表 */
.room-section {
  padding: 0 16px;
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-card {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.room-card:active {
  transform: scale(0.98);
}

.room-cover {
  width: 120px;
  height: 90px;
  background: #222;
  flex-shrink: 0;
  position: relative;
}

.room-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-cover .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, #2a1a4e, #1a0a2e);
}

.live-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.6);
  border-radius: 4px;
  font-size: 10px;
}

.live-badge.living {
  background: #ff4757;
}

.room-info {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.room-title {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #888;
}

.room-meta .tag {
  font-size: 10px;
  padding: 1px 6px;
}

.enter-btn {
  align-self: center;
  margin-right: 12px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  border-radius: 16px;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
