/* ====================================================================
   index.css - 合并站点布局与 Banner 样式（可读性优化）
   说明：仅调整格式与分组，不改变视觉与行为
   ==================================================================== */

/* ------------------------------ 基础变量 ------------------------------ */
:root {
  --brand: #5db8c3;
  --text: #333;
  --muted: #666;
  --bg: #ffffff;
  --footer-bg: #1f2a35;
  --footer-text: #b9c2cc;
}

/* ------------------------------ 全局与排版 ------------------------------ */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

/* ====================================================================
   头部（Header）
   ==================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid #e9eef3;
}
.has-site-header {
  padding-top: 70px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.logo img {
  display: block;
  height: 48px;
}

/* 导航 */
.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  justify-content: flex-end;
}
.nav a { padding: 0 12px; height: 70px; display: inline-flex; align-items: center; color: var(--text); text-decoration: none; position: relative; font-size: 18px; border-bottom: none; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; height: 3px; background: #2c5aa0; bottom: 10px; opacity: 0; transition: opacity 180ms ease; }
.nav a:hover::after, .nav a.active::after { opacity: 1; }

/* 行为按钮与搜索 */
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn {
  padding: 6px 12px;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn.small {
  padding: 4px 8px;
  font-size: 13px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search input {
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d7dee5;
  border-radius: 4px;
}
.lang {
  position: relative;
}
.dropdown {
  position: absolute;
  margin-top: 6px;
  list-style: none;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e0e6eb;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.dropdown[aria-hidden="true"] {
  display: none;
}
.dropdown li {
  padding: 6px 12px;
  cursor: pointer;
}
.dropdown li:hover {
  background: #f2f6f9;
}

/* ====================================================================
   右侧悬浮导航
   ==================================================================== */
.site-right-nav {
  position: fixed;
  right: 16px;
  top: 30%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 900;
}
.right-item {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.right-item:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(93, 184, 195,  0.25);
}

/* ====================================================================
   底部（Footer）
   ==================================================================== */
.site-footer {
  margin-top: 80px;
  background: var(--footer-bg);
  color: var(--footer-text);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 40px;
}
.brand h4 {
  margin: 0;
  color: #e7edf4;
  font-weight: 600;
}
.contact {
  list-style: none;
  line-height: 1.8;
  padding: 8px 0 0;
  margin: 0;
}
.links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.links .col h5 {
  margin: 0 0 8px;
  color: #e7edf4;
}
.links .col a {
  display: block;
  padding: 3px 0;
  color: var(--footer-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.links .col a:hover {
  color: #fff;
}
.qr {
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  color: #9fb3c4;
  font-size: 12px;
  text-align: center;
  padding: 8px;
  border: 1px dashed #5db8c3;
  border-radius: 8px;
 }
 .qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
 }
.copyright {
  font-size: 12px;
  text-align: center;
  padding: 12px 16px;
  border-top: 1px solid #2a3846;
}

/* ====================================================================
   Banner 轮播
   ==================================================================== */
.banner {
  position: relative;
  width: 100%;
  height: auto;
  /* 提供 CSS 级固定比例作为 JS 的稳健后备，避免高度为0 */
  aspect-ratio: 16 / 9;
  background: #f0f4f8;
  overflow: hidden;
}
/* 轮播层级与切换 */
.banner .slides {
  position: absolute;
  inset: 0;
}
.banner .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}
.banner .slide.active {
  opacity: 1;
}
/* 图片完整显示 */
.banner .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* 箭头 */
.banner .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}
.banner .arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}
.banner .arrow.prev {
  left: 16px;
}
.banner .arrow.next {
  right: 16px;
}
/* 指示点 */
.banner .dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.banner .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.banner .dot.active {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}
/* 与固定头部的配合 */
body.has-site-header .banner {
  margin-top: 0;
}
/* Prevent submenu from affecting document flow */
.header-submenu {
  position: fixed;
  left: 0;
  right: 0;
  top: 70px; /* match header height */
  z-index: 950; /* above banner/content, below potential modals */
}
.header-submenu[aria-hidden="true"] { display: none; }
.header-submenu .inner { max-width: 1280px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.header-submenu { background: #2c5aa0; }
.header-submenu a { color: #fff; text-decoration: none; padding: 8px 6px; display: inline-block; border-bottom: 2px solid transparent; font-size: 17px; }
.header-submenu a:hover { color: #fff; background: transparent; border-bottom-color: #fff; }
/* =================== Section Title (Product & Solutions) =================== */
.section-title { text-align: center; margin: 38px 0 24px; }
.section-title .zh { margin: 0; font-size: 36px; font-weight: 700; color: #1e76b9; letter-spacing: 1px; }
.section-title .en { margin-top: 8px; font-size: 16px; color: #9fb3c4; letter-spacing: 1px; }
@media (max-width: 640px) {
  .section-title { margin: 30px 0 20px; }
  .section-title .zh { font-size: 26px; }
  .section-title .en { font-size: 14px; }
}
@media (max-width: 480px) {
  .section-title[aria-label="新闻资讯"] { margin: 20px 0 16px; }
  .section-title[aria-label="新闻资讯"] .zh { font-size: 22px; }
  .section-title[aria-label="新闻资讯"] .en { display: none; }
}

/* =================== Product Grid =================== */
.product-grid { max-width: 1200px; margin: 12px auto 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-grid .tile { position: relative; display: block; height: 220px; background-size: cover; background-position: center; border: 1px solid rgba(82, 172, 197, 0.35); border-radius: 2px; overflow: hidden; }
.product-grid .tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.08)); transition: opacity 220ms ease; opacity: 0.9; }
.product-grid .tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); border-color: rgba(82, 172, 197, 0.6); }
.product-grid .tile:hover::before { opacity: 1; }
.product-grid .overlay { position: absolute; left: 24px; top: 24px; right: 24px; color: #fff; }
.product-grid .title { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.product-grid .subtitle { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.5px; opacity: 0.9; }
.product-grid .more { display: inline-block; margin-top: 6px; font-size: 13px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.7); padding-bottom: 2px; }
.product-grid .tile:hover .more { border-bottom-color: #fff; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-grid .tile { height: 180px; }
  .product-grid .title { font-size: 20px; }
}
/* =================== About (GENFO) =================== */
.about-block { max-width: 1200px; margin: 12px auto 60px; display: flex; gap: 24px; align-items: stretch; }
.about-media { flex: 0 0 58%; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(82, 172, 197, 0.35); border-radius: 2px; }
.about-content { flex: 1; color: #334; }
.about-title { margin: 6px 0 12px; font-size: 22px; font-weight: 700; color: #1e76b9; }
.about-content p { margin: 0 0 10px; font-size: 16px; line-height: 1.9; color: #4a5560; }
.about-content .about-summary { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.btn-more { display: inline-block; margin-top: 8px; padding: 8px 14px; font-size: 14px; color: #fff; background: #52acc5; border-radius: 3px; text-decoration: none; }
.btn-more:hover { background: #3fa0bb; }
@media (max-width: 900px) {
  .about-block { flex-direction: column; }
  .about-media { flex: none; }
  .about-title { font-size: 20px; }
}
/* 圆形图标导航模块 */
.about-icons { margin: 20px 0 30px; }
.about-icons .icon-list { list-style: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 20px 0; }
.about-icons .icon-item { width: 200px; text-align: center; }
.about-icons .icon-link { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.about-icons .icon-thumb { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: transform .2s ease, box-shadow .2s ease; }
.about-icons .icon-title { margin-top: 10px; font-size: 18px; font-weight: 600; color: #1e76b9; }
.about-icons .icon-link:hover .icon-thumb { transform: scale(1.06); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }

/* 圆形图标悬浮覆盖层（Hover Overlay） */
.about-icons .icon-thumb-wrap { position: relative; display: inline-block; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; }
.about-icons .icon-overlay { position: absolute; inset: 0; border-radius: 50%; background: rgba(82, 172, 197, 0.6); display: flex; align-items: center; justify-content: center; flex-direction: column; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.about-icons .icon-link:hover .icon-overlay { opacity: 1; }
/* 恢复 MORE 文本样式并完善加号绘制 */
.about-icons .icon-overlay .plus { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); }
.about-icons .icon-overlay .plus::before, .about-icons .icon-overlay .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; }
.about-icons .icon-overlay .plus::before { width: 44px; height: 3px; transform: translate(-50%, -50%); }
.about-icons .icon-overlay .plus::after { width: 3px; height: 44px; transform: translate(-50%, -50%); }
.about-icons .icon-overlay .more { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0.5px; }

@media (max-width: 860px) {
  .about-icons .icon-overlay .plus { width: 34px; height: 34px; }
  .about-icons .icon-overlay .more { top: calc(50% + 24px); font-size: 14px; }
}
@media (max-width: 520px) {
  .about-icons .icon-overlay .plus { width: 30px; height: 30px; }
  .about-icons .icon-overlay .more { top: calc(50% + 20px); font-size: 13px; }
}
@media (max-width: 860px) {
  .about-icons .icon-item { width: 33%; }
  .about-icons .icon-thumb-wrap { width: 96px; height: 96px; overflow: hidden; }
  .about-icons .icon-thumb { width: 100%; height: 100%; }
  /* Overlay size adaptation */
  .about-icons .icon-overlay .plus { width: 34px; height: 34px; }
  .about-icons .icon-overlay .plus::before { width: 30px; }
  .about-icons .icon-overlay .plus::after { height: 30px; }
  .about-icons .icon-overlay .more { font-size: 14px; }
}
@media (max-width: 520px) {
  .about-icons .icon-item { width: 50%; }
  .about-icons .icon-thumb-wrap { width: 86px; height: 86px; overflow: hidden; }
  .about-icons .icon-thumb { width: 100%; height: 100%; }
  .about-icons .icon-title { font-size: 13px; }
  /* Overlay size adaptation */
  .about-icons .icon-overlay .plus { width: 30px; height: 30px; }
  .about-icons .icon-overlay .plus::before { width: 26px; }
  .about-icons .icon-overlay .plus::after { height: 26px; }
  .about-icons .icon-overlay .more { font-size: 13px; }
}
@media (max-width: 768px) {
  .about-icons { display: none; }
}

/* =================== News Section =================== */
.news-block { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin: 8px 0 32px; }

/* 左侧主新闻卡片（占满左栏高度） */
.news-feature {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.news-feature .feature-media img {
  width: 100%;
  height: 260px; /* 紧凑为260 */
  object-fit: cover;
  display: block;
}
.news-feature .feature-body {
  padding: 14px 16px; /* 紧凑 */
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
/* 头部：标题 + 日期 */
.news-feature .feature-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.news-feature .feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.news-feature .feature-date {
  font-size: 16px;
  color: #6b7785;
}
.news-feature .feature-summary {
  margin: 8px 0 10px;
  font-size: 14px;
  color: #4f5b68;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 底部 CTA */
.news-feature .feature-link {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  color: #2a7ade;
  font-weight: 600;
  text-decoration: none;
}
.news-feature .feature-link .link-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #bfc7d2;
  position: relative;
}
.news-feature .feature-link .link-arrow::after {
  content: '';
  position: absolute;
  left: 7px; top: 6px;
  width: 6px; height: 6px;
  border-top: 2px solid #566273;
  border-right: 2px solid #566273;
  transform: rotate(45deg);
}

/* 响应式：窄屏主图稍微降低 */
@media (max-width: 768px) {
  .news-feature .feature-media img {
    height: 220px;
  }
}

/* 右侧新闻列表（卡片样式，左侧大日期 + 右侧文本） */
.news-list { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  /* 等高拉伸：三项均分右栏高度 */
  flex: 1 1 0;
  min-height: 0;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.news-item .date-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 110px;
  /* 去除内部方框，纯文本呈现 */
  height: auto;
  background: transparent;
  border: none;
}
.news-item .date-box .day {
  font-size: 48px;
  font-weight: 400;
  color: #111;
  line-height: 1;
}
.news-item .date-box .ym {
  font-size: 14px;
  font-weight: 400;
  color: #6b7785;
  margin-top: 8px;
}
.news-item .info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* 防止 grid 子项被长文本撑破 */
}
.news-item .info .title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-item .info .summary {
  margin: 0;
  font-size: 15px;
  color: #4f5b68;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 悬停平滑文本颜色过渡 */
.news-item .date-box .day,
.news-item .date-box .ym,
.news-item .info .title,
.news-item .info .summary {
  transition: color 200ms ease;
}
.news-item:hover { 
  background: #4bacc6; 
  border-color: #4bacc6;
}
.news-item:hover .date-box .day,
.news-item:hover .date-box .ym,
.news-item:hover .info .title,
.news-item:hover .info .summary {
  color: #fff;
}
@media (max-width: 960px) {
  .news-block { grid-template-columns: 1fr; }
}
/* 英文版特殊样式 */
.lang-en .section-title .en { margin-top: -16px; } /* 微调英文版标题间距 */
.lang-en p.en { margin-top: -20px; margin-bottom: 10px; } /* 将英文版的分隔线 p 标签上移 */

/* 响应式调整 */
@media (max-width: 640px) {
  .lang-en p.en { margin-top: -8px; margin-bottom: 8px; }
}
.news-carousel { display: none; position: relative; max-width: 1200px; margin: 12px auto 24px; }
.news-carousel .slides { position: relative; }
.news-carousel .slide { display: none; }
.news-carousel .slide.active { display: block; }
.news-carousel .arrow { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,0.35); border-radius: 50%; cursor: pointer; user-select: none; }
.news-carousel .arrow.prev { right: 54px; }
.news-carousel .arrow:hover { background: rgba(0,0,0,0.5); }
.news-carousel .dots { display: flex; gap: 8px; justify-content: center; margin: 10px 0 0; }
.news-carousel .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.2); cursor: pointer; }
.news-carousel .dot.active { background: rgba(0,0,0,0.45); }

/* Mobile News Layout: Date bottom-left */
.news-carousel .feature-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.news-carousel .feature-link {
  margin-top: 0;
}
.news-carousel .feature-head {
  display: block;
  margin-bottom: 8px;
}
.news-carousel .feature-date {
  font-size: 14px;
  color: #8896a6;
}

/* 移动端隐藏英文版面包屑导航 */
html[lang="en"] .breadcrumb {
  display: none;
}
@media (min-width: 769px) {
  html[lang="en"] .breadcrumb {
    display: flex;
  }
}

@media (max-width: 768px) {
  .news-block { display: none; }
  .news-carousel { display: block; }
  .news-carousel .feature-summary { display: none; }
  .news-carousel .feature-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 768px) {
  .news-block { gap: 20px; margin: 8px 0 24px; }
  .news-list { gap: 20px; }
  .news-item { grid-template-columns: 84px 1fr; padding: 16px 16px; gap: 16px; }
  .news-item .date-box { width: 84px; }
  .news-item .date-box .day { font-size: 36px; }
  .news-item .date-box .ym { font-size: 13px; }
  .news-item .info .title { font-size: 16px; }
  .news-item .info .summary { -webkit-line-clamp: 3; }
}
@media (max-width: 480px) {
  .news-item { grid-template-columns: 70px 1fr; padding: 14px 14px; gap: 14px; }
  .news-item .date-box .day { font-size: 30px; }
  .news-item .info .summary { -webkit-line-clamp: 2; }
}
