/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 2.6rem;
}

.logo h1 {
  /* color: #4a6cf7; */
  padding-left: 0.5rem;
  color: #000000;
  font-size: 3rem;
  font-weight: 700;
}

p.underLogo {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav ul li {
  margin-left: 30px;
}

.nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav ul li a:hover {
  color: #4a6cf7;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #4a6cf7 0%, #6a11cb 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: #ff6b6b;
  color: white;
}

.btn-primary:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #4a6cf7;
  transform: translateY(-2px);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #4a6cf7;
}

.feature-card p {
  color: #666;
}

/* Nearby Section */
.nearby-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.nearby-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.section-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.tab-btn {
  background: white;
  border: none;
  padding: 12px 25px;
  margin: 0 5px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.tab-btn.active {
  background: #4a6cf7;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1.3rem;
  color: #333;
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars {
  color: #ffc107;
}

.card-body {
  padding: 20px;
}

.distance,
.price,
.coach-level,
.match-detail {
  margin-bottom: 10px;
  color: #666;
}

.court-info,
.coach-info,
.match-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.court-type,
.lighting,
.qualification,
.specialty,
.level,
.players {
  background: #e9ecef;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.status {
  background: #28a745;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

.btn-book,
.btn-join {
  background: #4a6cf7;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.btn-book:hover,
.btn-join:hover {
  background: #3a5be0;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: white;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 20px;
  color: #666;
  font-size: 1.1rem;
}

/* Download Section */
.download {
  padding: 80px 0;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.download h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

.download-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  align-items: center;
}

.qr-codes {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  width: 200px;
}

.qr-code-placeholder {
  width: 120px;
  height: 120px;
  background: white;
  margin: 0 auto 15px;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-dots {
  position: absolute;
  background: #333;
}

.qr-dots.tl {
  width: 30px;
  height: 30px;
  top: 10px;
  left: 10px;
  border: 4px solid white;
}

.qr-dots.tr {
  width: 30px;
  height: 30px;
  top: 10px;
  right: 10px;
  border: 4px solid white;
}

.qr-dots.bl {
  width: 30px;
  height: 30px;
  bottom: 10px;
  left: 10px;
  border: 4px solid white;
}

.qr-pattern {
  width: 60px;
  height: 60px;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 5px,
      #333 5px,
      #333 10px);
  border-radius: 5px;
}

.qr-container h3 {
  margin-bottom: 10px;
}

.app-store-badge,
.google-play-badge {
  background: white;
  color: #333;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  display: inline-block;
}

.badge-content {
  text-align: left;
}

.badge-title {
  font-size: 0.7rem;
  font-weight: bold;
}

.badge-subtitle {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 5px;
}

.download-options h3 {
  margin-bottom: 20px;
  text-align: center;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: 2px solid white;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.download-link:hover {
  background: white;
  color: #6a11cb;
}

.download-link.apk {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #4a6cf7;
}

.footer-section h4 {
  margin-bottom: 15px;
  color: #4a6cf7;
}

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

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

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
  }

  .nav ul {
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav ul li {
    margin: 5px 10px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .section-tabs {
    flex-wrap: wrap;
    gap: 5px;
  }

  .tab-btn {
    margin: 5px;
    padding: 10px 15px;
    font-size: 0.9rem;
    flex: 1 0 auto;
    min-width: 100px;
  }

  .card {
    margin-bottom: 15px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .card-footer {
    text-align: center;
  }

  .download-content {
    flex-direction: column;
    gap: 30px;
  }

  .qr-codes {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .qr-container {
    width: 100%;
    max-width: 300px;
  }

  .download-links {
    gap: 10px;
  }

  .download-link {
    padding: 12px;
    font-size: 0.9rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 25px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 60px 0;
  }

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

  .feature-card {
    padding: 20px;
  }

  .features h2,
  .nearby-section h2,
  .about h2,
  .download h2 {
    font-size: 1.8rem;
  }

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

  .tab-btn {
    min-width: 80px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .qr-code-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
  }

  .qr-dots.tl {
    width: 20px;
    height: 20px;
    top: 8px;
    left: 8px;
  }

  .qr-dots.tr {
    width: 20px;
    height: 20px;
    top: 8px;
    right: 8px;
  }

  .qr-dots.bl {
    width: 20px;
    height: 20px;
    bottom: 8px;
    left: 8px;
  }

  .qr-pattern {
    width: 45px;
    height: 45px;
  }
}

/* Footer 备案 */
.rec {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec img {
  width: 20px;
  padding-right: 5px;
}

.rec .item {
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 0 10px;
}

.rec a {
  color: #4a6cf7;
}
