/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  background: linear-gradient(to bottom, #0a0f1c, #000);
  color: #fff;
  line-height: 1.6;
  padding: 20px;
}

/* 顶部标题 */
.hero {
  text-align: center;
  margin: 50px 0;
}
.hero h1 {
  font-size: 3rem;
  background: linear-gradient(to right, #00eaff, #9b5cff);
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 10px;
  color: #aaa;
  font-size: 1.2rem;
}
.hero .welcome {
  margin-top: 20px;
  color: #ddd;
  font-size: 1.1rem;
}

/* 卡片网格 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

/* 卡片 */
.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}
.card:hover {
  border-color: #00eaff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transform: translateY(-6px);
}
.icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.card p {
  color: #aaa;
  margin-bottom: 20px;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #00eaff;
  color: #000;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #00bcd4;
}

/* 联系方式 */
.contact {
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
  padding: 30px;
  background: #111827;
  border-radius: 16px;
  border: 1px solid #1f2937;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #00eaff, #9b5cff);
  -webkit-background-clip: text;
  color: transparent;
}
.contact p {
  margin: 8px 0;
  color: #ccc;
}
.contact .qrcode {
  margin-top: 20px;
}
.contact img {
  margin-top: 10px;
  width: 150px;
  height: 150px;
  border: 2px solid #00eaff;
  border-radius: 12px;
}

/* 动画 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
/* 联系方式 */
.contact {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
  padding: 30px;
  background: #111827;
  border-radius: 16px;
  border: 1px solid #1f2937;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #00eaff, #9b5cff);
  -webkit-background-clip: text;
  color: transparent;
}
.contact p {
  margin: 8px 0;
  color: #ccc;
}

/* 二维码容器 */
.qrcode-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.qrcode {
  text-align: center;
}
.qrcode p {
  margin-bottom: 10px;
  font-weight: bold;
  color: #00eaff;
}
.qrcode img {
  width: 180px;
  height: 180px;
  border: 2px solid #00eaff;
  border-radius: 12px;
  background: #fff; /* 保证二维码清晰 */
  padding: 5px;
  transition: transform 0.3s ease;
}

.qrcode img:hover {
  transform: scale(1.1); /* 鼠标悬停时放大10% */
  cursor: pointer; /* 添加指针样式，表示可点击 */
}

/* 模态框样式 */
.modal {
  display: none; /* 默认隐藏 */
  position: fixed; /* 固定定位 */
  z-index: 1000; /* 确保在最上层 */
  left: 0;
  top: 0;
  width: 100%; /* 全屏宽度 */
  height: 100%; /* 全屏高度 */
  background-color: rgba(0, 0, 0, 0.9); /* 半透明黑色背景 */
  overflow: auto; /* 允许滚动 */
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* 模态框内容 */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-name: zoom;
  animation-duration: 0.3s;
}

/* 动画效果 */
@keyframes zoom {
  from {transform: translate(-50%, -50%) scale(0);}
  to {transform: translate(-50%, -50%) scale(1);}
}

/* 关闭按钮 */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
  transform: scale(1.1);
}

/* 图片标题 */
.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #fff;
  padding: 10px 0;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 图片计数器样式 */
.modal-counter {
  position: absolute;
  top: 20px;
  left: 30px;
  color: #fff;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  animation: fadeIn 0.3s ease-in-out;
}
/* 卡片网格：每行三个 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: auto;
}

/* 卡片样式：适配更多文字 */
.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 25px;
  text-align: left; /* 改为左对齐，更适合文字多 */
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}
.card:hover {
  border-color: #00eaff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transform: translateY(-6px);
}
.card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}
.card p {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #bbb;
}

/* 联系方式二维码三列 */
.qrcode-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}
