/* 完美体育官方 style.css — 完整样式表 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  transition: background 0.3s, color 0.3s;
  line-height: 1.7;
}

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

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

/* 导航 */
header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 15px 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 svg {
  height: 40px;
}

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

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

nav a:hover {
  color: #f5a623;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.dark-toggle {
  background: none;
  border: 2px solid #f5a623;
  color: #f5a623;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* 面包屑 */
.breadcrumb {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 0;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

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

.breadcrumb span {
  color: #aaa;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 126, 95, 0.15) 0%, transparent 60%);
  animation: heroGlow 10s infinite alternate;
}

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

.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 30px rgba(255, 126, 95, 0.3);
}

.hero p {
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 20px;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-group {
  margin-top: 35px;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #f5a623, #f7b731);
  color: #1a1a2e;
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(245, 166, 35, 0.6);
}

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

.btn-outline:hover {
  background: #f5a623;
  color: #1a1a2e;
}

/* 通用section */
section {
  padding: 70px 0;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #f5a623;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

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

.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

.dark .card p {
  color: #bbb;
}

.badge {
  display: inline-block;
  background: #f5a623;
  color: #1a1a2e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* 轮播 */
.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 0 15px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  cursor: pointer;
}

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

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

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

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

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

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

/* 数字动画 */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f5a623;
}

/* 文章卡片 */
.article-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.dark .article-card {
  background: rgba(30, 30, 60, 0.8);
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card svg {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.article-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.article-content .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.article-content p {
  font-size: 0.9rem;
  color: #666;
}

.dark .article-content p {
  color: #bbb;
}

.read-more {
  color: #f5a623;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

/* 底部 */
footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 0 30px;
}

footer a {
  color: #f5a623;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.qr-placeholder {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  margin: 5px;
}

/* 返回顶部 */
#backTop {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background: #f5a623;
  color: #1a1a2e;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.4);
  display: none;
  z-index: 999;
  transition: all 0.3s;
}

#backTop:hover {
  transform: scale(1.1);
}

/* 响应式 */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #1a1a2e;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    gap: 15px;
  }
  nav ul.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

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

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

/* 搜索 */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 20px auto;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  backdrop-filter: blur(4px);
}

.search-box button {
  padding: 12px 25px;
  border-radius: 30px;
  border: none;
  background: #f5a623;
  color: #1a1a2e;
  font-weight: 600;
  cursor: pointer;
}