/* ===== 基础 ===== */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
  "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

/* ===== 标题体系 ===== */
h1 {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h2 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 12px;
}

h4 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== 正文与列表 ===== */
p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

ul {
  padding-left: 18px;
  margin: 0;
}

li {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 6px;
}

strong {
  font-weight: 600;
}

/* ===== 说明性文字 ===== */
.text-note {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

.text-note.subtle {
  font-size: 13px;
  line-height: 1.55;
  color: #9ca3af;
}

/* ===== Header ===== */
header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;

  position: sticky;
  top: 0;                 /* 👈 必须 */
  z-index: 1000;          /* 👈 防止被内容盖住 */
  background: #ffffff;   /* 👈 防止内容穿透 */
}

.header-lockup {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 12px 0;
  flex-direction: row;             /* 强制水平布局 */
  flex-wrap: nowrap;               /* 不允许换行 */
}

.lockup-logo img {
  /*display: block; /* 去掉行内元素的基线空隙 */
  height: 72px;
  margin-right: 8px; /* 👈 控制右边文字离竖线的距离 */
}

.lockup-divider {
  width: 4px;
  height: 72px;
  background: #1e293b;
  margin: 0 10px; /* 👈 左右留白缩到“学院级” */
}

/* 右侧容器 */
.header-right {
  margin-left: auto;              /* 推到最右 */
  display: flex;
  flex-direction: column;         /* 垂直排列 */
  align-items: flex-end;          /* 内容靠右对齐 */
  gap: 6px;                      /* 管理员链接和语言按钮的间距 */
}

/* 语言切换整体靠右 */
.lang-switch {
  justify-content: flex-end;
  display: flex;
  flex-direction: row;             /* 强制水平排列 */
  gap: 8px;
  font-size: 12px;
  align-items: center;            /* 垂直居中对齐 */
  text-align: right;              /* 额外确保文本对齐 */
}

.admin-link {
  text-align: right;              /* 确保文本靠右 */
  display: block;                  /* 确保是块级元素 */
}

.admin-login-btn {
  font-size: 10px;
  color: #64748b;
  text-decoration: none;
  padding: 4px 8px;
  height: 28px;
  line-height: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
}

.admin-login-btn:hover {
  color: #1e293b;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.lang-switch button {
  width: 28px;              /* 略微缩小 */
  height: 28px;             /* 保持正方形 */
  font-size: 11px;          /* 略微缩小字体 */
  font-weight: 500;

  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;

  cursor: pointer;
  text-align: center;
  padding: 0;
}

.lang-switch button.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
  font-weight: 600;
}

/* ===== Slogan Lockup（统一版） ===== */

.lockup-slogan {
  height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px; /* 👈 控制右边文字离竖线的距离 */
  text-align: left; /* 确保所有屏幕下都左对齐 */
}

/* ===== 中文 ===== */
.slogan-cn {
  font-size: 16px; /* 原 18 → 缩小一号 */
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.slogan-cn > div {
  display: block;
}

/* ===== 英文 ===== */
.slogan-en {
  margin-top: 4px;
}

.slogan-en > div {
  display: block;
}

/* 英文第一行 */
.slogan-en > div:first-child {
  font-size: 13px; /* 原 14 → 缩小 */
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.10em;
  line-height: 1.25;
}

/* 英文第二行 */
.slogan-en .split-line.en {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.06em;
}

/* ===== split-line（中英文通用） ===== */
.split-line {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* 👈 留白明显缩减 */
}

/* 竖线（粗分隔线） */
.split-line .vline {
  width: 2px;
  height: 0.9em;
  display: inline-block;
  background-color: #f5b400; /* 与 logo 一致的黄色 */
  position: relative;
  top: 0.12em;   /* 👈 向下微调，0.08–0.15em 之间自行微调 */
}

/* 英文竖线稍细 */
.split-line.en .vline {
  width: 2px;
  height: 1em;
  background-color: #f5b400; /* 与 logo 一致的黄色 */
  position: relative;
  top: 0.18em;   /* 👈 向下微调，0.08–0.15em 之间自行微调 */
}

/* ===== 中点 ===== */
.dot {
  display: inline-block;
  font-size: 1.15em; /* 比之前略小 */
  margin: 0 0.02em; /* 👈 两侧留白明显收紧 */
  line-height: 1;
  transform: translateY(0.02em); /* 微微上提，居中视觉 */
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 35vh;  /* 从50vh减少到35vh */
  min-height: 280px;  /* 从400px减少到280px */
  background: url("../../img/home/hero-snow.jpg") center center / cover no-repeat;
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%; /* 调整到30%，适应新的hero高度 */
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.40),
    rgba(15, 23, 42, 0.15),
    transparent
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 20px auto 0;  /* 从40px减少到20px */
  padding: 0px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70%;  /* 适应新的hero高度 */
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -10px 0px -10px 0px; /* 恢复原始大小 */
  background: linear-gradient(
    rgba(255, 255, 255, 0.18), /* 恢复原始透明度 */
    rgba(255, 255, 255, 0.08)  /* 恢复原始透明度 */
  );
  backdrop-filter: blur(4px); /* 恢复原始模糊 */
  border-radius: 6px; /* 恢复原始圆角 */
  z-index: -1;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.45);
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
}

