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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

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

/* 头部导航 */
.header {
  background: rgba(26, 32, 44, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9375rem 1.25rem;
  max-width: 1200px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.05em;
  color: white;
  text-decoration: none;
}

.logo svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  padding: 0.375rem 0;
  position: relative;
}

.nav a:hover {
  color: #fff;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1B5E20;
  transition: width 0.2s;
}

.nav a:hover::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.375rem;
}

/* 首页 Hero（已删除） */
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-btn:hover {
  background: #2E7D32;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 四大板块 */
.features {
  padding: 1rem 0;
  background: #f9fafb;
}

.features-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1B5E20;
  font-weight: 700;
}

/* 合作伙伴区块 */
.partners {
  padding: 2rem 0;
  background: #f0f5f0;
}

.partners-title {
  font-size: 1.25rem;
  color: #1B5E20;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.partner-card {
  background: white;
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-color: rgba(46,125,50,0.2);
}

.partner-logo-img {
  width: 100%;
  height: 100%;
  max-height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.partner-card {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: rgba(46,125,50,0.2);
}

.feature-icon {
  padding: 2.5rem 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 8rem;
  background: rgba(27,94,32,0.03);
}

.feature-icon svg {
  width: 4rem;
  height: 4rem;
}

.feature-card h3 {
  padding: 0 1.5rem 0.875rem;
  font-size: 1.375rem;
  color: #1B5E20;
  font-weight: 700;
}

.feature-card p {
  padding: 0 1.5rem 1.5rem;
  color: #666;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.learn-more {
  display: block;
  padding: 0 1.5rem 1.75rem;
  font-size: 0.9375rem;
  color: #1B5E20;
  font-weight: 600;
}

/* 联系我们区块 */
.contact {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  padding: 4.375rem 0;
  text-align: center;
  color: white;
}

.contact h2 {
  font-size: 2.25rem;
  margin-bottom: 0.875rem;
}

.contact p {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.email {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  font-family: 'Courier New', monospace;
}

.contact-btn {
  display: inline-block;
  background: white;
  color: #1B5E20;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1.5rem;
  transition: all 0.3s;
}

.contact-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 页脚 */
.footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    height: auto;
    min-height: 500px;
  }

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

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

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.75rem;
    right: 0;
    left: 0;
    background: rgba(26,32,44,0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .partners {
    padding: 1.5rem 0;
  }
  
  .partners-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 380px;
    margin: 0 auto;
  }
  
  .partner-card {
    padding: 0.5rem;
    min-height: 90px;
  }

  .features, .contact {
    padding: 3rem 0;
  }

  .features h2, .contact h2 {
    font-size: 1.75rem;
  }
  
  /* 内容页移动端优化 */
  .content {
    padding: 2rem 0 3rem;
  }
  
  .content-header {
    margin-bottom: 2rem;
  }
  
  .content-header h1 {
    font-size: 1.75rem;
  }
  
  .content-header p {
    font-size: 1rem;
  }
  
  /* 历史页移动端 */
  .history-section {
    padding: 1.25rem;
  }
  
  .history-section h2 {
    font-size: 1.4rem;
  }
  
  .history-section h3 {
    font-size: 1.2rem;
  }
  
  .history-section p {
    line-height: 1.9;
    margin-bottom: 1.25rem;
  }
  
  .history-section ul {
    margin-left: 1.25rem;
  }
  
  .history-section li {
    line-height: 1.9;
    margin-bottom: 0.75rem;
  }
  
  .era-title {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    margin: 1.5rem 0 0.75rem 0;
  }
  
  .timeline {
    padding-left: 1.5rem;
    margin: 1rem 0;
  }
  
  .timeline::before {
    left: 0.35rem;
  }
  
  .timeline-item::before {
    left: -1.4rem;
    width: 10px;
    height: 10px;
  }
  
  .fun-fact, .highlight-box {
    padding: 0.875rem 1rem;
    margin: 1.25rem 0;
  }
  
  /* 球场页移动端 */
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .course-card {
    border-radius: 0.75rem;
  }
  
  .course-banner {
    height: 50px;
    font-size: 1rem;
  }
  
  .course-info {
    padding: 0.875rem;
  }
  
  .course-info h3 {
    font-size: 1rem;
  }
  
  .course-meta {
    font-size: 0.8rem;
  }
  
  .course-desc {
    font-size: 0.85rem;
  }
  
  /* 赛事页移动端 */
  .tournament-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
  }
  
  .tournament-card h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }
  
  .event-item {
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
  }
  
  .event-title {
    font-size: 1rem;
  }
  
  .event-info {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  
  .event-info span {
    font-size: 0.8rem;
    padding: 0.15rem 0.35rem;
  }
  
  .event-history {
    padding: 0.625rem;
  }
  
  .event-history h4 {
    font-size: 0.85rem;
  }
  
  .event-history p {
    font-size: 0.8rem;
    line-height: 1.75;
  }
  
  .section-divider {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.4rem;
  }
}

