* {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  line-height: 180%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
}

div {
  box-sizing: border-box;
}

ul, li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #333333;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

/* 布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: #14213f;
  color: white;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.logo span {
  font-size: 18px;
  white-space: nowrap;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 18px 15px;
  color: white;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-item > a:hover {
  color: #ffd04b;
}

.nav-item.active > a {
  color: #ffd04b;
}

/* ========== 下拉菜单样式 ========== */

/* 一级下拉菜单容器 */
.level-1-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #14213f;
  min-width: 160px;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1001;
}

/* 一级导航项 - 悬停显示菜单 */
.level-1-item:hover > .level-1-dropdown {
  display: block;
}

/* 一级菜单链接 */
.level-1-link {
  display: block;
  padding: 18px 15px;
  color: white !important;
  font-size: 16px;
  transition: color 0.3s;
}

.level-1-item:hover > .level-1-link {
  color: #ffd04b !important;
}

/* 二级导航项（带子菜单的） */
.level-2-item {
  position: relative;
}

/* 二级菜单链接 */
.level-2-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: white !important;
  font-size: 14px;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}

.level-2-link:hover {
  background: #1a3a6e;
  color: #ffd04b !important;
}

/* 二级下拉菜单容器（三级菜单） */
.level-2-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  background: #14213f;
  min-width: 280px;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1002;
}

/* 二级菜单项 - 悬停显示三级菜单 */
.level-2-item:hover > .level-2-dropdown {
  display: block;
}

