:root { --paper: #101215; --ink: #edf0f4; --muted: #a7adb6; --surface: #1b1f26; --accent: #a9caff; --electric: #f0ce98; color-scheme: dark; }
.sky-hero, .sky-contact { background: #090b16 url('assets/scene/mountain.webp') center / cover no-repeat; color: #f2f5ff; }
.sky-hero .hero-title { color: #f6f8ff; }
.sky-hero .glass-stage { transform: none !important; }
main { position: relative; }
.hero-copy > p, .hero-meta { color: #e4eaf6; }
.hero-meta p { text-wrap: pretty; }
.hero-meta p:not(:first-child) { display: none; }
.glass-fallback { color: #c2d5ff; }
.site-header { color: #eef2fc; }
.site-header .resume-link img, .hero-enter img, .scene-pause img { filter: invert(1); }
.site-header.is-scrolled::before { background: #101215; }
.site-header.is-scrolled.on-sky::before { background: #0c0e19; }
.identity-mark { background: #efce96; }
.hero-pointer { display: none; }
.header-tools { display: flex; justify-self: end; align-items: center; gap: 22px; }
.language-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid #7e8da3; border-radius: 4px; }
.language-switch button { padding: 4px 8px; font-size: 12px; min-width: 32px; line-height: 1.5; color: inherit; }
.language-switch button[aria-pressed="true"] { background: #d8e5fa; color: #10151f; border-radius: 2px; }
.about, .discipline-rail { background: var(--paper); }
.photography, .viewer, .inverse { color: #edf2fa; }
.viewer-heading p { color: #bdc7d8; }
.contact-action { background: #eef3fc; }
.contact-action img { filter: invert(1); }
.contact-details, .contact-top, .contact footer { color: #f4f6fc; }
.contact-details { background: #0a0d16e8; padding: 18px 20px; margin-bottom: 16px; }
.contact footer { color: #c2ccdc; }
.image-action { background: #e5eaf2; }
.image-action img { filter: none; }
.text-link > img, .discipline-rail img, summary > img, .contact-details img, .contact footer img { filter: invert(1); }
html[lang="en"] .sky-hero .hero-title { font-size: 88px; }
html[lang="en"] .hero-copy > p { font-size: 30px; max-width: 16em; }
html[lang="en"] .contact-top h2 { font-size: 68px; }
html[lang="en"] .case-heading { flex-wrap: wrap; }
@media(max-width:700px) {
 .site-header { grid-template-columns: 1fr auto; gap: 8px; min-height: 104px; padding-bottom: 42px; }
 .site-header nav { position: absolute; top: 60px; left: 0; right: 0; justify-content: space-between; gap: 8px; }
 .header-tools { grid-column: 2; grid-row: 1; gap: 0; }
 .hero-meta { top: 120px; }
 .site-header::before { height: 104px; }
 .language-switch button { min-width: 30px; }
 html[lang="en"] .sky-hero .hero-title { font-size: 54px; }
 html[lang="en"] .hero-copy > p { font-size: 23px; }
 html[lang="en"] .contact-top h2 { font-size: 36px; }
 .contact-details { margin-inline: -4px; padding: 14px 12px; }
 .hero-copy { bottom: 90px; }
}

/* 首尾屏：始终按视口高度铺满，背景 cover 保持照片比例 */
.hero.sky-hero { height: calc(100svh - 20px); min-height: 0; max-height: none; }
.sky-contact { height: auto; min-height: 100svh; max-height: none; padding-top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(140px, 1fr) auto auto; justify-items: stretch; align-items: stretch; }
.sky-contact .contact-top { flex: none; margin-bottom: 0; align-items: start; }
.sky-contact > .contact-top, .sky-contact > .contact-details, .sky-contact > footer, .contact-scene-space { width: 100%; }
.contact-scene-space { min-width: 0; min-height: 140px; }
@media (max-width: 700px) { .sky-contact { padding-top: 120px; } }
@media (max-height: 450px) {
 .hero-meta { top: 104px; }
 .hero-meta p:first-child { font-size: 12px; line-height: 1.25; }
 .hero-copy { bottom: 52px; }
 .sky-hero .hero-title { font-size: 40px; }
 html[lang="en"] .sky-hero .hero-title { font-size: 38px; }
 .hero-copy > p, html[lang="en"] .hero-copy > p { font-size: 14px; margin-top: 8px; max-width: none; }
 .sky-hero-footer { bottom: 4px; }
 .contact-top h2, html[lang="en"] .contact-top h2 { font-size: 36px; }
}

/* 尾屏 3D 山体/字全宽，避免和 CSS 背景形成接缝 */
.sky-contact .glass-stage { max-width: none; margin-inline: 0; width: 100%; }
