/* style.css - 中超买球(中国)官方网站 CSLBuyBalls */
:root {
  --primary: #1a2a6c;
  --secondary: #b21f1f;
  --accent: #fdbb2d;
  --bg-light: #f8f9fa;
  --text-dark: #1a1a2e;
  --glass-bg: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.3);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 16px;
  --transition: 0.3s ease;
}
[data-theme="dark"] {
  --primary: #0d1b2a;
  --secondary: #e63946;
  --accent: #f4a261;
  --bg-light: #1b2838;
  --text-dark: #e0e0e0;
  --glass-bg: rgba(0,0,0,0.3);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
header.scrolled {
  background: rgba(26,42,108,0.9);
  box-shadow: var(--shadow);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.logo svg {
  width: 40px;
  height: 40px;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.dark-toggle {
  background: none;
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}
.hero {
  margin-top: 70px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  position: relative;
  overflow: hidden;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-content {
  text-align: center;
  color: white;
  padding: 60px 20px;
  max-width: 800px;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}
.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.btn-outline:hover {
  background: white;
  color: var(--primary);
}
.hero .scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 30px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.card p {
  opacity: 0.85;
}
.brand-story {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.brand-story > div {
  flex: 1;
  min-width: 280px;
}
.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: var(--transition);
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 16px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 16px;
}
footer {
  background: var(--primary);
  color: white;
  padding: 60px 20px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.footer-grid ul {
  list-style: none;
}
.footer-grid li {
  margin-bottom: 8px;
}
.footer-grid a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition);
}
.back-to-top.show {
  display: flex;
}
.back-to-top:hover {
  transform: scale(1.1);
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.counter-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  opacity: 0.7;
}
.breadcrumb span + span::before {
  content: ' / ';
  margin: 0 8px;
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .btn { padding: 12px 24px; }
  section { padding: 50px 0; }
}