/* 三级菜单链接 */
.level-3-link {
  display: block;
  padding: 12px 20px;
  color: white !important;
  font-size: 14px;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.level-3-link:hover {
  background: #1a3a6e;
  color: #ffd04b !important;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* 主内容区 */
.main-content {
  padding-top: 60px;
  padding-bottom: 120px;
  min-height: calc(100vh - 60px);
}

/* 页脚 */
.footer {
  background: #333;
  color: white;
  width: 100%;
  margin-top: auto;
}

.footer-value {
  background: #444;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.footer-info {
  background: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  font-size: 14px;
}

.footer-info a {
  color: white;
  text-decoration: underline;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* 首页样式 */
.hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.index-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.index-main {
  max-width: 800px;
  padding: 0 20px;
}

.index-sidebar {
  width: 288px;
  padding-top: 60px;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
  height: fit-content;
  align-self: flex-start;
}

.section {
  margin: 40px 0;
}

.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  text-indent: 2em;
}

.text-indent {
  text-indent: 2em;
  margin-bottom: 15px;
}

.section-flex {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.section-flex .text {
  flex: 1;
}

.section-flex .image {
  flex: 1;
}

.section-flex .image img {
  width: 100%;
  border-radius: 10px;
}

/* 统计数据 */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  min-width: 150px;
}

.stat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #bbe0e3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 20px;
  font-weight: bold;
  color: #e7cc17;
}

.stat-text {
  text-align: left;
  display: inline-block;
}

/* 页面标题区域 */
.page-header {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* 联系页面 */
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title {
  font-size: 24px;
  margin-bottom: 30px;
}

.contact-row {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  gap: 15px;
  width: 100%;
  max-width: 600px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
}

.contact-card img {
  width: 50%;
  aspect-ratio: 1.8;
  object-fit: cover;
  border-radius: 10px;
}

.contact-info {
  flex: 1;
  padding: 10px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-box {
  background: #eee;
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 800px;
}

.contact-box-content {
  display: flex;
  gap: 40px;
}

.contact-box-content .text {
  flex: 1;
  text-indent: 2em;
}

.contact-box-content .image {
  display: none;
}

@media (min-width: 992px) {
  .contact-box-content .image {
    display: block;
  }
  .contact-box-content .image img {
    width: 256px;
    border-radius: 10px;
  }
}

/* 招聘页面 */
.recruitment-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.recruitment-title {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.recruitment-content {
  font-size: 16px;
  line-height: 2;
}

.recruitment-content h4 {
  font-weight: bold;
  margin: 20px 0 10px;
}

.recruitment-content p {
  margin-bottom: 10px;
}

.recruitment-content .indent {
  text-indent: 2em;
}

.recruitment-content li {
  list-style: disc;
  margin-left: 2em;
  margin-bottom: 5px;
}

.divider {
  height: 1px;
  background: black;
  margin: 20px 0;
}

/* 核心技术页面 */
.core-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.core-header {
  width: 100%;
  aspect-ratio: 3;
  object-fit: cover;
}

.core-title {
  text-align: center;
  font-size: 28px;
  margin: 40px 0;
}

.core-row {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.core-row .image {
  flex: 1;
}

.core-row .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.core-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.core-item-label {
  width: 30%;
  font-size: 14px;
}

.core-item-image {
  width: 70%;
  aspect-ratio: 3;
  border-radius: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .header-content {
    justify-content: space-between;
  }
  
  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #14213f;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  .nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  /* 一级导航项 */
  .level-1-item > .level-1-link {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white !important;
  }
  
  /* 禁用hover效果 */
  .level-1-item:hover > .level-1-dropdown,
  .level-2-item:hover > .level-2-dropdown {
    display: none;
  }
  
  /* 移动端点击展开 */
  .level-1-dropdown.open,
  .level-2-dropdown.open {
    display: block !important;
  }
  
  /* 一级下拉菜单 */
  .level-1-dropdown {
    position: static;
    display: none;
    background: rgba(0,0,0,0.3);
    box-shadow: none;
  }
  
  /* 二级下拉菜单 */
  .level-2-dropdown {
    position: static;
    display: none;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    padding-left: 20px;
  }
  
  /* 二级菜单链接 */
  .level-2-link {
    color: white !important;
    padding: 12px 30px;
    font-size: 14px;
  }
  
  /* 三级菜单链接 */
  .level-3-link {
    padding: 12px 30px;
    font-size: 14px;
    color: white !important;
  }
  
  .section-flex {
    flex-direction: column;
  }
  
  .stats {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-brand {
    display: none;
  }
  
  .index-sidebar {
    display: none;
  }
  
  .contact-row {
    flex-direction: column;
  }
  
  .contact-card {
    flex-direction: column;
  }
  
  .contact-card img {
    width: 100%;
  }
  
  .core-row {
    flex-direction: column;
  }
  
  .core-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .core-item-label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .core-item-image {
    width: 100%;
  }
}

/* ========== 解决方案页面样式 ========== */
.solution-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
}

.solution-page .main-content,
.main-content:has(.solution-page) {
  padding-bottom: 0;
  padding-top: 60px;
  min-height: auto;
}

/* 移动端标题 - 默认隐藏 */
.solution-mobile-title {
  display: none;
}

/* 左右两列 */
.solution-col {
  flex: 0 1 380px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.solution-col-right {
  justify-content: flex-start;
}

/* 图片容器 */
.solution-img-wrap {
  display: flex;
  justify-content: center;
}

/* 图片基础样式 */
.solution-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
  object-fit: contain;
  max-height: calc((100vh - 200px) / 2.2);
}

/* 描述文字 */
.solution-desc {
  text-indent: 2em;
  line-height: 2;
  font-size: 17px;
  color: #333;
  display: flex;
  align-items: center;
  margin-top: 5px;
}

/* 桌面端标题 - 默认显示 */
.solution-title {
  font-size: 22px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  padding: 0 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .solution-page {
    flex-direction: column;
    padding: 10px 15px;
    align-items: center;
  }

  .solution-col,
  .solution-col-right {
    max-width: 100%;
    width: 100%;
  }

  /* 移动端显示标题 */
  .solution-mobile-title {
    display: block;
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
  }

  /* 移动端隐藏桌面端标题 */
  .solution-title {
    display: none;
  }

  .solution-img {
    max-height: 250px;
  }

  .solution-desc {
    font-size: 14px;
  }
}

  /* 平板适配 */
  @media (min-width: 769px) and (max-width: 1024px) {
    .solution-title {
      font-size: 22px;
    }
  }
}

/* 桌面端隐藏 */
.desktop-only {
  display: none;
}

@media (min-width: 641px) {
  .desktop-only {
    display: block;
  }
}

/* 移动端隐藏 */
@media (max-width: 640px) {
  .mobile-hidden {
    display: none !important;
  }
}
