/* ========================================
   r星今日大赛 - 马拉松越野跑竞技平台样式表
   主色调：户外探险绿(#2E7D32) + 活力橙(#FF6D00)
   辅助色：大地棕(#5D4037) + 天空蓝(#0288D1)
   ======================================== */

/* CSS变量定义 */
:root {
  --primary-green: #2E7D32;
  --primary-orange: #FF6D00;
  --earth-brown: #5D4037;
  --sky-blue: #0288D1;
  --bg-light: #F5F5F5;
  --card-white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

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

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: var(--transition);
}

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

.nav-menu a:hover {
  color: var(--primary-green);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-orange), #FF8F00);
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 25px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(255, 109, 0, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 109, 0, 0.4) !important;
}

.nav-cta::after {
  display: none !important;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* ========================================
   英雄区域
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.7), rgba(255, 109, 0, 0.4));
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary-orange), #FF8F00);
  color: white;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 25px rgba(255, 109, 0, 0.4);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(255, 109, 0, 0.5);
}

.btn-secondary {
  display: inline-block;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* 英雄区域滚动指示器 */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero-scroll span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  position: relative;
}

.hero-scroll span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: scroll-dot 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll-dot {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 28px; }
}

/* ========================================
   通用模块标题
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-orange));
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   赛事卡片
   ======================================== */
.section-races {
  padding: 100px 0;
  background: var(--bg-light);
}

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

.race-card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
}

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

.race-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.race-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.race-card:hover .race-card-img img {
  transform: scale(1.05);
}

.race-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  background: var(--primary-orange);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.race-card-body {
  padding: 25px;
}

.race-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.race-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.race-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.race-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.race-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-orange);
}

.race-card-btn {
  padding: 8px 20px;
  background: var(--primary-green);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.race-card-btn:hover {
  background: #1B5E20;
  transform: translateY(-2px);
}

/* ========================================
   PB荣誉榜
   ======================================== */
.section-pb {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
}

.section-pb .section-header h2 {
  color: white;
}

.section-pb .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

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

.pb-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.pb-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.pb-card-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  border: 3px solid var(--primary-orange);
}

.pb-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.pb-card .pb-time {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-orange);
  margin-bottom: 5px;
  font-family: "Courier New", monospace;
}

.pb-card .pb-event {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.pb-card .pb-rank {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 30px;
  height: 30px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

/* 雷达图组件 */
.radar-chart-container {
  max-width: 400px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 30px;
}

/* ========================================
   赛道地图预览
   ======================================== */
.section-tracks {
  padding: 100px 0;
  background: var(--card-white);
}

.track-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.track-map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.track-map-container img {
  width: 100%;
  height: auto;
}

.track-info {
  padding: 20px;
}

.track-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.track-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.track-stat-item {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.track-stat-item .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-green);
}

.track-stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* 海拔爬升图 */
.elevation-chart {
  width: 100%;
  height: 200px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.elevation-chart canvas {
  width: 100%;
  height: 100%;
}

/* ========================================
   赛事日历与倒计时
   ======================================== */
.section-calendar {
  padding: 100px 0;
  background: var(--bg-light);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.calendar-card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-light);
  display: flex;
  gap: 25px;
  align-items: center;
  transition: var(--transition);
}

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

.calendar-date {
  min-width: 80px;
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-green), #43A047);
  border-radius: var(--radius-sm);
  color: white;
}

.calendar-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-date .day {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 5px;
}

.calendar-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.calendar-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* 倒计时组件 */
.countdown-wrapper {
  display: flex;
  gap: 10px;
}

.countdown-item {
  text-align: center;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  min-width: 50px;
}

.countdown-item .count-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-orange);
  font-family: "Courier New", monospace;
}

.countdown-item .count-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* 报名进度条 */
.progress-bar-wrapper {
  margin-top: 10px;
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-orange), #FF8F00);
  border-radius: 3px;
  transition: width 1.5s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 10px;
  height: 10px;
  background: var(--primary-orange);
  border-radius: 50%;
  animation: pulse-fire 1s infinite;
}

@keyframes pulse-fire {
  0%, 100% { box-shadow: 0 0 5px var(--primary-orange), 0 0 10px var(--primary-orange); }
  50% { box-shadow: 0 0 15px var(--primary-orange), 0 0 25px var(--primary-orange); }
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 5px;
  text-align: right;
}

/* ========================================
   装备指南
   ======================================== */
.section-gear {
  padding: 100px 0;
  background: var(--card-white);
}

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

.gear-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.gear-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.gear-card-img {
  height: 180px;
  overflow: hidden;
}

.gear-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gear-card:hover .gear-card-img img {
  transform: scale(1.08);
}

.gear-card-body {
  padding: 20px;
}

.gear-card-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.gear-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.gear-card-link {
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gear-card-link:hover {
  color: var(--primary-orange);
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-orange);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--primary-orange);
}

/* ========================================
   页面通用Banner
   ======================================== */
.page-banner {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(93, 64, 55, 0.6));
  z-index: -1;
}

.page-banner-content {
  text-align: center;
  color: white;
}

.page-banner-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.page-banner-content .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.8;
}

.page-banner-content .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-banner-content .breadcrumb a:hover {
  color: var(--primary-orange);
}

/* ========================================
   页面内容区域
   ======================================== */
.page-content {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

/* 侧边栏组件 */
.sidebar-widget {
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-light);
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-green);
}

/* 列表样式 */
.list-card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

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

/* ========================================
   搜索页
   ======================================== */
.search-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
}

.search-box input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.search-box button {
  padding: 16px 32px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: #1B5E20;
}

/* ========================================
   错误页
   ======================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page h1 {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h2 {
  font-size: 2rem;
  margin: 20px 0 15px;
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* ========================================
   下载页
   ======================================== */
.download-section {
  padding: 80px 0;
}

.download-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.download-info h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.download-info p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--text-dark);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.download-btn:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

/* ========================================
   合规页面
   ======================================== */
.legal-page {
  padding: 80px 0;
  margin-top: 70px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-green);
}

.legal-content .legal-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.8;
}

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

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 数字滚动动效 */
.counter-number {
  font-family: "Courier New", monospace;
  font-weight: 900;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .race-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .track-showcase {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .download-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow-medium);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .race-grid {
    grid-template-columns: 1fr;
  }
  
  .pb-grid {
    grid-template-columns: 1fr;
  }
  
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  
  .gear-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .legal-content {
    padding: 30px 20px;
  }
  
  .page-banner {
    height: 250px;
  }
  
  .page-banner-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .countdown-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .track-stats {
    grid-template-columns: 1fr;
  }
}
