/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  background: #fff;
}
a { color: inherit; text-decoration: none; transition: color .3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

:root {
  --main: #0a8a4d;
  --main-dark: #066c3a;
  --accent: #1a73e8;
  --dark: #1f2a36;
  --gray: #f5f7fa;
  --line: #e6e9ef;
}

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

/* ===== 顶栏 ===== */
.top-bar {
  background: #1f2a36;
  color: #cfd6df;
  font-size: 12px;
  padding: 8px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar strong { color: #fff; }

/* ===== 头部 ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--main), var(--main-dark));
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: bold;
  box-shadow: 0 4px 10px rgba(10,138,77,.3);
}
.logo-text h1 { font-size: 20px; color: var(--dark); margin-bottom: 2px; }
.logo-text p { font-size: 10px; color: #8a96a3; letter-spacing: 1px; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 16px;
  font-size: 15px;
  color: #444;
  border-radius: 4px;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--main); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--main);
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 26px; height: 3px; background: #333; border-radius: 2px; }

/* ===== 轮播 ===== */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #0a3d2a;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .8s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide.active { opacity: 1; }
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,108,58,.78), rgba(15,40,60,.65));
}
.hero-content {
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 4px 16px rgba(0,0,0,.3);
  animation: slideUp .8s ease;
}
.hero-content p {
  font-size: 18px;
  margin-bottom: 36px;
  opacity: .95;
  animation: slideUp 1s ease;
}
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 15px;
  margin: 0 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s;
}
.btn-primary {
  background: var(--main);
  color: #fff;
  border-color: var(--main);
}
.btn-primary:hover {
  background: var(--main-dark);
  border-color: var(--main-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10,138,77,.4);
}
.btn-outline {
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--main);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  text-align: center;
}
.dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all .3s;
}
.dot.active { background: #fff; width: 30px; border-radius: 6px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 数据统计 ===== */
.stats {
  background: linear-gradient(135deg, var(--main), var(--main-dark));
  color: #fff;
  padding: 50px 0;
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 42px; font-weight: bold; margin-bottom: 8px; }
.stat-label { font-size: 14px; opacity: .9; }

/* ===== 通用区块 ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--gray); }
.section-dark {
  background: linear-gradient(135deg, #1f2a36, #0e1820);
  color: #cfd6df;
}
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 50px; height: 3px;
  background: var(--main);
  transform: translateX(-50%);
}
.section-title p {
  font-size: 13px;
  color: #8a96a3;
  letter-spacing: 3px;
}
.section-title.light h2 { color: #fff; }
.section-title.light p { color: rgba(255,255,255,.6); }

/* ===== 关于我们 ===== */
.about-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.about-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .6s;
}
.about-img:hover img { transform: scale(1.05); }
.about-text h3 { font-size: 24px; color: var(--dark); margin-bottom: 18px; }
.about-text p { color: #555; margin-bottom: 12px; }
.about-info {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.about-info li { color: #444; }
.about-info span { color: var(--main); font-weight: bold; }

/* ===== 产品中心 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: all .35s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}
.product-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s;
}
.product-card:hover .product-img img { transform: scale(1.08); }

.product-info { padding: 22px; }
.product-info h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.product-info p { color: #666; font-size: 13px; margin-bottom: 14px; min-height: 60px; }
.more-link { color: var(--main); font-size: 13px; font-weight: bold; }
.more-link:hover { color: var(--main-dark); }

/* ===== 服务领域 ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-item {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: all .3s;
}
.service-item:hover {
  border-color: var(--main);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10,138,77,.12);
}
.service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--main), var(--main-dark));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.service-item h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.service-item p { color: #666; font-size: 13px; }

/* ===== 企业优势 ===== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.advantage-card {
  padding: 30px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  transition: all .3s;
}
.advantage-card:hover {
  background: rgba(10,138,77,.15);
  border-color: var(--main);
  transform: translateY(-4px);
}
.adv-num {
  font-size: 38px;
  color: var(--main);
  font-weight: bold;
  margin-bottom: 12px;
}
.advantage-card h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.advantage-card p { font-size: 13px; opacity: .8; }

/* ===== 新闻 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.news-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all .3s;
  cursor: pointer;
}
.news-item:hover {
  border-left-color: var(--main);
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.news-date {
  text-align: center;
  min-width: 80px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.news-date .day { display: block; font-size: 32px; font-weight: bold; color: var(--main); }
.news-date .month { font-size: 12px; color: #999; }
.news-content h3 { font-size: 16px; color: var(--dark); margin-bottom: 8px; transition: color .3s; }
.news-content p { font-size: 13px; color: #777; margin-bottom: 8px; }
.news-more { font-size: 12px; color: var(--main); font-weight: bold; opacity: 0; transition: opacity .3s; }
.news-item:hover .news-content h3 { color: var(--main); }
.news-item:hover .news-more { opacity: 1; }

/* ===== 新闻详情弹窗 ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.modal.show { display: block; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  animation: fadeIn .3s;
}
.modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 720px;
  max-height: 86vh;
  background: #fff;
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
  animation: modalIn .35s ease;
}
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color .2s, transform .2s;
}
.modal-close:hover { color: var(--main); transform: rotate(90deg); }
.modal-header {
  padding: 30px 36px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 { font-size: 22px; color: var(--dark); margin-bottom: 8px; }
.modal-header p { font-size: 13px; color: #999; }
.modal-body { padding: 24px 36px 36px; color: #444; line-height: 1.9; font-size: 14px; }
.modal-body h4 {
  font-size: 16px;
  color: var(--main);
  margin: 16px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--main);
}
.modal-body p { margin-bottom: 12px; }
.modal-body ul { padding-left: 22px; margin-bottom: 12px; list-style: disc; }
.modal-body ul li { margin-bottom: 6px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ===== 联系我们 ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info, .contact-form { padding: 36px; background: var(--gray); border-radius: 8px; }
.contact-info h3, .contact-form h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main);
  display: inline-block;
}
.contact-info ul li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: #444;
}
.contact-info ul li:last-child { border-bottom: none; }
.ci-label { color: var(--main); font-weight: bold; }
.contact-info a { color: var(--main); font-weight: bold; }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  transition: border .3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--main);
}
.contact-form button { width: 100%; border: none; cursor: pointer; }

/* ===== 页脚 ===== */
.footer { background: #1f2a36; color: #aab3bf; padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--main);
}
.footer-col p { font-size: 13px; line-height: 2; }
.footer-col ul li { padding: 4px 0; font-size: 13px; }
.footer-col ul li a:hover { color: var(--main); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: #6c7682;
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  background: var(--main);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  box-shadow: 0 4px 14px rgba(10,138,77,.4);
  z-index: 99;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--main-dark); }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .products-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-content h2 { font-size: 36px; }
}

@media (max-width: 768px) {
  .top-bar-inner span:first-child { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
  }
  .nav.show { display: flex; }
  .nav a { padding: 12px 20px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-toggle { display: flex; }
  .header-inner { position: relative; }

  .hero { height: 420px; }
  .hero-content h2 { font-size: 26px; }
  .hero-content p { font-size: 14px; }

  .products-grid, .service-grid, .news-grid { grid-template-columns: 1fr; }
  .about-info { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }
  .stat-num { font-size: 30px; }
}
