/* ===== 必威体育官方网站 - 完整style.css ===== */
/* 全局重置与变量 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #f0c040;
  --accent2: #e94560;
  --bg: #f4f6f9;
  --card-bg: rgba(255,255,255,0.75);
  --text: #1a1a2e;
  --text-light: #555;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 20px;
  --transition: 0.3s ease;
  --glass: blur(12px);
  --gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #0f0f1a;
    --secondary: #1a1a2e;
    --bg: #12121c;
    --card-bg: rgba(30,30,50,0.75);
    --text: #eee;
    --text-light: #aaa;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent2); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== Header & Nav ===== */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}
header.scrolled { background: rgba(26,26,46,0.85); backdrop-filter: blur(20px); }
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: 1280px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: 1px;
}
.logo svg { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text); font-weight: 500; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.menu-toggle span { width: 28px; height: 3px; background: var(--text); border-radius: 4px; transition: var(--transition); }
.dark-toggle {
  background: none; border: 2px solid var(--text); border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem; color: var(--text); transition: var(--transition);
}
.dark-toggle:hover { background: var(--accent); color: var(--primary); }

/* ===== Hero Banner ===== */
.hero {
  padding: 120px 0 60px;
  background: var(--gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(circle at 30% 50%, rgba(240,192,64,0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(233,69,96,0.06) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(5%,5%) scale(1.1); }
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-text h1 {
  font-size: 3.2rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800;
}
.hero-text h1 span { color: var(--accent); }
.hero-text p {
  font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; max-width: 500px;
}
.hero-buttons { display: flex; gap: 16px; 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);
  box-shadow: 0 4px 20px rgba(240,192,64,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(240,192,64,0.5);
}
.btn-outline {
  background: transparent; border: 2px solid rgba(255,255,255,0.3); color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual svg {
  width: 100%; max-width: 500px; height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}
.carousel-dots { display: flex; gap: 10px; margin-top: 30px; }
.carousel-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer; transition: var(--transition);
}
.carousel-dots span.active { background: var(--accent); width: 32px; border-radius: 6px; }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
  font-size: 2.4rem; font-weight: 700; position: relative; display: inline-block;
}
.section-title h2::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--accent); margin: 12px auto 0; border-radius: 4px;
}
.section-title p { color: var(--text-light); margin-top: 12px; font-size: 1.1rem; }

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.card-icon { margin-bottom: 16px; }
.card-icon svg { width: 48px; height: 48px; }

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 3px; background: var(--accent); border-radius: 4px;
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.timeline-item h3 { font-size: 1.2rem; }
.timeline-item span { color: var(--text-light); font-size: 0.9rem; }

/* ===== Team ===== */
.team-img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; display: block; background: var(--gradient);
}

/* ===== Partners ===== */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.partner-item {
  padding: 20px 30px; background: var(--card-bg);
  border-radius: var(--radius); backdrop-filter: blur(8px);
}

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); padding: 18px 0; cursor: pointer; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1.1rem;
}
.faq-question span { transition: var(--transition); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  color: var(--text-light); padding-top: 0;
}
.faq-item.active .faq-answer { max-height: 300px; padding-top: 12px; }
.faq-item.active .faq-question span { transform: rotate(45deg); }

/* ===== HowTo ===== */
.howto-steps { counter-reset: step; }
.howto-step { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.howto-step::before {
  counter-increment: step;
  content: counter(step);
  background: var(--accent); color: var(--primary);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}

/* ===== Footer ===== */
footer { background: var(--primary); color: #ccc; padding: 60px 0 30px; }
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; margin-bottom: 16px; }
footer a { color: #aaa; }
footer a:hover { color: var(--accent); }
footer .copyright {
  grid-column: 1 / -1; text-align: center; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 30px; font-size: 0.9rem;
}

/* ===== Back to top ===== */
.back-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: var(--primary); border: none;
  font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(240,192,64,0.3);
  display: none; align-items: center; justify-content: center;
  z-index: 999; transition: var(--transition);
}
.back-top.show { display: flex; }
.back-top:hover { transform: scale(1.1); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto 30px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--card-bg); backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px; gap: 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
  .section-title h2 { font-size: 1.8rem; }
  footer .container { grid-template-columns: 1fr; }
}

/* ===== Animation classes ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.show { opacity: 1; transform: translateY(0); }

/* ===== Search modal ===== */
.search-modal {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  z-index: 2000; align-items: center; justify-content: center;
}
.search-modal.open { display: flex; }
.search-modal-content {
  background: var(--card-bg); padding: 40px;
  border-radius: var(--radius); max-width: 500px; width: 90%;
}
.search-modal input {
  width: 100%; padding: 14px 20px; border-radius: 50px;
  border: 2px solid var(--accent); background: var(--bg);
  color: var(--text); font-size: 1rem;
}
.search-modal .close-search { margin-top: 16px; text-align: right; cursor: pointer; color: var(--text-light); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 100px 0 0; background: var(--bg);
  font-size: 0.9rem; color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }

/* ===== Misc ===== */
.badge {
  display: inline-block; background: var(--accent); color: var(--primary);
  padding: 4px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }
.articles-list article {
  margin-bottom: 30px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.articles-list article h3 { font-size: 1.3rem; margin-bottom: 6px; }
.articles-list article .meta { color: var(--text-light); font-size: 0.85rem; }
.articles-list article p { margin: 8px 0; }
.read-more { color: var(--accent); font-weight: 600; }