/* 乐动体育LDSPORTS官网-平台网址 style.css */

/* 全局基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e94560;
  --secondary: #16213e;
  --accent: #0f3460;
  --bg: #f0f0f5;
  --text: #1a1a2e;
  --glass: rgba(255, 255, 255, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --transition: 0.3s ease;
}

body.dark {
  --bg: #0f0f1a;
  --text: #e0e0e0;
  --glass: rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

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

/* 头部导航 */
header {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo svg {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition);
}

nav a:hover, nav a.active {
  background: var(--glass);
  color: #fff;
}

.dark-toggle {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* 英雄区与渐变Banner */
.hero {
  background: linear-gradient(135deg, var(--secondary), var(--accent), #1a1a2e);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--primary), transparent 60%);
  opacity: 0.15;
  animation: heroGlow 8s infinite alternate;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.hero .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

.hero .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(233, 69, 96, 0.6);
}

/* 轮播Banner */
.banner-carousel {
  position: relative;
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-slide {
  display: none;
  padding: 40px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  min-height: 200px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.banner-slide.active {
  display: flex;
}

.banner-slide h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.banner-slide p {
  max-width: 500px;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background var(--transition);
}

.banner-dots span.active {
  background: var(--primary);
}

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

section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 4px;
}

/* 网格布局与圆角卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--primary);
}

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

.card p {
  opacity: 0.85;
  margin-bottom: 12px;
}

.card .btn-small {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.card .btn-small:hover {
  background: #c0392b;
}

/* 统计数据 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
  margin: 40px 0;
}

.stat-item {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* 文章列表 */
.articles article {
  padding: 24px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.articles article:hover {
  transform: translateX(6px);
}

.articles h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.articles .meta {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 8px;
}

.articles p {
  margin-bottom: 12px;
}

/* FAQ 折叠 */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  cursor: pointer;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 12px;
}

/* 步骤列表 */
.howto-steps {
  list-style: none;
  counter-reset: step;
}

.howto-steps li {
  counter-increment: step;
  padding: 16px 0 16px 60px;
  position: relative;
  border-left: 2px solid var(--primary);
  margin-left: 20px;
}

.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: 12px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* 联系信息 */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-info div {
  text-align: center;
}

.contact-info svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  color: var(--primary);
}

/* 页脚 */
footer {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 6px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-grid a:hover {
  color: var(--primary);
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 8px;
}

/* 二维码区域 */
.qr-codes {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
}

.qr-codes svg {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform var(--transition);
  z-index: 999;
}

.back-to-top.show {
  display: flex;
}

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* 滚动动画 */
.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: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    gap: 8px;
  }

  nav ul.open {
    display: flex;
  }

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

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 1.5rem;
  }
}