/* ============================================================
   HomeRun 官网 - 样式
   ============================================================ */

:root {
  --color-primary: #ea580c;
  --color-primary-light: #fb923c;
  --color-primary-dark: #c2410c;
  --color-amber: #fbbf24;
  --color-dark: #0f172a;
  --color-dark-2: #1e293b;
  --color-brown: #7c2d12;
  --color-brown-light: #9a5b2d;
  --color-bg: #fffbf5;
  --color-card: rgba(255,255,255,0.96);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 16px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: #334155;
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,251,245,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(251,191,36,0.12);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-brown);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-brown-light);
  transition: color 0.2s;
}

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

.lang-switch {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234,88,12,0.18);
  background: rgba(234,88,12,0.06);
  font-weight: 700 !important;
}

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

.nav-cta {
  padding: 8px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234,88,12,0.3);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-brown);
  border-radius: 2px;
  transition: 0.2s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.88), rgba(30,41,59,0.75)),
    url('../images/batting2.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.3);
  color: var(--color-amber);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  box-shadow: 0 12px 28px rgba(234,88,12,0.3);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(234,88,12,0.4);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ============ SECTION ============ */
.section {
  padding: 80px 24px;
}

.section-dark {
  background: var(--color-dark);
  color: #fff;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-brown);
  margin-bottom: 12px;
}

.section-dark .section-header h2 {
  color: #fff;
}

.section-header p {
  font-size: 16px;
  color: var(--color-brown-light);
  max-width: 560px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.6);
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--color-card);
  border: 1px solid rgba(251,191,36,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-icon.orange {
  background: linear-gradient(135deg, rgba(234,88,12,0.12), rgba(251,191,36,0.12));
  color: var(--color-primary);
}

.feature-icon.blue {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.12));
  color: #3b82f6;
}

.feature-icon.green {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(16,185,129,0.12));
  color: #16a34a;
}

.feature-icon.purple {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(139,92,246,0.12));
  color: #9333ea;
}

.feature-icon.red {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(244,63,94,0.12));
  color: #ef4444;
}

.feature-icon.amber {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(251,191,36,0.12));
  color: #d97706;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}

/* ============ SHOWCASE ============ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.7), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.showcase-item .overlay span {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* ============ STATS BAR ============ */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 48px 24px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-num {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ============ CTA SECTION ============ */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background:
    linear-gradient(135deg, rgba(234,88,12,0.06), rgba(251,191,36,0.06));
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-brown);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: var(--color-brown-light);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.5);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-amber);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px;
}

/* ============ LEGAL PAGES ============ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.legal-page .update-date {
  font-size: 13px;
  color: var(--color-brown-light);
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-brown);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,251,245,0.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(251,191,36,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .stat-item .stat-num {
    font-size: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .cta-section h2 {
    font-size: 26px;
  }
}
