feat(wiki): 新增 GHC06 任务页与图库发布体系,级联更新既有页面
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -17,15 +17,157 @@
|
||||
.wiki-article .gallery-item .thumbcaption { padding: 4px 2px 2px; }
|
||||
@media (max-width: 820px) { .wiki-article { padding: 18px 16px 36px; } .gallery-grid { grid-template-columns: 1fr; } }
|
||||
|
||||
.wiki-article img[data-wiki-asset] { cursor: zoom-in; }
|
||||
.wiki-image-lightbox { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(32,33,34,0.84); z-index: 10000; box-sizing: border-box; }
|
||||
/* mission-gallery-enhancements:start */
|
||||
.wiki-article .gallery-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wiki-article .gallery-item {
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
overflow: hidden;
|
||||
content-visibility: auto;
|
||||
contain-intrinsic-size: 340px 300px;
|
||||
}
|
||||
.wiki-article .gallery-item img[data-wiki-asset] {
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
object-fit: contain;
|
||||
background: #202122;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
.wiki-article .gallery-item .thumbcaption {
|
||||
padding: 8px 7px 7px;
|
||||
}
|
||||
.wiki-article .gallery-notice {
|
||||
margin: 1em 0 1.25em;
|
||||
padding: 10px 12px;
|
||||
border-left: 4px solid #36c;
|
||||
background: #f1f4fd;
|
||||
color: #202122;
|
||||
}
|
||||
.wiki-article .image-placeholder {
|
||||
position: relative;
|
||||
border: 1px dashed #72777d;
|
||||
background: linear-gradient(135deg, #f8f9fa, #eaecf0);
|
||||
color: #54595d;
|
||||
}
|
||||
.wiki-article.gallery-planning .gallery-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
.wiki-article.gallery-planning .gallery-item {
|
||||
display: block;
|
||||
content-visibility: visible;
|
||||
contain-intrinsic-size: none;
|
||||
border-color: #a2a9b1;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 2px rgba(32, 33, 34, 0.08);
|
||||
}
|
||||
.wiki-article.gallery-planning .image-placeholder {
|
||||
min-height: 0 !important;
|
||||
display: block;
|
||||
padding: 14px 14px 12px;
|
||||
border: 0;
|
||||
border-left: 4px solid #72777d;
|
||||
background: #f8f9fa;
|
||||
color: #202122;
|
||||
text-align: left;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
line-height: 1.65;
|
||||
}
|
||||
.wiki-article.gallery-planning .gallery-item .thumbcaption {
|
||||
padding: 10px 14px 12px;
|
||||
border-top: 1px solid #eaecf0;
|
||||
color: #54595d;
|
||||
}
|
||||
.wiki-article.gallery-planning > .image-placeholder {
|
||||
min-height: 0;
|
||||
padding: 22px 18px;
|
||||
border-left: 4px solid #72777d;
|
||||
}
|
||||
.wiki-image-lightbox {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
background: rgba(32, 33, 34, 0.88);
|
||||
z-index: 10000;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.wiki-image-lightbox[hidden] { display: none; }
|
||||
.wiki-image-lightbox-panel { position: relative; width: min(1120px, 96vw); max-height: 92vh; overflow: auto; margin: 0; padding: 10px; border: 1px solid #a2a9b1; background: #fff; box-shadow: 0 12px 38px rgba(0,0,0,0.35); box-sizing: border-box; }
|
||||
.wiki-image-lightbox-panel img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: #000; }
|
||||
.wiki-image-lightbox-close { position: sticky; top: 0; float: right; width: 30px; height: 30px; margin: -2px -2px 8px 10px; border: 1px solid #a2a9b1; background: #eaecf0; color: #202122; font-weight: bold; line-height: 26px; cursor: pointer; }
|
||||
.wiki-image-lightbox-close:hover, .wiki-image-lightbox-close:focus { background: #fff; }
|
||||
.wiki-image-lightbox-panel {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 44px minmax(0, 1fr) 44px;
|
||||
grid-template-areas: "close close close" "prev image next" "counter caption caption";
|
||||
gap: 8px;
|
||||
width: min(1320px, 96vw);
|
||||
max-height: 94vh;
|
||||
overflow: auto;
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
border: 1px solid #a2a9b1;
|
||||
background: #fff;
|
||||
box-shadow: 0 12px 38px rgba(0, 0, 0, 0.35);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.wiki-image-lightbox-panel > img {
|
||||
grid-area: image;
|
||||
width: 100%;
|
||||
height: min(78vh, 900px);
|
||||
object-fit: contain;
|
||||
background: #000;
|
||||
}
|
||||
.wiki-image-lightbox-close {
|
||||
grid-area: close;
|
||||
justify-self: end;
|
||||
position: static;
|
||||
float: none;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
margin: 0;
|
||||
border: 1px solid #a2a9b1;
|
||||
border-radius: 3px;
|
||||
background: #eaecf0;
|
||||
color: #202122;
|
||||
font-size: 22px;
|
||||
line-height: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.wiki-image-lightbox-close:hover,
|
||||
.wiki-image-lightbox-close:focus { background: #fff; }
|
||||
.wiki-image-lightbox-prev { grid-area: prev; }
|
||||
.wiki-image-lightbox-next { grid-area: next; }
|
||||
.wiki-image-lightbox-nav {
|
||||
align-self: center;
|
||||
width: 40px;
|
||||
height: 56px;
|
||||
border: 1px solid #a2a9b1;
|
||||
border-radius: 3px;
|
||||
background: #eaecf0;
|
||||
color: #202122;
|
||||
font-size: 26px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.wiki-image-lightbox-nav:hover,
|
||||
.wiki-image-lightbox-nav:focus { background: #fff; }
|
||||
.wiki-image-lightbox-counter { grid-area: counter; color: #54595d; white-space: nowrap; }
|
||||
.wiki-image-lightbox-panel .thumbcaption { grid-area: caption; padding: 0 4px 3px; }
|
||||
body.wiki-image-lightbox-open { overflow: hidden; }
|
||||
@media (max-width: 820px) { .wiki-image-lightbox { padding: 12px; } .wiki-image-lightbox-panel { width: 98vw; max-height: 94vh; } }
|
||||
@media (max-width: 820px) {
|
||||
.wiki-article .gallery-grid { grid-template-columns: 1fr; }
|
||||
.wiki-image-lightbox-panel {
|
||||
grid-template-columns: 36px minmax(0, 1fr) 36px;
|
||||
width: 98vw;
|
||||
}
|
||||
.wiki-image-lightbox-panel > img { height: 70vh; }
|
||||
.wiki-image-lightbox-nav { width: 34px; height: 48px; }
|
||||
}
|
||||
/* mission-gallery-enhancements:end */
|
||||
</style>
|
||||
|
||||
<article class="mw-parser-output wiki-article">
|
||||
@@ -34,125 +176,21 @@ body.wiki-image-lightbox-open { overflow: hidden; }
|
||||
<p style="margin-bottom:1.5em;"><a href="/home/mission/Guanghan_Program/GHC-01">← 返回任务页</a> | 共 6 张影像,按任务阶段排列</p>
|
||||
<p style="margin-bottom:1.5em;"><b>任务图集导航</b>:<a href="/home/mission/Guanghan_Program/GHC-02/Gallery">GHC-02 图集 →</a></p>
|
||||
|
||||
<p>GHC-01 将广寒基地的核心舱送上月面——使用 CZ-16 在航区回收构型下支持的 12 m 最大直径整流罩。以下影像记录了从发射到着陆冰轮 ISRU 旁的全过程。</p>
|
||||
<p>广寒基地建设任务-01 将广寒基地的核心舱送上月面——使用长征十六号运载火箭在航区回收构型下支持的 12 m 最大直径整流罩。以下影像记录了从发射到着陆冰轮 ISRU 旁的全过程。</p>
|
||||
|
||||
<h2>发射与入轨</h2>
|
||||
<div class="gallery-grid">
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/cz16_launch_core.png" alt="CZ-16发射核心舱" data-wiki-asset="/guanghan-ghc-01/cz16_launch_core.png"><div class="thumbcaption">CZ-16 运载火箭搭载广寒核心舱从文昌发射场升空。注意 12 m 直径整流罩的宽度远超标准构型,是 CZ-16 支持的最大整流罩规格。核心舱尾部安装的临时服务舱段在整流罩内隐约可见。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/cz16_second_stage_orbit.png" alt="CZ-16二级入轨" data-wiki-asset="/guanghan-ghc-01/cz16_second_stage_orbit.png"><div class="thumbcaption">CZ-16 二级进入近地轨道。整流罩已分离,露出核心舱-转移级组合体。临时服务舱段的太阳能电池板为转移段航电和加热器供电。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/sep_from_transfer.png" alt="与转移级分离" data-wiki-asset="/guanghan-ghc-01/sep_from_transfer.png"><div class="thumbcaption">CZ-16 二级完成 TLI 注入后与核心舱-转移级组合体分离。核心舱的转移级将独立完成剩余的地月航行和着陆。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/cz16_launch_core.png" alt="CZ-16发射核心舱" data-wiki-asset="/guanghan-ghc-01/cz16_launch_core.png" loading="lazy" decoding="async" fetchpriority="low"><div class="thumbcaption">长征十六号运载火箭搭载广寒核心舱从文昌发射场升空。注意 12 m 直径整流罩的宽度远超标准构型,是长征十六号运载火箭支持的最大整流罩规格。核心舱尾部安装的临时服务舱段在整流罩内隐约可见。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/cz16_second_stage_orbit.png" alt="CZ-16二级入轨" data-wiki-asset="/guanghan-ghc-01/cz16_second_stage_orbit.png" loading="lazy" decoding="async" fetchpriority="low"><div class="thumbcaption">长征十六号运载火箭二级进入近地轨道。整流罩已分离,露出核心舱-转移级组合体。临时服务舱段的太阳能电池板为转移段航电和加热器供电。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/sep_from_transfer.png" alt="与转移级分离" data-wiki-asset="/guanghan-ghc-01/sep_from_transfer.png" loading="lazy" decoding="async" fetchpriority="low"><div class="thumbcaption">长征十六号运载火箭二级完成 TLI 注入后与核心舱-转移级组合体分离。核心舱的转移级将独立完成剩余的地月航行和着陆。</div></div>
|
||||
</div>
|
||||
|
||||
<h2>地月转移与着陆</h2>
|
||||
<div class="gallery-grid">
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/core_transfer.png" alt="核心舱转移中" data-wiki-asset="/guanghan-ghc-01/core_transfer.png"><div class="thumbcaption">核心舱-转移级组合体沿低能量转移轨道飞往月球。航程约 20 天——采用低能量轨道牺牲时间换取推进剂效率。临时服务舱段的太阳能电池板在这段航程中持续运行。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/core_prep_landing.png" alt="核心舱准备着陆" data-wiki-asset="/guanghan-ghc-01/core_prep_landing.png"><div class="thumbcaption">进入近月轨道后,核心舱-转移级组合体准备动力下降。转移级的发动机即将点火执行着陆制动。着陆点选在冰轮一号东南侧安全距离外,避免羽流扬尘损坏 ISRU 设备。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/core_landed_near_isru.png" alt="核心舱着陆在冰轮旁" data-wiki-asset="/guanghan-ghc-01/core_landed_near_isru.png"><div class="thumbcaption">2024 年 6 月 16 日,广寒核心舱成功着陆于冰轮 ISRU 着陆器旁。核心舱将保持惰性休眠状态直至 GHC-02 乘组抵达激活。背景中的冰轮一号正持续运行 ISRU。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/core_transfer.png" alt="核心舱转移中" data-wiki-asset="/guanghan-ghc-01/core_transfer.png" loading="lazy" decoding="async" fetchpriority="low"><div class="thumbcaption">核心舱-转移级组合体沿低能量转移轨道飞往月球。航程约 20 天——采用低能量轨道牺牲时间换取推进剂效率。临时服务舱段的太阳能电池板在这段航程中持续运行。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/core_prep_landing.png" alt="核心舱准备着陆" data-wiki-asset="/guanghan-ghc-01/core_prep_landing.png" loading="lazy" decoding="async" fetchpriority="low"><div class="thumbcaption">进入近月轨道后,核心舱-转移级组合体准备动力下降。转移级的发动机即将点火执行着陆制动。着陆点选在冰轮一号东南侧安全距离外,避免羽流扬尘损坏 ISRU 设备。</div></div>
|
||||
<div class="gallery-item"><img src="/guanghan-ghc-01/core_landed_near_isru.png" alt="核心舱着陆在冰轮旁" data-wiki-asset="/guanghan-ghc-01/core_landed_near_isru.png" loading="lazy" decoding="async" fetchpriority="low"><div class="thumbcaption">2024 年 6 月 16 日,广寒核心舱成功着陆于冰轮 ISRU 着陆器旁。核心舱将保持惰性休眠状态直至广寒基地建设任务-02 乘组抵达激活。背景中的冰轮一号正持续运行 ISRU。</div></div>
|
||||
</div>
|
||||
|
||||
<p style="margin-top:1.5em;"><b>任务图集导航</b>:<a href="/home/mission/Guanghan_Program/GHC-02/Gallery">GHC-02 图集 →</a></p>
|
||||
<p style="margin-top:1.5em;"><a href="/home/mission/Guanghan_Program/GHC-01">← 返回任务页</a></p>
|
||||
<script>
|
||||
(function () {
|
||||
function ready(fn) {
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', fn, { once: true });
|
||||
} else {
|
||||
fn();
|
||||
}
|
||||
}
|
||||
|
||||
function captionFor(image) {
|
||||
var container = image.closest('figure, td, tr, .infobox-image, .gallery-item');
|
||||
if (!container) {
|
||||
return image.alt || '';
|
||||
}
|
||||
var caption = container.querySelector('.thumbcaption');
|
||||
return caption ? caption.textContent.trim() : (image.alt || '');
|
||||
}
|
||||
|
||||
function install(article) {
|
||||
if (!article || article.dataset.lightboxReady === '1') {
|
||||
return;
|
||||
}
|
||||
article.dataset.lightboxReady = '1';
|
||||
|
||||
var overlay = document.createElement('div');
|
||||
overlay.className = 'wiki-image-lightbox';
|
||||
overlay.hidden = true;
|
||||
overlay.innerHTML = '<figure class="wiki-image-lightbox-panel" role="dialog" aria-modal="true"><button class="wiki-image-lightbox-close" type="button" aria-label="Close image preview">x</button><img alt=""><figcaption class="thumbcaption"></figcaption></figure>';
|
||||
document.body.appendChild(overlay);
|
||||
|
||||
var previewImage = overlay.querySelector('img');
|
||||
var previewCaption = overlay.querySelector('figcaption');
|
||||
var closeButton = overlay.querySelector('.wiki-image-lightbox-close');
|
||||
|
||||
function closePreview() {
|
||||
overlay.hidden = true;
|
||||
previewImage.removeAttribute('src');
|
||||
previewCaption.textContent = '';
|
||||
document.body.classList.remove('wiki-image-lightbox-open');
|
||||
}
|
||||
|
||||
function openPreview(image, event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
if (event.stopImmediatePropagation) {
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
previewImage.src = image.currentSrc || image.src;
|
||||
previewImage.alt = image.alt || '';
|
||||
previewCaption.textContent = captionFor(image);
|
||||
overlay.hidden = false;
|
||||
document.body.classList.add('wiki-image-lightbox-open');
|
||||
closeButton.focus();
|
||||
}
|
||||
|
||||
article.querySelectorAll('img[data-wiki-asset]').forEach(function (image) {
|
||||
if (image.dataset.lightboxBound === '1') {
|
||||
return;
|
||||
}
|
||||
image.dataset.lightboxBound = '1';
|
||||
image.addEventListener('click', function (event) {
|
||||
openPreview(image, event);
|
||||
}, true);
|
||||
});
|
||||
|
||||
article.addEventListener('click', function (event) {
|
||||
var image = event.target.closest && event.target.closest('img[data-wiki-asset]');
|
||||
if (!image || !article.contains(image) || image.closest('.wiki-image-lightbox')) {
|
||||
return;
|
||||
}
|
||||
openPreview(image, event);
|
||||
});
|
||||
|
||||
closeButton.addEventListener('click', closePreview);
|
||||
overlay.addEventListener('click', function (event) {
|
||||
if (event.target === overlay) {
|
||||
closePreview();
|
||||
}
|
||||
});
|
||||
document.addEventListener('keydown', function (event) {
|
||||
if (event.key === 'Escape' && !overlay.hidden) {
|
||||
closePreview();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function installAll() {
|
||||
document.querySelectorAll('.wiki-article, .vulture-article').forEach(install);
|
||||
}
|
||||
|
||||
ready(function () {
|
||||
installAll();
|
||||
if (window.MutationObserver) {
|
||||
var observer = new MutationObserver(installAll);
|
||||
observer.observe(document.body, { childList: true, subtree: true });
|
||||
}
|
||||
window.setTimeout(installAll, 500);
|
||||
window.setTimeout(installAll, 1500);
|
||||
window.setTimeout(installAll, 3000);
|
||||
});
|
||||
}());
|
||||
</script>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user