/* ============================================================
   Index Page — v6.0
   布局：navbar(fixed top) | main-scroll(flex:1,overflow-y:auto) | footer(fixed bottom)
   ============================================================ */

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold:      #c0a96e;
    --gold-lt:   #d4b978;
    --bg:        #000;
    --bg1:       #0d0d0d;
    --bg3:       #1a1a1a;
    --text:      #fff;
    --muted:     #888;
    --nav-h:     56px;
    --footer-h:  44px;
    --radius:    10px;
}

html { height: 100%; }

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    /* 让 main-scroll 填充 nav 和 footer 之间的空间 */
    min-height: 100vh;
}

a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* ===== 导航（fixed top） ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.navbar .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .02em;
}

.navbar .nav-links { display: flex; gap: 1.6rem; font-size: .9rem; }
.navbar .nav-links a { color: #ccc; }
.navbar .nav-links a:hover { color: var(--gold); }

/* ===== 主滚动容器 ===== */
.main-scroll {
    margin-top: var(--nav-h);
    padding-bottom: var(--footer-h);
    overflow-x: hidden;
}

/* 美化滚动条（仅在支持的浏览器） */
.main-scroll::-webkit-scrollbar { width: 4px; }
.main-scroll::-webkit-scrollbar-track { background: transparent; }
.main-scroll::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

/* ===== Hero 全屏区（通用样式） ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    background-size: 16px 16px, 100% 100%;
    backdrop-filter: blur(3px);
    z-index: 2;
}

.hero-brand {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeUp .8s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    /* 黑金渐变：深黑 → 金黄 → 深金 */
    background: linear-gradient(135deg, #1a1a1a 0%, #d4a843 40%, #f5c842 60%, #a07820 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* text-shadow 与 transparent fill 不兼容，改用 filter */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.hero-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* ===== Hero 样式1: Grid Pan（网格横向流动） ===== */
.hero[data-style="grid"] .hero-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-auto-columns: 220px;
    grid-auto-flow: column;
    gap: 6px;
    width: max-content;
    min-width: 200%;
    animation: heroPanLeft 65s linear infinite;
}

.hero[data-style="grid"] .hero-bg-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

@keyframes heroPanLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Hero 样式2: Parallax Layers（视差分层） ===== */
.hero[data-style="parallax"] .hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero[data-style="parallax"] .parallax-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: transform 0.1s linear;
}

.hero[data-style="parallax"] .parallax-layer-1 {
    animation: parallaxMove1 20s ease-in-out infinite alternate;
    z-index: 0;
}

.hero[data-style="parallax"] .parallax-layer-2 {
    animation: parallaxMove2 25s ease-in-out infinite alternate;
    z-index: 1;
}

.hero[data-style="parallax"] .parallax-layer-3 {
    animation: parallaxMove3 30s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes parallaxMove1 {
    0% { transform: scale(1.1) translateX(-3%) translateY(-2%); }
    100% { transform: scale(1.15) translateX(3%) translateY(2%); }
}
@keyframes parallaxMove2 {
    0% { transform: scale(1.15) translateX(2%) translateY(3%); }
    100% { transform: scale(1.2) translateX(-2%) translateY(-3%); }
}
@keyframes parallaxMove3 {
    0% { transform: scale(1.2) translateX(-1%) translateY(-1%); }
    100% { transform: scale(1.25) translateX(1%) translateY(1%); }
}

/* ===== Hero 样式3: Mosaic Puzzle（拼图切换） ===== */
.hero[data-style="mosaic"] .hero-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    padding: 20px;
}

.hero[data-style="mosaic"] .mosaic-tile {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    animation: mosaicFade 6s ease-in-out infinite;
    opacity: 0;
}

.hero[data-style="mosaic"] .mosaic-tile:nth-child(1) { animation-delay: 0s; }
.hero[data-style="mosaic"] .mosaic-tile:nth-child(2) { animation-delay: 0.7s; }
.hero[data-style="mosaic"] .mosaic-tile:nth-child(3) { animation-delay: 1.4s; }
.hero[data-style="mosaic"] .mosaic-tile:nth-child(4) { animation-delay: 2.1s; }
.hero[data-style="mosaic"] .mosaic-tile:nth-child(5) { animation-delay: 2.8s; }
.hero[data-style="mosaic"] .mosaic-tile:nth-child(6) { animation-delay: 3.5s; }
.hero[data-style="mosaic"] .mosaic-tile:nth-child(7) { animation-delay: 4.2s; }
.hero[data-style="mosaic"] .mosaic-tile:nth-child(8) { animation-delay: 4.9s; }
.hero[data-style="mosaic"] .mosaic-tile:nth-child(9) { animation-delay: 5.6s; }

