/* 全局样式 - 直播表演网站 */
:root {
  --primary: #ff4757;
  --primary-dark: #ff2f40;
  --secondary: #2f3542;
  --accent: #ffd32a;
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-light: #0f3460;
  --text-primary: #ffffff;
  --text-secondary: #a4b0be;
  --border-color: #2f3542;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* 导航栏 */
.header {
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-auth {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-auth a {
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s;
}

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

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

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

.btn-register:hover {
  background: var(--primary-dark);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.balance {
  background: rgba(255, 211, 42, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  color: var(--accent);
  font-size: 14px;
}

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

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b81 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 直播间卡片 */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.live-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.live-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 71, 87, 0.3);
}

.live-cover {
  position: relative;
  overflow: hidden;
}

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

.live-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

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

.live-viewers {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.live-info {
  padding: 20px;
}

.live-host {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.host-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.host-name {
  font-weight: 600;
  font-size: 16px;
}

.host-title {
  color: var(--text-secondary);
  font-size: 13px;
}

.live-title {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 主播卡片 */
.anchor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.anchor-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.anchor-card:hover {
  transform: translateY(-5px);
}

.anchor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--primary);
}

.anchor-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.anchor-fans {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
}

.anchor-btn {
  background: linear-gradient(135deg, var(--primary), #ff6b81);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.anchor-btn:hover {
  opacity: 0.9;
}

/* 直播间详情 */
.room-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.room-main {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
}

.video-area {
  position: relative;
  background: #000;
  height: 800px;
}

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

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
  color: var(--text-secondary);
}

.video-placeholder svg {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.room-info {
  padding: 20px;
}

.room-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.room-host-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.chat-panel {
  background: var(--bg-card);
  border-radius: 15px;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.chat-message {
  margin-bottom: 12px;
  font-size: 14px;
}

.chat-message .name {
  color: var(--primary);
  font-weight: 600;
}

.chat-message .time {
  color: var(--text-secondary);
  font-size: 12px;
  margin-left: 8px;
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 10px 20px;
  color: var(--text-primary);
  font-size: 14px;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
}

/* 礼物面板 */
.gift-panel {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 20px;
}

.gift-panel h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.gift-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gift-item {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

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

.gift-item.selected {
  border-color: var(--primary);
  background: rgba(255, 71, 87, 0.1);
}

.gift-icon {
  font-size: 28px;
  margin-bottom: 5px;
}

.gift-name {
  font-size: 12px;
  color: var(--text-secondary);
}

.gift-price {
  font-size: 11px;
  color: var(--accent);
}

/* 账户面板 */
.account-panel {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 20px;
}

.account-panel h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.balance-display {
  text-align: center;
  padding: 20px;
  background: rgba(255, 211, 42, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
}

.balance-amount {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
}

.balance-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.recharge-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #ffa502);
  color: var(--secondary);
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.send-gift-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* 表单样式 */
.form-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.form-container {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #ff6b81);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.form-btn:hover {
  opacity: 0.9;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

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

/* 充值页面 */
.recharge-page {
  padding: 40px 20px;
}

.recharge-container {
  max-width: 800px;
  margin: 0 auto;
}

.recharge-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.recharge-package {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.recharge-package:hover {
  border-color: var(--primary);
}

.recharge-package.selected {
  border-color: var(--primary);
  background: rgba(255, 71, 87, 0.1);
}

.recharge-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.recharge-price {
  color: var(--text-secondary);
  font-size: 14px;
}

.recharge-qrcode {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  margin: 0 auto;
}

.recharge-qrcode img {
  width: 400px;
  margin-bottom: 15px;
}

.recharge-qrcode p {
  color: var(--secondary);
  font-size: 14px;
}

.recharge-tips {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 25px;
  margin-top: 30px;
}

.recharge-tips h3 {
  margin-bottom: 15px;
}

.recharge-tips ul {
  list-style: none;
  color: var(--text-secondary);
}

.recharge-tips li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.recharge-tips li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* 联系我们 */
.contact-page {
  padding: 40px 20px;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
}

.contact-card h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 71, 87, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contact-text h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* 个人中心 */
.profile-page {
  padding: 40px 20px;
}

.profile-container {
  max-width: 1000px;
  margin: 0 auto;
}

.profile-header {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.profile-info h2 {
  font-size: 28px;
  margin-bottom: 5px;
}

.profile-info p {
  color: var(--text-secondary);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.profile-menu {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.3s;
}

.menu-item:hover {
  background: rgba(255, 71, 87, 0.05);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 71, 87, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.menu-item h4 {
  font-size: 16px;
}

.menu-item p {
  color: var(--text-secondary);
  font-size: 13px;
}

.menu-arrow {
  color: var(--text-secondary);
}

/* 底部 */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: 60px;
}

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

.footer-company {
  text-align: center;
  margin-bottom: 30px;
}

.footer-company h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  text-align: center;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color 0.3s;
}

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

.footer-copyright {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.footer-copyright p {
  margin: 5px 0;
  color: var(--text-secondary);
}

.footer-extra-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-extra-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .banner h1 {
    font-size: 32px;
  }

  .room-container {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 20px;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-close {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-card);
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-left: 4px solid #2ed573;
}

.toast.error {
  border-left: 4px solid var(--primary);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
