:/* 米乐体育-米乐M6（易游）官网 style.css */
/* 版本: 1.0 | 最后更新: 2025-03-24 | 设计师: 资深UI团队 */

/* ===== CSS 变量 & 主题 ===== */
:root {
  /* 主色调 */
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #ffd700;
  --accent2: #e94560;
  
  /* 文本 */
  --text: #f0f0f0;
  --text2: #b0b0b0;
  
  /* 背景 & 效果 */
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 暗色模式 */
[data-theme="dark"] {
  --primary: #0f0f1a;
  --secondary: #1a1a2e;
  --text: #e0e0e0;
  --text2: #909090;
  --card-bg: rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(0, 0, 0, 0.4);
}

/* ===== 基础重置 & 全局 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent2);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ===== 容器 & 布局 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text2);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== 毛玻璃卡片 ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--shadow);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ===== 按钮系统 ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #1a1a2e;
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #1a1a2e;
}

/* ===== 网格系统 ===== */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== 头部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  white-space: nowrap;
}

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

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ===== 英雄区域 (Hero) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(233, 69, 96, 0.05) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(5%, 5%);
  }
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  flex: 1 1 50%;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero .btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-banner {
  position: relative;
  width: 45%;
  height: 60vh;
  min-height: 300px;
  max-height: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  flex: 1 1 40%;
  margin-left: 40px;
}

.hero-banner svg {
  width: 80%;
  height: 80%;
}

/* Banner 轮播 */
.banner-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

/* ===== 关于区域 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* ===== 统计数字 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-item .stat-label {
  color: var(--text2);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ===== 产品卡片 ===== */
.product-card {
  text-align: center;
  padding: 36px 24px;
}

.product-card svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text2);
  font-size: 0.92rem;
}

/* ===== 优势列表 ===== */
.advantage-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  background: var(--card-bg);
  transition: all 0.3s ease;
}

.advantage-item:hover {
  background: var(--glass-bg);
  transform: translateX(6px);
}

.advantage-item svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 4px;
}

.advantage-item h4 {
  margin-bottom: 4px;
}

/* ===== 案例卡片 ===== */
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  transition: all 0.4s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.case-card .case-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.case-card .case-body {
  padding: 20px;
}

.case-card .case-body h4 {
  margin-bottom: 8px;
}

/* ===== 用户评价 ===== */
.testimonial-card {
  text-align: center;
  padding: 36px 24px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: 8px;
  left: 20px;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card .author {
  font-weight: 600;
  margin-top: 16px;
  color: var(--accent);
}

/* ===== 合作伙伴 ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 80px;
}

.partner-item:hover {
  background: var(--glass-bg);
  transform: scale(1.05);
}

/* ===== FAQ 手风琴 ===== */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 0;
  user-select: none;
}

.faq-question .icon {
  transition: transform 0.4s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  color: var(--text2);
  padding: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 12px 0 16px;
}

/* ===== 使用步骤 ===== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.howto-step {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.howto-step:hover {
  background: var(--glass-bg);
  transform: translateY(-4px);
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: -12px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1a1a2e;
  font-size: 1rem;
}

.howto-step h4 {
  margin-bottom: 8px;
}

/* ===== 联系区域 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info svg {
  flex-shrink: 0;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--secondary);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: var(--text2);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text2);
}

/* ===== 网站地图 ===== */
.sitemap-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sitemap-links a {
  color: var(--text2);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.sitemap-links a:hover {
  color: var(--accent);
}

/* ===== 隐私 & 免责声明 ===== */
.privacy-section,
.disclaimer-section {
  padding: 40px 0;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.8;
}

.privacy-section h2,
.disclaimer-section h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.privacy-section p,
.disclaimer-section p {
  margin-bottom: 12px;
}

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  max-width: 400px;
  margin: 0 auto 40px;
  background: var(--card-bg);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-bar input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text2);
}

.search-bar button {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  border: none;
  color: #1a1a2e;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-bar button:hover {
  background: var(--accent2);
  color: #fff;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text2);
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text2);
}

/* ===== 文章卡片 ===== */
.article-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: all 0.3s ease;
}

.article-card:hover {
  background: var(--glass-bg);
  transform: translateY(-4px);
}

.article-card h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.article-card .meta {
  color: var(--text2);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.article-card p {
  color: var(--text2);
  font-size: 0.92rem;
}

/* ===== 资讯网格 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== 相关文章 ===== */
.related-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination a:hover,
.pagination a.active {
  background: var(--accent);
  color: #1a1a2e;
}

/* ===== 回到顶部 & 暗色模式按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1a1a2e;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
}

.dark-mode-toggle {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  background: var(--glass-bg);
}

/* ===== 滚动动画 ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 工具类 ===== */
.hidden {
  display: none !important;
}

/* ===== 响应式设计 ===== */

/* 大屏幕 (992px 以下) */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero-banner {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 300px;
    margin-top: 40px;
    margin-left: 0;
  }
  
  .hero-content {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .hero .container {
    flex-direction: column;
  }
}

/* 平板 & 小屏幕 (768px 以下) */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .related-articles {
    grid-template-columns: 1fr;
  }
  
  .sitemap-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-banner {
    height: 250px;
    margin-top: 30px;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  
  .nav.open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .stat-item .stat-number {
    font-size: 2rem;
  }
  
  .back-to-top,
  .dark-mode-toggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .dark-mode-toggle {
    bottom: 80px;
  }
}

/* 手机小屏幕 (480px 以下) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .hero-banner {
    height: 200px;
  }
  
  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .header,
  .back-to-top,
  .dark-mode-toggle,
  .nav-toggle,
  .search-bar,
  .pagination {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #333;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}