/* ===== Hero CTA：桌面端强制横排 ===== */
.hero. cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.cta a {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(56, 189, 248, 0.22);
}

/* ===== Adult Programs ===== */
.programs-target {
  background: #ffffff;  /* 改为白色背景 */
  padding: 24px 0;     /* 大幅减少padding */
  border-bottom: none;  /* 移除边框 */
}

.target-content {
  text-align: left;
  max-width: 600px;    /* 减少最大宽度，适合文字 */
  margin: 0 auto;
  padding: 0 20px;   /* 添加左右padding */
}

.programs-target h2 {
  font-size: 20px;     /* 使用正文字号 */
  font-weight: 600;
  color: #374151;     /* 使用正文颜色 */
  margin-bottom: 12px;
  margin-top: 0;
}

.programs-target p {
  font-size: 16px;     /* 使用正文字号 */
  line-height: 1.5;    /* 标准行高 */
  color: #4b5563;     /* 标准正文颜色 */
  margin: 0;
}

/* ===== 环境 ===== */
.env {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.env img {
  width: 100%;
  border-radius: 12px;
}

/* ===== Campus 模块 ===== */

.campus-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: start;
}

.campus-text p {
  padding-left: 0; /* 避免额外缩进 */
  max-width: 560px;
}

.campus-points {
  margin: 20px 0 24px;
  padding-left: 18px;
}

.campus-points li {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 8px;
}

/* 图片区 */
/* 让某些图片占两行，形成错落感 */
.campus-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.campus-gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* 第一张图放在左列，占满高度 */
.campus-gallery img:first-child {
  grid-row: 1 / span 2; /* 占两行 */
  grid-column: 1;       /* 在第一列 */
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 第二张和第三张图放在右列，分别占一行 */
.campus-gallery img:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  width: 90%;
}
.campus-gallery img:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  width: 90%;
}

.philosophy-list {
  margin: 24px 0 28px;
  list-style: disc;        /* 👈 明确声明 */
}

.philosophy-list li {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.philosophy-list strong {
  color: #111827;
  font-weight: 600;
}

/* ===== 移动端 ===== */
/* ===== 移动端优化 ===== */
@media (max-width: 768px) {
  /* Header 区域移动端优化 - 保持水平布局 */
  .header-lockup {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 8px 0;
    gap: 8px;
  }
  
  .lockup-logo img {
    height: 48px; /* 从72px缩小到48px */
    margin-right: 0; /* 移除右边距，因为现在是垂直布局 */
  }
  
  .lockup-divider {
    width: 6px;   /* 加粗2倍，从3px到6px */
    height: 48px; /* 与移动端logo高度匹配 */
    margin: 0 4px; /* 调整左右间距 */
  }
  
  .lockup-slogan {
    height: auto; /* 移除固定高度 */
    margin-left: 0; /* 移除左边距 */
    width: 100%;
    max-width: 320px; /* 限制最大宽度，避免在超大屏幕上过宽 */
    text-align: left; /* 确保文字左对齐 */
  }
  
  /* Slogan 文字大小调整 */
  .slogan-cn {
    font-size: 14px; /* 从16px缩小到14px */
    line-height: 1.3;
  }
  
  .slogan-cn > div {
    display: inline-block; /* 改为inline-block，减少换行 */
  }
  
  /* 中文改为单行显示 */
  .slogan-cn > div:first-child {
    display: block;
    margin-bottom: 2px;
  }
  
  .slogan-cn .split-line {
    font-size: 13px;
  }
  
  /* 英文slogan优化 */
  .slogan-en {
    margin-top: 2px; /* 减少间距 */
  }
  
  .slogan-en > div:first-child {
    font-size: 11px; /* 从13px缩小到11px */
    letter-spacing: 0.05em; /* 减少字母间距 */
    line-height: 1.2;
  }
  
  .slogan-en .split-line.en {
    font-size: 9px; /* 从10px缩小到9px */
    letter-spacing: 0.02em; /* 减少字母间距 */
  }
  
  /* 分隔线调整 */
  .split-line {
    gap: 4px; /* 从6px减少到4px */
  }
  
  .split-line .vline {
    height: 0.8em; /* 从0.9em缩小到0.8em */
    top: 0.1em; /* 微调位置 */
  }
  
  /* 右侧容器 - 移动端调整 */
  .header-right {
    margin-left: auto;
    align-items: flex-end;         /* 确保内容靠右 */
    gap: 4px;                      /* 移动端减少间距 */
  }
  
  /* 语言切换调整 - 移动端 */
  .lang-switch {
    justify-content: flex-end;       /* 确保按钮靠右 */
    flex-direction: row !important;   /* 强制保持水平排列 */
    gap: 6px;
  }
  
  .campus-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .campus-gallery img:first-child {
    grid-row: 1 / span 2; /* 占两行 */
    grid-column: 1;       /* 在第一列 */
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* 第二张和第三张图放在右列，分别占一行 */
  .campus-gallery img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    width: 90%;
  }
  .campus-gallery img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    width: 90%;
  }
}

