/* ============================================
   网络表演直播+动画网站 - 全局样式
   ============================================ */

/* CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b9d;
  --secondary-color: #c44569;
  --accent-color: #ff4757;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   顶部固定导航栏
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  height: 70px;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-item {
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.navbar-item:hover {
  background: var(--gradient-primary);
  color: var(--white);
}

.navbar-item.active {
  background: var(--gradient-primary);
  color: var(--white);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}

/* ============================================
   主内容区域
   ============================================ */
.main-content {
  padding-top: 70px;
  min-height: calc(100vh - 280px);
}

/* ============================================
   Banner 轮播图
   ============================================ */
.banner-section {
  width: 100%;
  height: 450px;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  position: relative;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.banner-slide.active {
  opacity: 1;
}

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

.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  text-align: center;
}

.banner-placeholder h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-placeholder p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ============================================
   页面容器
   ============================================ */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.page-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--gradient-primary);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 3px;
}

/* ============================================
   直播间卡片
   ============================================ */
.live-section {
  margin-bottom: 50px;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.live-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.live-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.live-cover {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

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

.live-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e74c3c 0%, #e74c3c 50%, #c0392b 50%, #c0392b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-color);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.live-viewers {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.live-info {
  padding: 18px;
}

.live-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-host {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.live-host-name {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   动画作品卡片
   ============================================ */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.anime-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.anime-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.anime-cover {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.anime-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

.anime-info {
  padding: 15px;
}

.anime-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   主播列表
   ============================================ */
.anchor-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.anchor-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 700px;
  width: 100%;
  transition: var(--transition);
}

.anchor-card:hover {
  box-shadow: var(--shadow-md);
}

.anchor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.anchor-info {
  flex: 1;
}

.anchor-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.anchor-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   直播详情页
   ============================================ */
.live-detail-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.live-player-section {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.live-player {
  width: 100%;
  background: #000;
  aspect-ratio: 16/9;
}

.live-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.video-placeholder-icon {
  font-size: 5rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

.video-placeholder-text {
  font-size: 1.2rem;
}

.live-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-bg);
}

/* 账户余额 */
.balance-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.balance-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.balance-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.balance-unit {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-left: 4px;
}

/* 礼物栏 */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: var(--light-bg);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.gift-item:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.05);
}

.gift-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.gift-name {
  font-size: 0.75rem;
  color: var(--text-light);
}

.gift-item:hover .gift-name {
  color: var(--white);
}

.gift-price {
  font-size: 0.7rem;
  color: var(--primary-color);
  margin-top: 2px;
}

.gift-item:hover .gift-price {
  color: var(--white);
}

/* 聊天区 */
.chat-section {
  flex: 1;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.chat-content {
  flex: 1;
}

.chat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.chat-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--light-bg);
  padding: 8px 14px;
  border-radius: 18px;
  display: inline-block;
}

/* ============================================
   动漫详情页
   ============================================ */
.anime-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.anime-detail-player {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.anime-detail-player video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.certificate-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.certificate-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.certificate-image {
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.certificate-image img {
  width: 100%;
  height: auto;
}

.certificate-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.certificate-placeholder-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

/* ============================================
   充值中心
   ============================================ */
.recharge-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.recharge-info {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.recharge-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.recharge-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.recharge-qr-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.recharge-qr-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.recharge-qr-code {
  max-width: 300px;
  margin: 0 auto 30px;
  padding: 20px;
  background: var(--light-bg);
  border-radius: var(--border-radius);
}

.recharge-qr-code img {
  width: 100%;
  height: auto;
}

.qr-placeholder {
  width: 260px;
  height: 260px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.qr-placeholder-icon {
  font-size: 4rem;
  margin-bottom: 10px;
}

.recharge-amount {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.recharge-amount strong {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.recharge-notice {
  background: var(--light-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 25px;
  text-align: left;
}

.recharge-notice h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.recharge-notice ul {
  list-style: disc;
  padding-left: 20px;
}

.recharge-notice li {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ============================================
   联系我们
   ============================================ */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.contact-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

.company-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 2;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   登录/注册页面
   ============================================ */
.auth-container {
  max-width: 450px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 50px 40px;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 35px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input {
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.auth-submit {
  margin-top: 10px;
  padding: 16px;
  font-size: 1.1rem;
}

.auth-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   底部栏
   ============================================ */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 50px 20px 30px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--white);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 50px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 18px;
  color: #FFFFFF;
}

.footer-legal-links a:hover {
  color: var(--primary-color);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
  .live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .anime-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .live-detail-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .live-grid {
    grid-template-columns: 1fr;
  }
  
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .anchor-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}
