/* ===================================================
   武陵中试云 - 前台首页样式
   =================================================== */

/* ---------- 基础重置 ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  background: #F5F7FA;
  color: #2C3E50;
  overflow: auto !important;
  height: auto !important;
}

/* ---------- 导航栏（统一白色） ---------- */
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.home-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}
.home-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1A2332;
  font-size: 18px;
  font-weight: 700;
  transition: color .3s;
}
.home-nav.scrolled .home-nav-brand { color: #1A2332; }
.home-nav-links {
  display: flex;
  gap: 8px;
}
.home-nav-links a {
  color: #5a6a80;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all .2s;
}
.home-nav-links a:hover {
  color: #0D7C66;
  background: rgba(13,124,102,.06);
}
.home-nav-links a.active {
  color: #0D7C66;
  background: rgba(13,124,102,.08);
  font-weight: 600;
}
.home-nav.scrolled .home-nav-links a {
  color: #5a6a80;
}
.home-nav.scrolled .home-nav-links a:hover {
  color: #0D7C66;
  background: rgba(13,124,102,.06);
}
.home-nav.scrolled .home-nav-links a.active {
  color: #0D7C66;
  background: rgba(13,124,102,.08);
}
.home-nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-home-outline {
  padding: 7px 18px;
  border: 1px solid #d0d8e4;
  border-radius: 6px;
  color: #5a6a80;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.btn-home-outline:hover {
  color: #0D7C66;
  border-color: #0D7C66;
  background: rgba(13,124,102,.04);
}
.home-nav.scrolled .btn-home-outline {
  color: #5a6a80;
  border-color: #d0d8e4;
}
.home-nav.scrolled .btn-home-outline:hover {
  color: #0D7C66;
  border-color: #0D7C66;
}
.btn-home-primary {
  padding: 7px 18px;
  background: #0D7C66;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid #0D7C66;
}
.btn-home-primary:hover {
  background: #0a5c47;
  transform: translateY(-1px);
}
.home-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #1A2332;
  cursor: pointer;
  padding: 4px;
  transition: color .3s;
}
.home-nav.scrolled .home-nav-toggle { color: #1A2332; }
.home-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.home-mobile-menu.open { display: flex; }
.home-mobile-menu a {
  color: #3a4a60;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all .2s;
}
.home-mobile-menu a:hover,
.home-mobile-menu a.active {
  color: #0D7C66;
  background: rgba(13,124,102,.06);
}

@media (max-width: 768px) {
  .home-nav-links { display: none; }
  .home-nav-actions { display: none; }
  .home-nav-toggle { display: block; }
  .home-nav-brand { color: #1A2332; }
}

/* ---------- 通用Section ---------- */
.home-section {
  padding: 80px 0;
}
.section-alt {
  background: #EEF2F7;
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #0D7C66;
  background: rgba(13,124,102,0.08);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #1A2332;
  margin: 8px 0;
}
.section-subtitle {
  font-size: 15px;
  color: #8B9BB4;
  margin: 0;
}
.section-more {
  text-align: center;
  margin-top: 36px;
}
.section-more a {
  color: #0D7C66;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: color .2s;
}
.section-more a:hover { color: #0a5c47; }

/* ===================================================
   Banner 轮播
   =================================================== */
.banner-section {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  margin-top: 0;
  padding-top: 60px; /* 为固定导航留空 */
}
.banner-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.banner-slide {
  position: relative;
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,40,30,.72) 0%, rgba(13,124,102,.45) 50%, rgba(10,50,35,.65) 100%);
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 0 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  margin: 0 auto;
}
.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.banner-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ECC71;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.banner-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.banner-desc {
  font-size: 16px;
  line-height: 1.7;
  opacity: .9;
  margin: 0 0 28px;
  max-width: 520px;
}
.btn-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
}
.btn-banner:hover {
  background: rgba(255,255,255,.3);
  transform: translateY(-1px);
}

