/* C 风格：Hero 深色 + 下方白色 */
/* ===== Hero A：第一屏沉浸式 ===== */
.hero{
  background:     
    radial-gradient(800px 400px at 30% 20%, rgba(28,63,170,.35), transparent 60%),
    linear-gradient(135deg,#0b0f1a 0%, #111c3a 100%);
  color:#fff;

  /* 关键：让 Hero 成为真正第一屏 */
  min-height: 70vh;
  display:flex;
  align-items:center;

  /* 关键：吃掉导航下方空白（如果你觉得过猛，可改成 -20px） */
  margin-top: 0;
  padding-top: 88px;
}

/* Hero 内部留白 */
.hero-inner{
  padding-top: 48px;
  padding-bottom: 48px;
  max-width: 900px;
}

/* 标题层级 */
.hero h1{
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 900;
  letter-spacing: .5px;
  margin: 0 0 12px 0;
}

.hero p{
  font-size: 18px;
  opacity: .88;
  line-height: 1.6;
  margin: 0 0 18px 0;
  max-width: 46rem;
}

/* Hero 按钮：把 Markdown 链接变成按钮组 */
.hero a{
  display:inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  background:#1C3FAA;
  color:#fff !important;
  text-decoration:none;
  font-weight:700;
  margin-right: 10px;
}

.hero a:hover{ background:#162e7d; }

/* 第二个链接做成“描边按钮”（如果你有两个链接） */
.hero a + a{
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
}
.hero a + a:hover{
  background: rgba(255,255,255,.10);
}

/* 移动端字号收敛 */
@media (max-width: 560px){
  .hero{ min-height: 64vh; margin-top:-48px; padding-top:48px; }
  .hero h1{ font-size: 34px; }
  .hero p{ font-size: 16px; }
}

/* 核心入口卡片 */
.nav-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:14px; }
.nav-card{ display:block; border:1px solid rgba(0,0,0,.08); border-radius:14px; padding:14px; text-decoration:none; background:#fff; transition:transform .12s ease, box-shadow .12s ease; }
.nav-card:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.10); }
.nav-title{ font-weight:800; color:#111; }
.nav-desc{ margin-top:6px; font-size:13px; color:rgba(0,0,0,.75); line-height:1.45; }
@media (max-width:900px){ .nav-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .nav-grid{ grid-template-columns:1fr; } }

/* ===== 首页：新闻卡片（横向滚动版） ===== */
.home-news{ background:#fff; }

.home-section-title{
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 18px 0;
  color:#111;
}

/* 横向滚动容器 */
.news-grid{
  display:flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 10px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* 卡片：固定宽度，方便滚动 */
.news-card{
  flex: 0 0 320px;
  scroll-snap-align: start;

  display:block;
  border-radius: 16px;
  overflow:hidden;
  text-decoration:none;
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
  color: inherit;
}

.news-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.news-cover{
  height: 160px;
  background-size: cover;
  background-position: center;
}

.news-body{ padding: 14px 14px 16px 14px; }

.news-title{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color:#111;
  margin-bottom: 6px;
}

.news-meta{
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

/* 小屏：卡片窄一点、封面略高 */
@media (max-width: 560px){
  .news-card{ flex-basis: 280px; }
  .news-cover{ height: 180px; }
}


/* ===== 顶部导航叠在 Hero 上，去掉白条 ===== */

/* 1) 把导航容器变透明 */
header, .site-header, .site-header > div,
nav, .site-navigation {
  background: transparent !important;
}

/* 2) 导航文字保持可读 */
header a, nav a {
  color: rgba(255,255,255,.92) !important;
}
header a:hover, nav a:hover {
  color: #fff !important;
}

/* 3) 让导航浮在 Hero 上面（不占位） */
header, .site-header, nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

/* ===== 只修复 footer 后面的白条，不影响内容区 ===== */

/* 1) 浏览器默认 margin 清零（安全） */
html, body { margin: 0; padding: 0; }

/* 2) 让页面整体成为“导航 + 内容 + 页脚”，避免底部空白露出 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 3) main 占满剩余高度，白条不会出现在 footer 下面 */
main { flex: 1; }

/* 4) footer 保持黑底（如果你 footer 本来就是黑的可留着） */
footer { background: #000; }

@media (max-width: 560px){
  .hero .hero-inner { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 34px; }
  .hero p  { font-size: 16px; }
}
/* C 风格：Hero 深色 + 下方白色 */

/* ===== Hero：图片虚化背景（预留未来视频） ===== */

.hero{
  position: relative;
  overflow: hidden;
  color:#fff;
  min-height: 70vh;
  display:flex;
  align-items:center;

  /* 保持你之前的导航留白 */
  padding-top: 88px;
}

/* 背景图层 */
.hero::before{
  content:"";
  position:absolute;
  inset:-10px; /* 放大一点，防止模糊边缘露白 */
  background-image: url("/images/hero-bg.jpg");
  background-size: cover;
  background-position: 50% 60%;
  background-repeat: no-repeat;

  filter: blur(2px);
  transform: scale(1.08); /* 配合 blur 防止边缘 */
  opacity: 1;
  z-index: 0;
}

/* 暗化遮罩层：保证文字可读 */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(6,10,18,.55);
  z-index: 1;
}

/* 内容层在最上面 */
.hero .hero-inner{
  position: relative;
  z-index: 2;
}
