/* Base styles */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
:root {
  --reveal-basic-delay: 120ms;
}
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f4f7f2;
  color: #1f2f2b;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(31, 47, 43, 0.08);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand-mark {
  /* width: 200px;
  height: 200px; */
  overflow: hidden;
  display: grid;
  place-items: center;
}
.brand-mark img {
  border-radius: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-brand h1 {
  margin: 0;
  font-size: 26px;
}
.site-brand p {
  margin: 4px 0 0;
  color: #5d6e68;
  font-size: 14px;
}
.brand-heading {
  display: block;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-heading p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #115a30;
    line-height: 1.4;
}
.brand-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  color: #1b513c;
  font-size: 30px;
  font-weight: 800;
  text-decoration: none;
  position: relative;
  /* left: -10px;
  top: 4px; */
}
.brand-phone img {
  width: 30px;
  height: 30px;
}
.brand-phone:hover {
  text-decoration: underline;
  background: transparent;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.site-nav a {
  color: #3d594f;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  background: #e8f7e9;
  color: #1b513c;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.page-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
.page-hero-small {
  padding: 36px 0;
}
.page-hero span {
  display: inline-block;
  color: #1f8b4c;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 18px;
}
.page-hero h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.1;
}
.page-hero p {
  max-width: 600px;
  color: #495b53;
  margin: 0;        /* 可选：去除段落间的默认间距，改用下边距控制 */
  margin-bottom: 10px;
}
/* 用在brand、about等需要上下结构、整段文字的地方 */
.page-text {
  padding: 36px 0;
  display: grid;
  grid-template-areas:
    "text text"
    "img img";
  gap: 24px;
  align-items: start;
}
.page-text > div:first-child{
  grid-area: text;
}
.page-text span {
  display: inline-block;
  color: #1f8b4c;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 18px;
}
.page-text h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.1;
}
.page-text p {
  color: #495b53;
  text-indent: 2em; /* 首行缩进 2 个汉字字符 */
  margin: 0;        /* 可选：去除段落间的默认间距，改用下边距控制 */
  margin-bottom: 10px;
}
.page-text img{
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
@media (max-width: 768px){
  .page-text{
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "img"
      "img";
  }
}
.hero-list {
  margin: 24px 0 24px;
  padding-left: 20px;
  list-style: disc inside;
  color: #344c43;
}
.hero-list li {
  margin-bottom: 10px;
  font-size: 16px;
}
.series-hero {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}
.series-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  justify-content: space-between;
}
.series-tab {
  flex: 1 1 220px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 16px;
  background: #f4faf3;
  color: #1b513c;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.series-tab:hover {
  background: #e8f7e9;
  border-color: #b7dfc1;
  transform: translateY(-1px);
}
.series-panel {
  padding: 36px 0;
  border-top: 1px solid rgba(31, 47, 43, 0.08);
  scroll-margin-top: 110px;
}
.series-panel:first-of-type {
  border-top: none;
}
.series-panel .section-head {
  margin-bottom: 24px;
}
.series-panel .section-head span {
  display: inline-block;
  color: #1f8b4c;
  font-weight: 700;
  margin-bottom: 10px;
}
.series-panel .section-head h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: #1c4f3b;
}
.model-link {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #1f8b4c;
  box-shadow: 0 16px 40px rgba(15, 38, 27, 0.1);
}
.model-link img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.model-link .showroom-card-info {
  padding: 22px;
}
.model-link .showroom-card-info h3 {
  margin-bottom: 12px;
}
.model-link .showroom-card-info p {
  margin: 0;
  color: #ffffff;
}
@media (max-width: 900px) {
  .series-tabs {
    flex-direction: column;
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
}
.auto-gallery {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;  
  width: 100vw;
  overflow:hidden;
  background: #eff6f0;
  /* lift the gallery up to remove the gap under the nav */
  margin-top: -28px;
}
.gallery-card-frame {
  position: relative;
  width: 100%;
  overflow: visible;
}
.gallery-window {
  width: 100%;
  overflow: hidden;
  background: transparent;
}
.gallery-track {
  display: flex;
  transition: transform 0.7s ease;
  width: 100%;
}
.gallery-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
/** .gallery-slide img {
  width: 100vw;
  height: auto;
   max-height: calc(90vh);
  object-fit: cover;
  margin-top: -80px;
  display: block;
} */
.gallery-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 30%;  /* 保留图片靠上30%的区域 */
  display: block;
}

