/* style.css - bbin宝盈集团官方网站 */
*,
*::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, sans-serif;
  background: #f8f9fa;
  color: #222;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background: #0d0d1a;
  color: #e0e0e0;
}

a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.dark a {
  color: #80bfff;
}

a:hover {
  text-decoration: underline;
}

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

/* 头部导航 */
.header {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.dark .header {
  background: linear-gradient(135deg, #0a0a1a, #0d1b2a, #1b2838);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 25px;
  list-style: none;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  border-bottom-color: #ffd700;
  color: #ffd700;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #ffd700;
  color: #ffd700;
  font-size: 1.5rem;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 5px 15px;
  max-width: 250px;
  margin-left: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px;
  outline: none;
  width: 100%;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-box button {
  background: transparent;
  border: none;
  color: #ffd700;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.search-box button:hover {
  transform: scale(1.1);
}

/* 面包屑导航 */
.breadcrumb {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.dark .breadcrumb {
  background: rgba(0, 0, 0, 0.2);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: #ffd700;
  text-decoration: none;
}

.breadcrumb span {
  color: #ffd700;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.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.08) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.hero .btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a1a2e;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-outline {
  border: 2px solid #ffd700;
  color: #ffd700;
  background: transparent;
}

.btn-outline:hover {
  background: #ffd700;
  color: #1a1a2e;
  transform: translateY(-3px);
}

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

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

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

body.dark .card {
  background: rgba(30, 30, 60, 0.7);
  border-color: rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 网格布局 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

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

/* 文本工具 */
.text-center {
  text-align: center;
}

.mt-30 {
  margin-top: 30px;
}

.mb-30 {
  margin-bottom: 30px;
}

/* 图片占位 */
.img-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 15px;
  overflow: hidden;
}

.img-placeholder svg {
  width: 100%;
  height: 100%;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

body.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item:hover {
  background: rgba(255, 215, 0, 0.03);
}

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

.faq-question span {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-top: 0;
  color: #555;
}

body.dark .faq-answer {
  color: #bbb;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 15px;
}

/* HowTo步骤 */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.howto-step .step-num {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a1a2e;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* 评价卡片 */
.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .review-card {
  background: rgba(30, 30, 60, 0.5);
}

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

.review-card .avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
}

/* 页脚 */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffd700;
  text-decoration: none;
}

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

.footer h4 {
  margin-bottom: 15px;
  color: #ffd700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
}

/* 返回顶部按钮 */
.back-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a1a2e;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
  display: none;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-top.show {
  display: block;
}

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

/* 暗黑模式切换按钮 */
.dark-toggle {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 999;
  background: #1a1a2e;
  color: #ffd700;
  border: 2px solid #ffd700;
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body.dark .dark-toggle {
  background: #ffd700;
  color: #1a1a2e;
}

.dark-toggle:hover {
  transform: scale(1.05);
}

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

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

/* 响应式布局 */
@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 80px 0 60px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .section {
    padding: 50px 0;
  }

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

  .search-box {
    max-width: 100%;
    margin: 10px 0 0;
  }

  .dark-toggle {
    top: auto;
    bottom: 100px;
    right: 20px;
  }

  .back-top {
    bottom: 160px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

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

  .card {
    padding: 20px;
  }

  .footer .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* 额外动画辅助 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .btn-group .btn {
  animation: fadeInUp 0.8s ease forwards;
}

.hero .btn-group .btn:last-child {
  animation-delay: 0.2s;
}