@import url(reset.css);

/* 基础样式 */
:root {
  --primary-color: #03ae78;
  --secondary-color: #2c3e50;
  --light-bg: #f8f9fa;
  --text-dark: #333;
  --text-light: #fff;
}

body {
  background-color: #eee;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* 容器优化 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
.header {
  background: var(--text-light);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.brand img {
  height: 50px;
  width: auto;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.brand-domain {
  font-size: 0.9rem;
  color: #666;
}

/* 导航菜单 */
.nav-list {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--secondary-color);
  padding: 1rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--text-light);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: none;
  min-width: 200px;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu-link {
  padding: 0.8rem 1rem;
  display: block;
  color: var(--secondary-color);
}

.submenu-link:hover {
  background: var(--light-bg);
}

/* 主要内容 */
.main-content {
  margin-top: 80px;
}

.contact-section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

/* 联系卡片 */
.contact-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.contact-details dt {
  font-weight: bold;
  color: var(--secondary-color);
}

.contact-details dd {
  margin: 0;
}

.contact-map {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 1rem;
}

/* 课程列表 */
.program-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.program-item {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.program-item h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.course-list {
  list-style: disc;
  padding-left: 1.5rem;
}

/* 联系表单 */
.contact-form {
  background: var(--text-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #029e6a;
}

/* 页脚 */
.footer {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-light);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.copyright {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 0.8rem;
  }

  .has-submenu .submenu {
    position: static;
    box-shadow: none;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .program-list {
    grid-template-columns: 1fr;
  }
}

/* 辅助类 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}