/* 内容页通用样式 */
.content {
  padding: 3rem 0 5rem;
  background: #fff;
}

.content-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.content-header h1 {
  font-size: 2.25rem;
  color: #1B5E20;
  margin-bottom: 0.6rem;
}

.content-header p {
  font-size: 1.1rem;
  color: #666;
}

/* 历史页样式 */
.history-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.history-section h2 {
  font-size: 1.75rem;
  color: #1B5E20;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.history-section h3 {
  font-size: 1.5rem;
  color: #2E7D32;
  margin: 2rem 0 1rem;
}

.history-section p {
  margin-bottom: 1.25rem;
  line-height: 1.9;
}

.history-section ul {
  margin: 1.5rem 0 2rem 2rem;
}

.history-section li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.fun-fact {
  background: #fafafa;
  padding: 1.75rem;
  margin: 2rem 0;
  border-left: 4px solid #2E7D32;
  border-radius: 0.5rem;
}

.fun-fact p {
  margin-bottom: 0;
}

/* 球场列表样式 */
.courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.course-card {
  background: white;
  border-radius: 1rem;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

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

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

/* 球场卡片标题和正文（重复定义，需合并） */
.course-card h2 {
  padding: 1rem 1.5rem 0;
  font-size: 1.375rem;
  color: #1B5E20;
  margin: 0;
  font-weight: 700;
}

.course-card p {
  padding: 0 1.5rem 1rem;
  color: #666;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.course-card h2 span.emoji-flag {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

/* 历史页样式 */
}

.course-card strong {
  color: #2E7D32;
}

/* 赛事页样式 */
.tournaments-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.tournament-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tournament-card h2 {
  font-size: 1.75rem;
  color: #1B5E20;
  margin-bottom: 1.5rem;
}

.tournament-card ul {
  list-style: none;
  padding-left: 0;
}

.tournament-card li {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  padding-left: 1.5rem;
}

.tournament-card li::before {
  content: '•';
  color: #2E7D32;
  font-weight: bold;
  position: absolute;
  margin-left: -1.5rem;
}

/* 表格样式 */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f5f7fa;
  font-weight: 700;
  color: #333;
}

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

/* 联系页样式 */
.banner {
  display: block;
  width: 100%;
  height: 2.5rem;
  background: #2E7D32;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
}

.contact-method {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
}

.contact-method h3 {
  font-size: 1.5rem;
  color: #1B5E20;
  margin-bottom: 0.75rem;
}

.contact-method p {
  margin-bottom: 1.5rem;
  color: #666;
}

.email-link {
  display: inline-block;
  background: #f5f7fa;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: #1B5E20;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1rem;
}

.email-link:hover {
  background: #e8f5e9;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2E7D32;
}

.btn-submit {
  background: #1B5E20;
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-submit:hover {
  background: #2E7D32;
}

.form-hint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #888;
  font-style: italic;
}

.qrcode-placeholder {
  margin: 1.5rem auto;
}

.qrcode-svg {
  display: block;
  margin: 0 auto 1rem;
}

.qrcode-hint {
  font-size: 0.875rem;
  color: #888;
  font-style: italic;
}

/* 内容页页脚间距 */
.with-footer-padding {
  margin-bottom: 6rem;
}
