/* mweb/css/index.css
   首页样式：对照小程序 pages/index/index.wxss（rpx → px 按 1rpx=0.5px 换算）
   品牌色：主蓝 #166BC7 / 金 #f8b823 / 深蓝 #1a3a5c / 深字 #1a1a1a / 浅底 #f5f7fa */

.page-app.page-index {
  background: #f5f7fa;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 0;
}

/* ============ Banner ============ */
.ind-banner {
  position: relative;
  width: 100%;
  height: 220px; /* 441rpx，PC端1920*700 等比换算 */
}
.banner-swiper, .banner-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}
.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.banner-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.banner-bg--ph {
  background: linear-gradient(120deg, #0d5a9c 0%, #166BC7 55%, #38a0dc 100%);
  height: 100%;
}
.ph-1 { background: linear-gradient(120deg, #1a3a5c 0%, #2c5f8d 60%, #166BC7 100%); }
.ph-2 { background: linear-gradient(120deg, #166BC7 0%, #0b308e 100%); }

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}
.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.25s;
}
.banner-dot.active {
  width: 18px;
  border-radius: 4px;
  background: #f8b823;
}

/* ============ 新闻滚动条 ============ */
.hot-search { background: #ffffff; }
.nt-inner {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 15px;
  gap: 10px;
}
.nt-label {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #166BC7;
  letter-spacing: 1px;
}
.nt-divider {
  flex-shrink: 0;
  width: 1px;
  height: 18px;
  background: #e5e7eb;
}
.nt-swiper-wrap { flex: 1; min-width: 0; height: 48px; }
.nt-swiper { height: 48px; }
.nt-title {
  height: 48px;
  line-height: 48px;
  font-size: 13px;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.nt-date { flex-shrink: 0; font-size: 11px; color: #999999; }

/* ============ 通用标题行 ============ */
.sec-title-row {
  padding: 32px 16px 4px;
  text-align: center;
}
.sec-deco {
  font-size: 12px;
  letter-spacing: 4px;
  color: #f8b823;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.sec-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a5c;
}
.sec-title .accent { color: #166BC7; }
.sec-subtitle {
  margin-top: 5px;
  font-size: 12px;
  color: #999999;
}

/* ============ 产品分类 ============ */
.pc-section {
  background: #ffffff;
  padding: 10px 12px 32px;
}
.pc-title-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 4px 12px;
}
.pc-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a5c;
}
.pc-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #166BC7, #f8b823);
  margin-top: 6px;
}
.pc-search { display: flex; gap: 8px; }
.pc-search-input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
}
.pc-search-input::placeholder { color: #bbbbbb; }
.pc-search-btn {
  flex-shrink: 0;
  width: 70px;
  height: 38px;
  line-height: 38px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 19px;
  background: #166BC7;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* 分类 4 列网格 */
.pc-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 0 18px;
}
.pc-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 75px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
}
.pc-tab.active {
  background: #166BC7;
  border-color: #166BC7;
  box-shadow: 0 3px 10px rgba(0, 116, 188, 0.15);
}
.pc-tab-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
.pc-tab.active .pc-tab-icon {
  filter: brightness(0) invert(1);
}
.pc-tab-label {
  font-size: 12px;
  color: #1a3a5c;
  text-align: center;
}
.pc-tab.active .pc-tab-label {
  color: #ffffff;
  font-weight: 600;
}
/* 图标占位（四色循环） */
.ph-icon { background: linear-gradient(135deg, #166BC7, #38a0dc); }
.ph-icon-1 { background: linear-gradient(135deg, #1a3a5c, #2c5f8d); }
.ph-icon-2 { background: linear-gradient(135deg, #f8b823, #f5a623); }
.ph-icon-3 { background: linear-gradient(135deg, #0b308e, #166BC7); }

/* ========= 内容面板：上下垂直布局，图片在上文字在下 ========= */
.pc-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 12px;
  border-radius: 10px;
  background: #ffffff;
}
.pc-right {
  width: 100%;
  display: flex;
  justify-content: center;
}
.pc-img {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  background: #e5e7eb;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.pc-img.pc-img--ph {
  width: 100%;
  height: 170px;
}
.pc-left { width: 100%; }
.pc-name {
  font-size: 24px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 10px;
}
.pc-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 15px;
}
.pc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 15px;
}
.pc-link {
  width: calc(50% - 10px);
  display: flex;
  align-items: center;
  cursor: pointer;
}
.pc-link-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #166BC7;
  margin-right: 5px;
  flex-shrink: 0;
}
.pc-link-text {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 了解更多按钮 */
.pc-more {
  width: 120px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid #999;
  color: #333333;
  font-size: 14px;
  margin: 0 auto;
  cursor: pointer;
}
.pc-more:hover { color: #166BC7; border-color: #166BC7; }

.ph-cat-0 { background: linear-gradient(160deg, #166BC7, #38a0dc); }
.ph-cat-1 { background: linear-gradient(160deg, #1a3a5c, #2c5f8d); }
.ph-cat-2 { background: linear-gradient(160deg, #f8b823, #f5a623); }
.ph-cat-3 { background: linear-gradient(160deg, #0b308e, #166BC7); }

/* ============ 应用领域（圆形网格） ============ */
.af-section {
  padding: 32px 12px;
  background-color: #f5f7fa;
}
.af-tabs-wrap { margin: 20px 0; }
.af-tabs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 18px 10px;
}
.af-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.af-tab-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e5ec;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.24s ease;
}
.af-tab-item.active .af-tab-circle {
  background-color: #166BC7;
  border-color: #166BC7;
}
.af-tab-circle-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
/* 图标占位 */
.af-tab-circle-icon.ph-icon { border-radius: 6px; }
.af-tab-item.active .af-tab-circle-icon { filter: brightness(0) invert(1); }
.af-tab-item-label {
  font-size: 14px;
  color: #333;
  text-align: center;
}
.af-tab-item.active .af-tab-item-label {
  color: #166BC7;
  font-weight: 600;
}

/* ---- 应用领域卡片横向滚动 ---- */
.app-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.app-scroll-wrap::-webkit-scrollbar { display: none; }
.app-slide-box { display: flex; }
.app-slide-item {
  flex-shrink: 0;
  width: 100%;
  padding: 0 12px;
}
.af-card {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(26, 58, 92, 0.1);
}
.af-card-image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: block;
}
.af-card-image--ph { background: linear-gradient(135deg, #166BC7, #0b308e); }
.ph-app-1 { background: linear-gradient(135deg, #1a3a5c, #166BC7); }
.ph-app-2 { background: linear-gradient(135deg, #2c5f8d, #38a0dc); }
.af-card-body {
  padding: 14px 16px 16px;
  overflow-x: hidden;
}
.af-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 10px;
}
.af-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.af-card-tag {
  padding: 4px 11px;
  border-radius: 12px;
  background: #eef6fc;
  color: #166BC7;
  font-size: 12px;
  cursor: pointer;
}
.af-card-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ============ 走进凌讯 ============ */
.alx-section {
  background: #ffffff;
  padding-bottom: 32px;
}
.alx-pc-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
}
.pc-tab-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 8px;
  border-radius: 12px;
  background-color: #f5f7fa;
  color: #333333;
  cursor: pointer;
  user-select: none;
}
.pc-tab-item.active {
  background-color: #166BC7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 116, 188, 0.18);
}
.tab-icon {
  width: 36px;
  height: 36px;
  position: relative;
  flex-shrink: 0;
}
.tab-icon .tab-icon-ph {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
.pc-tab-item.active .tab-icon .tab-icon-ph { filter: brightness(0) invert(1); }
.tab-text {
  font-size: 14px;
  font-weight: 500;
}

/* ========= type=1 公司介绍面板 ========= */
.alx-panel-1 { padding: 0 16px; }
.alx-main-title { margin-bottom: 16px; }
.alx-main-title .alx-main-title-text {
  font-size: 19px;
  font-weight: 700;
  color: #166BC7;
}
.alx-title-line {
  width: 110px;
  height: 4px;
  background-color: #166BC7;
  border-radius: 2px;
  margin-top: 8px;
}
.alx-desc-wrap {
  font-size: 14px;
  line-height: 1.85;
  color: #555555;
  margin-bottom: 20px;
}
.alx-more-btn {
  display: inline-block;
  background-color: #166BC7;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  margin-bottom: 20px;
  cursor: pointer;
}
.alx-video-wrap {
  width: 100%;
  margin-bottom: 20px;
}
/* 企业宣传片视频 */
.alx-main-video {
  display: block;
  width: 100%;
  height: 260px;
  border-radius: 10px;
  background: #000000;
  object-fit: cover;
}
.video-tip {
  margin-top: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

/* 底部统计栏 */
.alx-stat-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid #166BC7;
  border-radius: 10px;
  padding: 14px 4px;
  background: #ffffff;
}
.alx-stat-cell {
  width: 33.33%;
  text-align: center;
  padding: 5px 4px;
}
.alx-stat-big {
  font-size: 19px;
  font-weight: 700;
  color: #166BC7;
  white-space: nowrap;
}
.alx-stat-unit { font-size: 14px; }
.alx-stat-small {
  font-size: 11px;
  color: #666666;
  margin-top: 4px;
}
@media (max-width: 340px) {
  .alx-stat-cell { width: 50%; }
  .alx-stat-big { font-size: 17px; }
  .alx-stat-small { font-size: 10px; }
}

/* ========== type=2 图片轮播面板 ========== */
.alx-gallery-panel { padding: 0 12px; }
.alx-gallery-swiper { height: 270px; }
.alx-gallery-item { width: 100%; height: 100%; cursor: pointer; }
.alx-gallery-img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: block;
}
.alx-gallery-img--ph { background: linear-gradient(135deg, #1a3a5c, #2c5f8d); }
.alx-gallery-img--ph.ph-g1 { background: linear-gradient(135deg, #166BC7, #38a0dc); }
.alx-gallery-img--ph.ph-g2 { background: linear-gradient(135deg, #0b308e, #166BC7); }
.alx-gallery-info { padding: 8px 4px; }
.alx-gallery-title {
  font-size: 14px;
  font-weight: bold;
  color: #1a3a5c;
}
.alx-gallery-desc {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  line-height: 1.6;
}

/* ========== type=3 富文本面板 ========== */
.alx-rich-panel { padding: 0 16px 10px; }
.alx-rich-panel .rich-text {
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}
.alx-rich-panel .rich-text p { margin: 0 0 10px; }

/* ============ 新闻资讯 ============ */
.ni-section { padding-bottom: 24px; }
.ni-tabs-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ni-tabs-scroll::-webkit-scrollbar { display: none; }
.ni-tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 12px 16px;
}
.ni-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
  padding: 5px 18px;
  min-height: 32px;
  border-radius: 16px;
  font-size: 13px;
  color: #333333;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  user-select: none;
}
.ni-tab.active {
  background: #166BC7;
  border-color: #166BC7;
  color: #ffffff;
  font-weight: 600;
}

/* 头条/列表新闻卡片整卡外链：<a> 标签保持原 <div> 布局并去除链接默认样式 */
a.ni-feature { display: block; color: inherit; text-decoration: none; }
a.ni-item { display: flex; color: inherit; text-decoration: none; }

/* 头条大卡 */
.ni-feature {
  margin: 0 12px 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 58, 92, 0.08);
  cursor: pointer;
}
.ni-feature-img {
  position: relative;
  width: 100%;
  height: 222px;
  background: #e5e7eb;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.ni-feature-img--ph { background: linear-gradient(135deg, #166BC7, #1a3a5c); }
.ni-feature-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f8b823;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}
.ni-feature-body { padding: 12px 14px 14px; }
.ni-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ni-feature-desc {
  margin-top: 6px;
  font-size: 12px;
  color: #666666;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 新闻列表 */
.ni-list {
  margin: 0 12px;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}
.ni-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
}
.ni-item:last-child { border-bottom: none; }
.ni-item-main { flex: 1; min-width: 0; }
.ni-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ni-item-desc {
  margin-top: 4px;
  font-size: 12px;
  color: #999999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ni-item-date {
  flex-shrink: 0;
  width: 55px;
  text-align: center;
  border-left: 1px solid #f0f2f5;
  padding-left: 10px;
}
.ni-item-month {
  font-size: 11px;
  color: #999999;
}
.ni-item-day {
  font-size: 22px;
  font-weight: 700;
  color: #166BC7;
  line-height: 1.2;
}
