:root {
  --primary: #155bd4;
  --dark: #1a2846;
  --text: #2b3442;
  --muted: #6b7686;
  --line: #e8ebf0;
  --soft: #f7f8fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-item {
  position: relative;
}

.site-nav-item > a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: #3a4554;
  transition: color 0.2s;
}

.site-nav-item.active > a, .site-nav-item > a:hover {
  color: var(--primary);
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.1);
}

.site-nav-item:hover .sub-menu, .site-nav-item:focus-within .sub-menu {
  display: block;
}

.sub-menu-item > a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #3a4554;
  border-radius: 6px;
  white-space: nowrap;
}

.sub-menu-item > a:hover, .sub-menu-item.active > a {
  color: var(--primary);
  background: #eef4ff;
}

.site-main {
  width: 100%;
}



/* ===== 通用区块 ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-title {
  margin-bottom: 6px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--dark);
}

.section-en {
  margin-bottom: 32px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 3px;
  color: #9aa5bb;
}

.section-en .dash {
  margin-left: 6px;
}

.empty {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
}



/* ===== 首页 Banner ===== */
.banner-slide {
  position: relative;
  display: flex;
  min-height: 480px;
  background: linear-gradient(135deg, #1a2846 0%, #2b4a8f 100%);
  overflow: hidden;
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-mask {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 480px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  text-align: center;
  color: #fff;
  background: rgba(16, 26, 48, 0.48);
}

.banner-mask h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.banner-subtitle {
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
  opacity: 0.9;
}

.banner-btn {
  margin-top: 6px;
  padding: 10px 38px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 15px;
  transition: all 0.2s;
}

.banner-btn:hover {
  background: #fff;
  color: var(--dark);
}



/* ===== 内页 Banner ===== */
.inner-banner {
  min-height: 220px;
  background: linear-gradient(135deg, #1a2846 0%, #2b4a8f 100%);
  background-size: cover;
  background-position: center;
}

.inner-banner-mask {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: rgba(20, 32, 60, 0.45);
}

.inner-banner-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #fff;
}

.inner-banner-sub {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}



/* ===== 关于我们 ===== */
.mod-about {
  background: #fff;
}

.about-slogan {
  margin-bottom: 18px;
  text-align: center;
  font-size: 26px;
  color: var(--dark);
}

.about-desc {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  color: #5c6b84;
  line-height: 1.9;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
}

.stat-item {
  min-width: 160px;
  text-align: center;
}

.stat-item strong {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--dark);
}

.stat-item p {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.8;
  color: #9aa5bb;
}



/* ===== 左图右文 ===== */
.mod-image-text {
  background: #fff;
}

.it-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.it-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.it-image-empty {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f2f4f8;
  color: #9aa5bb;
}

.it-body h2 {
  margin-bottom: 16px;
  font-size: 28px;
  color: var(--dark);
}

.it-body p {
  margin-bottom: 24px;
  white-space: pre-wrap;
  color: #5c6b84;
  line-height: 1.9;
}

.it-btn {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

.it-btn:hover {
  color: #fff;
  opacity: 0.9;
}



/* ===== 九宫格 ===== */
.mod-grid9 {
  background: var(--soft);
}

.grid9-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 24px auto 0;
}

.grid9-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.2s;
}

.grid9-cell:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(21, 91, 212, 0.1);
}

.grid9-icon {
  font-size: 30px;
  line-height: 1;
}

.grid9-label {
  font-size: 14px;
  color: var(--dark);
}



/* ===== 产品中心 ===== */
.mod-product {
  background: var(--soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.product-card {
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(26, 40, 70, 0.1);
}

.product-card img {
  margin-bottom: 14px;
  border-radius: 6px;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--dark);
}

.product-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #5c6b84;
}



/* ===== 新闻列表 ===== */
.mod-news {
  background: #fff;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  border-bottom: 1px solid #f0f2f5;
}

.news-item-link {
  display: flex;
  gap: 20px;
  padding: 18px 8px;
  transition: background 0.15s;
}

.news-item-link:hover {
  background: #f7f9fc;
}

.news-date {
  display: flex;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.news-date strong {
  font-size: 22px;
  color: var(--dark);
}

.news-date span {
  font-size: 12px;
  color: #9aa5bb;
}

.news-main h3 {
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--dark);
  transition: color 0.15s;
}

.news-item-link:hover .news-main h3 {
  color: var(--primary);
}

.news-main p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  color: #9aa5bb;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}



/* ===== 图文区块 ===== */
.mod-custom {
  background: var(--soft);
}

.custom-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.custom-tab {
  padding: 6px 18px;
  border: 1px solid #d5dbea;
  border-radius: 20px;
  font-size: 13px;
  color: #5c6b84;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.custom-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.custom-text {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: #5c6b84;
}



/* ===== 联系 / 地图 / 留言 ===== */
.mod-block {
  background: #fff;
}

.mod-block .section-inner {
  padding: 32px 24px;
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.block-title {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  font-size: 18px;
  color: var(--dark);
}

.contact-card p {
  margin: 0;
  color: #5c6b84;
  line-height: 2;
}

.contact-hotline {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary) !important;
}