@keyframes mosaicFade {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===== Hero 样式4: Zoom Ken Burns（缩放淡入淡出） ===== */
.hero[data-style="zoom"] .hero-bg {
    position: absolute;
    inset: 0;
}

.hero[data-style="zoom"] .zoom-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: kenBurns 8s ease-in-out infinite;
}

.hero[data-style="zoom"] .zoom-slide:nth-child(1) { animation-delay: 0s; }
.hero[data-style="zoom"] .zoom-slide:nth-child(2) { animation-delay: 2s; }
.hero[data-style="zoom"] .zoom-slide:nth-child(3) { animation-delay: 4s; }
.hero[data-style="zoom"] .zoom-slide:nth-child(4) { animation-delay: 6s; }
.hero[data-style="zoom"] .zoom-slide:nth-child(5) { animation-delay: 8s; }
.hero[data-style="zoom"] .zoom-slide:nth-child(6) { animation-delay: 10s; }
.hero[data-style="zoom"] .zoom-slide:nth-child(7) { animation-delay: 12s; }
.hero[data-style="zoom"] .zoom-slide:nth-child(8) { animation-delay: 14s; }

@keyframes kenBurns {
    0% { opacity: 0; transform: scale(1); }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.15); }
}

/* ===== Hero 样式5: Staggered Cards（交错卡片） ===== */
.hero[data-style="cards"] .hero-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 320px;
    gap: 16px;
    padding: 20px;
    overflow: hidden;
}

.hero[data-style="cards"] .card-item {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: cardFloat 6s ease-in-out infinite;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}

.hero[data-style="cards"] .card-item:hover {
    opacity: 1;
    transform: scale(1.05) !important;
}

.hero[data-style="cards"] .card-item:nth-child(odd) { animation-duration: 7s; }
.hero[data-style="cards"] .card-item:nth-child(3n) { animation-duration: 8s; }
.hero[data-style="cards"] .card-item:nth-child(even) { animation-duration: 6s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ===== Hero 响应式 ===== */
@media (max-width: 900px) {
    .hero-title { font-size: 2.5rem; }
    .hero-desc { font-size: 1.1rem; }
    .hero[data-style="grid"] .hero-bg { grid-auto-columns: 170px; }
    .hero[data-style="cards"] .hero-bg {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 240px;
        gap: 12px;
    }
}
@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-logo { max-width: 80px; max-height: 80px; }
    .hero[data-style="grid"] .hero-bg { grid-auto-columns: 130px; gap: 4px; }
    .hero[data-style="mosaic"] .hero-bg { gap: 4px; padding: 10px; }
    .hero[data-style="cards"] .hero-bg {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 8px;
        padding: 10px;
    }
}

/* ===== 最新作品区 ===== */
.latest-section {
    padding: 2.4rem 1.6rem 1.6rem;
    background: var(--bg);
}

.latest-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.latest-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #c0a96e 0%, #a89268 100%);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(192,169,110,0.3);
}

.latest-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.latest-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .04em;
}

.latest-more {
    font-size: .8rem;
    color: var(--muted);
}
.latest-more:hover { color: var(--gold); }

/* ===== 瀑布流（CSS columns） ===== */
.waterfall {
    columns: 5;
    column-gap: 10px;
}

.wf-card {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg3);
    display: block;
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

.wf-card img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 60px;
    transition: filter .3s;
}

.wf-card:hover img { filter: brightness(1.08); }

/* 顶部金色遮罩 - 显示头像和基本信息 */
.wf-hover-top {
    position: absolute;
    left: 0; right: 0; top: 0;
    background: rgba(192,169,110,0.85);
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.wf-card:hover .wf-hover-top { opacity: 1; }

.wf-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #c0a96e;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.wf-author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.2rem;
}

.wf-location {
    font-size: 0.78rem;
    color: #333;
    text-align: center;
}

