/* Star Basketball - 星耀篮球青少年培训 */
/* 全局变量 */
:root {
  --primary: #FFC107;
  --secondary: #03A9F4;
  --white: #FFFFFF;
  --dark: #212121;
  --gray: #757575;
  --light-gray: #F5F5F5;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset */
*, *::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(--dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

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

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

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

/* Header & Navigation */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  gap: 0;
}

.main-nav a {
  padding: 8px 14px;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: var(--dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-decor {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 4px solid var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}

.hero-decor-1 { top: 10%; left: 5%; }
.hero-decor-2 { bottom: 15%; right: 8%; width: 80px; height: 80px; }
.hero-decor-3 { top: 30%; right: 15%; width: 60px; height: 60px; border-color: var(--secondary); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  background: #FFD54F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,193,7,0.4);
  color: var(--dark);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: #29B6F6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3,169,244,0.4);
  color: var(--white);
}

/* Section Styles */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.05rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

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

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

.card-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
}

/* Counter Section */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.counter-item {
  padding: 30px 20px;
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.counter-label {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 8px;
}

/* Coach Cards */
.coach-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.coach-card:hover {
  transform: translateY(-4px);
}

.coach-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--primary);
}

.coach-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.coach-card .title {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.coach-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.testimonial-card .stars {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.testimonial-card blockquote {
  color: var(--gray);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--dark);
}

/* Video Section */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #FFD54F 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--dark);
  margin-bottom: 24px;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3,169,244,0.1);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #0288D1 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #E0E0E0;
}

.data-table th {
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #F5F5F5;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #BDBDBD;
  padding: 50px 0 20px;
}

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.9rem;
  line-height: 2;
  color: #BDBDBD;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: #BDBDBD;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #424242;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--secondary);
}

.breadcrumb span {
  margin: 0 8px;
  color: #BDBDBD;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid #E0E0E0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-item h3 {
  color: var(--secondary);
  margin-bottom: 6px;
}

/* Map placeholder */
.map-container {
  width: 100%;
  height: 300px;
  background: #E0E0E0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .main-nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 380px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

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

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

  .form-container {
    padding: 24px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .counter-number {
    font-size: 2.2rem;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  background: #E0E0E0;
  min-height: 100px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
