:root {
    --bg: #0a0a0a;
    --text: #f5f5f5;
    --text-muted: #777;
    --accent: #ffffff;
}

[v-cloak] { display: none; }

body, html {
    margin: 0; 
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* ================= 炫酷开屏 (Hero) ================= */
.hero {
    width: 100%;
    aspect-ratio: 2 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    z-index: 1; /* 创建局部层叠上下文，防止伪元素的负层级跑到 body 下面去 */
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('public/hero-bg.webp');
    background-size: cover;
    background-position: center calc(30% + var(--parallax-y, 0px));
    background-repeat: no-repeat;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    /* 使用稳定的叠加层替代 Mask 技术，解决滚动消失 Bug */
    background: linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.2) 50%, var(--bg) 100%);
    pointer-events: none;
}
.hero-avatar {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
    animation: fadeInDown 0.8s ease-out;
}
.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 10px;
    margin: 0 0 10px 0;
    padding-left: 10px; /* offset the extra tracking */
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 14px;
    letter-spacing: 6px;
    color: #eee;
    text-transform: uppercase;
    font-weight: 300;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

/* ================= 悬浮导航栏 ================= */
.sticky-nav {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 40px;
}
.nav-item {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 6px;
    position: relative;
}
.nav-item:hover {
    color: var(--accent);
}
.nav-item.active {
    color: var(--accent);
    font-weight: 500;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
}

main {
    padding: 0 5% 20px;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.feed {
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ================= 风景：横向两端对齐排版 ================= */
.justified-container {
    --target-height: 280px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 80px auto;
    max-width: 1800px;
    width: 100%;
}
.justified-container::after {
    content: '';
    flex-grow: 999999999;
    min-width: 20%;
}
.justified-item {
    flex-grow: var(--ratio);
    flex-basis: calc(var(--target-height) * var(--ratio));
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 4px;
}
.justified-item i {
    display: block;
}
.justified-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.justified-item:hover img {
    transform: scale(1.03);
}

/* ================= 写真：时间轴与 1+5 网格 ================= */
.timeline-row {
    display: flex;
    gap: 60px;
    margin: 80px auto;
    max-width: 1000px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.timeline-row:first-child {
    border-top: none;
    margin: 40px auto 80px auto;
    padding-top: 0;
}
.timeline-info {
    flex: 0 0 220px;
    position: sticky;
    top: 140px;
    height: fit-content;
}
.t-date {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 300;
}
.t-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}
.t-loc {
    font-size: 14px;
    color: var(--text-muted);
}

.timeline-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 900px;
}
.grid-item {
    position: relative;
    cursor: zoom-in;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.grid-item:hover img {
    transform: scale(1.04);
}

/* 核心：1+5 合并布局逻辑 */
.grid-item.cover {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* 根据用户需求，稍微清晰一点的毛玻璃 */
.blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15); /* 降低黑底浓度 */
    backdrop-filter: blur(4px);   /* 降低模糊度，让底图更可见 */
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s;
}
.blur-overlay:hover {
    background: rgba(0,0,0,0.05);
}

/* ================= 组图沉浸式专属页 ================= */
.dedicated-gallery {
    max-width: 800px;
    margin: 40px auto 0;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 60px;
    transition: color 0.3s;
    font-size: 14px;
    letter-spacing: 1px;
    position: sticky;
    top: 20px;
    z-index: 50;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.back-nav:hover { color: var(--accent); }
.gallery-header { margin-bottom: 80px; text-align: center; }
.gallery-header h1 { font-size: 40px; margin: 0 0 16px; font-weight: 600; }
.gallery-header p { color: var(--text-muted); margin: 0; letter-spacing: 1px; font-weight: 300;}

.gallery-full-list img {
    width: 100%;
    margin-bottom: 40px;
    display: block;
    border-radius: 4px;
}

/* ================= 页脚 (Footer) ================= */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 5% 40px;
    background: #050505;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 1px;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.footer-info p {
    margin: 8px 0;
}
.footer-info a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-info a:hover {
    color: var(--accent);
}
.footer-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-qrcode img:hover {
    opacity: 1;
}
.footer-qrcode p {
    margin: 0;
    font-size: 12px;
}
.footer-bottom {
    font-weight: 300;
}
.footer-bottom p {
    margin: 4px 0;
}

/* ================= 全屏灯箱 (Lightbox) ================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lightbox-caption {
    margin-top: 30px;
    font-size: 13px;
    color: #999;
    letter-spacing: 2px;
    font-weight: 300;
}

/* ================= 移动端响应式 ================= */
@media (max-width: 1200px) {
    .justified-container { --target-height: 220px; }
}

@media (max-width: 768px) {
    .hero-avatar { width: 100px; height: 100px; margin-bottom: 16px; }
    .hero-title { font-size: 20px; letter-spacing: 4px; padding-left: 4px; margin-bottom: 5px; }
    .hero-subtitle { font-size: 10px; letter-spacing: 3px; }
    .sticky-nav { gap: 30px; padding: 15px 0; margin-bottom: 20px; }
    .footer-content { gap: 40px; flex-direction: column; }
    .timeline-row { flex-direction: column; gap: 16px; margin: 40px 0; }
    .timeline-info { position: static; flex: auto; }
    .timeline-grid { gap: 4px; }
    .justified-container { --target-height: 140px; gap: 8px; }
    main { padding: 0 20px 50px; }
    .gallery-header h1 { font-size: 32px; }
    .lightbox img { max-width: 100vw; }
}

@media (max-width: 480px) {
    .justified-container { --target-height: 80px; gap: 4px; }
}
