.header-mobile {
  height: var(--header-h);
}

@media (min-width: 1200px) {
  .header-mobile {
    display: none;
  }
}

/* 产品轮播「查看详情」按钮优化 */
.showcase__btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.showcase__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.showcase__btn .icon {
  transition: transform 0.3s var(--ease);
}

.showcase__btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.6);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.showcase__btn:hover::before {
  opacity: 1;
}

.showcase__btn:hover .icon {
  transform: translateX(4px);
}

.showcase__btn:active {
  transform: translateY(0) scale(0.98);
}

/* 产品轮播主题色：背景、图片光晕、右侧光斑 */
.showcase__theme--0 .showcase__media-bg { background: linear-gradient(135deg, #2563eb, #4338ca, #1e3a8a); }
.showcase__theme--0 .showcase__figure { box-shadow: 0 0 60px rgba(59, 130, 246, .25); }
.showcase__theme--0 .showcase__info-glow { background: #3b82f6; }

.showcase__theme--1 .showcase__media-bg { background: linear-gradient(135deg, #06b6d4, #0891b2, #2563eb); }
.showcase__theme--1 .showcase__figure { box-shadow: 0 0 60px rgba(6, 182, 212, .25); }
.showcase__theme--1 .showcase__info-glow { background: #06b6d4; }

.showcase__theme--2 .showcase__media-bg { background: linear-gradient(135deg, #9333ea, #a855f7, #ec4899); }
.showcase__theme--2 .showcase__figure { box-shadow: 0 0 60px rgba(168, 85, 247, .25); }
.showcase__theme--2 .showcase__info-glow { background: #a855f7; }

.showcase__theme--3 .showcase__media-bg { background: linear-gradient(135deg, #16a34a, #10b981, #84cc16); }
.showcase__theme--3 .showcase__figure { box-shadow: 0 0 60px rgba(16, 185, 129, .25); }
.showcase__theme--3 .showcase__info-glow { background: #10b981; }

.showcase__theme--4 .showcase__media-bg { background: linear-gradient(135deg, #ea580c, #f59e0b, #eab308); }
.showcase__theme--4 .showcase__figure { box-shadow: 0 0 60px rgba(245, 158, 11, .25); }
.showcase__theme--4 .showcase__info-glow { background: #f59e0b; }

.showcase__theme--5 .showcase__media-bg { background: linear-gradient(135deg, #dc2626, #f43f5e, #fb7185); }
.showcase__theme--5 .showcase__figure { box-shadow: 0 0 60px rgba(244, 63, 94, .25); }
.showcase__theme--5 .showcase__info-glow { background: #f43f5e; }

.showcase__theme--6 .showcase__media-bg { background: linear-gradient(135deg, #4f46e5, #6366f1, #8b5cf6); }
.showcase__theme--6 .showcase__figure { box-shadow: 0 0 60px rgba(99, 102, 241, .25); }
.showcase__theme--6 .showcase__info-glow { background: #6366f1; }

.showcase__theme--7 .showcase__media-bg { background: linear-gradient(135deg, #0d9488, #14b8a6, #22d3ee); }
.showcase__theme--7 .showcase__figure { box-shadow: 0 0 60px rgba(20, 184, 166, .25); }
.showcase__theme--7 .showcase__info-glow { background: #14b8a6; }


.i_three {
  overflow: hidden;
  padding-bottom: 4%;
  background: url(../images/c5.jpg) center -5px;
  display: none;
}
.i_three ul li {
  float: left;
  width: 49%;
  transition: all 0.3s;
  position: relative; /*background:url(../images/i_bg5.jpg) center center no-repeat;*/
  background-size: cover;
  margin-right: 2%;
  padding-top: 3%;
  padding-bottom: 3%;
  margin-bottom: 2%;
  overflow: hidden;
  background: rgba(241, 241, 241, 0.9);
}

.i_three ul li:nth-child(2n + 0) {
  margin-right: 0;
}
.i_three ul li .imgs {
  float: left;
  width: 51%;
  overflow: hidden;
  margin-left: 2%;
  height: 180px;
  background-size: 100%;
  background-position: center -33px;
}
.i_three ul li .imgs img {
  display: block;
  width: 100%;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition: all 0.3s ease-out 0s;
  -moz-transition: all 0.3s ease-out 0s;
  -o-transition: all 0.3s ease-out 0s;
  transition: all 0.3s ease-out 0s;
}
.i_three ul li:hover .imgs img {
  -webkit-transform: scale(1.1, 1.1);
  -moz-transform: scale(1.1, 1.1);
  -o-transform: scale(1.1, 1.1);
  -ms-transform: scale(1.1, 1.1);
  transform: scale(1.1, 1.1);
}
.i_three ul li .txts {
  width: 47%;
  overflow: hidden;
  float: right;
}
.i_three ul li .txts .cons {
  overflow: hidden;
  width: 94%;
  margin: 0 auto;
  max-width: 250px;
}
.i_three ul li .txts .h3 {
  font-weight: bold;
  height: 36px;
  line-height: 36px;
  overflow: hidden;
  color: #333333;
  font-size: 24px;
  margin-top: 1%;
}
.i_three ul li:hover .txts .h3 {
  color: rgba(6, 47, 209, 1);
}
.i_three ul li .txts .p {
  height: 52px;
  line-height: 52px;
  overflow: hidden;
  color: #666666;
  font-size: 16px;
  position: relative;
  margin-bottom: 8%;
}
.i_three ul li .txts .p:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #e0e0e0;
}
.i_three ul li .txts .imore2 {
  overflow: hidden;
  margin-top: 7%;
}
.i_three ul li .txts .imore2 .label {
  display: inline-block;
  height: 22px;
  line-height: 22px;
  color: #999999;
  font-size: 14px;
  padding-right: 15px;
  transition: all 0.3s;
  text-transform: uppercase;
  background: url(../images/i_bg6.png) right center no-repeat;
}
.i_three ul li:hover .txts .imore2 .label {
  color: rgba(6, 47, 209, 1);
  background-image: url(../images/i_bg6_on.png);
}
.i_three ul li .txts dl {
  overflow: hidden;
  min-height: 95px;
}
.i_three ul li .txts dl dd {
  display: block;
  max-height: 44px;
  overflow: hidden;
  line-height: 22px;
  margin-bottom: 7px;
  background: url(../images/i_bg7.png) left 8px no-repeat;
  padding-left: 19px;
  font-size: 16px;
  color: #333333;
}
.i_three ul li .txts dl dd a {
  font-size: 16px;
}
.i_three ul li .txts dl dd:last-child {
  margin-bottom: 0;
}
.i_three .pro_more {
  text-align: center;
  overflow: hidden;
  clear: both;
}

@media screen and (max-width: 992px) {
  .i_three {
    display: block;
  }
  .i_three ul li {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  .i_three ul li .txts .h3 {
    margin-top: 0;
    font-size: 16px;
    height: 24px;
    line-height: 24px;
  }
  .i_three ul li .txts dl dd {
    font-size: 12px;
    line-height: 20px;
    padding-left: 16px;
    background-position: left 6px;
  }
  .i_three ul li .txts .p {
    height: 10px;
    margin-bottom: 5%;
  }

  .index_legalize {
    display: none;
  }
}

/* 新闻资讯新布局：左图右列表 */
.news-layout {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "tabs" "featured" "panel";
  gap: 24px;
}

.news-tabs {
  grid-area: tabs;
  margin-bottom: 0;
}

.news-featured {
  grid-area: featured;
}

.news-panel {
  grid-area: panel;
}

/* 关键：防止子项被内部图片/长文本撑破容器导致横向溢出 */
.news-layout > * {
  min-width: 0;
}

/* 右侧标签与列表 */
.news-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

@media (min-width: 1024px) {
  .news-layout {
    grid-template-columns: 5fr 6fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "featured tabs" "featured panel";
    column-gap: 32px;
    row-gap: 0;
  }
  /* 右侧整体作为一张白色卡片，覆盖 tabs + list 两个区域 */
  .news-layout::before {
    content: '';
    grid-area: 1 / 2 / 3 / 3;
    z-index: -1;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .news-tabs {
    align-self: start;
    align-items: center;
    margin: 16px 28px 4px;
    border: 0;
  }
  .news-featured {
    grid-row: 1 / 3;
  }
  .news-panel {
    padding: 4px 28px 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .news-list {
    margin-top: 0;
  }
}

/* 左侧精选卡片 */
.news-featured {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.news-featured:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.news-featured__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.news-featured__image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.news-featured:hover .news-featured__image img {
  transform: scale(1.05);
}

.news-featured__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.news-featured__title {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.news-featured__date {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.news-featured__desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.news-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  /* margin-bottom: 24px; */
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
/* 标签切换：按分类过滤资讯内容，仅显示激活分类 */
.news-cat {
  display: none;
}
.news-cat.is-active {
  display: block;
}
/* 切换分类时改为左右滑入，不再使用上下动画 */
.news-cat.is-active .news-featured,
.news-cat.is-active .news-panel {
  animation: newsCatIn 0.4s var(--ease);
}
@keyframes newsCatIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

/* 隐藏面板内的入场动画元素强制可见，避免切到该面板时内容仍是透明 */
.news-cat .reveal { opacity: 1; transform: none; }

.news-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 72px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

/* 滑动指示块：随激活标签平滑移动 */
.news-tabs__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  z-index: 0;
  width: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s var(--ease), width 0.3s var(--ease);
  pointer-events: none;
}

.news-tab.is-active {
  color: #1e293b;
  background: transparent;
  box-shadow: none;
}

.news-tab:hover:not(.is-active) {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.news-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* margin-top: 16px; */
}

.news-list__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.news-list__item:last-child {
  border-bottom: 0;
}

.news-list__date {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.news-list__link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s var(--ease);
}

.news-list__link:hover {
  color: #60a5fa;
}

@media (max-width: 639px) {
  .news-layout {
    gap: 20px;
  }

  .news-featured__image {
    aspect-ratio: 2 / 1;
  }

  .news-featured__body,
  .news-panel {
    padding: 16px;
    border: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-top-left-radius: var(--radius-lg);
  }

  .news-featured__title {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .news-featured__date {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .news-featured__desc {
    font-size: 14px;
    line-height: 1.7;
  }

  .news-tabs {
    gap: 3px;
    padding: 3px;
    margin-bottom: 0;
  }

  .news-tabs__indicator {
    top: 3px;
    bottom: 3px;
  }

  .news-tab {
    min-width: 60px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .news-list__item {
    flex-wrap: nowrap;
    gap: 4px 10px;
    padding: 12px 0;
  }

  .news-list__date {
    font-size: 13px;
  }

  .news-list__link {
    flex-basis: auto;
    font-size: 14px;
  }
}


