/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a7a4c;
  --primary-dark: #0f5a36;
  --primary-light: #2ea86a;
  --accent: #e8a317;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e5e5e5;
  --bg-light: #f5f8f6;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.h_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.h_logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  flex-shrink: 0;
}

.logo-text .tit {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

.logo-text .tit_en {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .5px;
  margin-top: 2px;
}

.h_right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.h_time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

.h_time .icon { color: var(--primary); }

.h_tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h_search {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.h_search input {
  border: none;
  outline: none;
  padding: 6px 12px;
  font-size: 13px;
  width: 160px;
}

.h_search button {
  background: var(--primary);
  border: none;
  color: var(--white);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
}

/* Navigation */
.nav {
  background: var(--primary);
}

.nav ul {
  display: flex;
  justify-content: center;
}

.nav_li {
  position: relative;
}

.nav_a {
  display: block;
  padding: 14px 22px;
  color: var(--white) !important;
  font-size: 15px;
  letter-spacing: 1px;
  transition: background var(--transition);
}

.nav_li:hover > .nav_a,
.nav_li.active > .nav_a {
  background: var(--primary-dark);
}

.sec_nav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav_li:hover .sec_nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sec_nav a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border);
}

.sec_nav a:hover {
  background: var(--bg-light);
  color: var(--primary) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* ===== Banner ===== */
.ibanner {
  position: relative;
  overflow: hidden;
  height: 480px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}

.banner-slide.active { opacity: 1; }

.banner-slide .bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,90,54,.75) 0%, rgba(15,90,54,.3) 60%, transparent 100%);
}

.banner-slide .intro {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  max-width: 560px;
}

.banner-slide .intro .tit {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  line-height: 1.3;
}

.banner-slide .intro .con {
  font-size: 16px;
  line-height: 1.8;
  opacity: .92;
}

.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}

.banner-dots button.active { background: var(--white); }

/* ===== Section Common ===== */
.ipart { padding: 40px 0 20px; }

.common_tit {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.2;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.more_btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted) !important;
}

.more_btn:hover { color: var(--primary) !important; }