/* 修改画廊幻灯片中的视频样式 */
.gallery-slide video {
  width: 100%;
  height: auto;
  max-height: calc(90vh);
  object-fit: cover;
  display: block;
  background: #1a2c24;
}

/* 如果希望视频铺满全屏并保持比例 */
.gallery-slide {
  position: relative;
  overflow: hidden;
}

.gallery-slide video {
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
}

/* 视频控制按钮样式 */
.gallery-controls {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
}

.gallery-play-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1f8b4c;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-play-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 1);
}

/* 视频播放时隐藏控制按钮（可选） */
.gallery-controls.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* .gallery-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #1f8b4c;
  font-size: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(15, 38, 27, 0.16);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  transform: translateY(-50%);
  z-index: 20;
}
.gallery-arrow.gallery-arrow-left {
  left: 20px;
}
.gallery-arrow.gallery-arrow-right {
  right: 20px;
}
.gallery-arrow:before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-left: 2px solid #1f8b4c;
  border-bottom: 2px solid #1f8b4c;
  transform: rotate(45deg);
}
.gallery-arrow.gallery-arrow-right:before {
  transform: rotate(-135deg);
}
.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 14px 32px rgba(15, 38, 27, 0.18);
}
.gallery-indicators {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(15, 38, 27, 0.12);
  z-index: 40;
}
.gallery-dot {
  width: 10px;
  height: 10px;
  border: none;
  background: rgba(31, 47, 43, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.gallery-dot.active {
  width: 12px;
  height: 12px;
  background: #1f8b4c;
}
.gallery-dot:hover {
  transform: scale(1.2);
} */

/* ===== 仿浙大isee风格：图片箭头（悬停显示） ===== */
.gallery-arrow {
  display: none;           /* 默认隐藏，与浙大一致 */
  width: 59px;
  height: 112px;
  position: absolute;
  top: 50%;
  margin-top: -56px;       /* 垂直居中 */
  border: none;
  background: transparent; /* 无背景色，纯图片箭头 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  z-index: 20;
  transition: opacity 0.3s ease;
  padding: 0;
  font-size: 0;
}

.gallery-arrow.gallery-arrow-left {
  left: 5%;
  background-image: url('images/index/arrow_l.png');
}

.gallery-arrow.gallery-arrow-right {
  right: 5%;
  background-image: url('images/index/arrow_r.png');
}

/* 视频区域悬停时显示按钮 */
.gallery-card-frame:hover .gallery-arrow {
  display: block;
}

/* 按钮悬停效果：轻微放大 */
.gallery-arrow:hover {
  opacity: 0.8;
}

/* 移动端适配：按钮常显，尺寸缩小 */
@media (max-width: 640px) {
  .gallery-arrow {
    display: block;        /* 始终显示 */
    width: 36px;
    height: 68px;
    margin-top: -34px;
  }
  .gallery-arrow.gallery-arrow-left {
    left: 8px;
  }
  .gallery-arrow.gallery-arrow-right {
    right: 8px;
  }
}

/* ===== 左下角视频标题 ===== */
.gallery-caption {
  position: absolute;
  bottom: 100px;
  left: 30px;
  color: #ffffff;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 24px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  z-index: 25;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: opacity 0.4s ease;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .gallery-caption {
    bottom: 80px;
    left: 16px;
    font-size: 14px;
    padding: 6px 14px;
    white-space: normal;
    max-width: 70%;
  }
}
.hero-section {
  color: #1f8b4c;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  padding-top: clamp(20px, 4vh, 60px);
}
.hero-copy h2 {
  margin: 16px 0 20px;
  font-size: 48px;
}
  .hero-copy h2 {
    margin: 16px 0 20px;
    font-size: 48px;
  }

  /* Hero title span: make the small headline more prominent while keeping color */
  .hero-copy > span {
    display: block;
    color: inherit; /* keep the green color from .hero-section */
    font-weight: 800;
    font-size: clamp(20px, 4.6vw, 42px);
    line-height: 1.05;
    margin-bottom: 12px;
    letter-spacing: 0.12em;
  }

  /* make the hero paragraph black instead of inherited green */
  .hero-copy .hero-lead {
    color: #0b0b0b;
    font-size: clamp(16px, 2.8vw, 20px);
    font-weight: 600;
    line-height: 1.45;
    margin-top: 6px;
  }
.hero-actions {
  margin-top: 40px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: #1f8b4c;
  color: #ffffff;
  border-radius: 90px;
  font-weight: 600;
}
.button-secondary {
  background: #ffffff;
  color: #1f8b4c;
  border: 1px solid #d8e9dc;
}

/* Hero action buttons: remove border, default black text, hover turns text green */
.hero-actions .button,
.hero-actions .button-secondary {
  background: #ffffff;
  color: #0b0b0b;
  border: none;
  box-shadow: none;
}
.hero-actions .button:hover,
.hero-actions .button-secondary:hover {
  color: #1f8b4c;
  background: rgba(31,139,76,0.06);
}
.hero-actions .button.active{
  background: #1f8b4c;
  color: #fff;
  border-color: #1f8b4c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31,139,76,0.25);
}
.section {
  margin-bottom: 48px;
}
.section h2 {
  display: block;
  color: #1f8b4c;
  font-weight: 800;
  font-size: clamp(20px, 4.6vw, 42px);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: 0.12em;
}
.section p {
  color: #4f6359;
}
.section-showroom {
  margin-bottom: 28px;
}
.section-showroom .section-head {
  max-width: 720px;
  margin-bottom: 28px;
}
.section-showroom .section-head span {
  display: inline-block;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.section-showroom .section-head h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
}
.section-showroom .section-head p {
  margin: 0;
  color: #4f6359;
}
.showroom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}
.showroom-grid.hidden {
  display: none;
}

/* Top nav floating dropdowns */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-button {
  background: transparent;
  border: none;
  color: #3d594f;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.nav-dropdown-button:focus,
.nav-dropdown-button:hover {
  color: #1f8b4c;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 22px 56px rgba(15,38,27,0.18);
  border: 1px solid rgba(31,47,43,0.06);
  padding: 12px;
  display: none;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.open {
  display: block;
}
.nav-dropdown-menu .menu-level1 {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-dropdown-menu .menu-level1 .menu-item {
  padding: 8px 6px;
  border-radius: 8px;
}
.nav-dropdown-menu a {
  color: #1f2f2b;
  font-weight: 600;
  display: inline-block;
  padding: 6px 8px;
}
.nav-dropdown-menu .menu-item:hover > a { color: #1f8b4c; }
.nav-dropdown-menu .menu-level1 .menu-item a { display: block; padding: 8px 6px; border-radius: 8px; }
.nav-dropdown-menu .menu-level1 .menu-item:hover > a { color: #1f8b4c; background: rgba(31,139,76,0.04); }

@media (max-width: 780px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border-radius: 12px; padding: 8px; }
}
.showroom-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 60px rgba(14, 39, 28, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showroom-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.52));
  transition: background 0.3s ease;
}
.showroom-card-info {
  position: relative;
  padding: 24px;
  z-index: 1;
  color: #ffffff;
}
.showroom-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.showroom-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.showroom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(14, 39, 28, 0.18);
}
.showroom-card:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.64));
}
.showroom-card:hover p {
  opacity: 1;
  transform: translateY(0);
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
  margin-top: 48px;
}
.section-image {
  max-width: 100%;
}
.section-content ul,
.section-values ul {
  margin: 20px 0 0;
  padding-left: 20px;
}
.section-content li {
  margin-bottom: 10px;
}
.section-overview {
  /* Title occupies its own row; the grid of items sits below */
  display: block;
  margin-bottom: 24px;
}
.overview-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 22px;
}
.overview-item,
.value-card {
  background: #ffffff;
  padding: 26px;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(18, 31, 22, 0.05);
}