.contact-hotline span {
  font-size: 12px;
  font-weight: 400;
  color: #9aa5bb;
}

.msg-tip {
  margin-bottom: 16px !important;
  font-size: 13px;
  color: #9aa5bb !important;
}

.map-real {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.map-real iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.map-addr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--dark);
}

.map-addr-row a {
  color: var(--primary);
  white-space: nowrap;
}

.map-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  border-radius: 10px;
  background: #f2f5fa;
}

.map-addr {
  font-size: 14px;
  color: var(--dark);
}

.map-tip {
  font-size: 12px;
  color: var(--primary);
}



/* ===== 留言表单 ===== */
.msg-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: block;
}

.form-row > span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--dark);
}

.form-row em {
  color: #d93025;
  font-style: normal;
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9e0ec;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 91, 212, 0.12);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-primary {
  padding: 11px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.92;
}



/* ===== 内页通用 ===== */
.page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.page-title {
  margin-bottom: 16px;
  font-size: 28px;
  color: var(--dark);
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 13px;
  color: #98a1b0;
}

.breadcrumb a {
  color: #6b7686;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: #c5ccd8;
}

.list-meta {
  margin-bottom: 16px;
  font-size: 13px;
  color: #98a1b0;
}



/* ===== 列表页 ===== */
.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.article-item {
  border-bottom: 1px solid #f0f2f5;
}

.article-item:last-child {
  border-bottom: 0;
}

.article-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  transition: background 0.2s;
}

.article-link:hover {
  background: #f7f9fc;
}

.article-item-main {
  display: block;
  min-width: 0;
}

.article-item-main h2 {
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-link:hover h2 {
  color: var(--primary);
}

.article-item-main p {
  overflow: hidden;
  font-size: 13px;
  color: #6b7686;
  text-overflow: ellipsis;
  white-space: nowrap;
}



/* ===== 列表页：图文卡片（分类导航样式见公共 blocks.css） ===== */
.page-inner-list {
  max-width: 1120px;
}



/* ===== 列表页：图文卡片网格 ===== */
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(20, 40, 80, 0.1);
  transform: translateY(-3px);
}

.article-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef1f6;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-media img {
  transform: scale(1.04);
}

.article-card-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #b6bfcd;
}

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.article-card-body h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-card:hover .article-card-body h2 {
  color: var(--primary);
}

.article-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.75;
  color: #6b7686;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-card-more {
  margin-top: auto;
  font-size: 13px;
  color: var(--primary);
}

@media (max-width: 640px) {
  .article-cards {
    grid-template-columns: 1fr;
  }
}



/* ===== 分页 ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.page-link {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  color: #5c6b84;
  background: #fff;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}



/* ===== 文章详情 / 单页 ===== */
.article-body {
  padding: 36px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.article-body h1 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.5;
  color: var(--dark);
}

.article-meta {
  font-size: 12px;
  color: #98a1b0;
}

.article-meta .dot {
  margin: 0 8px;
}

.article-cover {
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 22px auto 0;
  border-radius: 8px;
}

.article-content {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text);
}

.article-content p {
  margin: 0 0 12px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f5;
}

.tag {
  padding: 3px 12px;
  border-radius: 12px;
  background: #eef4ff;
  font-size: 12px;
  color: var(--primary);
}

.single-block {
  margin-bottom: 40px;
}

.single-block:last-child {
  margin-bottom: 0;
}

.single-block h2 {
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--dark);
}



/* 单页中嵌套的模块不再重复最大宽度 */
.page-inner .mod-block .section-inner, .page-inner .mod-block .contact-card {
  max-width: 100%;
}

.page-inner .mod-block .section-inner {
  padding: 28px 0;
}



/* ===== 页脚 ===== */
.site-footer {
  margin-top: auto;
  background: #1a2846;
  color: #c7d0e0;
}

/* ===== 单页里模块之间的间距 ===== */
.page-inner .mod-block:last-child {
  margin-bottom: 0;
}



/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .site-header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .site-nav-list {
    flex-wrap: wrap;
    gap: 0;
  }

  .site-nav-item > a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .sub-menu {
    display: none !important;
  }}

@media (max-width: 768px) {
  .banner-slide, .banner-mask {
    min-height: 360px;
  }

  .banner-mask h1 {
    font-size: 26px;
  }

  .banner-subtitle {
    font-size: 14px;
  }

  .section-inner {
    padding: 36px 16px;
  }

  .it-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-row {
    gap: 28px;
  }

  .stat-item strong {
    font-size: 32px;
  }

  .grid9-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-inner {
    padding: 28px 16px 40px;
  }

  .article-body {
    padding: 24px 18px;
  }

  .article-link {
    gap: 12px;
    padding: 14px 12px;
  }

  .news-date {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .news-date strong {
    font-size: 19px;
  }

  .inner-banner, .inner-banner-mask {
    min-height: 170px;
  }

  .inner-banner-title {
    font-size: 24px;
  }
}