/* Banner Arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-arrow:hover {
  background: rgba(255,255,255,.25);
}
.banner-prev { left: 24px; }
.banner-next { right: 24px; }

/* Banner Dots */
.banner-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.banner-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .3s;
}
.banner-dot.active {
  width: 48px;
  background: #fff;
}

/* ===================================================
   新闻动态
   =================================================== */
.news-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  align-items: stretch;
}
.news-main {
  display: flex;
}
.news-card-main {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #E8ECF1;
  transition: all .25s;
}
.news-card-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,.08);
}
.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, #0D7C66 0%, #0a5c47 40%, #C9963B 100%);
  position: relative;
  flex-shrink: 0;
}
.news-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(255,255,255,.4));
}
.news-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-body .news-tag {
  align-self: flex-start;
  margin-bottom: 10px;
}
.news-card-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1A2332;
  margin: 0 0 8px;
  line-height: 1.45;
}
.news-card-body p {
  font-size: 13px;
  line-height: 1.7;
  color: #8B9BB4;
  margin: 0 0 14px;
  flex: 1;
}
.news-card-body .news-meta {
  font-size: 12px;
  color: #aab3c5;
}
.news-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.tag-red { background: #e74c3c; }
.tag-green { background: #27ae60; }
.tag-blue { background: #3498DB; }
.tag-amber { background: #C9963B; }
.tag-purple { background: #8E44AD; }

.news-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-card-sm {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all .2s;
  cursor: pointer;
  border: 1px solid #E8ECF1;
}
.news-card-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  border-color: #d0d8e4;
}
.news-card-sm .news-tag {
  flex-shrink: 0;
  margin-top: 2px;
}
.news-card-sm-body {
  flex: 1;
  min-width: 0;
}
.news-card-sm-body h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1A2332;
  margin: 0 0 6px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-card-sm-body .news-date {
  font-size: 12px;
  color: #aab3c5;
}

/* ===================================================
   政策速递
   =================================================== */
.policy-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.policy-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 18px;
  transition: all .2s;
  border: 1px solid #E8ECF1;
}
.policy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.policy-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.policy-body h5 {
  font-size: 15px;
  font-weight: 700;
  color: #1A2332;
  margin: 0 0 6px;
}
.policy-body p {
  font-size: 13px;
  color: #8B9BB4;
  margin: 0 0 8px;
  line-height: 1.5;
}
.policy-from {
  font-size: 12px;
  color: #aab3c5;
}

/* ===================================================
   检验检测
   =================================================== */
.inspect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.inspect-feature {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all .2s;
  border: 1px solid #E8ECF1;
}
.inspect-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.inspect-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin: 0 auto 16px;
}
.inspect-feature h5 {
  font-size: 16px;
  font-weight: 700;
  color: #1A2332;
  margin: 0 0 8px;
}
.inspect-feature p {
  font-size: 13px;
  color: #8B9BB4;
  line-height: 1.6;
  margin: 0;
}

.inspect-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E8ECF1;
}
.inspect-stat {
  text-align: center;
}
.inspect-stat strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #0D7C66;
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
}
.inspect-stat span {
  font-size: 13px;
  color: #8B9BB4;
}

/* ===================================================
   设备共享
   =================================================== */