/* Reveal on scroll: start hidden and animate into view */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.992);
  transition: opacity 640ms cubic-bezier(.18,.9,.35,1), transform 640ms cubic-bezier(.18,.9,.35,1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-delay-1 { transition-delay: calc(var(--reveal-basic-delay) * 1); }
.reveal-delay-2 { transition-delay: calc(var(--reveal-basic-delay) * 2); }
.reveal-delay-3 { transition-delay: calc(var(--reveal-basic-delay) * 3); }
.reveal-delay-4 { transition-delay: calc(var(--reveal-basic-delay) * 4); }
.overview-item h4,
.value-card h4 {
  margin-top: 0;
}
.page-hero div img {
  border-radius: 26px;
}
/* QR特殊卡 */
.qr-card{
  display: flex;              /* 关键：开启左右布局 */
  align-items: center;       /* 垂直居中 */
  gap: 20px;
}

.qr-right{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;            /* ⭐水平居中（关键） */
  text-align: center;             /* ⭐文字居中（关键） */
}

.qr-card img{
  width: 150px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;  /* 防止被压缩 */
}

/* 左侧二维码区 */
.qr-left{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-left img{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

/* hover效果 */
.qr-card:hover .qr-left img{
  transform: scale(1.05);
}

/* 手机端变竖排 */
@media (max-width: 600px){
  .qr-card{
    flex-direction: column;
    text-align: center;
  }

  .qr-right{
    align-items: center;
    text-align: center;
  }
}
.section-gallery {
  display: grid;
  gap: 24px;
}
.model-card {
  background: #ffffff;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(17, 35, 26, 0.06);
}
.model-card img {
  border-radius: 0;
  object-fit: cover;
}
.model-card div {
  padding: 26px;
}
.model-card h3 {
  margin-top: 0;
}
.model-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}
.section-news {
  display: grid;
  gap: 20px;
}
.news-card {
  background: #ffffff;
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(18, 31, 22, 0.05);
}
.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.news-header span {
  color: #1f8b4c;
  font-weight: 700;
}
.news-header h3 {
  margin: 0;
  font-size: 22px;
}
.section-contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 22px;
}
.contact-card,
.map-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 14px 30px rgba(18, 31, 22, 0.05);
  margin-top: 20px;
}
.site-footer {
  background: #ffffff;
  padding: 20px 24px;
  text-align: center;
  color: #5d6e68;
  border-top: 1px solid rgba(31, 47, 43, 0.08);
}
@media (max-width: 1024px) {
  .section-tiles,
  .section-overview,
  .overview-grid,
  .values-grid,
  .section-contact .contact-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .model-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .site-header {
    padding: 18px 16px;
  }
  .site-nav {
    width: 100%;
    justify-content: start;
    margin-top: 16px;
  }
  .page-hero,
  .hero-section,
  .section-intro {
    grid-template-columns: 1fr;
  }
  .page-hero h2 {
    font-size: 32px;
  }
  .section-tiles,
  .section-overview,
  .overview-grid,
  .values-grid,
  .section-contact .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Cases section styles */
.section-cases {
  margin-bottom: 48px;
}

.section-cases h2 {
  color: #1f8b4c;
  font-weight: 800;
  font-size: clamp(20px, 4.6vw, 42px);
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: 0.12em;
}

.section-cases p {
    color: #0b0b0b;
    font-size: clamp(16px, 2.8vw, 20px);
    font-weight: 600;
    line-height: 1.45;
    margin-top: 6px;
}

.cases-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* margin-bottom: 32px; */
  justify-content: center;
}

