/* KingPH 通用CSS样式文件 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* 基础重置和变量 */
:root {
  /* 博彩主题色彩方案 */
  --primary-gold: #FFD700;
  --primary-red: #DC2626;
  --primary-blue: #1E40AF;
  --secondary-purple: #7C3AED;
  --accent-orange: #EA580C;
  --dark-bg: #0F172A;
  --dark-card: #1E293B;
  --dark-border: #334155;
  --text-light: #F8FAFC;
  --text-gray: #94A3B8;
  --success-green: #10B981;
  --warning-yellow: #F59E0B;
  
  /* 渐变色 */
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-red: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  --gradient-blue: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
  --gradient-purple: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 通用工具类 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--dark-bg);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
  background: var(--gradient-red);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--gradient-blue);
  transform: translateY(-2px);
}

.promo-btn, .promo-link {
  background: var(--gradient-gold);
  color: var(--dark-bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 1000;
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-gold);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* 移动端导航 */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 1rem;
  display: none;
}

#mobile-menu.show {
  display: block;
}

#mobile-menu .nav-menu {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

/* 主要内容区域 */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* 轮播图 */
.carousel-container {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 1rem;
  margin: 2rem 0;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-gold);
}

/* 游戏网格 */
.game-section {
  margin: 3rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.game-card {
  background: var(--dark-card);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--dark-border);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-gold);
}

.game-card img {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.game-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* 内容模块 */
.content-module {
  background: var(--dark-card);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--dark-border);
}

.module-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-gold);
}

.module-content {
  color: var(--text-gray);
  line-height: 1.8;
}

.module-content p {
  margin-bottom: 1rem;
}

/* 底部导航（移动端） */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0;
  z-index: 999;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-gray);
  font-size: 0.75rem;
  transition: color 0.3s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--primary-gold);
}

.bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* 页脚 */
.footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 3rem 0 6rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
  color: var(--text-gray);
  font-size: 0.875rem;
}

/* 响应式设计 */
@media (min-width: 769px) {
  #mobile-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu,
  .nav-actions {
    display: none;
  }
  
  #mobile-menu {
    display: none;
  }
  
  #mobile-menu.show {
    display: block;
  }
  
  .carousel-container {
    height: 200px;
  }
  
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  
  .game-card {
    padding: 0.75rem;
  }
  
  .game-card img {
    width: 60px;
    height: 60px;
  }
  
  .game-card h3 {
    font-size: 0.75rem;
  }
  
  .content-module {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .module-title {
    font-size: 1.25rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  
  .game-card {
    padding: 0.5rem;
  }
  
  .game-card img {
    width: 50px;
    height: 50px;
  }
  
  .game-card h3 {
    font-size: 0.7rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-gold);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 错误状态 */
.error {
  border-color: var(--primary-red) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* 成功状态 */
.success {
  border-color: var(--success-green) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
} 