.equip-category {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  border: 1px solid #E8ECF1;
}
.equip-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.equip-cat-badge {
  display: inline-block;
  padding: 5px 16px;
  background: linear-gradient(135deg, #0D7C66, #0a5c47);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.equip-cat-desc {
  font-size: 14px;
  color: #8B9BB4;
}
.equip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.equip-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #F0F4F8;
  border: 1px solid #E0E6ED;
  border-radius: 6px;
  font-size: 13px;
  color: #3a4a60;
  transition: all .2s;
  cursor: default;
}
.equip-tag:hover {
  background: #e8f5f0;
  border-color: #0D7C66;
  color: #0D7C66;
}
.equip-tag-blue {
  background: #eef4fb;
  border-color: #c5ddf5;
  color: #2471a3;
}
.equip-tag-blue:hover {
  background: #dceaf8;
  border-color: #3498DB;
}
.equip-tag-purple {
  background: #f3eef8;
  border-color: #d5c5e8;
  color: #6c3483;
}
.equip-tag-purple:hover {
  background: #ece4f5;
  border-color: #8E44AD;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.equip-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E8ECF1;
  transition: all .2s;
}
.equip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.equip-card-head {
  padding: 14px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.equip-card-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.equip-card-body {
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.equip-tag-sm {
  display: inline-block;
  padding: 4px 12px;
  background: #F0F4F8;
  border-radius: 5px;
  font-size: 12px;
  color: #3a4a60;
}
.equip-sub {
  width: 100%;
  font-size: 13px;
  color: #5a6a80;
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px dashed #e8ecf1;
}
.equip-sub:last-child { border-bottom: none; }
.equip-sub strong {
  color: #1A2332;
  font-size: 12px;
}

/* ===================================================
   产品展示
   =================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all .25s;
  border: 1px solid #E8ECF1;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.product-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.product-body {
  padding: 20px;
}
.product-body h5 {
  font-size: 16px;
  font-weight: 700;
  color: #1A2332;
  margin: 0 0 8px;
}
.product-body p {
  font-size: 13px;
  color: #8B9BB4;
  line-height: 1.6;
  margin: 0 0 14px;
}
.product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.product-tags span {
  padding: 3px 10px;
  background: #F0F4F8;
  border-radius: 4px;
  font-size: 11px;
  color: #5a6a80;
}

/* ===================================================
   园区企业
   =================================================== */
.parks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.park-mini-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all .2s;
  border: 1px solid #E8ECF1;
}
.park-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.park-mini-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin: 0 auto 14px;
}
.park-mini-card h5 {
  font-size: 17px;
  font-weight: 700;
  color: #1A2332;
  margin: 0 0 6px;
}
.park-mini-card p {
  font-size: 13px;
  color: #8B9BB4;
  margin: 0 0 12px;
}
.park-stat {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(13,124,102,0.08);
  color: #0D7C66;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ===================================================
   Footer
   =================================================== */
.home-footer {
  background: #1A2332;
  color: #8B9BB4;
  padding: 60px 0 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand h4 {
  font-size: 22px;
  font-weight: 800;
  color: #E8ECF1;
  margin: 0 0 8px;
}
.footer-brand p {
  margin: 4px 0;
  font-size: 14px;
}
.footer-slogan {
  color: #C9963B !important;
  font-weight: 600 !important;
  margin-top: 10px !important;
}
.footer-links h5,
.footer-contact h5 {
  font-size: 15px;
  font-weight: 700;
  color: #E8ECF1;
  margin: 0 0 16px;
}
.footer-links a {
  display: block;
  color: #8B9BB4;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color .2s;
}
.footer-links a:hover { color: #E8ECF1; }
.footer-contact p {
  margin: 6px 0;
  font-size: 14px;
}
.footer-bottom {
  text-align: center;
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 13px;
  margin: 0;
  color: #5a6a80;
}

/* ===================================================
   响应式
   =================================================== */
@media (max-width: 1024px) {
  .inspect-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .parks-row { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 768px) {
  .banner-section { height: 420px; }
  .banner-content { padding: 0 24px; max-width: 100%; }
  .banner-title { font-size: 28px; }
  .banner-desc { font-size: 14px; }
  .banner-arrow { display: none; }
  .home-section { padding: 50px 0; }
  .section-title { font-size: 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-main { min-height: auto; }
  .news-card-img { height: 160px; }
  .policy-row { grid-template-columns: 1fr; }
  .inspect-grid { grid-template-columns: 1fr; }
  .inspect-stats { gap: 24px; flex-wrap: wrap; }
  .inspect-stat strong { font-size: 28px; }
  .equip-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .parks-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .equip-cat-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .banner-section { height: 360px; padding-top: 56px; }
  .banner-title { font-size: 22px; }
  .banner-desc { display: none; }
  .news-card-main .news-card-body { padding: 16px; }
  .news-card-main .news-card-body h4 { font-size: 16px; }
  .news-card-img { height: 130px; }
}
