/* 
 * Ecolea Privatschule Website
 * Main Stylesheet
 */

/* ===== 基础样式 ===== */
:root {
  /* 主色调 */
  --primary-color: #8cc63f; /* 绿色 - 与学校标志一致 */
  --primary-dark: #6b9a30;
  --primary-light: #a8d267;
  
  /* 辅助色 */
  --secondary-color: #1a3064; /* 深蓝色 - 专业、信任 */
  --secondary-dark: #12204a;
  --secondary-light: #2c4380;
  
  /* 点缀色 */
  --accent-color: #f7a800; /* 橙色 - 活力、创新 */
  
  /* 中性色 */
  --dark: #333333;
  --medium: #666666;
  --light: #f5f5f5;
  --white: #ffffff;
  
  /* 字体 */
  --font-primary: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  /* 尺寸 */
  --container-width: 1200px;
  --header-height: 80px;
  --footer-height: 300px;
  
  /* 间距 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* 圆角 */
  --border-radius: 4px;
  
  /* 阴影 */
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--medium);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===== 头部样式 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.logo img {
  height: 50px;
  margin-right: 10px;
  border-radius: 5px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.logo a:hover {
  transform: scale(1.05);
}
.nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  margin-left: var(--spacing-lg);
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  width: 100%;
}

.language-selector {
  margin-left: var(--spacing-lg);
  position: relative;
}

.language-selector select {
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0 var(--spacing-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
}

.language-selector::after {
  content: '▼';
  font-size: 0.7rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* ===== 英雄区域样式 ===== */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: var(--header-height);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

/* ===== 特色区域样式 ===== */
.features {
  background-color: var(--light);
}

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

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
}

.feature-description {
  color: var(--medium);
}

/* ===== 关于我们样式 ===== */
.about {
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.about-text p {
  margin-bottom: var(--spacing-md);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 1rem;
  color: var(--medium);
}

/* ===== 课程样式 ===== */
.programs {
  background-color: var(--light);
}

.programs-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.tab-button {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--white);
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: var(--secondary-color);
}

.tab-button.active {
  color: var(--secondary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

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

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

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

.program-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.program-content {
  padding: var(--spacing-lg);
}

.program-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
}

.program-description {
  color: var(--medium);
  margin-bottom: var(--spacing-md);
}

/* ===== 校园生活样式 ===== */
.campus-life {
  background-color: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-align: center;
  padding: 0 var(--spacing-md);
}

/* ===== 招生信息样式 ===== */
.admissions {
  background-color: var(--light);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-light);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: center;
  color: var(--secondary-color);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
}

.fees-table th,
.fees-table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.fees-table th {
  background-color: var(--secondary-color);
  color: var(--white);
  font-family: var(--font-heading);
}

.fees-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.fees-table tr:hover {
  background-color: #f1f1f1;
}

/* ===== 联系我们样式 ===== */
.contact {
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.contact-details {
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-right: var(--spacing-md);
  min-width: 20px;
}

.contact-text {
  color: var(--medium);
}

.contact-form .form-group {
  margin-bottom: var(--spacing-md);
}

.contact-form label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.map {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: var(--spacing-lg);
}

/* ===== 页脚样式 ===== */
.footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: var(--spacing-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.footer-logo img {
  height: 40px;
}

.footer-logo-text {
  margin-left: var(--spacing-sm);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-about p {
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--spacing-sm);
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.footer-bottom {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: var(--spacing-md);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .about-image {
    order: -1;
  }
  
  .process-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-lg);
  }
  
  .process-steps::before {
    display: none;
  }
  
  .step {
    flex-direction: row;
    width: 100%;
  }
  
  .step-number {
    margin-right: var(--spacing-md);
    margin-bottom: 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--spacing-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav.active {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-item {
    margin: var(--spacing-md) 0;
  }
  
  .language-selector {
    margin: var(--spacing-md) 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .features-grid,
  .program-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    margin-bottom: var(--spacing-md);
  }
  
  .programs-tabs {
    flex-dire
(Content truncated due to size limit. Use line ranges to read in chunks)