/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft Yahei", sans-serif;
  background: #f7f8fa;
  color: #333;
  line-height: 1.7;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 导航栏 */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 99;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #226c42;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: #226c42;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #555;
  font-size: 15px;
  transition: 0.3s;
  padding: 6px 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: #226c42;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* 首页Hero 本地背景图 - 优化文字显眼度 */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
              url('../images/backgroundImage.avif') center center / cover no-repeat;
  padding: 90px 0;
  color: #fff;
}

/* 新增：Hero内容遮罩容器 */
.hero-overlay {
  background: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 1;
  margin-bottom: 35px;
  max-width: 520px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 通用按钮 */
.btn {
  display: inline-block;
  padding: 13px 30px;
  background: #fff;
  color: #226c42;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hero区域按钮优化 */
.hero .btn {
  background: #226c42;
  color: #fff;
  font-weight: 700;
  text-shadow: none;
}
.hero .btn:hover {
  background: #1c5a37;
  transform: translateY(-3px);
}

.btn:hover {
  background: #f0f7f3;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-light {
  background: #226c42;
  color: #fff;
}
.btn-light:hover {
  background: #1c5a37;
}

/* 卡片区域 */
.cards-section {
  padding: 70px 0;
  background: #fff;
}

.section-title {
  font-size: 1.8rem;
  color: #226c42;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 600;
}

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

.card {
  background: #f8fbf9;
  padding: 35px 25px;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid #eef3f0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(34, 108, 66, 0.12);
}

.card-icon {
  width: 65px;
  height: 65px;
  background: #226c42;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: #fff;
  font-size: 26px;
}

.card h3 {
  color: #226c42;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card a {
  color: #226c42;
  font-weight: 500;
  font-size: 15px;
}

/* 紧急提示模块 */
.urgent-help {
  background-color: #eef6f2;
  padding: 22px;
  border-radius: 14px;
  margin: 35px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #e2ede8;
}

.urgent-help .icon {
  width: 36px;
  height: 36px;
  background-color: #226c42;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 支持列表 */
.support-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-item {
  background: #f8fbf9;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #eef3f0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: 0.3s;
}
.support-item:hover{
  box-shadow: 0 8px 24px rgba(34,108,66,0.08);
}

.support-icon {
  width: 44px;
  height: 44px;
  background: #226c42;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.support-content h4 {
  color: #226c42;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* 联系模块 */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h3,
.contact-form h3{
  color:#226c42;
  margin-bottom:20px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom:16px;
}
.contact-item .icon{
  color:#226c42;
  font-size:20px;
  width:24px;
}
.contact-form input,
.contact-form textarea {
  width:100%;
  padding:14px;
  border:1px solid #e2ede8;
  border-radius:10px;
  background:#f8fbf9;
  font-size:15px;
  outline:none;
  transition:0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color:#226c42;
}

/* 页脚 */
footer {
  background: #226c42;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .hero {
    padding: 60px 0;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-overlay {
    padding: 20px;
    max-width: 100%;
  }
  .cards-section {
    padding: 50px 0;
  }
  .contact-section{
    grid-template-columns:1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .card {
    padding: 25px 20px;
  }
  .support-item{
    flex-direction:column;
  }
}