/* 新增文字区域独立叠放，不侵入原版标题/正文的布局与几何令牌。 */
.visual-text-layer { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 1500; pointer-events: none; }
.visual-text-region {
  position: absolute;
  top: var(--vtr-top, 0px);
  left: calc(12px + (100% - 24px - min(var(--vtr-width, 320px), 100% - 24px)) * var(--vtr-x, 0));
  width: min(var(--vtr-width, 320px), calc(100% - 24px));
  min-height: var(--vtr-height, 120px);
  box-sizing: border-box; padding: 8px; margin: 0;
  color: var(--text, #1b232b); background: transparent;
  font-family: var(--site-font, sans-serif); font-size: 16px; line-height: 1.8;
  overflow-wrap: anywhere; pointer-events: auto;
}
.visual-text-region:empty { pointer-events: none; }
.visual-text-layer.is-editing .visual-text-region { pointer-events: auto; outline: 1px dashed #c9a227; outline-offset: 1px; }
.visual-text-layer.is-editing .visual-text-region:empty::before { content: '双击输入文字'; color: #64748b; pointer-events: none; }
.visual-text-layer.is-editing .visual-text-region.has-save-error { outline: 2px solid #b91c1c; }
.ve-text-box.is-custom-region .ve-lock, .ve-text-box.is-custom-region .ve-reset { display: none; }

/* Minimal clean styling */
:root { --nav-h: 72px; }

* { box-sizing: border-box; }
html, body { height:100%; }
body { display:flex; flex-direction:column; min-height:100vh; overflow-x:hidden; }
/* Reference-style typography: prefer serif for headings/body like Noto Serif SC */
body { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); margin:0; color:#222; line-height:1.8; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
html { scroll-behavior: smooth; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.site-header { border-bottom: 1px solid #eee; }
.site-header .brand { font-weight: 700; font-size: 20px; padding: 16px 0; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }
.main-nav a { text-decoration: none; color: #333; padding: 12px 8px; display: block; font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); letter-spacing:1px; font-weight:500; }
.main-nav a:hover { color: #007bff; }
main { padding: 24px 0; padding-top: var(--nav-h); flex: 1 0 auto; }
.site-footer { border-top: 1px solid #eee; padding: 16px 0; color: #666; font-size: 14px; }
.footer { margin-top:auto; }
.page-content img { max-width: 100%; height: auto; }
/* 图文环绕包含：浮动图片由正文容器兜住，绝不溢出卡片/页面 */
.page-content { display: flow-root; }
.page-content::after { content: ''; display: block; clear: both; }
form input, form textarea, form select { width: 100%; padding: 8px; margin: 6px 0 12px; border: 1px solid #ccc; border-radius: 4px; }
button, .btn { background: var(--primary); color: #fff; padding: 8px 14px; border: none; border-radius: 4px; cursor: pointer; }
button.secondary, .btn.secondary { background: var(--accent); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #eee; padding: 8px; text-align: left; }
.table th { background: #f8f9fa; }
.actions a { margin-right: 8px; }

/* --- Calm Academic Theme (Navy/Slate) --- */
:root {
  --primary: #24415a;      /* navy */
  --primary-600: #1d3549;  /* darker navy */
  --accent: #6a7d8f;       /* muted slate */
  --accent-600: #56697b;
  --sun: var(--gold, #c9a227); /* subdued gold (rare) */
  --text: #1b232b;         /* deep neutral text */
  /* 主题金色体系默认值（后台“系统设置-主题金色”选色器保存后由 header.ejs 覆盖） */
  --gold: #c9a227;
  --gold-rgb: 201, 162, 39;
  --gold-pale: #e8d5a3;
  --gold-light: #e5c158;
  --gold-dark: #b8952a;
  --gold-deep: #997404;
}

body { color: var(--text); background: #fff; }
.container { max-width: 1200px; }

/* Header/Nav */
.site-header { position: fixed; top: 0; left:0; right:0; z-index: 1000; background: rgba(255,255,255,.6); backdrop-filter: blur(10px) saturate(140%); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.site-header .container { display:flex; align-items:center; justify-content:space-between; }
.site-header .brand a { color:#111; font-size:22px; text-decoration:none; letter-spacing:.2px; }
.main-nav ul { gap: 22px; }
.main-nav a { font-weight:600; letter-spacing:.5px; text-transform: uppercase; color:#263547; border-radius:999px; padding:.6rem 1rem; transition: all .2s ease; }
.main-nav a:hover, .main-nav a.active { color:#fff; background: var(--primary); box-shadow:0 4px 12px rgba(0,0,0,.08); }

/* Hero section */
.hero { position: relative; color: #fff; padding: 100px 0 80px; background: #0b1020; overflow:hidden; min-height:100vh; display:flex; align-items:center; }
.hero .bg { position:absolute; inset:0; background-size: cover; background-position: center; opacity:.92; filter: saturate(115%); }
.hero .bg.dynamic { 
  /* 多层辐射渐变叠加 + 主渐变，营造学术冷色系流动感 */
  background:
    radial-gradient(60% 80% at 18% 22%, rgba(54,109,201,.35) 0%, transparent 60%),
    radial-gradient(60% 80% at 82% 28%, rgba(31,197,227,.25) 0%, transparent 60%),
    radial-gradient(90% 80% at 50% 86%, rgba(143,84,221,.18) 0%, transparent 60%),
    linear-gradient(120deg, #0b1020, #12243a, #0b1020);
  background-size: 140% 140%, 140% 140%, 140% 140%, 200% 200%;
  animation: bg-pan 22s ease-in-out infinite alternate;
  opacity: .96;
}
.hero .bg.dynamic::after {
  /* 细微噪点，避免大面积纯色产生带状感 */
  content:""; position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.015), rgba(255,255,255,.015) 2px, transparent 2px, transparent 4px);
  mix-blend-mode: soft-light; opacity:.35;
}
.hero .bg.dynamic::before {
  /* 远景光晕 */
  content:""; position:absolute; inset:-10% -20%; filter: blur(40px);
  background: radial-gradient(50% 40% at 70% 30%, rgba(255,255,255,.08), transparent 60%);
}
.hero .bg.dynamic + .overlay { background: linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.22) 28%, rgba(0,0,0,.34) 52%, rgba(0,0,0,.60) 100%); }

@keyframes bg-pan {
  0%   { background-position: 0% 30%, 80% 20%, 50% 90%, 0% 0%; }
  50%  { background-position: 20% 40%, 70% 30%, 48% 70%, 50% 50%; }
  100% { background-position: 60% 70%, 20% 60%, 45% 40%, 100% 100%; }
}
.hero .bg .molecule-svg { position:absolute; inset:0; width:100%; height:100%; opacity:.6; }
.hero .overlay { position:absolute; inset:0; background:
  linear-gradient(180deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.18) 28%,
    rgba(0,0,0,.28) 48%,
    rgba(0,0,0,.52) 78%,
    rgba(0,0,0,.60) 100%
  ); }
.hero .container { position:relative; }
.hero .title { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); font-size:3.8rem; line-height:1.2; font-weight:700; margin:0 0 12px; letter-spacing:2px; text-shadow:0 6px 28px rgba(0,0,0,.35); }
.hero .subtitle { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); font-size:1.6rem; opacity:.95; max-width:880px; text-shadow:1px 1px 3px rgba(0,0,0,.5); }
.hero .location { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); font-size:1.3rem; margin-bottom:2.5rem; opacity:.9; letter-spacing:1.5px; text-shadow:1px 1px 3px rgba(0,0,0,.5); }
.hero .cta { margin-top:20px; display:flex; gap:12px; flex-wrap:wrap; }
.hero .btn-outline { border:0; color:#fff; background: var(--primary); padding:1rem 2.4rem; border-radius:999px; text-decoration:none; text-transform:uppercase; letter-spacing:2px; font-weight:600; font-family:var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); box-shadow:0 8px 18px rgba(0,0,0,.12); }
.hero .btn-outline:hover { filter:brightness(1.03); transform: translateY(-1px); background: var(--primary-600); }
.hero .frame { position:relative; margin-top:28px; display:inline-block; border:0; }
.hero .frame img { position:relative; z-index:1; display:block; max-width: 760px; height:auto; border-radius:12px; }

/* Sections */
section { margin: 28px 0; }
h1, h2, h3 { color:#0b2b4a; }
.section { position:relative; }
.section-title { position:relative; display:inline-block; padding-bottom:.5rem; }
.section-title:after { content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-12px; width:120px; height:4px; border-radius:999px; background: var(--primary); box-shadow:0 4px 12px rgba(0,0,0,.08); }

/* Footer */
/* 与后台「系统设置 → 主题配色」的默认页脚底色保持一致（siteDefaults.DEFAULT_COLORS.footer_bg） */
.site-footer { background:#f5f5f5; }

/* ==== Reference navbar styles ==== */
.navbar { position: fixed; top:0; left:0; right:0; display:flex; justify-content:space-between; align-items:center; padding:1rem 5%; background: rgba(255,255,255,0.72); backdrop-filter: blur(10px) saturate(140%); box-shadow:0 4px 16px rgba(0,0,0,0.06); z-index:1000; border-bottom: none; }
.logo img { height: 50px; }
.logo { display:flex; align-items:center; gap:.5rem; text-decoration:none; color:#111; font-weight:700; font-size:20px; }
.logo:hover { color:#111; text-decoration:none; }
.nav-links { display:flex; list-style:none; gap:2rem; margin:0; padding:0; }
.navbar .nav-links li { list-style:none; margin:0; padding:0; }
.nav-links a { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); text-decoration:none; color:#2d4a6d; font-weight:600; letter-spacing:1px; transition:all .2s ease; font-size:1.05rem; border-radius:999px; padding:.4rem .9rem; }
.nav-links a:hover, .nav-links a.active { color:#2d4a6d; background: #e8eef5; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.mobile-menu-toggle { display:none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.3s ease; }
.mobile-menu-toggle:hover { background: rgba(var(--gold-rgb),0.1); }
.mobile-menu-toggle:active { transform: scale(0.95); }
.mobile-menu-toggle i { font-size: 24px; color: #333; transition: transform 0.3s ease, color 0.3s ease; }
.mobile-menu-toggle:hover i { color: var(--gold); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links { 
    position: fixed; 
    top: 64px; 
    left: 0; 
    right: 0; 
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12); 
    padding: 16px 24px; 
    display: none; 
    flex-direction: column; 
    gap: 4px;
    z-index: 999;
    border-top: 1px solid #eee;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open { 
    display: flex;
    transform: translateY(0);
    opacity: 1;
    animation: slideDown 0.3s ease;
  }
  .nav-links a { 
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
  }
  .nav-links a:hover, .nav-links a.active {
    background: rgba(var(--gold-rgb),0.08);
    box-shadow: none;
    border-left-color: var(--gold);
    color: var(--gold);
  }
  .mobile-menu-toggle { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  .mobile-menu-toggle i {
    transition: transform 0.3s ease;
  }
  .mobile-menu-toggle.open i {
    transform: rotate(90deg);
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== Reference hero detail ==== */
.hero .hero-content { position:relative; z-index:1; flex:1; max-width:600px; }
.hero h1 { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); font-size:3.8rem; margin-bottom:1.5rem; font-weight:600; letter-spacing:4px; text-shadow:1px 1px 3px rgba(0,0,0,.5); }
.hero .subtitle { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); font-size:1.6rem; margin-bottom:1rem; font-weight:400; letter-spacing:2px; text-shadow:1px 1px 3px rgba(0,0,0,.5); }
.hero .location { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); font-size:1.3rem; margin-bottom:2.5rem; opacity:.9; letter-spacing:1.5px; font-weight:400; text-shadow:1px 1px 3px rgba(0,0,0,.5); }
.cta-buttons { display:flex; gap:1rem; }
.cta-button { font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif); display:inline-block; padding:1rem 2.8rem; border:2px solid #fff; border-radius:4px; color:#fff; text-decoration:none; font-weight:500; letter-spacing:2px; transition:all .3s ease; text-transform:uppercase; }
.cta-button:hover { background:#fff; color:#333; }
.hero .container:not(.hero-wrap) { display:flex; gap:40px; align-items:center; flex-direction: row-reverse; }
/* --- Simple stacked hero (text only + media strip) --- */
.hero .container.hero-simple { display:flex; flex-direction: column; align-items: center; gap: clamp(14px,3vw,28px); padding: 0 5vw; text-align: center; }
.hero .container.hero-simple .hero-content { max-width: min(980px, 94vw); }
.hero .container.hero-simple .note-photo { position: relative; width: clamp(200px, 22vw, 340px); margin: 4px auto 8px; perspective: 1200px; pointer-events: auto; animation: fade-up .7s ease .02s both; display:none; }
.hero .container.hero-simple .photo-card { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.22);
  transform-origin: bottom center; transform: rotateX(18deg) translateY(6px) scale(.955);
  transition: transform 1.2s ease-in-out .08s, border-color .9s ease-in-out .08s; background: #0e1626; cursor: zoom-in; will-change: transform;
  transform-style: preserve-3d; backface-visibility: hidden; }
.hero .container.hero-simple .photo-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.25)); pointer-events: none; }
.hero .container.hero-simple .photo-card::after { content: ""; position: absolute; left: 14px; top: -8px; width: 64px; height: 10px; border-radius: 6px 6px 0 0; background: rgba(240,244,255,.85); border: 1px solid rgba(255,255,255,.6); border-bottom: 0; transform: rotateZ(-1.2deg); }
.hero .container.hero-simple .photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(2px) saturate(.95) brightness(.95); transition: filter 1.1s ease-in-out .08s, opacity 1.1s ease-in-out .08s; opacity:.92; will-change: filter, opacity; }
.hero .container.hero-simple .note-photo:not(.auto-opening):hover .photo-card,
.hero .container.hero-simple .note-photo:not(.auto-opening):focus .photo-card,
.hero .container.hero-simple .note-photo:not(.auto-opening):focus-within .photo-card { transform: rotateX(0deg) translateY(0) scale(1.04); border-color: rgba(255,255,255,.4); cursor: zoom-in; }
.hero .container.hero-simple .note-photo:not(.auto-opening):hover .photo-card img,
.hero .container.hero-simple .note-photo:not(.auto-opening):focus .photo-card img,
.hero .container.hero-simple .note-photo:not(.auto-opening):focus-within .photo-card img { filter: blur(0) saturate(1) brightness(1); opacity:1; }
.hero .container.hero-simple .note-photo.is-open .photo-card { transform: rotateX(0deg) translateY(0) scale(1.04) !important; border-color: rgba(255,255,255,.4); }
.hero .container.hero-simple .note-photo.is-open .photo-card img { filter: blur(0) saturate(1) brightness(1); opacity:1; }
.hero .container.hero-simple .note-photo:focus-visible { outline: 2px solid var(--primary, #4f80ff); outline-offset: 4px; border-radius: 14px; }
.hero .container.hero-simple .cta-buttons { justify-content: center; }
.hero .container.hero-simple .media-strip { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hero .container.hero-simple .media-track { display: flex; gap: 12px; width: max-content; animation: media-scroll 28s linear infinite; }
.hero .container.hero-simple .media-item { flex: 0 0 auto; width: clamp(160px, 20vw, 260px); aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border:1px solid rgba(255,255,255,.22); }
.hero .container.hero-simple .media-item img { width: 100%; height: 100%; object-fit: cover; display:block; }
.hero .container.hero-simple .media-strip:hover .media-track { animation-play-state: paused; }
/* Auto-opening animation to guarantee stand-up */
@keyframes photo-stand {
  from { transform: rotateX(18deg) translateY(6px) scale(.955); border-color: rgba(255,255,255,.22); }
  to   { transform: rotateX(0deg) translateY(0) scale(1.04);  border-color: rgba(255,255,255,.4); }
}
@keyframes photo-clarify {
  from { filter: blur(2px) saturate(.95) brightness(.95); opacity:.92; }
  to   { filter: blur(0)  saturate(1)   brightness(1);   opacity:1; }
}
.hero .container.hero-simple .note-photo.auto-opening .photo-card { 
  transition: none !important;
  animation: photo-stand 1.2s cubic-bezier(.33,0,.2,1) .08s both;
}
.hero .container.hero-simple .note-photo.auto-opening .photo-card img {
  transition: none !important;
  animation: photo-clarify 1.1s cubic-bezier(.33,0,.2,1) .08s both;
}
/* headline + CTA refinements */
.hero .container.hero-simple .hero-content h1 { letter-spacing: 2px; text-shadow: none; margin-bottom: 1rem; }
.hero .container.hero-simple .hero-content h1::after { content:""; display:block; width: 72px; height: 3px; margin: .6rem auto 0; background: linear-gradient(90deg, var(--primary,#4f80ff), #7aa8ff); border-radius: 999px; opacity:.9; }
.hero .container.hero-simple .hero-content .subtitle { text-shadow: none; opacity: .95; }
.hero .container.hero-simple .hero-content .location { text-shadow: none; opacity: .9; }
.hero .container.hero-simple .cta-buttons .cta-button:first-child { background: #fff; color: #1b2a41; border-color: #fff; }
.hero .container.hero-simple .cta-buttons .cta-button:first-child:hover { background: #eaf1ff; border-color:#eaf1ff; }
.hero .container.hero-simple .cta-buttons .cta-button:last-child { background: transparent; }
.hero .container.hero-simple .media-strip { opacity: 0; animation: fade-up .8s ease .45s forwards; }
/* quick links row */
.hero .container.hero-simple .quick-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; opacity: 0; animation: fade-up .8s ease .55s forwards; }
.hero .container.hero-simple .q-link { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 220px; max-width: 280px; padding: 14px 16px; border-radius: 999px; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(14,22,38,.42); backdrop-filter: blur(6px); box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.hero .container.hero-simple .q-link:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.35); border-color: rgba(255,255,255,.45); background: rgba(14,22,38,.55); }
.hero .container.hero-simple .q-link .q-title { font-weight: 600; letter-spacing: .4px; }
.hero .container.hero-simple .q-link .q-desc { opacity: .85; font-size: .92rem; }

/* --- Top CTA buttons beautify --- */
.hero .container.hero-simple .cta-buttons { gap: 14px; }
.hero .container.hero-simple .cta-buttons .cta-button { 
  border-radius: 14px; padding: 12px 28px; font-weight: 700; letter-spacing: .6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; 
}
/* filled (left) */
.hero.light .container.hero-simple .cta-buttons .cta-button:first-child {
  /* 更灰更淡的白灰按钮 */
  background: rgba(246,247,249,.62);
  color:#1b2a41;
  border: 1.5px solid rgba(27,42,65,.22);
  text-shadow: none;
  backdrop-filter: blur(6px);
}
.hero.light .container.hero-simple .cta-buttons .cta-button:first-child:hover { 
  transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.16);
  background: rgba(246,247,249,.74);
  border-color: rgba(27,42,65,.3);
}
/* outlined (right) */
.hero.light .container.hero-simple .cta-buttons .cta-button:last-child {
  /* 完全中空按钮 */
  background: transparent; color:#1b2a41; border: 2px solid rgba(27,42,65,.85);
}
.hero.light .container.hero-simple .cta-buttons .cta-button:last-child:hover { 
  background: rgba(27,42,65,.06); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* --- Three pill cards beautify --- */
.hero.light .container.hero-simple .q-link { 
  color:#1b2a41; border-color: rgba(0,0,0,.06); 
  background: rgba(255,255,255,.42); /* 再透明一点 */
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  align-items: center; text-align: center; /* 更靠中 */
}
.hero.light .container.hero-simple .q-link:hover { 
  background: rgba(255,255,255,.52); border-color: rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.hero.light .container.hero-simple .q-link .q-title, 
.hero.light .container.hero-simple .q-link .q-desc { 
  transform: translateX(-6px); /* 不是完全在中间，略向左偏一点 */
}

/* --- Light variant for hero (white/gray with molecular chains) --- */
.hero.light { color:#1b2a41; background:#f6f8fb; }
.hero.light .bg.dynamic {
  /* 橙色网格背景（用户提供样式的橙色改版） */
  --gap: 5em;
  --line: 1px;
  --color: rgba(255, 149, 0, 0.22);
  background: #fff8f1;
  background-image:
    linear-gradient(-90deg,
      transparent calc(var(--gap) - var(--line)),
      var(--color) calc(var(--gap) - var(--line) + 1px),
      var(--color) var(--gap)
    ),
    linear-gradient(0deg,
      transparent calc(var(--gap) - var(--line)),
      var(--color) calc(var(--gap) - var(--line) + 1px),
      var(--color) var(--gap)
    );
  background-size: var(--gap) var(--gap);
  opacity:1; animation: none; filter:none;
}
.hero.light .bg.dynamic::before, .hero.light .bg.dynamic::after { display:none; }
.hero.light .overlay { background: linear-gradient(180deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.78) 35%, rgba(255,255,255,.88) 100%); }
.hero.light h1, .hero.light .subtitle, .hero.light .location { color:#1b2a41; text-shadow:none; }
.hero.light .cta-button { border-color:#1b2a41; color:#1b2a41; }
.hero.light .cta-button:hover { background:#1b2a41; color:#fff; }
.hero.light .container.hero-simple .q-link { color:#1b2a41; border-color: rgba(0,0,0,.06); background: rgba(255,255,255,.8); backdrop-filter: blur(4px); }
.hero.light .container.hero-simple .q-link:hover { background:#fff; border-color: rgba(0,0,0,.1); }

/* stagger for three links */
.hero .container.hero-simple .quick-links .q-link:nth-child(1) { animation: fade-up .6s ease .58s both; }
.hero .container.hero-simple .quick-links .q-link:nth-child(2) { animation: fade-up .6s ease .66s both; }
.hero .container.hero-simple .quick-links .q-link:nth-child(3) { animation: fade-up .6s ease .74s both; }
/* --- New hero layout v2: stacked center (text above, image below) --- */
.hero .container.hero-wrap { position: relative; display:flex; flex-direction: column; align-items: center; gap: clamp(16px,3vw,32px); padding: 0 5vw; }
.hero .container.hero-wrap .hero-content { position: static; max-width: min(980px, 94vw); text-align: center; color:#fff; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.hero .container.hero-wrap .hero-image { position:relative; z-index:1; display:block; padding:0; width:100%; }
.hero .container.hero-wrap .image-frame { margin: 0 auto; max-width: min(1100px, 92vw); }
.hero .container.hero-wrap .cta-buttons { margin-top: 1rem; justify-content: center; }
.hero .container.hero-wrap .hero-content h1,
.hero .container.hero-wrap .hero-content .subtitle,
.hero .container.hero-wrap .hero-content .location,
.hero .container.hero-wrap .hero-content .cta-buttons { text-shadow: 1px 1px 2px rgba(0,0,0,.35); }
.hero-image { position:relative; z-index:1; flex:1; display:flex; justify-content:center; align-items:center; padding:2rem; }
/* --- Clean layout + motion --- */
.image-frame { position:relative; width:100%; max-width:720px; aspect-ratio:16/9; overflow:hidden; border-radius:18px; background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.22); opacity:0; transform: translateY(20px) scale(.985);
  animation: slide-in-up .9s cubic-bezier(.2,.8,.2,1) .2s forwards; transition: transform .3s ease; }
.image-frame img { width:100%; height:100%; object-fit:cover; display:block; border-radius:16px; }
.hero-image:hover .image-frame { transform: translateX(0) scale(1.005); }
.image-caption { position:absolute; right:12px; bottom:10px; z-index:2; padding:.42rem .7rem; border-radius:999px; font: 600 11px/1 'Noto Sans SC',system-ui,sans-serif;
  background: rgba(0,0,0,.35); color:#fff; letter-spacing:.3px; border:1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px); }

/* hero text entrance */
.hero h1, .hero .subtitle, .hero .location, .hero .cta-buttons { opacity:0; animation: fade-up .8s ease forwards; }
.hero h1 { animation-delay: .05s; }
.hero .subtitle { animation-delay: .18s; }
.hero .location { animation-delay: .28s; }
.hero .cta-buttons { animation-delay: .38s; }

@keyframes fade-up { from { transform: translateY(12px); opacity:0 } to { transform: translateY(0); opacity:1 } }
@keyframes slide-in-right { from { transform: translateX(24px) scale(.985); opacity:0 } to { transform: translateX(0) scale(1); opacity:1 } }
@keyframes slide-in-left { from { transform: translateX(-24px) scale(.985); opacity:0 } to { transform: translateX(0) scale(1); opacity:1 } }
@keyframes slide-in-up { from { transform: translateY(20px) scale(.985); opacity:0 } to { transform: translateY(0) scale(1); opacity:1 } }
@keyframes media-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .subtitle, .hero .location, .hero .cta-buttons, .image-frame, .hero .container.hero-simple .media-track, .hero .container.hero-simple .note-photo { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero .container.hero-simple .photo-card { transition: none; }
}

@media (max-width: 900px) {
  .hero .container { flex-direction: column; }
  .hero .container.hero-wrap { padding: 0 5vw; }
  .hero .container.hero-wrap .hero-content { position: static; max-width: none; margin-top: 16px; background: rgba(10,16,28,.55); }
}

/* ==== Sections from reference ==== */
.section { padding:80px 0; }
.section:nth-child(even) { background-color:#f8f9fa; }
.section-title { text-align:center; font-size:2.5rem; margin-bottom:3rem; font-weight:600; color:#333; }
.research-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); gap:2rem; }
.research-item { background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); padding:2rem 1.5rem; text-align:center; transition: box-shadow .3s, transform .2s ease; }
.research-item:hover { box-shadow:0 16px 32px rgba(0,0,0,0.12); transform: translateY(-4px); }
.research-item i { font-size:2.5rem; color: var(--accent); margin-bottom:1rem; }
.research-item h3 { font-size:1.4rem; margin-bottom:.5rem; font-weight:600; }
.members-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); gap:2rem; }
.member-card { background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); padding:2rem 1.5rem; text-align:center; transition: box-shadow .3s, transform .2s ease; }
.member-card:hover { box-shadow:0 16px 32px rgba(0,0,0,0.12); transform: translateY(-4px); }
.member-card img { width:120px; height:120px; object-fit:contain; border-radius:10px; background:#ffffff; border:1px solid rgba(15,23,42,0.12); margin-bottom:1rem; }
.member-card h3 { font-size:1.2rem; margin-bottom:.3rem; font-weight:600; }
.member-card p { font-size:1rem; color:#666; }
.highlights-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:2rem; }
.highlight-item { background:#fff; border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,0.06); padding:2rem 1.5rem; text-align:center; }
.highlight-number { font-size:2.2rem; color: var(--accent); font-weight:700; margin-bottom:.5rem; }
.highlight-item h3 { font-size:1.1rem; margin-bottom:.3rem; font-weight:600; }
.publications-list { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px,1fr)); gap:2rem; }
.publication-item { background:#fff; border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,0.06); padding:1.5rem 1.2rem; }
.publication-item h3 { font-size:1.1rem; font-weight:600; margin-bottom:.5rem; }
.authors, .journal { font-size:.95rem; color:#888; }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:1.5rem; }
.gallery-item { border-radius:10px; overflow:hidden; }
.gallery-item img { width:100%; height:180px; object-fit:cover; display:block; }
.gallery-item:hover img { filter: brightness(.85); }
.join-content { display:flex; align-items:center; gap:2.5rem; flex-wrap:wrap; }
.join-text h3 { font-size:1.3rem; font-weight:600; margin-bottom:1rem; }
.join-text ul { margin:1rem 0 1.5rem 1.2rem; }
.join-text li { font-size:1rem; color:#666; margin-bottom:.5rem; }
.join-image img { width:320px; border-radius:10px; }
.platform-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:2rem; }
.platform-item { background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); padding:2rem 1.5rem; text-align:center; transition: box-shadow .3s, transform .2s ease; }
.platform-item:hover { box-shadow:0 16px 32px rgba(0,0,0,0.12); transform: translateY(-4px); }
.platform-item i { font-size:2.5rem; color:#ff8800; margin-bottom:1rem; }
.platform-item h3 { font-size:1.2rem; margin-bottom:.5rem; font-weight:600; }
.platform-link { display:inline-block; margin-top:1rem; color:#0066cc; text-decoration:underline; font-size:1rem; transition:color .2s; }
.platform-link:hover { color:#ff8800; }
.footer { background:#f5f5f5; color:#2d4a6d; padding:36px 0 12px; }
.footer-content { display:flex; justify-content:space-between; flex-wrap:wrap; gap:2rem; max-width:1200px; margin:0 auto 30px; padding:0 20px; }
.footer-section h3 { font-size:1.1rem; margin-bottom:1rem; color:#2d4a6d; }
.social-links a { color:#2d4a6d; margin-right:.8rem; font-size:1.2rem; }
/* Footer quick links */
.footer-section a { color:#2d4a6d; text-decoration:none; transition: color .2s ease; }
.footer-section a:hover { color:#1a365d; text-decoration:none; }
.footer-bottom { border-top:1px solid #ddd; padding-top:20px; text-align:center; font-size:0.9rem; }

/* Remove trailing space below last block inside main to avoid big white area on short pages */
main > *:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
main > .container:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
main > .container:last-child > *:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.articles-page { padding: 0; margin-bottom: 0; }
.articles-page > *:last-child { margin-bottom: 0; }
.articles-page .section-title { margin-top: 20px; }

/* Articles list timeline */
.articles-layout { display:grid; grid-template-columns: 1fr 200px; gap: 40px; margin-top: 24px; }
.articles-main { min-width:0; }
.articles-timeline { position:sticky; top: calc(var(--nav-h) + 20px); align-self:start; padding-right:8px; position: sticky; }
.articles-timeline .timeline-header { display:none; }
.articles-timeline { position:relative; }
.articles-timeline::before { content:""; position:absolute; right:4px; top:0; bottom:0; width:2px; background: linear-gradient(180deg, rgba(110,86,207,.35), rgba(110,86,207,.1)); border-radius:1px; }
.articles-timeline ul { list-style:none; margin:0; padding:0 18px 0 0; max-height: calc(100vh - 160px); overflow:auto; }
.articles-timeline li { position:relative; padding:.5rem 0; }
.articles-timeline a { position:relative; display:block; color:#667085; text-decoration:none; text-align:right; font-size:.85rem; line-height:1; padding-right:26px; transition: color .2s ease, transform .2s ease; font-variant-numeric: tabular-nums; }
.articles-timeline a::after { content:""; position:absolute; right:0; top:50%; width:9px; height:9px; border-radius:50%; background: #c9c2f2; transform: translateY(-50%); box-shadow:0 0 0 2px #fff; }
.articles-timeline a:hover { color:#0b2b4a; transform: translateX(-2px); }
.articles-timeline a:hover::after { background: var(--accent, #6e56cf); }

.articles-header-row { display:grid; grid-template-columns: 1fr 120px; gap: 16px; padding:.6rem 0; margin:0 0 0.8rem; color:#667085; font-weight:600; border-bottom:1px solid #e9ecef; }
.articles-list { list-style:none; margin:0; padding:0; }
.article-row { display:grid; grid-template-columns: 1fr 120px; gap:16px; padding:.65rem 0; border-bottom:1px dashed #e9ecef; align-items:center; }
.article-row .title { color:#0b2b4a; text-decoration:none; font-size: 1.02rem; }
.article-row .title:hover { color: var(--accent); text-decoration: underline; }
.article-row .date { color:#98a2b3; text-align:right; font-variant-numeric: tabular-nums; }
.article-row.no-date { grid-template-columns: 1fr; }
.day-anchor { position: relative; top: calc(-1 * var(--nav-h)); height: 0; }

@media (max-width: 520px) {
  .articles-layout { grid-template-columns: 1fr; }
  .articles-timeline { position:static; order:-1; }
  .articles-header-row, .article-row { grid-template-columns: 1fr 88px; }
}

/* When the first section is a hero, remove the main top padding to avoid visible gap. */
html.has-hero main { padding-top: 0; }

/* 全局 section { margin: 28px 0 } 会在 Hero 与页脚之间露出 body 背景；页脚另有 margin-top 时更明显 */
section.hero {
  margin-top: 0;
  margin-bottom: 0;
}
html.has-hero .footer {
  margin-top: 0;
}

/* ==========================================================================
   学术风指定图片显示大小右键菜单与尺寸规范样式 (藏青金徽高对比度体系)
   ========================================================================== */
img[data-display-size="large"] {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

img[data-display-size="mlarge"] {
  width: 75% !important;
  max-width: 75% !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

img[data-display-size="medium"] {
  width: 50% !important;
  max-width: 50% !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

img[data-display-size="msmall"] {
  width: 35% !important;
  max-width: 35% !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

img[data-display-size="small"] {
  width: 20% !important;
  max-width: 20% !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.academic-img-size-menu {
  position: fixed;
  z-index: 999999;
  min-width: 195px;
  background: #182a44;
  background: rgba(24, 42, 68, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(10, 20, 35, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 6px 0;
  display: none;
  opacity: 0;
  transform: scale(0.96) translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  user-select: none;
  font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif);
}

.academic-img-size-menu.aism-show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.aism-header {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 14px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.aism-header i {
  color: var(--gold);
  font-size: 12px;
}

.aism-items {
  padding: 4px 0;
}

.aism-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7.5px 14px;
  font-size: 13px;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.aism-item:hover {
  background: #24415a;
  color: #ffffff;
  border-left-color: var(--gold);
  padding-left: 17px;
}

.aism-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.aism-label i {
  font-size: 12.5px;
  width: 14px;
  text-align: center;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.aism-item:hover .aism-label i {
  color: var(--gold);
}

.aism-pct {
  font-size: 11.5px;
  color: #94a3b8;
  margin-left: 2px;
}

.aism-check {
  font-size: 11px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.aism-item.active {
  color: var(--gold);
  font-weight: 600;
}

.aism-item.active .aism-label i {
  color: var(--gold);
}

.aism-item.active .aism-check {
  opacity: 1;
}

.aism-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.aism-reset {
  color: #94a3b8;
  font-size: 12px;
}

.aism-reset:hover {
  color: #ffffff;
}

.academic-size-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #182a44;
  color: #f8fafc;
  border: 1px solid var(--gold);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(10, 20, 35, 0.35);
  z-index: 9999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  font-family: var(--site-font, system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif);
  letter-spacing: 0.2px;
}

.academic-size-toast.toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 图片去阴影（用户规范 2026-10-20）：全站所有 img（含内联样式）一律无阴影，与背景融为一体 */
img { box-shadow: none !important; }

/* 正文图片同行排布（编辑器拖拽并排产生，2026-10-20）：保存的 .img-row 在前台渲染为同一行
   2.2.27m：图片仅“相邻”不“隶属”（行容器无框、图片尺寸互不参照）；行内图片一律不收缩、
   不拉伸，各自保持自己的尺寸并排展示；宽高比以保存 HTML 内联 aspect-ratio 为准 */
.img-row { display: flex; flex-wrap: nowrap; gap: 0; align-items: flex-start; margin: 16px 0; }
.img-row > img { flex: 0 0 auto; max-width: 100% !important; height: auto !important; margin: 0 !important; float: none !important; }
.img-row > .img-row-text { flex: 1 1 0; min-width: 4em; overflow-wrap: anywhere; margin-left: 12px; }

/* 锁定文字区间（2.2.43）：锁定后内部文字统一继承容器基准字号，让自动缩小字号对整段生效，
   同时消除“个别字仍是旧字号、其余字已变”的半截状态；字体图标不参与统一 */
[data-ve-locked] span,
[data-ve-locked] font,
[data-ve-locked] strong,
[data-ve-locked] em,
[data-ve-locked] b,
[data-ve-locked] u,
[data-ve-locked] s { font-size: inherit !important; }
[data-ve-locked] i:not([class*="fa-"]) { font-size: inherit !important; }

/* 两端对齐：英文靠空格撑开；中文没有词间空格，必须声明 ideograph 才看得到拉伸 */
[style*="text-align: justify"],
[style*="text-align:justify"] {
  text-align: justify;
  text-justify: inter-ideograph;
}

/* =========================================================================
   统一页面标题区（page-hero）
   以团队页 /team 的标题结构为基准，用一套 CSS 变量集中控制字号、间距、
   副标题与装饰线，避免每个页面各写一份、切换页面时标题区高度跳动。
   高度由 CSS Grid 的公共预算决定：
   行槽依次为「两行标题槽 / 标题间距 / 副标题行 / 装饰线间距 / 装饰线」。
   标题占槽底对齐；副标题行按实际内容取高，没有副标题时高度为 0，
   装饰线因此始终紧贴最后一行文字（标题或副标题），不再被空副标题槽推远。
   标题区总高度仍由 --page-hero-min-h 固定，没有副标题时多出的空间落在
   装饰线下方，各页标题区高度与正文起点保持完全一致。只有标题超过两行
   或副标题超过一行时行槽才会自然增高，宁可长高也不裁切正文。背景图/轮播区（首页 Hero）不套用本类。
   ========================================================================= */
:root {
  --page-hero-pad-top: clamp(16px, 2.6vw, 28px);
  --page-hero-pad-bottom: clamp(14px, 2vw, 20px);
  --page-hero-pad-x: 20px;
  --page-hero-gap-bottom: clamp(18px, 3vw, 28px);
  --page-hero-title-size: clamp(1.65rem, 2.2vw + 1rem, 2.35rem);
  --page-hero-title-lh: 1.32;
  --page-hero-title-gap: clamp(4px, 0.7vw, 8px);
  --page-hero-sub-size: clamp(0.88rem, 0.35vw + 0.8rem, 1.05rem);
  --page-hero-sub-lh: 1.6;
  --page-hero-divider-w: clamp(40px, 6vw, 56px);
  --page-hero-divider-h: 2px;
  --page-hero-divider-gap: 8px;
  /* 保留原有外框预算，收紧的间距全部移到线下，不改变正文起点。 */
  --page-hero-divider-budget: clamp(8px, 1vw, 12px);
  /* 两行标题槽与一行副标题槽：整个标题区的高度基准只由这三个值决定 */
  --page-hero-title-slot: calc(var(--page-hero-title-size) * var(--page-hero-title-lh) * 2 + 1px);
  --page-hero-sub-slot: calc(var(--page-hero-sub-size) * var(--page-hero-sub-lh));
  --page-hero-min-h: calc(
    var(--page-hero-pad-top) + var(--page-hero-pad-bottom) +
    var(--page-hero-title-slot) +
    var(--page-hero-title-gap) +
    var(--page-hero-sub-slot) +
    var(--page-hero-divider-budget) + var(--page-hero-divider-h)
  );
}

.page-hero {
  --page-hero-live-title-gap: 0px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows:
    minmax(var(--page-hero-title-slot), auto)
    var(--page-hero-live-title-gap)
    auto
    var(--page-hero-divider-gap)
    var(--page-hero-divider-h);
  align-content: start;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  text-align: center;
  min-height: var(--page-hero-min-h);
  padding: var(--page-hero-pad-top) var(--page-hero-pad-x) var(--page-hero-pad-bottom);
  margin: 0 auto var(--page-hero-gap-bottom);
}

.page-hero:has(> .page-hero-sub:not(:empty):not([data-hero-empty]), > .news-detail-meta:not(:empty)) {
  --page-hero-live-title-gap: var(--page-hero-title-gap);
}

.page-hero .page-hero-sub:empty,
.page-hero .page-hero-sub[data-hero-empty] {
  display: none;
}

/* 两段式选择器确保统一规则胜过各页面原有的单类名规则。
   可视化编辑器的标题框工具会把宽度、最小高度、负外边距写成内联样式，
   富文本粘贴还会留下嵌套的字号；几何值由服务端 sanitizeHeroTitle 与
   PageHero 回显清理，字体族保留；CSS 同时兜底旧的普通内联值。
   两行槽额外预留 1px，吸收浏览器对子像素行高的取整，超长内容仍自然增高。 */
.page-hero .page-hero-title {
  grid-row: 1;
  align-self: end;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: var(--page-hero-title-size) !important;
  line-height: var(--page-hero-title-lh) !important;
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
}

/* 标题内部的 span/font/b 不带独立字号与行高，避免行盒被字体度量撑高 */
.page-hero .page-hero-title * {
  font-size: inherit !important;
  line-height: 1 !important;
  vertical-align: baseline;
}

/* 副标题按实际内容取高，无内容不占标题间距；日期/作者同样处理。
   总高预算保持一致，空余全部留在线下，线与最后一个文字行盒相距 8px。 */
.page-hero .page-hero-sub,
.page-hero .news-detail-meta {
  grid-row: 3;
  align-self: center;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  font-size: var(--page-hero-sub-size) !important;
  line-height: var(--page-hero-sub-lh) !important;
}

.page-hero .page-hero-sub {
  max-width: min(60ch, 100%);
  overflow-wrap: anywhere;
}

.page-hero .page-hero-sub *,
.page-hero .news-detail-meta * {
  font-size: inherit !important;
  line-height: 1 !important;
  vertical-align: baseline;
}

/* 多行日期/作者可自然增高，不再锁死高度导致文字与线重叠。 */
.page-hero .news-detail-meta {
  align-items: center;
  min-height: var(--page-hero-sub-slot);
  height: auto;
  max-width: 100%;
  flex-wrap: wrap;
}

.page-hero .page-hero-divider {
  background: var(--gold, #c9a227);
}

/* 各页面原有的装饰线只需保留颜色，几何尺寸与槽位统一由这里控制 */
.page-hero .page-hero-divider,
.page-hero .team-divider,
.page-hero .research-divider,
.page-hero .articles-divider,
.page-hero .contact-divider,
.page-hero .gallery-gold-divider {
  grid-row: 5;
  justify-self: center;
  align-self: center;
  flex: 0 0 auto;
  width: var(--page-hero-divider-w);
  height: var(--page-hero-divider-h);
  margin: 0;
  border-radius: 1px;
}