/* ===== 基础重置 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #E60012;
  --red-dark: #CC0010;
  --blue: #1A458B;
  --blue-dark: #102A3E;
  --text: #333;
  --text-light: #888;
  --bg-light: #F5F5F5;
  --white: #fff;
  --header-h: 70px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-dark {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-dark:hover {
  background: #0d1f2d;
}

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1px solid #ddd;
  padding: 14px 60px;
  border-radius: 40px;
  font-size: 15px;
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.logo-mark-sm .logo-img {
  height: 36px;
}

.footer-logo .logo-mark {
  margin-right: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.logo-en {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  flex-shrink: 0;
}

.lang-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f5;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--red);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== Hero 轮播（1920×1080 / 16:9） ===== */
.hero {
  position: relative;
  margin-top: var(--header-h);
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 1080px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(16, 42, 62, 0.15) 0%,
    rgba(16, 42, 62, 0.35) 50%,
    rgba(16, 42, 62, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-text {
  text-align: center;
  margin-bottom: 0;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
  letter-spacing: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-icons {
  display: flex;
  gap: 24px;
}

.hero-icon-item {
  opacity: 0.85;
  transition: transform 0.3s;
}

.hero-icon-item:hover {
  transform: translateY(-4px);
}

.hero-indicator {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  z-index: 3;
  letter-spacing: 2px;
}

.hero-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.btn-hero {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  display: inline-block;
  margin-top: 0;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  border-radius: 24px;
  font-size: 14px;
  transition: 0.3s;
}

.btn-hero:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateX(-50%);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* ===== 公司简介 ===== */
.about {
  overflow: hidden;
}

.about-inner {
  display: flex;
  min-height: 480px;
}

.about-image {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
  background: #eef1f4;
  min-height: 480px;
}

.about-image img,
.about-image .wm-box,
.about-image .wm-box-img,
.about-image .wm-box-img > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-image .wm-box,
.about-image .wm-box-img {
  inset: 0;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 4px;
}

.about-content {
  flex: 1;
  background: var(--red);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.03) 20px,
    rgba(255, 255, 255, 0.03) 40px
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}

.about-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}

.about-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 2;
  margin-bottom: 36px;
  white-space: pre-line;
}

body.subpage .about-page .about-desc {
  font-size: 15px;
  line-height: 1.9;
  max-width: 720px;
}

/* ===== 通用区块 ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 16px 8px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-light);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  line-height: 1.9;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow: visible;
  display: block;
  text-align: center;
  padding-bottom: 4px;
}

.cases .h-carousel,
.news .h-carousel {
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.section-more {
  text-align: center;
  margin-top: 50px;
}

.section-more-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
}

.section-more-link:hover {
  text-decoration: underline;
}

.about-actions {
  margin-top: 20px;
}

.btn-light {
  background: var(--white);
  color: var(--red);
  border: none;
}

.btn-light:hover {
  background: #fff;
  opacity: 0.92;
}

/* ===== 产品中心 ===== */
.products {
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.product-card {
  text-align: center;
}

.product-img {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 4/3;
  background: #f5f6f8;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 11px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 3px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-detail-btn {
  display: inline-block;
  background: none;
  border: 1px solid #ddd;
  color: var(--text);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.product-detail-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background: var(--white);
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
  color: var(--text);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 40px;
}

/* ===== 成功案例（轮播逻辑同新闻中心，仅展示图片） ===== */
.cases {
  background: var(--white);
}

.cases-grid {
  display: flex;
  gap: 0;
  max-width: none;
  margin: 0;
  align-items: stretch;
}

#cases-carousel .h-carousel-viewport {
  overflow: hidden;
  height: auto;
}

.case-item,
.case-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: none;
  transition: transform 0.3s;
  cursor: pointer;
  box-sizing: border-box;
  background: transparent;
  height: auto;
}

.case-card:hover {
  transform: translateY(-4px);
}

/* 三张卡片统一尺寸，图片填充铺满 */
.case-thumb,
.case-thumb.wm-box {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  border-radius: 4px;
  background: #eef1f4;
  border: none;
  box-sizing: border-box;
}

.case-thumb .wm-box-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.case-thumb img,
.case-thumb .wm-box-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #eef1f4;
}

.h-carousel {
  position: relative;
  padding: 0 64px;
}

.h-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.h-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 40px;
  transition: transform 0.55s ease;
  will-change: transform;
}

