* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: sans-serif; min-height: 100vh; display: flex; flex-direction: column; }

header { background: #333; padding: 15px 20px;
    display: flex;
    justify-content: space-between;  /* 关键：两端对齐 */
    align-items: center;              /* 垂直居中 */}
header .logo img {height: 40px;  /* logo 高度，按需调整 */}
header nav a { color: #fff; margin-left: 25px; text-decoration: none; }
header nav a:hover { text-decoration: underline; }

main { flex: 1; 
    display: flex;
    flex-direction: column;    /* 关键：纵向排列 */ }

/* 上 1/3：banner */
.banner {
  flex: 1;                   /* 占 1 份 */
  background: #f8f404;       /* banner 背景色，可换成你的图片 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
}

/* 下 2/3：两张图片入口 */
.entry-area {
  flex: 2;                   /* 占 2 份 → 高度是 banner 的 2 倍 */
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  padding: 30px;
}

.entry-card {
  display: flex;
  flex-direction: column;    /* 关键：标题在上，图片在下 */
  align-items: center;        /* 居中对齐 */
  gap: 15px;                  /* 标题和图片之间的间距 */
}

.entry-card .title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.entry-area a img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #333;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.entry-area a img:hover {
  transform: scale(1.05);
}

footer { background: #eee; padding: 15px 20px; text-align: center; font-size: 14px; 
    display: flex;              /* 关键：改为行状 */
    justify-content: center;    /* 水平居中 */
    gap: 30px;                  /* 两项之间的间距 */
    flex-wrap: wrap;            /* 屏幕太窄时自动换行 */}
