/* ===== 华体会体育 完整样式表 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #f0b429;
  --primary-light: #f7d674;
  --primary-dark: #c9921e;
  --bg-dark: #0b1a2e;
  --bg-darker: #07101e;
  --bg-card: #112240;
  --text-light: #e6f1ff;
  --text-muted: #8892b0;
  --text-dark: #0b1a2e;
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-light); text-align: center; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); text-align: center; max-width: 700px; margin: 0 auto 60px; }
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-dark);
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(240,180,41,0.4); color: var(--text-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--text-dark); }
.text-center { text-align: center; }
.gradient-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.gradient-1 { top: -200px; left: -200px; background: var(--primary); }
.gradient-2 { bottom: -200px; right: -200px; background: #4a90d9; }
.gradient-3 { top: 50%; left: 50%; transform: translate(-50%,-50%); background: #7c3aed; width: 600px; height: 600px; }

/* 导航 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(11,26,46,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.nav-logo svg { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-light); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 28px; height: 2px; background: var(--text-light); border-radius: 2px; transition: var(--transition); }
.dark-mode-toggle {
  background: none; border: 2px solid var(--glass-border); color: var(--text-light);
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: var(--transition); font-size: 1.2rem;
}
.dark-mode-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* 英雄区 */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 80px; }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 750px; }
.hero-badge {
  display: inline-block;
  background: rgba(240,180,41,0.15);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(240,180,41,0.3);
}
.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 36px; max-width: 600px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 60px; }
.hero-stat h3 { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.hero-stat p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* 轮播 */
.carousel { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius); margin-top: 40px; }
.carousel-track { display: flex; transition: transform 0.6s ease; }
.carousel-slide {
  min-width: 100%;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(240,180,41,0.1), rgba(74,144,217,0.1));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
}
.carousel-slide h3 { font-size: 1.8rem; margin-bottom: 12px; }
.carousel-slide p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.carousel-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--glass-border);
  border: none; cursor: pointer; transition: var(--transition);
}
.carousel-dot.active { background: var(--primary); transform: scale(1.3); }

/* 品牌故事 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2.2rem; margin-bottom: 24px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-image {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), #4a90d9);
  padding: 40px; text-align: center; min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-image svg { max-width: 200px; margin: 0 auto 20px; }

/* 时间线 */
.timeline { position: relative; padding: 40px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
.timeline-item { display: flex; justify-content: flex-end; padding: 20px 0; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { align-self: flex-end; justify-content: flex-start; left: 50%; }
.timeline-item:nth-child(even) { left: 0; }
.timeline-content {
  background: var(--glass-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 24px; width: 85%;
}
.timeline-content h4 { color: var(--primary); margin-bottom: 8px; }
.timeline-content .year { font-size: 0.85rem; color: var(--text-muted); }

/* 网格布局 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--glass-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 32px 24px; transition: var(--transition); text-align: center;
}
.card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 60px rgba(240,180,41,0.1); }
.card-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: rgba(240,180,41,0.1); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--glass-bg); backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 20px 24px; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; font-weight: 600; transition: var(--transition);
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question .icon { font-size: 1.4rem; transition: var(--transition); }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 24px; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 18px; background: var(--glass-bg);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  color: var(--text-light); font-family: var(--font); margin-bottom: 16px; transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* 页脚 */
.footer { background: var(--bg-darker); border-top: 1px solid var(--glass-border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 0.9rem; }
.footer-links h4 { color: var(--text-light); margin-bottom: 16px; font-size: 1.1rem; }
.footer-links a { display: block; color: var(--text-muted); padding: 4px 0; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--glass-border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); margin-left: 16px; }
.footer-bottom a:hover { color: var(--primary); }

/* 回到顶部 */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  border-radius: 50%; background: var(--primary); color: var(--text-dark);
  border: none; cursor: pointer; font-size: 1.4rem; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(240,180,41,0.3);
  transition: var(--transition); opacity: 0; visibility: hidden;
  transform: translateY(20px); z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(240,180,41,0.5); }

/* 搜索模态 */
.search-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(12px);
  z-index: 2000; display: none; align-items: center; justify-content: center;
}
.search-modal.open { display: flex; }
.search-modal-content {
  width: 90%; max-width: 600px; background: var(--bg-card);
  border-radius: var(--radius); padding: 32px; border: 1px solid var(--glass-border);
}
.search-modal input {
  width: 100%; padding: 16px 20px; font-size: 1.2rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-light);
}
.search-modal .close-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; float: right; }

/* 动画 */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
img.lazy { opacity: 0; transition: opacity 0.5s; }
img.lazy.loaded { opacity: 1; }

/* 暗色模式 */
body.dark-mode {
  --bg-dark: #0f172a; --bg-darker: #020617; --bg-card: #1e293b;
  --text-light: #f1f5f9; --text-muted: #94a3b8;
  --glass-bg: rgba(255,255,255,0.04); --glass-border: rgba(255,255,255,0.06);
}
body.dark-mode .gradient-1, body.dark-mode .gradient-2, body.dark-mode .gradient-3 { opacity: 0.08; }

/* 响应式 */
@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3rem; }
  .timeline-item { width: 100%; left: 0 !important; justify-content: flex-start !important; padding-left: 40px; }
  .timeline::before { left: 20px; }
  .timeline-content { width: 100%; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11,26,46,0.98); flex-direction: column; justify-content: center;
    gap: 24px; transform: translateX(100%); transition: var(--transition); z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; }
  .nav-toggle { display: flex; z-index: 1000; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .section-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom a { margin: 0 8px; }
}