:root {
  --primary: #00965e;
  --primary-deep: #007f51;
  --text: #1f2a2b;
}

* { box-sizing: border-box; }


html, body {
  height: 100%;
  margin: 0;
}
#app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
/* 主体区域自动占满剩余空间，把页脚挤到最底部 */
.main-wrap {
  flex: 1;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.container { width: min(1500px, 100%); margin: 0 auto; }

.topbar {
  /* 移除固定定位，恢复默认文档流 */
  position: static;
  width: 100%;
  z-index: 20;
  background: rgba(40, 40, 40, 0.7);
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
}

.topbar.compact { background: rgba(20, 20, 20, 0.86); }
.topbar-inner { height: 78px; display: flex; justify-content: space-between; align-items: center; }
.brand-wrap { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.brand h1 { margin: 0; font-size: 22px; color: #fff; }
.brand p { margin: 4px 0 0; font-size: 12px; color: #d6d6d6; }

.nav { display: flex; gap: 18px; }
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 18px;
  transition: all 0.25s ease;
}
.nav a.active, .nav a:hover { background: var(--primary); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 34px;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.mobile-nav {
  display: none;
}

.right-nav {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 19;
  display: grid;
  gap: 10px;
}
.right-nav button {
  border: 0;
  background: transparent;
  color: #9b9b9b;
  cursor: pointer;
  font-weight: 700;
}
.right-nav button.active { color: var(--primary); }

.section-page {
  min-height: 100vh;
  position: relative;
  --parallax-y: 0px;
}

.section-page .section-inner,
.section-page .split-card,
.section-page .policy-wrap,
.section-page .contact-wrap {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-page.in-view .section-inner,
.section-page.in-view .split-card,
.section-page.in-view .policy-wrap,
.section-page.in-view .contact-wrap {
  opacity: 1;
  transform: translateY(0);
}

.section-page.in-view .split-card:nth-child(2) {
  transition-delay: 0.14s;
}

.hero .hero-swiper,
.hero .hero-swiper .swiper-wrapper,
.hero .hero-swiper .swiper-slide {
  width: 100%;
  height: 100vh;
}

.hero-slide {
  background-size: cover;
  background-position: center calc(50% + var(--parallax-y));
  transform: scale(1.02);
  filter: brightness(1.1);
}

.hero .swiper-slide-active.hero-slide {
  animation: heroZoom 5s linear both;
}

.hero-overlay {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* 数值越小图片越亮：0 完全透明，0.5 中度暗，0.2 轻微压暗 */
    opacity: 0.2; 
    z-index: 2;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  color: #fff;
  pointer-events: none;
}
.hero-content h2 { margin: 0; font-size: 72px; letter-spacing: 2px; }
.hero-content p { margin-top: 16px; font-size: 20px; opacity: 0.92; }

.hero-pagination.swiper-pagination-bullets {
  position: absolute;
  bottom: 36px !important;
  z-index: 5;
}

.hero-pagination .swiper-pagination-bullet {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
}

.hero-prev,
.hero-next {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #fff !important;
  z-index: 6 !important;
}

.hero-prev::after,
.hero-next::after {
  font-size: 16px !important;
}

.hero-prev { left: 18px !important; }
.hero-next { right: 18px !important; }
/* 区块背景 & 内边距（沿用你原有渐变+配色） */
.section-bg-light {
  background-color: #f8f9fa;
  padding: 10px 0 10px;
  background-image: linear-gradient(145deg, rgba(230, 237, 234, 0.22), rgba(255, 255, 255, 0.1));
}

.section-inner { 
  padding-top: 20px; 
}

/* 标题区域 完全沿用原有样式 */
.title-wrap { 
  text-align: center; 
  margin-bottom: 30px; 
}
.title-wrap p {
  color: #666;
  font-size: 14px;
  margin: 0;
}
.title-wrap h3 {
  color: var(--primary-deep);
  font-size: 32px;
  margin: 8px 0;
}
.title-wrap em {
  display: block;
  width: 40px;
  height: 3px;
  background: #ffd34a;
  margin: 10px auto 0;
}

/* 选项卡 保留原有交互+样式 */
.tabs {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}
.tabs li {
  padding: 12px 28px;
  margin: 0 6px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 15px;
  transition: all 0.3s ease;
}
.tabs li:hover {
  color: #00994c;
}
.tabs li.active {
  background: #00994c;
  color: #fff;
  border-color: #00994c;
  box-shadow: 0 2px 8px rgba(0, 153, 76, 0.2);
}

/* 轮播容器 & 卡片行列布局 */
.cards-swiper { 
  padding: 6px 2px 18px; 
  overflow: hidden; 
}
.cards-slide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* 资讯卡片基础样式 */
.news-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding-bottom: 20px;
  position: relative;
  /* 统一过渡动画 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 卡片入场动画 + 延迟 */
.section-page.in-view .news-card {
  animation: cardReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-page.in-view .news-card:nth-child(2) { animation-delay: 0.1s; }
.section-page.in-view .news-card:nth-child(3) { animation-delay: 0.2s; }
.section-page.in-view .news-card:nth-child(4) { animation-delay: 0.3s; }

/* 标题入场动画 */
.section-page.in-view .title-wrap h3 {
  animation: titlePop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 选项卡入场动画 + 延迟 */
.section-page.in-view .tabs li {
  animation: tabPop 0.48s ease both;
}
.section-page.in-view .tabs li:nth-child(2) { animation-delay: 0.05s; }
.section-page.in-view .tabs li:nth-child(3) { animation-delay: 0.1s; }
.section-page.in-view .tabs li:nth-child(4) { animation-delay: 0.15s; }
.section-page.in-view .tabs li:nth-child(5) { animation-delay: 0.2s; }

/* 卡片悬浮上移+加深阴影 */
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 34px rgba(16, 34, 26, 0.14);
}

/* 卡片图片 */
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* 卡片标题：修正字体、字号、颜色、行高，匹配参考图 */
.news-card h4 {
  font-size: 16px;
  padding: 16px 16px 8px;
  margin: 0;
  color: #333;
  line-height: 1.5;
  font-weight: 500;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 日期样式 */
.news-card .date {
  display: block;
  font-size: calc(var(--fontRatio, 1) * 12px);
  line-height: 1;
  margin-top: 2px;
  padding: 0 8px;
  color: #999;
}

.news-card span {
  display: block;
  font-size: calc(var(--fontRatio, 1) * 12px);
  line-height: 1;
  margin-top: 2px;
  padding: 0 16px;
  color: #999;
}

/* 集团简介布局 */
.intro-wrap {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  background: #fff;
  border-radius: 16px;
  align-items: center;
}

.intro-media {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.intro-video, .intro-image {
  width: 100%;
  height: auto;
  display: block;
}

.intro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.intro-btn {
  align-self: flex-start;
  background: #00994c;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  cursor: pointer;
}



/* 卡片正文 */
.news-card p {
  font-size: 14px;
  color: #666;
  padding: 12px 12px 12px;
  margin: 0;
  line-height: 1.6;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}



/* 阅读更多箭头（补齐原有缺失样式） */
.news-card .read-more {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-size: 20px;
  color: #333;
  text-decoration: none;
  line-height: 1;
}

/* 补齐动画关键帧（必须加，否则动画失效） */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes titlePop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes tabPop {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.party .party-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}
.party-list {
  background: #fff;
  border: 1px solid #e2eae6;
  padding: 8px 18px;
}
.party-list article { border-bottom: 1px solid #edf1ef; padding: 16px 0; }
.party-list article:last-child { border-bottom: 0; }
.party-list h4 { margin: 0 0 8px; font-size: 24px; }
.party-list time { color: #99a59f; }
.party-list p { margin: 8px 0 0; line-height: 1.6; color: #4e5a53; }
.party-media { display: grid; gap: 12px; }
.party-media img { width: 100%; height: calc(50% - 6px); object-fit: cover; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; }
.split-card {
  min-height: 420px;
  background-size: cover;
  background-position: center calc(50% + var(--parallax-y));
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}
.split-card .mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.split-card h3, .split-card button { position: relative; z-index: 1; }
.split-card h3 { margin: 0 0 18px; font-size: 46px; }
.split-card button {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  cursor: pointer;
}

.policy-section {
  background-size: cover;
  background-position: center calc(50% + var(--parallax-y));
  padding: 90px 0 40px;
}
.policy-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
}
.policy-left {
  color: #fff;
  background: rgba(0, 140, 85, 0.68);
  padding: 24px 20px;
}
.policy-left h3 { margin-top: 0; font-size: 42px; line-height: 1.15; }
.policy-left p { font-size: 32px; margin: 20px 0; }
.policy-left button {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  padding: 8px 14px;
}
.policy-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 26px;
}
.policy-box article {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e8ecea;
  padding: 16px 0;
}
.policy-box h4 { margin: 0; font-size: 28px; font-weight: 500; }
.policy-box time { color: #93a09b; font-size: 22px; }

.contact-section { padding-top: 90px; }
.contact-wrap {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
}
.contact-card h3 {
  background: var(--primary);
  color: #fff;
  display: inline-block;
  border-radius: 16px;
  padding: 6px 16px;
  margin: 0 0 18px;
  font-size: 20px;
}
.contact-card p { font-size: 30px; margin: 14px 0; }
.contact-card img { width: 170px; border: 8px solid #fff; box-shadow: 0 3px 16px rgba(0,0,0,0.12); }

.message-form {
  background: #fff;
  border: 1px solid #e4ebe8;
  padding: 18px;
}
.message-form .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.message-form label { display: grid; gap: 8px; color: #667870; font-size: 15px; margin-bottom: 12px; }
.message-form input, .message-form textarea {
  border: 0;
  border-bottom: 1px solid #d8e2de;
  padding: 8px 2px;
  font-size: 18px;
}
.message-form button {
  width: 100%;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  padding: 12px 0;
  cursor: pointer;
}

.to-top {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
}

.animate-in {
  animation: fadeUp 0.8s ease both;
}



@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes titlePop {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tabPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .hero-content h2 { font-size: 54px; }
  .cards-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar-inner {
    height: 62px;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand-wrap { min-width: 0; }
  .logo {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .brand h1 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
  }
  .brand p { display: none; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.28s ease;
    background: rgba(18, 18, 18, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-nav.open {
    grid-template-rows: 1fr;
  }
  .mobile-nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
  }
  .mobile-nav a.active {
    background: rgba(0, 150, 94, 0.25);
  }
  .hero-content h2 { font-size: 36px; }
  .hero-content p { font-size: 14px; }
  .hero-prev,
  .hero-next {
    display: none !important;
  }
  .title-wrap h3 { font-size: 34px; }
  .cards-slide { grid-template-columns: 1fr; }
  .party .party-grid, .split-section, .contact-wrap, .message-form .row {
    grid-template-columns: 1fr;
  }
  .policy-left h3 { font-size: 30px; }
  .policy-left p, .policy-box h4, .policy-box time, .contact-card p { font-size: 18px; }
  .right-nav { display: none; }
}


/* 桌面端二级导航 */
.nav-item {
  position: relative;
   padding-bottom: 10px; 
}
.sub-nav {
  position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px); /* 缩小位移 */
    transition: all 0.2s ease;
    z-index: 99;
    /* 关键：往上挪 10px，和 nav-item 底部热区重叠 */
    margin-top: -10px; 
    padding-top: 10px;
}
.sub-nav.open {
  opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-nav li {
  padding: 0;
  margin: 0;
}
.sub-nav a {
   display: block;
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0;
}
.sub-nav a:hover {
  background: var(--primary); 
}
.sub-icon {
  font-size: 10px;
  margin-left: 4px;
}

/* 移动端二级导航 */
.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-sub-icon {
  float: right;
  font-size: 12px;
  cursor: pointer;
}
.mobile-sub-nav {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-sub-nav.open {
  max-height: 500px; /* 足够容纳所有二级菜单 */
}
.mobile-sub-nav li {
  padding: 8px 0;
}
.mobile-sub-nav a {
  font-size: 13px;
  color: #d6d6d6;
  border-bottom: none !important;
}
.mobile-sub-nav a:hover {
  color: #fff;
}


.contact-container{
            flex: 1;
            max-width: 1100px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            gap: 60px;
            padding: 80px 20px 40px;
            align-items: center;
        }

.contact-left { width: 30%; }
        .contact-tag {
            background: #009245;
            color: #fff;
            padding: 8px 25px;
            border-radius: 30px;
            display: inline-block;
            margin-bottom: 25px;
        }
        .contact-info {
            font-size: 14px;
            color: #666;
            line-height: 2.2;
            margin-bottom: 25px;
        }
        .qrcode {
            width: 150px;
            height: 150px;
            border: 1px solid #eee;
            padding: 8px;
            background: #fff;
        }
        .qrcode img { width: 100%; height: 100%; object-fit: cover; }
        .contact-right { width: 70%; }
        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }
        .form-item { flex:1; }
        .form-item input, .form-item textarea {
            width: 100%;
            padding: 14px;
            border: none;
            border-bottom: 1px solid #eee;
            outline: none;
            background: transparent;
            transition: border-color 0.3s;
        }
        .form-item input:focus, .form-item textarea:focus {
            border-color: #009245;
        }
        .form-item textarea { height: 120px; resize: none; }
        .submit {
            width: 100%;
            background: #009245;
            color: #fff;
            padding: 15px;
            border: none;
            font-size: 16px;
            cursor: pointer;
            transition: 0.3s;
        }
        .submit:hover { background: #007a37; }