.h-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 42, 62, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.h-carousel-arrow:hover {
  background: var(--red, #e60012);
}

.h-carousel-arrow.prev { left: 8px; }
.h-carousel-arrow.next { right: 8px; }

/* ===== 新闻中心 ===== */
.news {
  background: var(--white);
}

.news-list {
  display: flex;
  gap: 0;
  max-width: none;
  margin: 0;
}

.news-item,
.news-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 10px;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-sizing: border-box;
}

.news-item:first-child {
  border-top: none;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-thumb {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #eef1f4;
}

.news-thumb img,
.news-thumb .wm-box,
.news-thumb .wm-box-img,
.news-thumb .wm-box-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-body {
  flex: 1;
  padding: 16px 14px 18px;
  background: #f7f8fa;
  border-radius: 0 0 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.news-date {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-align: left;
  border: none;
  padding: 0;
  order: -1;
}

.news-day {
  display: inline;
  font-size: 22px;
  font-weight: 600;
  color: var(--red, #e60012);
  line-height: 1;
}

.news-month {
  display: inline;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 0;
}

.qq-number-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 18px;
}

.qq-number-list .qq-number {
  margin: 0;
}

.inquiry-form-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  text-align: left;
}

.inquiry-form-wrap h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.inquiry-modal-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inquiry-modal-form input,
.inquiry-modal-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

.inquiry-modal-form button {
  margin-top: 4px;
}

@media (max-width: 991px) {
  .h-carousel { padding: 0 28px; }
}

@media (max-width: 639px) {
  .h-carousel { padding: 0 24px; }
  .news-thumb { height: auto; aspect-ratio: 16 / 10; }
}

/* ===== 联系我们 ===== */
.contact {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue-dark);
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 62, 0.82);
}

.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.contact-subtitle,
.contact-address-line {
  font-size: 18px;
  color: #ffffff;
  margin: 0 auto 14px;
  max-width: 960px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.contact-info-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 8px;
}

.contact-info-item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
  white-space: nowrap;
}

.contact-info-item:hover {
  color: var(--white);
}

.contact-phones-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.contact-phone-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
}

.contact-phone-link:hover {
  color: var(--white);
}

.contact-info-sep {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px 28px;
  backdrop-filter: blur(8px);
}

.contact-form-title {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 6px;
}

.contact-form-tip {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-bottom: 24px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-bottom: 6px;
}

.form-group label em {
  color: #FF6B6B;
  font-style: normal;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  transition: 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--red-dark);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.footer-nav a:hover {
  color: var(--red);
}

.footer-nav span {
  color: #ccc;
}

.footer-qr {
  display: flex;
  gap: 20px;
}

.qr-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ddd;
  background: #fff;
}

