/* ========= 主题与基础设置 ========= */

:root {
  --bg-main: #020824;
  --bg-alt: #041133;
  --panel: #081a3d;
  --panel-soft: #0b244d;
  --accent: #4fa2ff;
  --accent-soft: rgba(79, 162, 255, 0.18);
  --text-main: #f5f7ff;
  --text-soft: #c9d2ff;
  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, #0c2f6f 0, #020824 45%);
  color: var(--text-main);
  line-height: 1.6;
}

/* 所有锚点板块：给跳转留出导航栏高度，保证标题在最上方 */

.hero,
.section {
  scroll-margin-top: 90px;
}

/* 通用容器 */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* ========= 顶部导航 ========= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to right, #020824ee, #041335ee);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}

/* 品牌区域 */

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;       /* 完整显示图标 */
  padding: 4px;
  background-color: #020824;
  box-shadow: 0 0 0 2px rgba(80, 168, 255, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.74rem;
  color: var(--text-soft);
  white-space: nowrap;       /* 不换行，始终在一行显示 */
}

/* 导航菜单 */

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.83rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

/* ========= 顶部轮播图 ========= */

.carousel {
  padding: 0.9rem 0 0.4rem;
}

/* 轮播外层：固定一个高度，方便垂直居中 */
.carousel-inner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
  background: radial-gradient(circle at top, #123a7d, #020824);
  height: 320px;              /* ⭐ 轮播区域高度，可按需要微调 */
}

/* 轨道：横向排布，每一屏一张图，高度占满容器 */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

/* 每一张 slide：宽度=一屏，高度=容器高度，内容用 flex 垂直+水平居中 */
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;        /* ⭐ 垂直居中 */
  justify-content: center;    /* ⭐ 水平居中 */
}

/* 如果 slide 里面是一个 <a>，也让 <a> 充满并在内部居中图片 */
.carousel-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


/* 图片：最大不超过容器宽高的 80%/90%，自适应缩放 */
.carousel-slide img {
  max-width: 80%;             /* ⭐ 控制左右留白，明显看到居中 */
  max-height: 90%;            /* 高度留一点空隙 */
  height: auto;
  display: block;
  object-fit: contain;
  background-color: #020824;
  border-radius: 18px;
  cursor: pointer;
}

/* 左右切换按钮保持不变 */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(3, 16, 44, 0.8);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 0;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

/* 小屏幕下，可以稍微降低高度 */
@media (max-width: 720px) {
  .carousel-inner {
    height: 240px;
  }
}



/* ========= 基本情况（Hero） ========= */

.hero {
  padding: 2.2rem 0 4rem;   /* 底部加大，让下一块标题不露在第一页 */
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;      /* 左右两侧高度一致，用于底部对齐 */
}

/* 左侧文字整体用 flex 撑满，高度与右侧对齐 */

.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-text h1 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

/* 缩短“中心概览”标签：减少内边距，保持刚好包住文字 */

.hero-tag {
  display: inline-block;      /* 关键1：只按内容宽度计算，而不是整行 */
  max-width: fit-content;     /* 关键2：再保险，只包住文字 */
  font-size: 0.76rem;
  padding: 0.02rem 0.30rem;   /* 稍微一点点左右空隙，框不会太宽 */
  line-height: 1.2;           /* 行高收紧一点，框不会太高 */
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  background: rgba(3, 27, 77, 0.9);
}


.hero-lead {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 0.2rem;   /* ⭐ 关键：把默认的 1em 压缩成很小 */
}


/* 放在最底部，便于与右侧大框底部对齐 */

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  margin-top: auto;          /* 把 meta 区推到底部 */
}

.meta-item {
  background: rgba(7, 27, 70, 0.96);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(79, 162, 255, 0.26);
}

.meta-label {
  display: block;
  font-size: 0.76rem;
  opacity: 0.85;
}

.meta-value {
  display: block;
  font-size: 0.9rem;
}

/* 右侧定位面板 */

.hero-box {
  background: radial-gradient(circle at top left, #123a7d, #081a3d);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.6rem;
  border: 1px solid rgba(118, 173, 255, 0.6);
  box-shadow: var(--shadow-soft);
}

/* 基本情况下面三个框里的条目列表样式 */
.hero-box .hero-list {
  margin: 0.4rem 0 0;        /* 列表与标题之间留一点间距 */
  padding-left: 1.1rem;      /* 小缩进，保持条目对齐 */
  font-size: 0.86rem;
  color: var(--text-soft);
}

.hero-box .hero-list li + li {
  margin-top: 0.18rem;       /* 条目之间稍微拉开一点 */
}


.hero-panel {
  margin-top: 0rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}


.hero-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.hero-panel p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

/* 定位-理念-服务简要流程 */

.hero-flow {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.8rem;
  margin-top: 0.4rem;
}

.flow-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}

.flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 0.25rem;
}

.flow-title {
  font-size: 0.86rem;
  font-weight: 600;
}

.flow-text {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ========= 通用板块样式 ========= */

.section {
  padding: 2.4rem 0 2.4rem;
  background: var(--bg-main);
}

/* 硬件条件模块中小标题（比如“服务器配置”“数据采集设备”等） */
.hardware-subtitle {
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* 通用规格表样式 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* 硬件条件：上方 2×2 表格网格区 */
.hardware-spec-grid {
  margin-top: 1rem;
  margin-bottom: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* 表格外层的 card 轻微压缩 padding，避免太高 */
.hardware-card {
  padding: 1rem 1rem 1.1rem;
}

/* 小屏幕下，四个表格改为一列竖排 */
@media (max-width: 960px) {
  .hardware-spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* 硬件条件中四张规格表：统一列宽 */
.hardware-spec-grid .spec-table {
  table-layout: fixed;   /* ⭐ 关键：使用固定布局，按列宽分配 */
}

/* 统一四列表格的列宽比例：名称 / 型号 / 数量 / 配置参数 */
.hardware-spec-grid .spec-table th:nth-child(1),
.hardware-spec-grid .spec-table td:nth-child(1) {
  width: 17%;    /* 名称 */
}

.hardware-spec-grid .spec-table th:nth-child(2),
.hardware-spec-grid .spec-table td:nth-child(2) {
  width: 15%;    /* 型号 */
}

.hardware-spec-grid .spec-table th:nth-child(3),
.hardware-spec-grid .spec-table td:nth-child(3) {
  width: 9%;     /* 数量 */
}

.hardware-spec-grid .spec-table th:nth-child(4),
.hardware-spec-grid .spec-table td:nth-child(4) {
  width: 59%;    /* 配置参数，占大头 */
}



.spec-table thead {
  background: rgba(6, 32, 90, 0.9);
}

.spec-table th,
.spec-table td {
  padding: 0.35rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

/* 只让正文单元格垂直居中，表头保持原样 */
.spec-table tbody td {
  vertical-align: middle;
}


.spec-table th {
  font-weight: 600;
  color: #e5edff;
}

.spec-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.spec-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.08);
}

/* 让表格在小屏幕不太挤，可以略缩小字体 */
@media (max-width: 720px) {
  .spec-table {
    font-size: 0.76rem;
  }
}


.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 1.2rem;
}

.section h2 {
  font-size: 1.35rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
}

.section-intro {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin-top: 0.6rem;
  max-width: none;            /* 或者直接删掉这一行 */
}


/* ========= 网格与卡片 ========= */

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border-radius: 14px;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* 文本列表样式 */

.text-list {
  margin-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.text-list li + li {
  margin-top: 0.25rem;
}

/* ========= 队伍建设：文字 + 图片并排 ========= */

.team-layout {
  display: flex;
  align-items: stretch;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

/* 左侧文字略宽 */
.team-text {
  flex: 1;
  max-width: 42%;  /* 左边文字最多占整行约 42% */
}


/* 右侧图片稍窄些 */
.team-image-wrapper {
  flex: 1.3;
  max-width: 58%;
  display: flex;          /* ✅ 让内部图片可以用 height:100% 来拉伸 */
}



/* 图片大小与样式 */
.team-image {
  width: 100%;
  height: 100%;          /* ✅ 高度占满右侧那一列 */
  border-radius: 14px;
  display: block;
  object-fit: cover;      /* 保持比例+适当裁剪，避免变形 */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}


/* ========= 联系方式与二维码 ========= */

.contact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr);
}

.card-center {
  text-align: center;
}

.qr-wrapper {
  margin-top: 0.7rem;
  display: inline-block;
  padding: 0.8rem;
  border-radius: 12px;
  background: radial-gradient(circle at top, #123a7d, #020824);
  border: 1px solid rgba(118, 173, 255, 0.6);
}

.qr-image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
}

/* ========= 页脚 ========= */

.site-footer {
  background: #010619;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem 0;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}



/* ========= 响应式适配 ========= */

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    margin-top: 0.8rem;
  }

  

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .team-image-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav ul {
    justify-content: flex-start;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .brand-subtitle {
    display: none;  /* 小屏幕隐藏英文，避免挤压布局 */
  }

  .section {
    padding: 2rem 0 2rem;
  }

  .grid-2,
  .grid-3,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 1.6rem;
  }

  .hero-text h1 {
    font-size: 1.45rem;
  }

  .qr-image {
    width: 140px;
    height: 140px;
  }

  .carousel-slide img {
    max-height: 200px;
  }
}

/* ====== 轮播里带链接的 slide：让 <a> 也占满并居中 ====== */
.carousel-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ====== 子页面长图展示 ====== */
.long-image-page {
  padding: 2.2rem 0 3rem;
}

.long-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.4);
}

