/* 通用CSS样式文件 */

/* 导航栏样式 */
nav {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1001;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

/* 导航栏激活标签横线指示器 */
.nav-links li {
  position: relative;
}

.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* 页脚样式 */
footer {
  background-color: #f8f9fa;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-about {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 18px;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  transition: transform 0.3s;
}

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

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-contact-icon {
  font-size: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text {
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.copyright {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 14px;
}

/* 联系表单样式 */
.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 25px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.submit-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  min-width: 120px;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 导航栏响应式 */
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed !important;
    top: 80px !important;
    left: -100% !important;
    width: 100% !important;
    height: calc(100vh - 80px) !important;
    background-color: #fff !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 30px 0 !important;
    gap: 20px !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
    transition: left 0.3s !important;
    z-index: 998 !important;
    overflow-y: auto !important;
    display: flex !important;
  }
  
  .nav-links.active {
    left: 0 !important;
    z-index: 998 !important;
  }
  
  /* 移动端导航栏激活标签横线指示器 */
  .nav-links li a.active::after {
    bottom: -3px;
    width: 60%;
    height: 2px;
  }
  
  /* 页脚响应式 */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* 表单响应式 */
  .contact-form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .footer-contact-item {
    gap: 10px;
  }
  
  .footer-contact-icon {
    font-size: 18px;
  }
}