/* 全局基础样式 */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

.header {
  text-align: center;
  padding: 40px 0;
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.2rem;
  color: #666;
}

.content {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap; /* 响应式时自动换行 */
}

.card {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1; /* 响应式时自动分配宽度 */
  min-width: 300px; /* 保证内容可读性 */
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card li span:first-child {
  flex: 1;
  font-size: 1rem;
  color: #555;
}

.card li span:last-child {
  font-size: 0.9rem;
  color: #999;
}

.footer {
  text-align: center;
  padding: 20px 0;
}

.footer button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  background-color: #333;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.footer button:hover {
  background-color: #555;
}


/* 响应式媒体查询（平板：屏幕宽度≤1024px） */
@media (max-width: 1024px) {
  .content {
    justify-content: space-around; /* 两列时居中对齐 */
  }
  .card {
    flex: 0 0 38%; /* 两列，每列占50%宽度 */
  }
}


/* 响应式媒体查询（手机：屏幕宽度≤768px） */
@media (max-width: 768px) {
  .content {
    justify-content: center; /* 单列时居中对齐 */
  }
  .card {
    flex: 0 0 90%; /* 单列，宽度90%（留白更友好） */
  }
}
