/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

/* ===== Color Variables ===== */
:root {
  --primary: #00897B;
  --primary-dark: #00695C;
  --primary-light: #E0F2F1;
  --accent-green: #8BC34A;
  --accent-pink: #F06292;
  --accent-pink-light: #FCE4EC;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #FAFAFA;
  --border-color: #E0E0E0;
}

/* ===== Header ===== */
header {
  background: #fff;
  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;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand .logo {
  height: 48px;
  width: auto;
  display: block;
}

.header-brand .site-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ===== Navigation ===== */
nav {
  background: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

nav li a {
  display: block;
  padding: 14px 28px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-pink);
  transition: width 0.3s ease;
}

nav li a:hover,
nav li.active a {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

nav li.active a::after {
  width: 60%;
}

/* ===== Page Sections ===== */
.page {
  display: none;
  min-height: 400px;
}

.page.active {
  display: block;
}

/* ===== Banner / Hero Slider ===== */
.banner-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #e8e8e8;
}

.banner-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slider .slide.active {
  opacity: 1;
}

.banner-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slider .slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  text-align: center;
}

.banner-slider .slide-overlay h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-slider .slide-overlay p {
  font-size: 18px;
  opacity: 0.9;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: 2px solid rgba(255,255,255,0.8);
}

.banner-dots .dot.active {
  background: var(--accent-pink);
  border-color: #fff;
}

/* ===== Section Container ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-pink);
  margin: 12px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 40px;
}

/* ===== Section Backgrounds ===== */
.section-light {
  background: #fff;
}

.section-tinted {
  background: var(--bg-light);
}

/* ===== Home Intro Section ===== */
.home-intro {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.home-intro .intro-text {
  flex: 1;
}

.home-intro .intro-text p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 16px;
}

.home-intro .intro-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.home-intro .intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Feature Cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

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

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

.feature-card .card-body h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.feature-card .card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Coach Cards ===== */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 30px auto 0;
  gap: 40px;
}

.coach-card {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

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

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

.coach-card .coach-info {
  padding: 16px;
}

.coach-card .coach-info h4 {
  font-size: 16px;
  color: var(--primary-dark);
}

/* ===== Tennis Program Section ===== */
.program-block {
  margin-bottom: 50px;
}

.program-block:last-child {
  margin-bottom: 0;
}

.program-block h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--accent-pink);
}

.program-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.program-content .program-text {
  flex: 1;
}

.program-content .program-text p {
  margin-bottom: 12px;
  line-height: 2;
  color: var(--text-light);
}

.program-content .program-image {
  flex: 0 0 300px;
  border-radius: 8px;
  overflow: hidden;
}

.program-content .program-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Youth Level Grid ===== */
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.level-card {
  background: var(--primary-light);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s;
}

.level-card:hover {
  transform: translateY(-3px);
}

.level-card .level-age {
  display: inline-block;
  background: var(--accent-pink);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.level-card .level-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.level-card .level-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Achievement Section ===== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0;
}

.achievement-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
}

.achievement-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.achievement-card .achievement-desc {
  padding: 16px;
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  background: #fff;
}

.achievement-quote {
  background: var(--accent-pink-light);
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
  position: relative;
  border-left: 4px solid var(--accent-pink);
}

.achievement-quote p {
  font-size: 15px;
  line-height: 2;
  color: #555;
  font-style: italic;
}

.achievement-quote .quote-author {
  text-align: right;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 10px;
}

/* ===== Adult Level Grid ===== */
.adult-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.adult-level {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

.adult-level:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.adult-level .level-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.adult-level .level-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.adult-level .level-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Pickleball Page ===== */
.pickleball-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  max-height: 500px;
}

.pickleball-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.pickleball-hero .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.pickleball-hero .hero-overlay h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.pickleball-hero .hero-overlay p {
  font-size: 15px;
  opacity: 0.9;
}

.pickleball-info {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
}

.pickleball-info p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-light);
}

/* ===== Activities Page ===== */
.activity-block {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
}

.activity-block:last-child {
  margin-bottom: 0;
}

.activity-block .activity-image {
  flex: 0 0 400px;
}

.activity-block .activity-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.activity-block .activity-content {
  flex: 1;
  padding: 30px 30px 30px 0;
}

.activity-block .activity-content h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.activity-block .activity-content p {
  font-size: 15px;
  line-height: 2;
  color: var(--text-light);
}

.activity-block:nth-child(even) {
  flex-direction: row-reverse;
}

.activity-block:nth-child(even) .activity-content {
  padding: 30px 0 30px 30px;
}

/* ===== Corporate Team Building ===== */
.corp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.corp-gallery .corp-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

.corp-gallery .corp-item:hover {
  transform: translateY(-3px);
}

.corp-gallery .corp-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.corp-gallery .corp-item .corp-label {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  background: #fff;
}

/* ===== Footer ===== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

footer .footer-contact {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

footer .footer-contact span {
  margin: 0 16px;
}

footer .footer-contact .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer .footer-qr {
  margin: 20px auto;
}

footer .footer-qr img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

footer .footer-text {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
    flex-direction: column;
    gap: 8px;
  }

  .header-brand .site-title {
    font-size: 18px;
  }

  nav ul {
    padding: 0;
    overflow-x: auto;
  }

  nav li a {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .banner-slider {
    height: 280px;
  }

  .banner-slider .slide-overlay h2 {
    font-size: 22px;
  }

  .section-container {
    padding: 40px 16px;
  }

  .home-intro {
    flex-direction: column;
  }

  .feature-grid,
  .coach-grid,
  .level-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .program-content {
    flex-direction: column;
  }

  .program-content .program-image {
    flex: none;
    width: 100%;
  }

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

  .activity-block {
    flex-direction: column !important;
  }

  .activity-block .activity-image {
    flex: none;
  }

  .activity-block .activity-content {
    padding: 0 20px 20px !important;
  }

  .achievement-card img {
    height: 200px;
  }

  .corp-gallery {
    grid-template-columns: 1fr;
  }

  footer .footer-contact span {
    display: block;
    margin: 8px 0;
  }
}
