/* 页面顶部留白 */
body {
    padding-top: 56px;
}

body {
    overscroll-behavior-y: none;
}

/* Thinner headings for section titles site-wide (keep size unchanged) */
.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* ===== Milestones (HP) - new look ===== */
.milestone-box {
  background: #d6e4f2 !important;   /* bluish fill between white panel and border */
  border: 2px solid #709edd !important; /* same stroke as inner radius */
  border-radius: 28px;              /* big rounded corners */
  padding: 28px 24px;
}

/* Remove the bold explanatory sentence above milestone title */
.milestone-box-header { display: none; }

.milestone-title {
  margin: 4px 0 18px 0;
  text-align: center;
  color: #092148;                  /* improved deep blue */
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(1.2rem, 3.4vw, 2.2rem) !important; /* smaller, proportional */
  display: block;
}

.milestone-content {
  background: #FFFFFF;              /* inner panel */
  border: 4px solid #709edd;        /* specified inner border color */
  border-radius: 22px;
  padding: 22px 24px;       
}


/* 左对齐 */
.left-aligned {
    margin-left: auto;
}
  
/* 导航栏背景色 */
.bg-dark {
    background-color: #6a7988 !important;
}
  
/* 顶部大图背景色（Hero 区块） */
/*
.bg-hero {
    background-color: #743751;
}

.bg-hero.has-image{
    background-color: transparent;
}

.header-container img {
    display: block;
    width: 100%;
    height: auto;
  }
*/

header.bg-hero {
  position: relative;    /* 作为绝对定位的参照 */
  overflow: hidden;
  min-height: 100vh; 
  margin-top: -55px;
}

/* 当每页插入 <img> 时，让它作为“背景”铺满 header */
header.bg-hero img {
  position: absolute;

  width: 100%;
  height: 100vh;
  object-fit: cover;      /* 保持比例并裁切填充 */
  display: block;
  z-index: 1;             /* 放在底层 */
  pointer-events: none;   /* 可选：避免截获鼠标事件 */
}

/* 容器内容（标题等）浮在图片上方 */
header.bg-hero .container,
header.bg-hero .row,
header.bg-hero .col-lg-12 {
  position: relative;
  z-index: 2;
}

/* 标题样式（可按需调整） */
#hero-title {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  position: absolute;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  font-size: 6vw;
  font-weight:bold; 
}

/*  Bootstrap Callout 样式 */
.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #a6a6a6;
    border-left-width: .25rem;
    border-radius: .25rem;
}
.bd-callout h4 {
    margin-bottom: 1.25rem;
}
.bd-callout p:last-child {
    margin-bottom: 0;
}
.bd-callout code {
    border-radius: .25rem;
}
.bd-callout + .bd-callout {
    margin-top: -0.25rem;
}
.bd-callout-info {
    border-left-color: #5bc0de;
}
.bd-callout-warning {
    border-left-color: #f0ad4e;
}
.bd-callout-danger {
    border-left-color: #d9534f;
}
  
/* Footer 样式 */
footer a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}
footer a:hover {
    color: white;
    text-decoration: underline;
}
  
/* Logo 鼠标悬停放大 */
.navbar-brand img,
.navbar-nav img,
.navbar .nav-link img {
    transition: transform 0.3s ease;
}
.navbar-brand img:hover,
.navbar-nav img:hover,
.navbar .nav-link img:hover {
    transform: scale(1.2);
}
  
/* 鼠标悬停自动展开下拉菜单 */
.navbar .dropdown:hover > .dropdown-menu {
    display: block !important;
    margin-top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease-in-out;
}
  
/* 初始状态隐藏并禁用点击 */
.dropdown-menu {
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
  
/* 下拉项 hover 高亮 */
.dropdown-item:hover {
    background-color: #dee2e6;
    color: #000;
}

/* 柔和下拉 */
.navbar .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* 箭头反转 */
.navbar .dropdown-toggle::after {
    transition: transform 0.3s ease;
}
.navbar .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}





