/* 内页通用 — 参考 huimeigroup.com 子站版式 */
body.page-inner {
  padding-top: var(--header-h);
}

body.page-inner .site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

body.page-inner .site-header .nav-link {
  color: var(--color-text);
  text-shadow: none;
}

body.page-inner .site-header .btn-search img {
  filter: none;
}

body.page-inner .site-header .menu-toggle {
  color: var(--color-text);
}

.inner-banner {
  position: relative;
  padding: 4.5rem 0 5rem;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.inner-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 45, 35, 0.82), rgba(0, 0, 0, 0.45));
}

.inner-banner .container {
  position: relative;
  z-index: 1;
}

.inner-banner .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
}

.inner-banner .tag img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.inner-banner .en-title {
  display: block;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 1rem 0;
  text-transform: lowercase;
  opacity: 0.95;
}

.inner-banner .breadcrumb a {
  opacity: 0.85;
}

.inner-banner .breadcrumb a:hover {
  opacity: 1;
}

.inner-page {
  padding-bottom: 4rem;
}

.mbx-bar {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.mbx-bar a:hover {
  color: var(--color-primary);
}

/* 空间列表 */
.case-list {
  padding: 3rem 0 5rem;
}

.case-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.case-list li.reverse {
  flex-direction: row-reverse;
}

.case-list .case-img {
  flex: 0 0 55%;
  max-width: 55%;
  overflow: hidden;
  border-radius: 4px;
}

.case-list .case-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.case-list .case-img:hover img {
  transform: scale(1.03);
}

.case-list .case-text {
  flex: 0 0 38%;
  max-width: 38%;
}

.case-list .case-cat {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 0.75rem;
}

.case-list .case-title {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.case-list .case-title:hover {
  color: var(--color-primary);
}

.case-list .case-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-more {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.65rem 1.75rem;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.case-more:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* 文章详情 */
.article-wrap {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.article-wrap .article-head h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #444;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2,
.article-body h3 {
  margin: 2rem 0 1rem;
  color: var(--color-primary-dark);
}

.article-body img {
  margin: 2rem auto;
  border-radius: 8px;
  max-width: 100%;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
}

.side-related {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.side-related h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.side-related ul li {
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.side-related time {
  color: var(--color-text-muted);
  margin-right: 0.5rem;
}

/* 产品中心 — 首页 business-grid + 卡片底图 */
.product-hub {
  padding: 2.5rem 0 1rem;
}

.product-hub-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .product-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-hub-grid {
    grid-template-columns: 1fr;
  }
}

.product-hub .business-card--bg {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--color-bg);
  min-height: 11rem;
}

.product-hub .business-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s var(--ease, ease);
  pointer-events: none;
}

.product-hub .business-card--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(245, 247, 246, 0.18) 100%
  );
  pointer-events: none;
}

.product-hub .business-card__inner {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  display: block;
  text-align: left;
}

.product-hub button.business-card,
.product-hub a.business-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid transparent;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
  color: inherit;
}

.product-hub .business-card__title {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.8);
}

.product-hub .business-card__desc {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(255, 255, 255, 0.75);
}

.product-hub .business-card--bg.is-active {
  border-color: rgba(26, 95, 74, 0.35);
  box-shadow: var(--shadow);
}

.product-hub .business-card--bg.is-active::after {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(232, 245, 240, 0.24) 100%
  );
}

.product-hub .business-card--bg:hover .business-card__bg,
.product-hub .business-card--bg:focus-visible .business-card__bg {
  transform: scale(1.06);
}

.product-hub .business-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 产品列表 */
.product-page-layout {
  padding: 2.5rem 0 5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.product-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.product-catalog-head__title {
  flex: 1 1 auto;
  min-width: 0;
}

.product-catalog-head h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.product-catalog-head__search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  flex: 0 1 auto;
  margin-left: auto;
}

.product-inline-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(100%, 26rem);
  width: 26rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 4px;
  background: #fff;
}

.product-inline-search:focus-within {
  border-color: var(--color-primary, #1a4d3e);
}

.product-inline-search__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  opacity: 0.75;
}

.product-inline-search__icon:hover {
  opacity: 1;
}

