/* ============================================================
   style.css - 九州娱乐官网入口 - 完整样式表
   包含：重置、布局、组件、暗色模式、动画、响应式
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background: #0f172a;
  color: #e2e8f0;
}

a {
  color: #1a73e8;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

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

ul, ol {
  list-style: none;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* ---------- 区块 ---------- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1a73e8, #0d47a1);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.dark .card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.05);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: 30px;
}

/* ---------- 弹性布局 ---------- */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.text-center {
  text-align: center;
}

/* ---------- 头部导航 ---------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.dark header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

header nav a {
  color: #1e293b;
  font-weight: 500;
  transition: color 0.2s;
}

.dark header nav a {
  color: #e2e8f0;
}

header nav a:hover,
header nav a.active {
  color: #1a73e8;
}

/* 移动端菜单按钮 */
#menuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  color: #1e293b;
}

.dark #menuToggle {
  color: #e2e8f0;
}

#darkToggle,
#searchBtn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
}

#darkToggle:hover,
#searchBtn:hover {
  transform: scale(1.1);
}

/* 搜索栏 */
#searchBar {
  display: none;
  padding: 15px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.dark #searchBar {
  background: #1e293b;
  border-bottom-color: #334155;
}

#searchInput {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.dark #searchInput {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

#searchInput:focus {
  outline: none;
  border-color: #1a73e8;
}

/* 移动菜单 */
#mobileMenu {
  display: none;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px;
}

.dark #mobileMenu {
  background: #0f172a;
  border-bottom-color: #334155;
}

#mobileMenu a {
  display: block;
  padding: 10px 0;
  color: #1e293b;
  font-weight: 500;
  transition: color 0.2s;
}

.dark #mobileMenu a {
  color: #e2e8f0;
}

#mobileMenu a:hover {
  color: #1a73e8;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 90px 20px 10px;
  background: #f8fafc;
  font-size: 0.9rem;
  color: #64748b;
}

.dark .breadcrumb {
  background: #0f172a;
  color: #94a3b8;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb a {
  color: #1a73e8;
}

/* ---------- Hero Banner ---------- */
#hero {
  padding: 40px 0 80px;
  background: linear-gradient(135deg, #e0e7ff, #f0f4ff);
}

.dark #hero {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

#bannerSlider {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 500px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.banner-slide {
  padding: 60px 40px;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner-slide h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.banner-slide p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  z-index: 10;
}

.banner-prev:hover,
.banner-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.banner-prev { left: 20px; }
.banner-next { right: 20px; }

/* ---------- 数据展示 ---------- */
.counter {
  font-size: 3rem;
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.dark .faq-item {
  border-bottom-color: #334155;
}

.faq-item:hover {
  background: rgba(26, 115, 232, 0.03);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-question span {
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: #475569;
  line-height: 1.7;
}

.dark .faq-answer {
  color: #94a3b8;
}

/* ---------- 返回顶部 ---------- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

/* ---------- 页脚 ---------- */
footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 40px 20px;
  text-align: center;
}

.dark footer {
  background: #0f172a;
}

footer a {
  color: #1a73e8;
}

footer p {
  margin: 10px 0;
}

/* ---------- 滚动动画 ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 暗色模式全局覆盖 ---------- */
.dark .section-title::after {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.dark .btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.dark .btn:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.dark #bannerSlider {
  background: linear-gradient(135deg, #1e3a5f, #0f2a4a);
}

.dark .banner-prev,
.dark .banner-next {
  background: rgba(255, 255, 255, 0.1);
}

.dark .banner-prev:hover,
.dark .banner-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }

  #bannerSlider {
    min-height: 400px;
  }

  .banner-slide h1 {
    font-size: 2.5rem;
  }

  .banner-slide p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 35px;
  }

  header nav {
    display: none;
  }

  #menuToggle {
    display: block;
  }

  #bannerSlider {
    min-height: 350px;
    border-radius: 20px;
  }

  .banner-slide {
    padding: 40px 20px;
  }

  .banner-slide h1 {
    font-size: 2rem;
  }

  .banner-slide p {
    font-size: 1rem;
  }

  .banner-prev,
  .banner-next {
    font-size: 1.5rem;
    padding: 8px 12px;
  }

  .counter {
    font-size: 2.2rem;
  }

  .grid {
    gap: 20px;
  }

  .card {
    padding: 20px;
  }

  #backToTop {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 20px;
    right: 20px;
  }

  footer {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  #bannerSlider {
    min-height: 280px;
  }

  .banner-slide h1 {
    font-size: 1.6rem;
  }

  .banner-slide p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }

  .card {
    padding: 18px;
    border-radius: 16px;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  header,
  #backToTop,
  #searchBar,
  #mobileMenu,
  .banner-prev,
  .banner-next {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}