/* Human Practices Card Styles */
.hp-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hp-img-placeholder {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.hp-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* HP horizontal full-width layout (keeps existing colors) */
.hp-card.horizontal {
  display: flex;
  flex-direction: row;
}
.hp-card.horizontal .hp-left {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.hp-card.horizontal .hp-right {
  flex: 1 1 auto;
  padding: 16px 20px;
}
.hp-card.horizontal .hp-name {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}
.hp-card.horizontal .hp-portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-card.horizontal .hp-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-card.horizontal .hp-img-placeholder {
  flex: 0 0 220px;
  height: auto;
  max-height: 260px;
}
.hp-card.horizontal .card-body {
  flex: 1 1 auto;
}
.hp-card.horizontal .card-text {
  overflow: visible;
  display: block;
}
.hp-card.horizontal .card-text.text-truncate {
  white-space: normal;
}
@media (max-width: 768px) {
  .hp-card.horizontal {
    flex-direction: column;
  }
  .hp-card.horizontal .hp-left {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .hp-card.horizontal .hp-img-placeholder {
    width: 100%;
    max-height: none;
  }
}
/* ===== 全局主题变量（可按需改色） ===== */
:root{
  --brand-blue:#6c82db;
  --brand-blue-deep:#104fa2;
  --accent:#ff8d01;
  --caption-bg:#fafafa;
  --shadow:0 3px 10px rgba(0,0,0,.08);
}

/* ===== 图片：圆角+阴影+悬浮放大 ===== */
.figure-box{ text-align:center; margin:24px auto 32px; max-width:900px; }
.figure-box.fig-lg{ max-width:1100px; }
.figure-box.fig-xl{ max-width:1300px; }
.figure-img{ width:100%; height:auto; border-radius:12px; box-shadow:var(--shadow); margin-bottom:10px; transition:.25s transform,.25s box-shadow; cursor: zoom-in; }
.figure-img:hover{ transform:scale(1.015); box-shadow:0 6px 18px rgba(0,0,0,.15); }

/* 图注统一 */
.figure-caption{
  font-size:15px; color:#333; line-height:1.6; text-align:justify;
  background:var(--caption-bg); border-left:4px solid var(--accent);
  padding:12px 15px; border-radius:6px;
}

/* ===== 点击放大：轻量级全局弹层 ===== */
.img-zoom-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.75);
  display:none; align-items:center; justify-content:center; z-index:10000;
}
.img-zoom-overlay.open{ display:flex; }
.img-zoom-overlay img{
  max-width:92vw; max-height:90vh; border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.35);
  cursor: zoom-out;
}

/* ===== P2 表格样式（result-table） ===== */
.result-table{
  width:95%; margin:20px auto; border-collapse:collapse;
  font-family:'Poppins',sans-serif; font-size:16px; text-align:center;
  background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,.1);
}
.result-table th{
  background-color:var(--brand-blue); color:#fff; padding:12px 10px; font-weight:700;
}
.result-table td{ padding:10px 12px; border-bottom:1px solid #e0e0e0; vertical-align:middle; }
.result-table tbody tr:last-child td{ border-bottom:none; }
.result-table tr:hover{ background-color:#f5f8ff; }
/* 若和 Bootstrap 冲突可解注释： */
/* .table.result-table th{ background-color:var(--brand-blue)!important; color:#fff!important; border:none!important; } */

/* 小屏优化 */
@media (max-width:768px){
  .result-table{ width:100%; font-size:14px; }
  .result-table th,.result-table td{ padding:10px 8px; }
}

/* ===== 小标题蓝条风格（可复用 Offline/Edu 等） ===== */
section h2.section-subtitle{
  font-family:'Poppins',sans-serif; font-weight:700; font-size:1.8rem; color:#2a3d8f;
  margin:50px 0 25px; position:relative; display:inline-block;
}
section h2.section-subtitle::before{
  content:""; position:absolute; left:-14px; top:4px; width:6px; height:80%;
  background:linear-gradient(180deg,var(--brand-blue),#a7b5ff); border-radius:4px;
}
section h2.section-subtitle:hover{ color:#4e64e5; transition:.3s; }