.product-inline-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 6rem;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  border: 0;
  outline: none;
  background: transparent;
}

@media (max-width: 640px) {
  .product-catalog-head__search {
    width: 100%;
    justify-content: stretch;
  }

  .product-inline-search {
    flex: 1 1 100%;
    max-width: none;
  }
}

.product-empty {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.product-empty a {
  color: var(--color-primary);
  font-weight: 600;
}

.product-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-tile {
  text-align: center;
  transition: transform 0.3s;
}

.product-tile:hover {
  transform: translateY(-4px);
}

.product-tile .thumb {
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-tile .thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-tile h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-tile .explore {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: underline;
}

.product-3d-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.product-3d-hint a {
  color: var(--color-primary);
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.pagination a,
.pagination span {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.pagination .current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 产品详情 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
}

.product-gallery .main-img {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
}

.product-gallery .main-img .product-detail-swiper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.product-gallery .main-img .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery .main-img .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.product-info .price {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

.product-specs {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-inquiry {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-inquiry:hover {
  background: var(--color-primary-dark);
}

.product-pager {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* 历史时间轴 — 兜底：table 两列 + 强制白底（兼容旧 Edge / 缓存旧 CSS） */
.history-page {
  padding: 3rem 0 5rem;
  background: #fff;
}

.history-intro {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #0f3d30;
  color: var(--color-primary-dark);
  margin-bottom: 3rem;
  background: #fff;
}

@media (min-width: 768px) {
  .history-intro {
    font-size: 3.25rem;
  }
}

@media (min-width: 1200px) {
  .history-intro {
    font-size: 4rem;
  }
}

.history-timeline {
  display: table;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
}

.history-item {
  display: table-row;
  background: #fff;
}

.history-item .year,
.history-item p {
  display: table-cell;
  vertical-align: top;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.history-item .year {
  width: 7.5rem;
  padding-right: 2rem;
  white-space: nowrap;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.75;
  color: #c9a227;
  color: var(--color-accent);
}

.history-item p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #444;
}

/* 关于我们 */
.about-page {
  padding: 3rem 0 5rem;
}

.about-page h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 2rem;
}

.about-page .about-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
}

.about-page .about-content p {
  margin-bottom: 1.25rem;
}

.about-slogan {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--color-bg);
  border-radius: 12px;
  text-align: center;
}

.about-slogan em {
  display: block;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.about-slogan-text p {
  margin-bottom: 0;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* 荣誉资质 */
.honour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 0 5rem;
}

.honour-card {
  text-align: center;
  background: var(--color-bg);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  transition: box-shadow 0.3s;
}

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

.honour-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  overflow: hidden;
}

.honour-card .icon img {
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
}

.honour-card h3 {
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
}

.honour-section-title {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--color-primary-dark);
}

/* 新闻列表 */
.news-tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
}

.news-tabs a {
  font-size: 1rem;
  color: var(--color-text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
}

.news-tabs a.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.news-list-page {
  padding: 2rem 0 5rem;
}

.news-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.news-row .date {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.news-row .date small {
  display: block;
  font-size: 0.85rem;
}

.news-row h2 {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.75rem;
}

.news-row h2 a:hover {
  color: var(--color-primary);
}

.news-row .excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* 联系我们 */
.contact-page {
  padding: 3rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-block h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-block ul li {
  margin-bottom: 1.75rem;
}

.contact-info-block h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.contact-form-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form-block input,
.contact-form-block textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
}

.contact-form-block textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-block button {
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .case-list .case-img,
  .case-list .case-text {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .case-list li.reverse {
    flex-direction: column;
  }

  .product-grid-page {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .honour-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-row {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-grid-page,
  .honour-grid {
    grid-template-columns: 1fr;
  }

  .history-timeline {
    display: block;
    background: #fff;
  }

  .history-item {
    display: block;
    background: #fff;
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
  }

  .history-item .year,
  .history-item p {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: none;
    background: #fff;
  }

  .history-item .year {
    margin-bottom: 0.5rem;
  }

  .news-row .date {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.1rem;
  }

  .news-row .date small {
    display: inline;
    font-size: 1.25rem;
    font-weight: 300;
  }
}