.case-category-btn {
  padding: 10px 20px;
  border: 2px solid #ffffff;
  background: #ffffff;
  color: #1f2f2b;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  white-space: nowrap;
  margin-top: 20px;
  margin-bottom: 30px;
}

.case-category-btn:hover {
  border-color: #1f8b4c;
  color: #1f8b4c;
}

.case-category-btn.active {
  background: #1f8b4c;
  border-color: #1f8b4c;
  color: #ffffff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cases-grid.hidden {
  display: none;
}

.case-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.case-title {
  text-align: center;
  font-size: 14px;
  color: #1f2f2b;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .cases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cases-categories {
    gap: 8px;
  }
  
  .case-category-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .case-category-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}


/* 补充详情页特有样式 */
.spec-table {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 38, 27, 0.08);
}
.spec-table table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th,
.spec-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #e8ecea;
}
.spec-table th {
  background: #f5f8f6;
  width: 30%;
  font-weight: 600;
  color: #1a2c24;
}
.spec-table td {
  color: #4e645b;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}
.feature-list li {
  flex: 1;
  min-width: 200px;
  padding: 20px 24px;
  background: #f8faf9;
  border-radius: 20px;
  text-align: center;
  font-weight: 500;
  color: #1a2c24;
  border-left: 4px solid #2e7d64;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: #2e7d64;
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s ease;
}
.back-link:hover {
  gap: 12px;
}
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}
.loading {
  text-align: center;
  padding: 60px;
  font-size: 18px;
  color: #4e645b;
}
.error-message {
  text-align: center;
  padding: 60px;
}
.error-message h2 {
  color: #c0392b;
  margin-bottom: 20px;
}

