/* ===== 欧亿体育官方网站 - 完整样式表 ===== */
/* 全局重置与变量 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #002b5c;
  --primary-light: #1a4a7a;
  --accent: #f5a623;
  --accent-light: #f7b84a;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-light: #4a4a6a;
  --text-muted: #7a7a9a;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 43, 92, 0.08);
  --shadow: 0 8px 32px rgba(0, 43, 92, 0.12);
  --shadow-hover: 0 16px 48px rgba(0, 43, 92, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 40px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --primary: #0a1a2e;
  --primary-light: #1f3a5f;
  --accent: #f0b429;
  --accent-light: #f5c542;
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --glass: rgba(15, 23, 42, 0.82);
  --glass-border: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

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

/* ===== 头部 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s, backdrop-filter 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo svg {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}

.logo:hover svg {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text);
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.3s, background 0.2s;
  line-height: 1;
}

.dark-toggle:hover {
  transform: rotate(25deg) scale(1.1);
  background: rgba(245, 166, 35, 0.12);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(245, 166, 35, 0.1);
}

/* ===== 移动端菜单 ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px 28px;
    gap: 12px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--glass);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 43, 92, 0.06);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 64px;
  }
}

/* ===== Hero 区域 ===== */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #0a2e5a 50%, #133a6b 100%);
  color: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 35%, rgba(245, 166, 35, 0.18), transparent 60%),
              radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 60%, rgba(245, 166, 35, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #0a1a2e;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}

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

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.hero-visual svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 60px;
    border-radius: 0 0 28px 28px;
    margin-bottom: 28px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

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

  .hero p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .btn-group {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }
}

/* ===== 通用区块 ===== */
section {
  padding: 60px 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  margin-top: 8px;
}

.section-sub {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.7;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 43, 92, 0.05);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 166, 35, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  margin-bottom: 16px;
}

.card-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  transition: transform 0.3s;
}

.card:hover .card-icon svg {
  transform: scale(1.1) rotate(-5deg);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== 品牌故事 ===== */
.brand-story {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 20px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.story-text p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.timeline-item {
  background: var(--bg);
  padding: 12px 22px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.08);
  font-weight: 500;
  border-left: 4px solid var(--accent);
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 43, 92, 0.12);
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand-story {
    padding: 32px 20px;
    border-radius: 28px;
  }
}

/* ===== 团队 ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.team-member {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 166, 35, 0.1);
}

.team-member svg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  padding: 8px;
  color: #fff;
  margin-bottom: 14px;
  transition: transform 0.3s, background 0.3s;
}

.team-member:hover svg {
  transform: scale(1.05);
  background: var(--accent);
  color: var(--primary);
}

.team-member h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-member p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== 文章卡片 ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 43, 92, 0.04);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.article-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: gap 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover {
  gap: 8px;
  color: var(--accent-light);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 43, 92, 0.08);
  padding: 18px 0;
  transition: background 0.2s;
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

.faq-item:hover {
  background: rgba(245, 166, 35, 0.03);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  user-select: none;
  align-items: center;
  gap: 12px;
}

.faq-question span:last-child {
  font-size: 0.8rem;
  transition: transform 0.3s;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-light);
  line-height: 1.7;
  padding-left: 4px;
}

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

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: #e0e8f0;
  padding: 48px 0 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 40px;
}

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

.footer-grid h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-grid a {
  display: block;
  color: #b0c4de;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
  padding: 2px 0;
}

.footer-grid a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9aafc9;
  gap: 12px;
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #0a1a2e;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
}

.back-top:active {
  transform: translateY(-2px) scale(0.98);
}

/* ===== 滚动动画 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== 计数器 ===== */
.counter-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.mb-24 { margin-bottom: 24px; }
.mt-24 { margin-top: 24px; }
.gap-16 { gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== 响应式微调 ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 40px 0;
  }

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

  .card {
    padding: 20px 18px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

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

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

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    gap: 32px;
  }

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

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

/* ===== 暗色模式下的额外调整 ===== */
[data-theme="dark"] .card {
  border-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .card:hover {
  border-color: rgba(245, 166, 35, 0.12);
}

[data-theme="dark"] .timeline-item {
  background: var(--bg-card);
  border-left-color: var(--accent);
}

[data-theme="dark"] .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .article-card {
  border-color: rgba(255, 255, 255, 0.03);
}

/* ===== 性能优化 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

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

  .hero {
    background: #002b5c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}