/* ===== 乐动体育 - 完整样式表 ===== */
/* 全局重置与基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.dark header {
  background: linear-gradient(135deg, #0a0a1a 0%, #101020 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo svg {
  height: 45px;
  width: auto;
  display: block;
}

/* 导航 */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #ff6b35;
}

/* 头部操作区 */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-box input {
  padding: 8px 15px;
  border-radius: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 180px;
  outline: none;
  transition: background 0.3s ease, width 0.3s ease;
  font-size: 14px;
}

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

.search-box input:focus {
  background: rgba(255, 255, 255, 0.2);
  width: 220px;
}

.dark-toggle,
.menu-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.dark-toggle:hover,
.menu-toggle:hover {
  background: #ff6b35;
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #888;
}

.breadcrumb a {
  color: #ff6b35;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #e55a2b;
}

.breadcrumb span {
  color: #aaa;
  margin: 0 4px;
}

/* ===== Hero Banner ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  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, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  animation: heroGlow 8s infinite alternate;
  pointer-events: none;
}

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

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #ff6b35, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

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

.hero .btn {
  display: inline-block;
  padding: 14px 40px;
  background: #ff6b35;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
  background: #e55a2b;
}

.hero-carousel {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-carousel .card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
  width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  text-align: left;
}

.hero-carousel .card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-carousel .card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.hero-carousel .card p {
  font-size: 0.95rem;
  opacity: 0.8;
  color: #ddd;
}

.hero-carousel .card svg {
  margin-bottom: 15px;
}

/* ===== 通用 Section ===== */
section {
  padding: 70px 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: #ff6b35;
  margin: 15px auto 0;
  border-radius: 4px;
}

.section-title-left {
  text-align: left;
}

.section-title-left::after {
  margin: 15px 0 0;
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

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

/* ===== 卡片通用 ===== */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.dark .card {
  background: #1a1a2e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

body.dark .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card img {
  border-radius: 12px;
  margin-bottom: 15px;
  width: 100%;
}

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

body.dark .card h3 {
  color: #e0e0e0;
}

.card p {
  color: #666;
  line-height: 1.6;
}

body.dark .card p {
  color: #aaa;
}

.card svg {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* ===== 按钮 ===== */
.btn-outline {
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid #ff6b35;
  color: #ff6b35;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin-top: 15px;
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover {
  background: #ff6b35;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== 品牌介绍 ===== */
.about-text p {
  margin-bottom: 15px;
  color: #444;
}

body.dark .about-text p {
  color: #bbb;
}

/* ===== 团队 ===== */
.team-member {
  text-align: center;
}

.team-member svg {
  margin: 0 auto 15px;
  border-radius: 50%;
}

.team-member h4 {
  margin-bottom: 6px;
}

.team-member p {
  font-size: 0.9rem;
  color: #777;
}

body.dark .team-member p {
  color: #999;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 18px 0;
  transition: border-color 0.3s ease;
}

body.dark .faq-item {
  border-color: #333;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  user-select: none;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #ff6b35;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: #ff6b35;
}

.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

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

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

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

/* ===== Footer ===== */
footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 0 30px;
  transition: background 0.3s ease;
}

body.dark footer {
  background: #0a0a1a;
}

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

footer h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

footer a {
  color: #aaa;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ff6b35;
}

footer p {
  color: #999;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #888;
}

.footer-bottom p {
  margin-bottom: 5px;
  color: #888;
}

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ff6b35;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
  border: none;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

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

.back-top:hover {
  transform: translateY(-3px);
  background: #e55a2b;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* ===== 滚动动画 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 数字计数 ===== */
.num-count {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff6b35;
  display: inline-block;
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  background: #ff6b35;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 8px;
  font-weight: 500;
}

/* ===== 文章卡片 ===== */
.article-card {
  margin-bottom: 30px;
}

.article-card .meta {
  font-size: 13px;
  color: #999;
  margin: 8px 0;
}

.article-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ===== HowTo 步骤 ===== */
.howto-step {
  background: #f0f4ff;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

body.dark .howto-step {
  background: #1e1e3a;
}

.howto-step h4 {
  color: #ff6b35;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.howto-step p {
  color: #555;
  line-height: 1.6;
}

body.dark .howto-step p {
  color: #bbb;
}

/* ===== 占位 SVG 样式 ===== */
.placeholder-svg {
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
}

body.dark .placeholder-svg {
  background: #2a2a3e;
  color: #aaa;
}

/* ===== 联系信息 ===== */
#contact p {
  margin-bottom: 8px;
  color: #555;
}

body.dark #contact p {
  color: #bbb;
}

#contact strong {
  color: #1a1a2e;
}

body.dark #contact strong {
  color: #e0e0e0;
}

#contact svg {
  margin: 10px;
  display: inline-block;
  vertical-align: middle;
}

/* ===== 特殊背景区块 ===== */
section[style*="background:#f0f4ff"] {
  background: #f0f4ff !important;
}

body.dark section[style*="background:#f0f4ff"] {
  background: #15152a !important;
}

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

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

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

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

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

@media (max-width: 768px) {
  /* 导航 */
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1a1a2e;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    gap: 10px;
  }

  body.dark nav ul {
    background: #0a0a1a;
  }

  nav ul.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .search-box input {
    width: 120px;
  }

  .search-box input:focus {
    width: 160px;
  }

  /* 网格 */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  /* Hero */
  .hero {
    padding: 60px 0;
  }

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

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

  .hero-carousel .card {
    width: 100%;
    max-width: 320px;
  }

  /* Section */
  section {
    padding: 50px 0;
  }

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

  /* 卡片 */
  .card {
    padding: 20px;
  }

  /* 团队 */
  .team-member svg {
    width: 60px;
    height: 60px;
  }

  /* 回到顶部 */
  .back-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  /* 联系区域 */
  #contact .grid-2 div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  #contact svg {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 8px;
  }

  .logo svg {
    height: 35px;
  }

  .search-box input {
    width: 100px;
    font-size: 13px;
    padding: 6px 12px;
  }

  .search-box input:focus {
    width: 130px;
  }

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

  .hero .btn {
    padding: 12px 30px;
    font-size: 16px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .num-count {
    font-size: 2rem;
  }
}

/* ===== 暗色模式额外优化 ===== */
body.dark .faq-question::after {
  color: #ff8c5a;
}

body.dark .btn-outline {
  border-color: #ff8c5a;
  color: #ff8c5a;
}

body.dark .btn-outline:hover {
  background: #ff8c5a;
  color: #fff;
}

body.dark .hero .btn {
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

body.dark .hero .btn:hover {
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.7);
}

/* ===== 打印样式 ===== */
@media print {
  header,
  .back-top,
  .hero .btn,
  .search-box,
  .dark-toggle,
  .menu-toggle {
    display: none !important;
  }

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

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

  .hero {
    padding: 40px 0 !important;
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  .hero h1 {
    -webkit-text-fill-color: #ff6b35 !important;
  }
}