/* 中间放大镜图标 */
.wf-zoom-icon {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 64px;
    height: 64px;
    opacity: 0;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.wf-card:hover .wf-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.wf-zoom-icon svg {
    width: 100%;
    height: 100%;
    fill: #c0a96e;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* 底部黑色遮罩 - 显示EXIF信息 */
.wf-hover-bottom {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.wf-card:hover .wf-hover-bottom { opacity: 1; }

.wf-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
}

.wf-shot-time {
    color: #c0a96e;
    font-weight: 600;
}

.wf-exif-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e6e6e6;
}

.wf-exif-secondary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ccc;
    font-size: 0.76rem;
}

.wf-exif-label {
    color: #666;
    font-size: 0.72rem;
    margin-right: 0.1rem;
}

.wf-empty {
    column-span: all;
    text-align: center;
    padding: 4rem 0;
    color: var(--muted);
    font-size: .9rem;
}

.wf-sentinel {
    text-align: center;
    padding: 1.4rem 0 2rem;
    color: var(--muted);
    font-size: .82rem;
}

/* ===== 底部（fixed bottom） ===== */
.footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--footer-h);
    z-index: 900;
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-size: .78rem;
    color: var(--muted);
}

.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold); }
.footer .sep { color: #2e2e2e; }

/* ===== gLightbox 图片内部遮罩描述区域 ===== */
/* 暂时不隐藏 gLightbox 的默认描述区域,先测试 */
/*
.gslide-desc,
.gslide-description {
    display: none !important;
}
*/

/* 图片容器相对定位 */
.glightbox-container .gslide-media {
    position: relative !important;
}

/* 图片内部的遮罩层 */
.glightbox-image-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.95) 100%) !important;
    color: #e6e6e6 !important;
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    padding: 1.2rem 1.5rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    z-index: 100 !important;
    box-sizing: border-box !important;
}

/* 图片内部遮罩的SVG图标 */
.glightbox-image-overlay svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: currentColor !important;
}

/* 图片内部遮罩的第一行：头像、名称、拍摄时间、描述 */
.glightbox-image-overlay .desc-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    flex-wrap: nowrap !important;
}

.glightbox-image-overlay .desc-avatar {
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: rgba(192,169,110,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #c0a96e !important;
}

.glightbox-image-overlay .desc-info-main {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.glightbox-image-overlay .desc-name {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: #c0a96e !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
}

.glightbox-image-overlay .desc-shot-time {
    color: #999 !important;
    font-size: 0.75rem !important;
}

.glightbox-image-overlay .desc-text-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: #ccc !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
}

.glightbox-image-overlay .desc-text {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.glightbox-image-overlay .desc-text.expanded {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
}

.glightbox-image-overlay .desc-expand-btn {
    flex-shrink: 0 !important;
    color: #c0a96e !important;
    cursor: pointer !important;
    font-size: 0.78rem !important;
    user-select: none !important;
    transition: color 0.2s !important;
}

.glightbox-image-overlay .desc-expand-btn:hover {
    color: #fff !important;
}

/* 第二行：EXIF 信息 */
.glightbox-image-overlay .desc-exif-row {
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
    color: #999 !important;
    font-size: 0.77rem !important;
}

.glightbox-image-overlay .desc-exif-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.glightbox-image-overlay .desc-exif-label {
    color: #666 !important;
    margin-right: 0.1rem !important;
}

.glightbox-image-overlay .desc-exif-value {
    color: #ccc !important;
}

.glightbox-image-overlay .desc-exif-value.empty {
    color: #444 !important;
    font-style: italic !important;
}

/* 第三行：标签 */
.glightbox-image-overlay .desc-tags-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    overflow: hidden !important;
    color: #999 !important;
    font-size: 0.77rem !important;
}

.glightbox-image-overlay .desc-tags-label {
    flex-shrink: 0 !important;
    color: #666 !important;
}

.glightbox-image-overlay .desc-tags-list {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.glightbox-image-overlay .desc-tag {
    background: rgba(192,169,110,0.12) !important;
    color: #c0a96e !important;
    padding: 0.1rem 0.45rem !important;
    border-radius: 3px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
}

/* 第四行：地址 */
.glightbox-image-overlay .desc-location-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex-wrap: wrap !important;
    color: #999 !important;
    font-size: 0.77rem !important;
}

.glightbox-image-overlay .desc-location-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
}

.glightbox-image-overlay .desc-location-item svg {
    width: 12px !important;
    height: 12px !important;
    opacity: 0.6 !important;
}