/* 超小屏幕优化（375px及以下） */
@media (max-width: 375px) {
  .lockup-logo img {
    height: 40px; /* 进一步缩小logo */
  }
  
  .lockup-divider {
    width: 50px; /* 进一步缩短分隔线 */
    height: 2px; /* 进一步变细 */
  }
  
  .slogan-cn {
    font-size: 13px; /* 进一步缩小中文字体 */
  }
  
  .slogan-cn > div:first-child {
    font-size: 12px; /* 第一行进一步缩小 */
  }
  
  .slogan-en > div:first-child {
    font-size: 10px; /* 英文进一步缩小 */
    letter-spacing: 0.02em;
  }
  
  .slogan-en .split-line.en {
    font-size: 8px; /* 英文描述行进一步缩小 */
  }
  
  .split-line {
    gap: 3px; /* 进一步缩小间距 */
  }
  
  .split-line .vline {
    height: 0.7em; /* 进一步缩小分隔线 */
  }
  
  /* 语言切换按钮调整 */
  .lang-switch button {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
  
  .admin-login-btn {
    font-size: 8px;
    padding: 2px 4px;
    height: 24px;
    line-height: 18px;
  }
  
  /* 超小屏幕hero优化 */
  .hero {
    height: 50vh;
    min-height: 450px;
    padding-bottom: 15px;
  }
  
  /* 右侧容器 - 超小屏幕调整 */
  .header-right {
    margin-left: auto;
    align-items: flex-end;
    gap: 3px;                      /* 超小屏幕进一步减少间距 */
  }
  
  /* 超小屏幕语言切换 */
  .lang-switch {
    flex-direction: row !important;
    justify-content: flex-end !important;
  }
}

/* ===== FAQ ===== */
details {
  margin-bottom: 18px;
}

summary {
  list-style: none; /* 移除原生箭头 */
  font-weight: bold;
  position: relative;
  padding-left: 2em;
}

summary::before {
  content: "▸";
  position: absolute;
  left: 0px;
  color: #1e40af;   /* 箭头蓝 */
  font-size: 2.5em;
  top: -0.43em;           /* 👈 下移，贴合文字中线 */
  transition: transform 0.2s ease;
}

/* 展开时旋转 */
details[open] summary::before {
  transform: rotate(90deg);
}

/* ===== Footer ===== */
footer {
  background: #f9fafb;
  padding: 56px 0;
  font-size: 14px;
  color: #6b7280;
  text-align: center; /* 水平居中对齐 */
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 15px;
  }

  p {
    font-size: 15px;
  }

  li {
    font-size: 14px;
  }

  .text-note {
    font-size: 13px;
  }

  .text-note.subtle {
    font-size: 12px;
  }

  .hero {
    height: 52.5vh;  /* 减少25%: 70vh * 0.75 = 52.5vh */
    min-height: 412.5px; /* 减少25%: 550px * 0.75 = 412.5px */
    padding-bottom: 22.5px; /* 减少25%: 30px * 0.75 = 22.5px */
    background: url("../../img/home/hero-snow.jpg") center center / cover no-repeat;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 40px 24px 20px;  /* 增加左右padding，从16px改为24px */
    box-sizing: border-box;
    gap: 30px;
  }

  .hero-content::before {
    inset: -6px -6px;  /* 减少25%: -8px * 0.75 ≈ -6px */
    backdrop-filter: blur(4.5px); /* 减少25%: 6px * 0.75 = 4.5px */
  }

  .hero p {
    color: rgba(147, 197, 253, 0.95);
  }

  .hero .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  /* 成人课程移动端优化 */
  .programs-target {
    padding: 32px 0;
  }
  
  .programs-target h2 {
    font-size: 20px;
  }
  
  .programs-target p {
    font-size: 15px;
    padding: 0 20px;
  }
  
  /* 超小屏幕额外优化 */
  @media (max-width: 375px) {
    .hero {
      height: 75vh;
      min-height: 500px;
      padding-bottom: 25px;
    }
    
    .programs-target {
      padding: 24px 0;
    }
    
    .programs-target h2 {
      font-size: 18px;
    }
    
    .programs-target p {
      font-size: 14px;
    }
  }
}