/* 首页照片灯箱特有样式 */
.lightbox{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;

  justify-content: center;
  align-items: center;
}

/* 图片 */
.lightbox img{
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.25s ease;
}

/* 打开动画 */
.lightbox.show img{
  transform: scale(1);
  opacity: 1;
}

/* 关闭按钮 */
.close-btn{
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 34px;
  color: #fff;
  cursor: pointer;
}

/* 左右切换按钮 */
.nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px 20px;
}

.nav.prev{ left: 10px; }
.nav.next{ right: 10px; }

.nav:hover{
  color: #2ecc71;
}

/* ===========================
   Product Gallery
   =========================== */
.product-gallery{
    width:100%;
    max-width:560px;
    margin-left:auto;
}

.product-gallery-main{
    position:relative;
    width:100%;
    height:400px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.product-gallery-main img{
    width:92%;
    height:92%;

    object-fit:contain;

    transition:
    opacity .25s ease,
    transform .35s ease;
}
.product-gallery-main img.fade{
    opacity:0;
    transform:scale(.96);
}
.product-gallery-main:hover img{
    transform:scale(1.02);
}
/* 左右切换按钮 */
.product-gallery-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.9);
    font-size:22px;
    cursor:pointer;
    opacity:0;
    transition:.25s;
    z-index:2;
}
/* 左右位置 */
.product-gallery-btn.prev{
    left:16px;
}
.product-gallery-btn.next{
    right:16px;
}
/* 鼠标进入显示 */
.product-gallery-main:hover .product-gallery-btn{
    opacity:1;
}
.product-gallery-btn:hover{
    background:#178A45;
    color:#fff;
}

/* 缩略图 */
.product-gallery-thumbs{
    display:flex;
    gap:12px;
    margin-top:18px;
    padding:6px 4px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.product-gallery-thumbs::-webkit-scrollbar{
    display:none;
}
/* 缩略图图片 */
.product-gallery-thumbs img{
    width:88px;
    height:66px;
    object-fit:cover;
    border-radius:10px;
    border:3px solid transparent;
    cursor:pointer;
    transition:.25s;
    flex-shrink:0;
}
.product-gallery-thumbs img.active{
    border-color:#178A45;
    box-shadow:0 4px 12px rgba(23,138,69,.25);
}
.product-gallery-thumbs img:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.15);
}
@media (max-width:900px){
    .product-gallery{
        max-width:none;
    }
    .product-gallery-main{
        height:320px;
    }

}

/* ===========================
   Product Lightbox
=========================== */
.product-lightbox{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.92);
    z-index:9999;
}
.product-lightbox img{
    max-width:88vw;
    max-height:88vh;
    object-fit:contain;
    border-radius:10px;
}
/* 关闭按钮 */
.product-lightbox-close{
    position:absolute;
    top:30px;
    right:40px;
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:#fff;
    cursor:pointer;
    font-size:28px;
}
/* 左右切换按钮 */
.product-lightbox-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:56px;
    height:56px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.9);
    cursor:pointer;
    font-size:28px;
}
.product-lightbox-btn.prev{
    left:40px;
}
.product-lightbox-btn.next{
    right:40px;
}
.product-lightbox-btn:hover,
.product-lightbox-close:hover{
    background:#178A45;
    color:#fff;
}
#lightboxImage{
    transition:opacity .25s ease;
}

/* 面包屑导航（Breadcrumb）*/
.breadcrumb{
    max-width:1200px;
    margin:25px auto;
    padding:0 20px;
    display:flex;
    align-items:center;
    font-size:18px;
}

.breadcrumb a{
    color:#666;
    text-decoration:none;
}

.breadcrumb a:hover{
    color:#178A45;
}

.breadcrumb span{
    margin:0 8px;
    color:#aaa;
}

.breadcrumb .current{
    color:#178A45;
}