/* style.css - B体育(Bsports)官方网站 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #e0e0e0;
  background: #0f0f23;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a {
  color: #e94560;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ff6b81;
}

h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e94560;
  display: inline-block;
  padding-bottom: 0.5rem;
}

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

.btn {
  display: inline-block;
  background: #e94560;
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  background: #ff6b81;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.card {
  background: rgba(26, 26, 62, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  background: rgba(26, 26, 62, 0.95);
}

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

.header {
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: background 0.3s;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #e94560;
  letter-spacing: 1px;
  transition: text-shadow 0.3s;
}

.logo:hover {
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

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

.nav a {
  color: #ccc;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.nav a:hover {
  color: #fff;
  border-bottom-color: #e94560;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #ccc;
  margin: 4px 0;
  border-radius: 2px;
  transition: background 0.3s;
}

.hero {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #16213e 100%);
  padding: 80px 0;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15) 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: 3rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.2rem;
  color: #aaa;
  max-width: 700px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.section {
  padding: 60px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.about {
  background: #0a0a1a;
}

.company {
  background: #14142e;
}

.services {
  background: #0f0f23;
}

.faq-section {
  background: #0a0a1a;
}

.contact {
  background: #14142e;
}

.footer {
  background: #050510;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  transition: background 0.3s;
}

.footer a {
  color: #e94560;
}

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

.faq-item {
  border-bottom: 1px solid #2a2a4a;
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.faq-toggle {
  font-size: 1.4rem;
  color: #e94560;
  transition: transform 0.3s;
}

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

.howto-steps ol {
  padding-left: 24px;
  counter-reset: step;
}

.howto-steps li {
  margin-bottom: 16px;
  padding-left: 12px;
  color: #ccc;
  transition: color 0.3s;
}

.howto-steps li::marker {
  color: #e94560;
  font-weight: 700;
}

.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e94560;
}

.stat-label {
  color: #aaa;
  font-size: 1rem;
}

.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 400px;
  background: #1a1a3e;
}

.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;
  padding: 40px;
  text-align: center;
}

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

.banner-slide h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.banner-slide p {
  color: #ccc;
  max-width: 600px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #e94560;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  z-index: 99;
  border: none;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

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

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

.dark-mode-toggle {
  background: none;
  border: 2px solid #555;
  color: #ccc;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.dark-mode-toggle:hover {
  border-color: #e94560;
  color: #fff;
}

.search-box {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.search-box input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1a1a3e;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: #e94560;
  background: #222255;
}

.search-box button {
  padding: 10px 20px;
  background: #e94560;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #ff6b81;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.insight-card {
  background: rgba(26, 26, 62, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background: rgba(26, 26, 62, 0.95);
}

.insight-card h4 {
  color: #fff;
  margin-bottom: 8px;
}

.insight-card .meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.insight-card p {
  color: #bbb;
  font-size: 0.95rem;
}

.insight-card .read-more {
  color: #e94560;
  font-weight: 600;
  transition: color 0.3s;
}

.insight-card .read-more:hover {
  color: #ff6b81;
}

.legal {
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #222;
  padding-top: 20px;
  margin-top: 20px;
}

.legal a {
  color: #e94560;
  margin: 0 8px;
  transition: color 0.3s;
}

.legal a:hover {
  color: #ff6b81;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }

  .nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

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

  .hero {
    padding: 60px 0;
    min-height: auto;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .banner-slider {
    height: 300px;
  }

  .banner-slide h3 {
    font-size: 1.4rem;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }

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

  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* 暗色模式 (默认) */
body.dark-mode {
  --bg: #0f0f23;
  --text: #e0e0e0;
  --card-bg: #1a1a3e;
  --header-bg: #0a0a1a;
  --footer-bg: #050510;
}

body.dark-mode .card {
  background: rgba(26, 26, 62, 0.85);
  color: #e0e0e0;
}

body.dark-mode .header {
  background: rgba(10, 10, 26, 0.9);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0f0f23, #1a1a3e);
}

body.dark-mode .hero h1 {
  color: #fff;
}

body.dark-mode .hero p {
  color: #aaa;
}

body.dark-mode .nav a {
  color: #ccc;
}

body.dark-mode .faq-question {
  color: #fff;
}

body.dark-mode .insight-card {
  background: rgba(26, 26, 62, 0.85);
}

body.dark-mode .insight-card h4 {
  color: #fff;
}

body.dark-mode .insight-card p {
  color: #bbb;
}

body.dark-mode .search-box input {
  background: #1a1a3e;
  color: #fff;
  border-color: #333;
}

body.dark-mode .banner-slider {
  background: #1a1a3e;
}

body.dark-mode .banner-slide p {
  color: #ccc;
}

body.dark-mode .legal {
  color: #777;
  border-top-color: #222;
}

/* 亮色模式 */
@media (prefers-color-scheme: light) {
  body:not(.dark-mode) {
    background: #f5f5f5;
    color: #222;
  }

  body:not(.dark-mode) .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
  }

  body:not(.dark-mode) .header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  body:not(.dark-mode) .nav a {
    color: #444;
  }

  body:not(.dark-mode) .hero {
    background: linear-gradient(135deg, #e8e8f0, #d4d4e0);
  }

  body:not(.dark-mode) .hero h1 {
    color: #1a1a2e;
  }

  body:not(.dark-mode) .hero p {
    color: #555;
  }

  body:not(.dark-mode) .about {
    background: #fff;
  }

  body:not(.dark-mode) .company {
    background: #f0f0f8;
  }

  body:not(.dark-mode) .services {
    background: #f5f5f5;
  }

  body:not(.dark-mode) .faq-section {
    background: #fff;
  }

  body:not(.dark-mode) .contact {
    background: #f0f0f8;
  }

  body:not(.dark-mode) .footer {
    background: #222;
    color: #ccc;
  }

  body:not(.dark-mode) .faq-item {
    border-bottom-color: #ddd;
  }

  body:not(.dark-mode) .faq-question {
    color: #1a1a2e;
  }

  body:not(.dark-mode) .faq-answer {
    color: #555;
  }

  body:not(.dark-mode) .howto-steps li {
    color: #444;
  }

  body:not(.dark-mode) .stat-label {
    color: #666;
  }

  body:not(.dark-mode) .insight-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
  }

  body:not(.dark-mode) .insight-card h4 {
    color: #1a1a2e;
  }

  body:not(.dark-mode) .insight-card p {
    color: #555;
  }

  body:not(.dark-mode) .search-box input {
    background: #fff;
    color: #222;
    border-color: #ccc;
  }

  body:not(.dark-mode) .banner-slider {
    background: #e8e8f0;
  }

  body:not(.dark-mode) .banner-slide p {
    color: #555;
  }

  body:not(.dark-mode) .back-to-top {
    background: #e94560;
    color: white;
  }

  body:not(.dark-mode) .legal {
    color: #999;
    border-top-color: #ddd;
  }

  body:not(.dark-mode) h1, body:not(.dark-mode) h2, body:not(.dark-mode) h3, body:not(.dark-mode) h4 {
    color: #1a1a2e;
  }

  body:not(.dark-mode) .logo {
    color: #e94560;
  }
}