.qr-code {
  width: 80px;
  height: 80px;
  background:
    linear-gradient(45deg, #333 25%, transparent 25%),
    linear-gradient(-45deg, #333 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #333 75%),
    linear-gradient(-45deg, transparent 75%, #333 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-color: #fff;
  border: 1px solid #ddd;
}

.qr-item span {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

.footer-icp {
  margin-top: 6px;
  font-size: 12px;
}

.footer-icp a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-phones {
  display: none !important;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* ===== 右侧浮动栏 ===== */
.sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 64px;
  background: var(--red);
  display: flex;
  flex-direction: column;
  border-radius: 4px 0 0 4px;
  overflow: hidden;
  box-shadow: -2px 0 12px rgba(230, 0, 18, 0.3);
}

/* 右侧浮动栏叠在内容上，不再给 body 留白边 */

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  color: var(--white);
  font-size: 11px;
  transition: background 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item:hover {
  background: var(--red-dark);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    padding: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .about-inner {
    flex-direction: column;
  }

  .about-image {
    flex: none;
    height: 300px;
  }

  .about-content {
    padding: 40px 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-content {
    align-items: center;
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .btn-hero {
    bottom: 72px;
  }

  .hero-icons {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .modal-detail {
    grid-template-columns: 1fr;
  }

  .news-item,
  .news-card {
    flex-direction: column;
    text-align: left;
  }

  .news-thumb {
    flex: none;
    width: 100%;
  }

  .contact-info-bar {
    gap: 12px 16px;
  }

  .contact-info-sep {
    display: none;
  }

  .contact-info-item {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .sidebar {
    display: none;
  }

  body {
    padding-right: 0 !important;
  }

  .header {
    width: 100% !important;
  }

}

@media (max-width: 480px) {
  .section-title {
    font-size: 26px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
  }
}

/* ===== 弹窗 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal.open .modal-dialog {
  transform: translateY(0);
}

.modal-dialog-lg { max-width: 800px; }
.modal-dialog-sm { max-width: 360px; text-align: center; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 32px; }

.modal-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.modal-detail-vertical {
  grid-template-columns: 1fr;
}

.modal-detail-img {
  background: #f5f6f8;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-detail-img img,
.modal-full-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f3f6f8;
}

.modal-product-video {
  margin: 12px 0 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.modal-product-video video {
  display: block;
  width: 100%;
  max-height: 280px;
}

.modal-detail-content h3,
.modal-detail-vertical h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.modal-tag {
  display: inline-block;
  background: #f5f5f5;
  color: var(--text-light);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.spec-list {
  list-style: none;
  margin: 16px 0 24px;
}

.spec-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px dashed #eee;
}

.spec-list li::before {
  content: '•';
  color: var(--red);
  margin-right: 8px;
}

.news-modal-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-modal-content {
  font-size: 14px;
  line-height: 2;
  color: #555;
  margin-top: 16px;
}

.qq-modal-body { padding: 40px 32px; }

.qq-icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 16px;
}

.qq-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 24px;
  letter-spacing: 2px;
}

.phone-modal-body { padding: 40px 32px; text-align: center; }

.phone-modal-icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.phone-number-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 24px;
}

.phone-number-item {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.phone-number-item:hover {
  background: #f5f5f5;
  color: var(--red);
}

body.modal-open { overflow: hidden; }

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.3s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { background: #2e7d32; }
.toast-error { background: #c62828; }

/* ===== 首页水印 ===== */
.wm-box {
  position: relative;
}

.wm-box-img {
  display: block;
  width: 100%;
  height: 100%;
}

.wm-box-img > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wm-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.hero-slide.wm-box .wm-layer {
  z-index: 3;
}

#contact-bg.wm-box .wm-layer {
  z-index: 2;
}

.wm-corner {
  position: absolute;
  opacity: var(--wm-opacity, 0.35);
  line-height: 1.2;
  max-width: 45%;
  word-break: break-all;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.wm-corner.wm-text {
  color: var(--wm-color, #fff);
  font-size: var(--wm-font-size, 14px);
  font-weight: 600;
  white-space: nowrap;
}

.wm-corner img {
  width: var(--wm-img-size, 48px);
  height: auto;
  display: block;
  object-fit: contain;
}

.wm-tl { top: var(--wm-offset, 12px); left: var(--wm-offset, 12px); }
.wm-tr { top: var(--wm-offset, 12px); right: var(--wm-offset, 12px); text-align: right; }
.wm-bl { bottom: var(--wm-offset, 12px); left: var(--wm-offset, 12px); }
.wm-br { bottom: var(--wm-offset, 12px); right: var(--wm-offset, 12px); text-align: right; }

.wm-tr img,
.wm-br img {
  margin-left: auto;
}

.about-image.wm-box,
.product-img.wm-box,
.news-thumb.wm-box {
  overflow: hidden;
}

.case-thumb.wm-box {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: auto;
  position: relative;
}

.cases .case-thumb .wm-box-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cases .case-thumb .wm-box-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== 产品详情页 ===== */
body.product-page {
  background: #f7f9fb;
}

.product-detail-page {
  padding: calc(var(--header-h) + 32px) 0 80px;
  min-height: 60vh;
}

.product-breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.product-breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}

.product-breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.product-loading,
.product-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
  font-size: 16px;
}

.product-error {
  color: var(--red);
}

.product-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 上半区单独成盒：sticky 只在此区域内生效，不会盖住下方规格图 */
.product-detail-top {
  display: grid;
  grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.product-detail-layout.has-specs-image .product-detail-top {
  grid-template-columns: minmax(300px, 34%) minmax(0, 1fr);
}

.product-specs-panel {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 22px 24px 28px;
  position: relative;
  z-index: 2;
}

.product-specs-panel .product-detail-specs-title {
  margin-bottom: 14px;
  font-size: 18px;
}

.product-detail-sidebar {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: calc(var(--header-h) + 24px);
  z-index: 1;
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}

.product-detail-image-wrap {
  aspect-ratio: 4 / 3;
  background: #f5f6f8;
  overflow: hidden;
}

.product-detail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f3f6f8;
}

.product-detail-info {
  padding: 20px 22px 24px;
}

.product-detail-tag {
  display: inline-block;
  background: rgba(230, 0, 18, 0.08);
  color: var(--red);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-detail-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-detail-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-detail-specs-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-detail-info .spec-list {
  margin-bottom: 24px;
}

.product-inquiry-btn {
  display: block;
  width: 100%;
  text-align: center;
}

.product-detail-article {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.product-article-header {
  padding: 18px 22px 0;
  border-bottom: 1px solid #eee;
}

.product-article-header h2 {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 12px;
}

.product-article-video {
  margin: 0 0 20px;
  padding: 0 22px;
  border-radius: 0;
}

.product-article-video video {
  display: block;
  width: 100%;
  max-height: 480px;
  background: #000;
  border-radius: 8px;
}

.product-video-panel {
  margin-top: 28px;
  padding: 22px 24px 28px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.product-showcase-video {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.product-showcase-video video {
  display: block;
  width: 100%;
  max-height: 560px;
  background: #000;
}

.product-article-body {
  padding: 20px 22px 28px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  overflow-x: hidden;
  max-width: 100%;
}

.product-article-empty {
  padding: 60px 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 1.2em 0 0.6em;
  font-weight: 700;
  line-height: 1.4;
}

.rich-content h1 { font-size: 1.6em; }
.rich-content h2 { font-size: 1.4em; }
.rich-content h3 { font-size: 1.2em; }

.rich-content ul,
.rich-content ol {
  margin: 0 0 1em 1.5em;
}

.rich-content li {
  margin-bottom: 0.4em;
}

.rich-content img,
.rich-content video,
.rich-content iframe {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 1em auto;
  display: block;
  float: none !important;
  position: static !important;
  clear: both;
}

.rich-content img {
  object-fit: contain;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  aspect-ratio: auto;
  background: #f3f6f8;
}

.rich-content video {
  width: 100% !important;
  max-height: 560px;
  background: #000;
}

.rich-content iframe {
  width: 100% !important;
  min-height: 280px;
  aspect-ratio: 16 / 9;
}

.rich-content figure {
  margin: 1em 0;
  max-width: 100%;
  float: none !important;
  clear: both;
}

.rich-content figure img,
.rich-content figure video {
  margin: 0 auto;
}

.rich-content p {
  margin-bottom: 1em;
  clear: both;
  overflow: visible;
}

.rich-content p img,
.rich-content p video {
  margin: 0.6em auto;
  float: none !important;
}

.rich-content blockquote {
  margin: 1em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--red);
  background: #fafafa;
  color: var(--text-light);
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.rich-content th,
.rich-content td {
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  text-align: left;
}

.rich-content th {
  background: #f5f5f5;
  font-weight: 600;
}

.rich-content a {
  color: var(--red);
  text-decoration: underline;
}

.footer-compact {
  margin-top: 0;
}

.footer-compact .footer-bottom {
  border-top: 1px solid #eee;
}

@media (max-width: 1024px) {
  .product-detail-top,
  .product-detail-layout.has-specs-image .product-detail-top {
    grid-template-columns: 1fr;
  }

  .product-detail-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .product-article-body,
  .product-article-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.back-to-top:hover {
  background: var(--red-dark);
}

/* ===== 滚动入场 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed,
body[data-page="home"] .reveal {
  opacity: 1;
  transform: translateY(0);
}

.case-item { cursor: pointer; }

.detail-meta-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-item { cursor: pointer; }

/* 详情页多图轮播 */
.detail-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f6f8;
  overflow: hidden;
}

.detail-gallery-track {
  width: 100%;
  height: 100%;
}

.detail-gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.detail-gallery-slide.active {
  display: flex;
}

.detail-gallery-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f3f6f8;
}

.detail-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.detail-gallery-arrow.prev { left: 10px; }
.detail-gallery-arrow.next { right: 10px; }

.detail-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.detail-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}

.detail-gallery-dot.active {
  background: #fff;
}

.specs-image-wrap {
  margin: 0;
  padding: 16px;
  background: #f5f6f8;
  border-radius: 10px;
  border: 1px solid #e8eaed;
}

.specs-image-wrap img {
  width: 100%;
  min-height: 0;
  max-height: none;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  background: #fff;
  cursor: zoom-in;
}

.specs-zoom-tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

/* 规格图全宽放大层（点击查看） */
.specs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.specs-lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.product-inquiry-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.inquiry-modal-tip {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.inquiry-contact-list {
  text-align: left;
  margin-bottom: 20px;
}

.inquiry-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.inquiry-row > span:first-child {
  width: 64px;
  flex-shrink: 0;
  color: var(--text-light);
  font-weight: 600;
}

.inquiry-label-sales {
  color: var(--text) !important;
  font-weight: 700 !important;
}

.inquiry-row a {
  color: var(--red);
}

.inquiry-multi {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inquiry-line em {
  font-style: normal;
  color: var(--text);
  margin-right: 2px;
  font-weight: 600;
}

.contact-info-item .contact-label,
.phone-sales-label {
  font-weight: 600;
  margin-right: 2px;
}

.phone-sales-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  justify-content: center;
  margin-bottom: 8px;
}

.contact-info-bar {
  flex-wrap: wrap;
  row-gap: 10px;
}

.case-overlay .case-btn {
  display: inline-block;
}

/* ===== 独立栏目页 ===== */
body.subpage {
  padding-right: 0 !important;
  background: #fff;
}

body.subpage .header {
  width: 100% !important;
}

body.subpage .back-to-top {
  right: 24px;
}

.page-banner {
  background: linear-gradient(135deg, #1a2a3a 0%, #2c4055 100%);
  padding: 120px 0 72px;
  color: #fff;
}

.page-banner-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}

.page-breadcrumb {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.page-breadcrumb a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.subpage-main {
  min-height: 60vh;
}

.about-page .about-inner {
  min-height: 560px;
}

.about-page .about-image {
  min-height: 560px;
}

.about-page .about-image img {
  object-fit: cover;
  object-position: center;
}

.contact-page {
  min-height: 70vh;
}

body.subpage .sidebar {
  /* 独立页侧栏不额外撑出右侧白边 */
}

@media (max-width: 768px) {
  .page-banner {
    padding: 96px 0 40px;
    min-height: 280px;
  }
  .page-banner-title {
    font-size: 22px;
  }
  .about-page .about-inner,
  .about-page .about-image {
    min-height: 0;
  }
}


.page-banner {
  border-bottom: 4px solid #e60012;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #1a2a3a;
  position: relative;
  /* 加高到约图2标记位置 */
  min-height: 420px;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
}
.page-banner > .container {
  width: 100%;
  padding-top: 8px;
}
.page-banner.has-image { background-color: #1a2a3a; }
.page-breadcrumb,
.page-banner-title {
  display: none !important;
}
.page-banner-mark {
  display: inline-block;
  margin-bottom: 0;
  padding: 10px 18px;
  background: #e60012;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  max-width: min(520px, 92%);
  word-break: break-word;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(230, 0, 18, 0.25);
}

/* 联系页/首页底部：左联系方式竖排 + 右办事处（等高对齐） */
.contact-page .contact-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 16px 28px;
  align-items: stretch;
  max-width: 1120px;
  margin: 12px auto 10px;
  text-align: left;
}
.contact-page .contact-split-left,
.contact-page .contact-split-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.contact-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.contact-panel-info .contact-info-bar,
.contact-panel-offices .contact-offices-grid,
.contact-panel-offices .office-grid {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
}
.contact-info-vertical {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
}
.contact-info-vertical .contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  white-space: normal;
  text-align: left;
  padding: 4px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.25s, transform 0.25s;
  line-height: 1.2;
}
.contact-info-vertical .contact-info-item:first-child { padding-top: 0; }
.contact-info-vertical .contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.contact-info-vertical .contact-info-item:hover {
  color: #fff;
  transform: translateX(4px);
}
.contact-info-vertical .contact-phone-link { text-decoration: none; color: inherit; }
.contact-info-vertical .contact-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.4px;
  line-height: 1.2;
}
.contact-info-vertical .contact-value {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.contact-offices-heading { display: none !important; }
/* 有无办事处内容，右侧面板都保持与左侧同高（由 stretch + height:100% 保证） */
.contact-panel-offices,
.contact-offices-grid,
.office-grid {
  min-height: 0;
}
@media (max-width: 768px) {
  .contact-page .contact-split {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    min-height: 160px;
    height: auto;
  }
}

/* ===== 独立页平铺内容 ===== */
body.subpage .news-list,
body.subpage .cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: none;
  margin: 0;
}

body.subpage .news-item,
body.subpage .news-card,
body.subpage .case-item,
body.subpage .case-card {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e8edf1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 42, 62, 0.06);
}

body.subpage .news-thumb,
body.subpage .case-thumb {
  border-radius: 0;
}

body.subpage .news-thumb img,
body.subpage .case-thumb img {
  object-fit: contain;
  background: #f3f6f8;
}

body.subpage .news-card:hover,
body.subpage .case-card:hover {
  box-shadow: 0 12px 28px rgba(16, 42, 62, 0.12);
}

body.subpage .case-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}

body.subpage .case-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

body.subpage .case-tag {
  margin: 0;
  color: var(--red);
  font-size: 12px;
}

body.subpage .case-desc {
  margin: 0;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.subpage .case-more {
  margin-top: 4px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

/* ===== 公司简介：服务领域与地图 ===== */
.about-services { background: #f7f9fb; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  position: relative;
  min-height: 150px;
  padding: 24px 22px 20px;
  background: #fff;
  border: 1px solid #e7edf1;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(16, 42, 62, 0.05);
}
.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.service-card h3 { margin: 0 0 8px; font-size: 17px; }
.service-card p { margin: 0; color: var(--text-light); font-size: 13px; line-height: 1.75; }
.about-location { background: #fff; }
.about-location-grid {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.7fr);
  gap: 42px;
  align-items: stretch;
}
.location-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.location-copy .section-title { margin-bottom: 16px; }
.location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.map-external-link { color: var(--blue); font-size: 14px; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }
.map-external-link:hover { color: var(--red); }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.location-address { margin: 0 0 24px; color: var(--text-light); font-size: 15px; line-height: 1.8; }
.map-frame-wrap { min-height: 330px; overflow: hidden; border-radius: 6px; background: #edf2f5; box-shadow: 0 8px 24px rgba(16, 42, 62, 0.08); position: relative; }
.map-frame-wrap iframe,
.about-map-canvas { display: block; width: 100%; height: 330px; min-height: 330px; border: 0; }
.about-map-canvas { background: #dce6ee; }

body.subpage .about-page .about-image {
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
}
body.subpage .about-page .about-image img,
body.subpage .about-page .about-image .wm-box,
body.subpage .about-page .about-image .wm-box-img,
body.subpage .about-page .about-image .wm-box-img > img {
  object-fit: contain;
  background: #f3f6f8;
}

@media (max-width: 900px) {
  body.subpage .news-list,
  body.subpage .cases-grid,
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-location-grid { grid-template-columns: 1fr; gap: 24px; }
  .location-copy { align-items: center; text-align: center; }
}

@media (max-width: 600px) {
  body.subpage .news-list,
  body.subpage .cases-grid,
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  body.subpage .news.section,
  body.subpage .cases.section,
  .about-services.section,
  .about-location.section { padding: 56px 0; }
  .map-frame-wrap, .map-frame-wrap iframe, .about-map-canvas { min-height: 270px; height: 270px; }
}

/* ===== 内容图片完整自适应 ===== */
.about-image img,
.about-image .wm-box-img > img,
.product-img img,
.case-thumb img,
.case-thumb .wm-box-img > img,
.news-thumb img,
.news-thumb .wm-box-img > img {
  object-fit: contain;
  background: #f3f6f8;
}

/* ===== 列表分页 ===== */
.site-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 8px;
  min-height: 38px;
}
.site-pagination[hidden] { display: none; }
.site-pagination button {
  min-width: 84px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d8e0e6;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.site-pagination button:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.site-pagination button:disabled {
  color: #a9b1b8;
  background: #f5f7f8;
  cursor: not-allowed;
}
.site-pagination-info {
  min-width: 92px;
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
}

/* 首页新闻/案例：一行轮播（不要强制网格平铺） */

/* 联系页/首页的全国办事处 */
.contact-offices {
  max-width: 1120px;
  margin: 38px auto 26px;
}
.contact-offices-heading {
  margin-bottom: 18px;
  text-align: center;
}
.contact-offices-heading h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
}
.contact-offices-heading p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}
.contact-page .office-grid,
.contact-page .contact-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  align-items: start;
  box-sizing: border-box;
}
.office-card {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  text-align: left;
}
.office-card-index {
  display: block;
  margin-bottom: 4px;
  color: #ffccd0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}
.office-card-address {
  display: block;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.office-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .office-grid { grid-template-columns: 1fr; gap: 16px; }
  .site-pagination { margin-top: 28px; }
  .site-pagination button { min-width: 76px; }
  .contact-offices { margin-top: 30px; }
}

.about-image:hover img,
.product-card:hover .product-img img,
.case-card:hover .case-thumb img,
.news-card:hover .news-thumb img {
  transform: none;
}
