﻿@charset "utf-8";

/* =============================================
   直播平台 · 结构创新重制版
   不对称网格 | 悬浮层设计 | 玻璃态导航
============================================= */
:root {
  /* 渐变主色 */
  --gradient-primary: linear-gradient(135deg, #FF4D4D 0%, #FF9000 100%);
  --gradient-dark: linear-gradient(180deg, #1A1D29 0%, #232838 100%);
  --gradient-card: linear-gradient(transparent, rgba(0,0,0,0.85) 70%);
  
  /* 中性色 */
  --color-bg: #F0F2F7;
  --color-white: #FFFFFF;
  --color-text: #1D2129;
  --color-text-light: #646A73;
  --color-border: rgba(255,255,255,0.1);
  
  /* 规格 */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 8px 32px rgba(255, 77, 77, 0.2);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 90px;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; border: 0; }
ul, li { list-style: none; }
.icon { width: 1em; height: 1em; vertical-align: middle; fill: currentColor; }

.top-info-bar {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.top-info-bar br { display: none; }

/* ========== 头部 · 深色悬浮式 ========== */
.header {
  max-width: 1200px;
  margin: 20px auto;
  padding: 18px 28px;
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  box-shadow: 0 10px 40px rgba(26, 29, 41, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
}

.logo img {
  height: 38px;
  filter: brightness(0) invert(1);
}

/* 搜索备案区居中 */
.search-box {
  justify-self: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.search-box a {
  color: rgba(255,255,255,0.8);
}

.search-box a:hover {
  color: #FF9000;
}

/* 登录注册按钮 */
.login-btn {
  display: flex;
  gap: 12px;
  align-items: center;
}

.login-btn a {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  transition: var(--transition);
}

.login-btn a:first-child {
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
}

.login-btn a:first-child:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.login-btn a:last-child {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.login-btn a:last-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 77, 77, 0.4);
}

/* ========== 主体内容 · 不对称网格 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 40px;
}

.live-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-left: 16px;
}

.live-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

/* 核心结构变化：不对称瀑布网格
   第1个卡片占2列宽度，其余自动填充 */
.live-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}

.live-list > a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* ========== 直播卡片 · 层叠悬浮式 ========== */
.live-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  background: #fff;
  height: 100%;
}

.live-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 封面占满全卡 */
.live-card > div:first-child {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.live-card:hover .card-cover {
  transform: scale(1.08);
}

/* 底部渐变遮罩+信息层 */
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 14px;
  background: var(--gradient-card);
  color: #fff;
  z-index: 2;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-anchor {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* 直播状态标签 · 左上角斜角 */
.live-status {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 14px 6px 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  z-index: 3;
  border-radius: 0 0 12px 0;
  box-shadow: 0 2px 8px rgba(255, 77, 77, 0.4);
}

.live-status::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-left: 6px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 观看人数 · 右上角胶囊 */
.watch-count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  border-radius: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
}

.watch-count .icon {
  width: 14px;
  height: 14px;
}

.bottom-nav {
    position: fixed;
    bottom: 15rem;
    left: 5%;
    height: 600px;
    transform: translateX(-50%);
    flex-direction: column;
    width: min(105px, 92%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.8);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 16px;
  color: var(--color-text-light);
  transition: var(--transition);
  cursor: pointer;
  flex: 1;
  max-width: 90px;
}

.nav-item:hover {
  color: #FF4D4D;
  background: rgba(255, 77, 77, 0.08);
  transform: translateY(-3px);
}

/* 首页高亮突出 */
.bottom-nav > a:first-child .nav-item {
  color: #FF4D4D;
  background: rgba(255, 77, 77, 0.1);
}

.nav-icon {
  font-size: 22px;
  line-height: 1;
}

.nav-icon .icon {
  width: 22px;
  height: 22px;
}

.nav-item span {
  font-size: 12px;
  font-weight: 500;
}

/* ========== 响应式结构适配 ========== */
@media screen and (max-width: 960px) {
  .live-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .live-list > a:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .header {
    grid-template-columns: auto auto;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .search-box {
    order: 3;
    grid-column: span 2;
    justify-self: stretch;
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  .top-info-bar {
    font-size: 11px;
    padding: 6px 16px;
  }
  
  .header {
    margin: 12px 12px 0;
    padding: 14px 18px;
    border-radius: 12px;
  }
  
  .logo img { height: 32px; }
  
  .container { padding: 16px 12px 30px; }
  
  .live-title { font-size: 20px; margin-bottom: 16px; }
  
  .live-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .live-list > a:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .card-cover { height: 220px; }
  
  .bottom-nav {
    bottom: 12px;
    width: calc(100% - 24px);
    border-radius: 24px;
    padding: 8px 4px;
  }
  
  .nav-item {
    padding: 4px 8px;
  }
  
  .nav-icon { font-size: 20px; }
  .nav-item span { font-size: 11px; }
}
