* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.8;
}

/* Header styling */
header {
  display: flex;
  flex-direction: row;
  background-color: #003366;
  color: #fff;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header .app-title {
  font-size: 18px;
  font-weight: 600;
  padding-left: 5px;
}

header nav {
  flex: 1;
  text-align: right;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

header nav a:hover {
  text-decoration: underline;
}

/* Top section styling */
.top1 {
  background-color: #0056b3;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.top {
  background-image: url("../images/yitiji/bg1.jpg");
  background-size: cover;
  background-position: center;
  color: #0056b3;
  padding: 50px 20px;
  text-align: center;
}

.top .content {
  text-align: left;
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
}

.top .content h1 {
  font-size: 36px;
  font-weight: 700;
}

.top .content p {
  font-size: 20px;
  margin-top: 10px;
}

/* Section styling */
product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1200px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-left {
  flex: 1;
  padding-right: 20px;
  max-width: 600px;
}
.product-left h2 {
  font-size: 28px;
  color: #003366;
  margin-bottom: 20px;
}

.product-left p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.product-right img {
  width: 100%;
}

.product-right {
  flex: 1;
  padding-top: 60px;
  max-width: 600px;
}

section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#architecture img {
  display: block;
  margin: 0 auto; /* 自动居中 */
  max-width: 100%; /* 让图片自适应容器 */
  height: auto; /* 保持图片比例 */
}

/* Highlight sections */
.highlight {
  font-size: 20px;
  color: #0056b3;
  font-weight: bold;
}

.app-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  /* 卡片之间的间距 */
  justify-content: center;
  /* 居中对齐 */
  padding-top: 10px;
}

.app-card {
  background-color: #fff;
  /* 白色背景 */
  max-width: 400px;
  /* 最大宽度 */
  min-width: 300px;
  /* 最小宽度 */
  overflow: hidden;
  /* 确保卡片内容不溢出 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* 卡片阴影 */
  transition: transform 0.3s, box-shadow 0.3s;
  /* 动效 */
  flex: 1 1 calc(25% - 16px);
  /* 每个卡片占25%，并响应间距 */
  display: flex;
  flex-direction: column;
  position: relative;
  /* 为按钮绝对定位提供参考 */
}

.app-card:hover {
  transform: scale(1.03);
  /* 悬停微放大效果 */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  /* 增强悬停阴影 */
}

.app-card img {
  width: 100%;
  /* 图片全宽 */
  object-fit: cover;
  /* 图片裁剪适配 */
  height: 180px;
  /* 固定高度 */
}

.app-card-content {
  padding: 16px;
  /* 内容内边距 */
  text-align: left;
  /* 文本左对齐 */
  flex-grow: 1;
  /* 填充剩余空间，确保按钮位于卡片底部 */
}

.app-card-content h3 {
  font-size: 1.25rem;
  /* 标题字体大小 */
  font-weight: bold;
  margin-bottom: 8px;
  /* 标题与内容间距 */
  margin-top: 0px;
  color: #333;
}

.app-card-content p {
  font-size: 0.95rem;
  /* 内容字体大小 */
  color: #555;
  /* 较浅的字体颜色 */
  margin: 0;
  line-height: 1.6;
  /* 行高优化阅读体验 */
}

/* Image card for product feature */
.feature-card {
  display: flex;
  margin-top: 30px;
  justify-content: space-between;
  gap: 20px;
}

.feature-card div {
  background: #f1f1f1;
  padding: 20px;
  flex: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-card div h3 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 10px;
}

.feature-card div p {
  font-size: 16px;
  color: #666;
}

/* Table styling */
table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

table th {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

table td {
  padding: 15px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: small;
}

table th {
  background-color: #003366;
  color: white;
  font-size: medium;
}

table td {
  background-color: #f9f9f9;
}

/* Footer styling */
footer {
  background-color: #003366;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

footer p {
  font-size: 16px;
  margin-bottom: 10px;
}

footer a {
  color: #fff;
  text-decoration: none;
}

/* Contact section */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 40px auto;
}

.contact-left {
  flex: 1;
  padding-right: 20px;
  padding-left: 20px;
}

.contact-left h2 {
  font-size: 28px;
  color: #003366;
  margin-bottom: 20px;
}

.contact-left p {
  font-size: 18px;
  color: #555;
  margin-bottom: 10px;
}

.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-right p {
  font-size: 18px;
  color: #003366;
  margin-bottom: 20px;
}

.contact-right img {
  max-width: 200px;
}

/* 容器样式 */
.ai-cards-container {
  display: flex;
  /* 使用网格布局 */
  gap: 20px;
  /* 卡片之间的间距 */
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

/* 单个卡片样式 */
.ai-card {
  display: flex;
  /* 使用 flexbox 实现左右布局 */
  align-items: center;
  /* 垂直方向居中 */
  gap: 20px;
  /* Logo 和内容之间的间距 */
  max-width: 300px;
  padding: 15px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  /* 移除链接默认样式 */
  color: #333;
  /* 文本颜色 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 鼠标悬停效果 */
.ai-card:hover {
  transform: scale(1.02);
  /* 悬停时轻微放大 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Logo 样式 */
.ai-card-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 内容区域样式 */
.ai-card-content {
  flex: 1;
  /* 内容区域占满剩余空间 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 标题样式 */
.ai-card-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px 0;
}

/* 描述文字样式 */
.ai-card-description {
  font-size: 14px;
  color: #666;
  margin: 0;
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    min-width: 350px;
  }

  header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header nav a {
    margin: 10px 0;
  }

  .top {
    min-width: 350px;
  }

  product {
    flex-direction: column;
    text-align: center;
    min-width: 350px;
  }

  section {
    flex-direction: column;
    text-align: center;
    min-width: 350px;
  }

  .section-left {
    margin-bottom: 20px;
    padding-right: 0;
  }

  .section-left img {
    max-width: 100%;
    border-radius: 8px;
  }
}