/* ===== Grid Layout ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.col-8 { width: 66.666%; padding: 0 10px; }
.col-4 { width: 33.333%; padding: 0 10px; }
.col-12 { width: 100%; padding: 0 10px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  padding: 20px;
}

/* ===== News Section ===== */
.headline .tit {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.headline .con {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.news-grid {
  display: flex;
  gap: 16px;
}

.news-featured {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.news-featured img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}

.news-featured:hover img { transform: scale(1.05); }

.news-featured .intro_box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 40px 16px 16px;
  color: var(--white);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.news-featured .date .day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.news-featured .date .year {
  font-size: 12px;
  opacity: .8;
}

.news-featured .tit {
  font-size: 14px;
  flex: 1;
  color: var(--white) !important;
}

.news-list { flex: 1; }

.news-list .item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.news-list .item:last-child { border-bottom: none; }

.news-list .date {
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.news-list .date .day {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.news-list .date .year {
  font-size: 12px;
  color: var(--text-muted);
}

.news-list .tit {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== About Card ===== */
.about-card .img_box {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

.about-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .4s ease;
}

.about-card:hover img { transform: scale(1.05); }

.about-card .intro_box {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 4px;
}

.about-card .intro_box .tit {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-card .intro_box .con {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ===== List Section ===== */
.list-section .item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.list-section .item:last-child { border-bottom: none; }

.list-section .tit {
  font-size: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-section .date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Promo Carousel ===== */
.promo-carousel {
  position: relative;
  overflow: hidden;
  margin: 20px 0 30px;
  border-radius: 4px;
}

.promo-track {
  display: flex;
  transition: transform .5s ease;
}

.promo-slide {
  min-width: 33.333%;
  padding: 0 8px;
}

.promo-slide img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.promo-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 18px;
  z-index: 5;
  transition: background var(--transition);
}

.promo-btn:hover { background: rgba(0,0,0,.6); }
.promo-btn.prev { left: 8px; }
.promo-btn.next { right: 8px; }

/* ===== Projects ===== */
.projects-carousel {
  position: relative;
  overflow: hidden;
}

.projects-track {
  display: flex;
  gap: 16px;
  transition: transform .5s ease;
}

.project-card {
  min-width: calc(25% - 12px);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.project-card:hover { box-shadow: var(--shadow); }

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-card:hover img { transform: scale(1.05); }

.project-card .intro_box {
  padding: 12px;
  background: var(--bg-light);
}

.project-card .tit {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.projects-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26,122,76,.8);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 20px;
  z-index: 5;
}

.projects-btn.prev { left: -12px; }
.projects-btn.next { right: -12px; }

/* ===== Stats Bar ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 40px 0;
  margin: 20px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  color: var(--white);
}

.stat-item .num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-item .num span { font-size: 18px; }

.stat-item .label {
  font-size: 14px;
  opacity: .85;
  margin-top: 4px;
}

/* ===== Footer ===== */
.footer {
  background: #1a2e24;
  color: #aaa;
  padding: 40px 0 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2a3e34;
}

.footer-col { flex: 1; min-width: 200px; }

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  line-height: 2;
  color: #aaa !important;
}

.footer-col a:hover { color: var(--primary-light) !important; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: #666;
}

/* ===== Inner Pages ===== */
.page-banner {
  display: none !important;
}

.page-banner h1,
.page-banner .breadcrumb {
  display: none !important;
}

.page-content {
  padding: 24px 0 60px;
}

.page-content .content-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px;
  line-height: 1.9;
}

.page-content h2 {
  font-size: 20px;
  color: var(--primary-dark);
  margin: 24px 0 12px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 12px;
  text-indent: 2em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info .item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info .icon {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info p { font-size: 14px; color: var(--text-light); text-indent: 0; }

.contact-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-map {
  background: var(--bg-light);
  border-radius: 4px;
  height: 360px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.contact-map .map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

.map-external-link {
  align-self: flex-start;
  color: var(--primary);
  font-size: 14px;
}

.map-external-link:hover {
  text-decoration: underline;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-grid .project-card { min-width: auto; }

.news-page-list .news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.news-page-list .news-item img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.news-page-list .news-body { flex: 1; }

.news-page-list .news-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.news-page-list .news-body p {
  font-size: 14px;
  color: var(--text-light);
  text-indent: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page-list .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== Floating Contact Sidebar ===== */
.float-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 12px rgba(0,0,0,.15);
}

.float-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-dark);
  color: var(--white);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition);
  text-decoration: none;
}

.float-item:first-child { border-radius: 4px 0 0 0; }
.float-item:last-child { border-radius: 0 0 0 4px; border-bottom: none; }

.float-item:hover { background: var(--primary); }

.float-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.float-phone .float-panel {
  position: absolute;
  right: 100%;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  color: var(--white);
  white-space: nowrap;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}

.float-phone:hover .float-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.float-wechat .float-panel {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--white);
  padding: 12px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  text-align: center;
}

.float-wechat:hover .float-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.float-wechat .float-panel img {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.float-wechat .float-panel p {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

.float-top {
  font-size: 18px;
  font-weight: 700;
}

.float-top.hidden { display: none; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .col-8, .col-4 { width: 100%; }
  .news-grid { flex-direction: column; }
  .promo-slide { min-width: 50%; }
  .project-card { min-width: calc(50% - 8px); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .h_top { flex-direction: column; gap: 12px; }
  .h_right { align-items: center; }
  .mobile-toggle { display: block; }

  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
  }

  .nav.open ul { display: flex; }

  .nav_a { padding: 12px 20px; }

  .sec_nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--primary-dark);
    display: none;
  }

  .nav_li.open .sec_nav { display: block; }

  .sec_nav a {
    color: rgba(255,255,255,.8) !important;
    padding-left: 40px;
    border-bottom-color: rgba(255,255,255,.1);
  }

  .ibanner { height: 320px; }
  .banner-slide .intro .tit { font-size: 26px; }
  .banner-slide .intro .con { font-size: 14px; }

  .stats-grid { flex-wrap: wrap; gap: 20px; }
  .stat-item { width: 45%; }

  .promo-slide { min-width: 100%; }
  .project-card { min-width: 100%; }
  .project-grid { grid-template-columns: 1fr; }

  .news-page-list .news-item { flex-direction: column; }
  .news-page-list .news-item img { width: 100%; height: 180px; }

  .float-contact { display: none; }
}
