/* ===== 基础设置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #222;
  line-height: 1.7;
  background: #f7f9fb;
}

a {
  color: #0b4ea2;
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 600;
  color: #0b2e59;
}

/* ===== 顶部导航 ===== */
header {
  background: #0b2e59;
  color: #fff;
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav a {
  color: #fff;
  font-size: 15px;
}

/* ===== Banner ===== */
.banner {
  position: relative;
  height: 100vh; /* 首页整屏 */
  background: url("../img/bg.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
}

/* 深蓝渐变遮罩，保证文字清晰 */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(8, 32, 66, 0.88),
      rgba(8, 32, 66, 0.65),
      rgba(8, 32, 66, 0.35)
    );
  z-index: 1;
}


.banner-text {
  position: relative;
  z-index: 2;          /* 高于遮罩 */
  margin-top: -15%;
  margin-left: 8%;
  max-width: 620px;
  padding: 40px 48px;
  color: #ffffff;
}

.banner-text h1 {
  font-size: 36px;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: 1px;
  color: #e6f2ff;
}

.banner-text p {
  font-size: 17px;
  opacity: 0.95;
}


/* ===== 通用容器 ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 24px;
}

/* ===== 卡片 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ===== 图片墙 ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  border-radius: 4px;
}

/* ===== 页脚 ===== */
footer {
  background: #0b2e59;
  color: #fff;
  text-align: center;
  padding: 24px;
  font-size: 14px;
}