.glightbox-image-overlay .desc-location-value {
    color: #888 !important;
}

.glightbox-image-overlay .desc-location-value.empty {
    color: #444 !important;
    font-style: italic !important;
}

/* 修复 SVG 尺寸问题 - 覆盖 gLightbox 默认样式 */
.gdesc-inner svg,
.gslide-description svg,
.glightbox-container svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: currentColor !important;
}

.gdesc-inner::before {
    display: none !important;
}

/* 第一行：作者头像、名称、拍摄时间、照片描述 */
.gdesc-inner .desc-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    flex-wrap: nowrap !important;
}

.gdesc-inner .desc-avatar {
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: rgba(192,169,110,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #c0a96e !important;
}

.gdesc-inner .desc-info-main {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.gdesc-inner .desc-name {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: #c0a96e !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
}

.gdesc-inner .desc-shot-time {
    color: #666 !important;
    font-size: 0.75rem !important;
}

.gdesc-inner .desc-text-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: #ccc !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
}

.gdesc-inner .desc-text {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.gdesc-inner .desc-text.expanded {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
}

.gdesc-inner .desc-expand-btn {
    flex-shrink: 0 !important;
    color: #c0a96e !important;
    cursor: pointer !important;
    font-size: 0.78rem !important;
    user-select: none !important;
    transition: color 0.2s !important;
}

.gdesc-inner .desc-expand-btn:hover {
    color: #fff !important;
}

/* 第二行：EXIF 信息（一行显示） */
.gdesc-inner .desc-exif-row {
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
    color: #999 !important;
    font-size: 0.77rem !important;
}

.gdesc-inner .desc-exif-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.gdesc-inner .desc-exif-label {
    color: #666 !important;
    margin-right: 0.1rem !important;
}

.gdesc-inner .desc-exif-value {
    color: #ccc !important;
}

.gdesc-inner .desc-exif-value.empty {
    color: #444 !important;
    font-style: italic !important;
}

/* 第三行：标签（一行显示，多余省略） */
.gdesc-inner .desc-tags-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    overflow: hidden !important;
    color: #999 !important;
    font-size: 0.77rem !important;
}

.gdesc-inner .desc-tags-label {
    flex-shrink: 0 !important;
    color: #666 !important;
}

.gdesc-inner .desc-tags-list {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.gdesc-inner .desc-tag {
    background: rgba(192,169,110,0.12) !important;
    color: #c0a96e !important;
    padding: 0.1rem 0.45rem !important;
    border-radius: 3px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
}

/* 第四行：拍摄时间、国家、城市、区/县、街道 */
.gdesc-inner .desc-location-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex-wrap: wrap !important;
    color: #999 !important;
    font-size: 0.77rem !important;
}

.gdesc-inner .desc-location-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
}

.gdesc-inner .desc-location-item svg {
    width: 12px !important;
    height: 12px !important;
    opacity: 0.6 !important;
}

.gdesc-inner .desc-location-value {
    color: #888 !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .gdesc-inner {
        padding: 1rem 1.1rem !important;
        font-size: 0.78rem !important;
        gap: 0.6rem !important;
    }

    .gdesc-inner .desc-exif-row,
    .gdesc-inner .desc-location-row {
        gap: 0.8rem !important;
    }

    .gdesc-inner .desc-exif-row {
        flex-wrap: wrap !important;
    }

    .gdesc-inner .desc-location-row {
        flex-wrap: wrap !important;
    }
}

/* 确保移动端适配 */
@media (max-width: 768px) {
    .gdesc-inner {
        padding: 1.2rem 1.1rem 1rem;
        min-height: auto;
    }
    .gdesc-inner .desc-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .gdesc-inner .desc-value {
        white-space: normal;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) { .waterfall { columns: 4; } }
@media (max-width: 900px)  { .waterfall { columns: 3; } .hero-bg { grid-auto-columns: 170px; } }
@media (max-width: 600px) {
    .navbar { padding: 0 1rem; }
    .navbar .nav-links { gap: 1rem; font-size: .82rem; }
    .waterfall { columns: 2; }
    .latest-section { padding: 1.6rem .9rem 1.2rem; }
    .hero-bg { grid-auto-columns: 130px; }
    .footer { gap: .4rem; font-size: .72rem; }
}
@media (max-width: 380px) { .waterfall { columns: 2; } }
