/* ==============================================
   一、全局重置 & 基础公共样式
   作用：统一浏览器默认样式、盒模型、清除默认内外边距，禁止横向溢出
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth; /* 页面平滑滚动 */
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    width: 100%;
    height: 100%;;
    /* overflow: hidden; */
}

a {
    text-decoration: none;
    color: inherit; /* 继承父级文字颜色 */
}

ul, ol {
    list-style: none; /* 清除列表默认圆点 */
}

img {
    display: block;
    max-width: 100%; /* 图片自适应容器宽度 */
}

.app {
    display: flex;
    flex-direction: column;
	min-height: 88vh;
    background: #FFFFFF;
}

/* 全局横向溢出隐藏统一设置 */
body, .app, .main-content, .gallery-side {
    overflow-x: hidden;
}
.gallery-side {
    overflow-y: visible;
}

/* 清除浮动工具类 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 弹窗打开时锁定页面滚动 */
.no-scroll {
    overflow: hidden;
}
/* 版权信息 */
.footer {
    position: relative;
    bottom: 0;
    left: 0;
    font-size: 12px;
    color: #ccc;
    text-align: center;
    z-index: 999;
    cursor: pointer;
    width: 100%;       /* 确保占满宽度 */
    background: transparent; /* 或根据需要设置背景 */
}
/* ==============================================
   二、Header 头部导航区域（vw/rem 相对单位多终端适配）
   ============================================== */
.header {
    background-color: #e9eaef;
    padding: 1vw 1.5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1vw;
    position: relative;
    z-index: 100;
    box-shadow: 0 0.25vw 0.75vw rgba(0, 0, 0, 0.08), inset 0 0.06vw 0 rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Logo区域 */
.logo-area {
    flex-shrink: 0;
    cursor: pointer;
}
.logo-img {
    height: 2.4rem;
    width: auto;
    display: block;
}

/* 头部右侧：菜单按钮 + 实时时钟 */
.right-panel {
    display: flex;
    align-items: center;
    gap: 1.75vw;
}

/* 实时时钟样式 */
.live-clock {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(0,0,0,0.03);
    padding: 0.375vw 0.875vw;
    border-radius: 40px;
    font-family: monospace;
    white-space: nowrap;
    color: #1a1a1a;
}

/* 打开全屏导航按钮 */
.menu-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5vw;
    transition: opacity 0.2s;
}
.menu-icon-img {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

/* 旧版导航关闭按钮 兼容保留已隐藏 */
/* .close-nav {
    display: none;
    position: absolute;
    top: 2vw;
    right: 2.5vw;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: white;
    font-weight: 300;
    transition: transform 0.2s;
    line-height: 1;
    z-index: 1001;
}
.close-nav:hover {
    transform: scale(1.1);
} */

/* ==============================================
   三、全屏导航遮罩层 + 导航菜单样式
   交互规则：仅点击遮罩空白关闭，弹窗内部点击不关闭
   ============================================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(135deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 6px);
    background-blend-mode: overlay;
}
.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* 导航弹窗容器 */
.nav-container {
    position: relative;
    background: rgba(20, 20, 30, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 2vw;
    padding: 2vw 2.5vw;
    min-width: 17.5rem;
    text-align: center;
    box-shadow: 0 1.25vw 2.2vw rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    pointer-events: auto;
}

/* 导航弹窗关闭按钮 */
.nav-modal-close {
    position: absolute;
    top: -1vw;
    right: -1.2vw;
    width: 2.2rem;
    height: 2.2rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}
.nav-modal-close:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* 主导航列表 */
.main-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.25vw;
}

.nav-item {
    list-style: none;
}
.nav-item > a {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 0.75vw 1.5vw;
    border-radius: 60px;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}
.nav-item > a:hover {
    background: white;
    color: #000;
    transform: translateY(-0.125vw);
    border-color: transparent;
}

/* 联系下拉触发按钮 */
#contactMainTrigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 0.75vw 1.5vw;
    border-radius: 60px;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
#contactMainTrigger:hover {
    background: white;
    color: #000;
    transform: translateY(-0.125vw);
    border-color: transparent;
}

/* 下拉箭头旋转动画 */
#contactMainTrigger::after {
    content: "▼";
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}
#contactToggle:checked ~ #contactMainTrigger::after {
    transform: rotate(180deg);
}
#contactToggle:checked ~ .sub-nav {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

/* 子导航容器 */
.sub-nav {
	width: 380px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5vw;
    margin-top: 0.8rem;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.3s ease;
}
.sub-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 0.1vw 1vw;
    border-radius: 60px;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}
.sub-nav a:hover {
    background: white;
    color: #000;
    transform: translateY(-0.125vw);
    border-color: transparent;
}

/* ==============================================
   四、启动页开屏动画 Splash Screen
   ============================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
}
.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}
.splash-logo {
    width: 100%;
    height: 90vh;
    object-fit: contain;
    object-position: center bottom;
    animation: subtleZoom 1s ease-out;
}

/* Logo缩放入场动画 */
@keyframes subtleZoom {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==============================================
   五、CONTACT ME 联系方式弹窗样式
   ============================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(135deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 6px);
    background-blend-mode: overlay;
}
.custom-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* 弹窗内容容器 */
.modal-content {
    position: relative;
    background: rgba(20,20,30,.92);
    backdrop-filter: blur(12px);
    width: 320px;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 20px 35px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    transform: scale(.95);
    transition: transform .25s cubic-bezier(.2,.9,.4,1.1);
}
.custom-modal-overlay.active .modal-content {
    transform: scale(1);
}

/* 弹窗关闭按钮 */
.modal-close-btn {
    position: absolute;
    top: -1vw;
    right: -1.2vw;
    width: 2.2rem;
    height: 2.2rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}
.modal-close-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* 联系方式链接列表 */
.modal-link-list {
    display:flex;
    flex-direction:column;
    gap:12px;
}
.modal-link-list a {
    font-size:1.1rem;
    font-weight:500;
    color:#fff;
    padding:10px 20px;
    border-radius:60px;
    letter-spacing:.5px;
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.15);
    backdrop-filter:blur(4px);
    transition:all .25s ease;
}
.modal-link-list a:hover {
    background: white;
    color: #000;
    transform: translateY(-0.125vw);
    border-color: transparent;
}

/* ==============================================
   六、首页主体布局 PC端左右分栏 照片网格4列
   ============================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

/* 左侧背景图区域（移动端隐藏） */
.bg-image-side {
    flex: 1 1 45%;
    background-image: url('/assets/images/indexbg.jpg');
    background-size: contain;
    background-position:right 5vh;
    background-repeat: no-repeat;
    position: relative;
    min-height: 90vh;
    height: auto;
}

/* 右侧图片画廊区域 */
.gallery-side {
    flex: 1 1 55%;
    background: #FFFFFF;
    padding: 3vh 3vw 5vh 3vw;
    overflow: visible;
}

/* 首页照片网格容器 */
.photo-grid {
    max-width: 70%;
    margin: 15vh auto 0 5vh;
    display: flex;
    flex-wrap: wrap;
    gap: 3vh 1.2vw;
    justify-content: flex-start;
}

/* 图片卡片样式 */
.photo-card {
    width: calc(25% - 0.9vw);
    transition: transform 0.2s ease;
    cursor: pointer;
}
.photo-card a {
    display: block;
}
.grid-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: transparent;
    border-radius: 0.75vw;
    transition: box-shadow 0.3s, transform 0.2s;
}
.photo-card:hover .grid-img {
    box-shadow: 0 0.75vw 1.5vw rgba(0,0,0,0.08);
    transform: scale(1.01);
}

/* 图片标题文案 */
.photo-caption {
    margin-top: 0.6vw;
    font-size: 0.85rem;
    font-weight: 500;
    color: #000000;
    text-align: center;
    letter-spacing: 0.2px;
}

/* TRASH弹窗样式 点击弹gif动图*/
/* TRASH弹窗 - 完全透明背景 */
.trash-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: relative;
    border: none !important;
    border-radius: 0 !important;
}

/* 覆盖原有modal-content样式 */
#trashModal .modal-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 90vw !important;
    height: auto !important;
    max-height: 90vh !important;
    margin: 0 !important;
    position: relative !important;
}

.trash-gif-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: transparent !important;
}

.trash-gif {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* 关闭按钮 - 在图片右上角 */
#trashModal .modal-close-btn {
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;
    z-index: 100 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

#trashModal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    transform: rotate(90deg) scale(1.1) !important;
    border-color: #ffffff !important;
}

/* 覆盖遮罩层背景 - 完全透明 */
#trashModal.custom-modal-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto !important;
}

#trashModal.custom-modal-overlay.active {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #trashModal .modal-content {
        max-width: 95vw !important;
        max-height: 95vh !important;
    }
    
    .trash-gif {
        max-width: 40vw !important;
        max-height: 80vh !important;
    }
    
    #trashModal .modal-close-btn {
        top: -10px !important;
        right: -10px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 20px !important;
    }
}/* gif动图结束 */
/* PC大屏统一4列布局 */
@media (min-width: 769px) {
    .bg-image-side {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .photo-card {
        width: calc(25% - 0.9vw);
    }
}
@media (min-width: 769px) and (max-width: 1200px) {
    .photo-card {
        width: calc(25% - 0.9vw);
    }
}
@media (min-width: 1201px) {
    .photo-card {
        width: calc(25% - 0.9vw);
    }
}

/* ==============================================
   七、图集列表页 Grid瀑布流布局
   白底、网格间隙分隔、文字居中黑色
   ============================================== */
.gallery-main {
    flex: 1;
    padding: 3vh 4vw;
    background: #FFFFFF;
    color: #000000;
}

.waterfall-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 2vw;
    grid-template-rows: masonry;
}

.gallery-item {
    grid-column: span 1;
    background: transparent;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-0.2vw);
}
.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}
.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-info {
    padding: 0.75vw 0.5vw;
    text-align: center;
}
.gallery-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 0.375vw;
}
.gallery-year {
    font-size: 0.7rem;
    color: #000000;
    letter-spacing: 0.3px;
    margin-bottom: 0.25vw;
}
.gallery-press {
    font-size: 0.7rem;
    color: #000000;
    letter-spacing: 0.3px;
}

.loading-trigger {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5vw 0;
    color: #333333;
    font-size: 0.875rem;
}

/* 多端瀑布流列数适配 */
@media (max-width: 1200px) {
    .waterfall-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 2vw;
    }
    .gallery-title {
        font-size: 0.75rem;
    }
    .gallery-year,
    .gallery-press {
        font-size: 0.65rem;
    }
}
@media (max-width: 900px) {
    .waterfall-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 2vw;
    }
}

/* 清除末尾项右边框（兼容旧边框布局） */
.waterfall-grid .gallery-item:nth-child(7n) { border-right: none; }
@media (max-width: 1200px) { .waterfall-grid .gallery-item:nth-child(5n) { border-right: none; } }
@media (max-width: 900px) { .waterfall-grid .gallery-item:nth-child(4n) { border-right: none; } }

/* ==============================================
   八、图片大图查看器弹窗样式
   ============================================== */
.img-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}
/* 防止选中大图 */
.img-viewer,
.img-viewer *{
    user-select:none;
}
.img-viewer.show {
    display: flex;
}

.viewer-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.viewer-stage{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.viewer-img-box, .viewer-img-item{
    display:flex;
    align-items:center;
    justify-content:center;
}
.viewer-img-item img{
    display:block;
    max-width:90vw;
    max-height:85vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:0.5vw;
    box-shadow:0 0.5vw 1.8vw rgba(0,0,0,0.3);
    pointer-events:none;
}

/* 查看器关闭按钮 */
.viewer-close-btn{
    position:absolute;
    top:-18px;
    right:-18px;
    width:44px;
    height:44px;
    background:rgba(255,255,255,.18);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:30;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.25);
    transition:.25s;
}
.viewer-close-btn:hover{
    transform:scale(1.5);
}
.viewer-close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: white;
    stroke-width: 2;
}

/* 左右翻页箭头 */
.viewer-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:4rem;
    height:4rem;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    cursor:pointer;
    z-index:20;
}
.viewer-arrow svg{
    width:3vw;
    height:5vw;
    stroke:#fff;
    stroke-width:1.5;
    fill:none;
    display:block;
}
.viewer-arrow:hover{
    transform:translateY(-50%) scale(1.5);
	color:#ff0000;
}
.arrow-prev{
    left:calc(-4rem - 5vw);
}
.arrow-next{
    right:calc(-4rem - 5vw);
}

/* 页码提示 */
.page-tip {
    position: absolute;
    bottom: -3vw;
	
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    padding: 0.375vw 1vw;
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 15;
    pointer-events: none;
}
/* 图片加载过程中隐藏关闭按钮 */
.img-viewer.loading .viewer-close-btn{
    opacity:0;
    pointer-events:none;
}

/* 图片加载过程中隐藏页码 */
.img-viewer.loading .page-tip{
    opacity:0;
    pointer-events:none;
}

/* 过渡 */
.viewer-close-btn,
.page-tip{
    transition:opacity .25s ease;
}
/* 滑动操作提示 */
.slide-tip {
    position: absolute;
    bottom: 5vw;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    padding: 0.5vw 1.25vw;
    border-radius: 40px;
    font-size: 0.8125rem;
    white-space: nowrap;
    display: none;
    z-index: 15;
    pointer-events: none;
    animation: fadeInOut 3s ease forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
@media (max-width: 768px) {
	.page-tip {margin-bottom: -8vh;}
	}
/* 图片加载提示 */
.viewer-loading-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 0.75vw 1.5vw;
    border-radius: 40px;
    font-size: 0.875rem;
    z-index: 25;
    pointer-events: none;
    white-space: nowrap;
}

/* ==============================================
   九、文章列表 & 文章详情公共布局
   ============================================== */
.articles-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.articles-sidebar {
	min-height: 100vh;
    flex: 0 0 18%;
    background-color: #e9eaef;
    padding: 2.5vw 1.25vw 3.75vw 1.5vw;
    color: #1a1a1a;
    min-width: 13.75rem;
    box-shadow: 0.25vw 0 0.75vw rgba(0, 0, 0, 0.06), inset -1px 0 0 rgba(255,255,255,0.5);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.work-headline {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.25vw;
    color: #111;
    border-left: 3px solid #111;
    padding-left: 1.125vw;
}

.articles-list-simple {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}
.simple-article-link {
    display: flex;
    align-items: center;
    gap: 0.75vw;
    padding: 0.5vw 0.75vw;
    border-radius: 0.75vw;
    transition: all 0.2s ease;
}
.simple-article-link.active {
    background: #c9ccd6;
}

.simple-article-link:hover {
    background: rgba(0,0,0,0.06);
    transform: translateX(0.25vw);
}

.simple-thumb-left {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5vw;
    object-fit: cover;
    flex-shrink: 0;
}
.simple-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c2c2c;
    line-height: 1.3;
    flex: 1;
}
.simple-thumb-right {
    width: auto;
    height: auto;
    border-radius: 0.5vw;
    object-fit: cover;
    flex-shrink: 0;
}

.articles-showcase {
    flex: 1;
    background: #FFFFFF;
    padding: 2.5vw 2.25vw 3.75vw 2.25vw;
    overflow-y: auto;
}
.articles-float-container {
    width: 100%;
    overflow: hidden;
}
.article-float-item {
    float: left;
    width: 12%;
    margin: 0 1% 1.875vw 1%;
    overflow: hidden;
	text-align: center;
}
.article-float-item:hover {
    transform: translateY(-0.3vw);
    box-shadow: 0 1vw 1.75vw -0.5vw rgba(0,0,0,0.12);
}
.article-float-item a {
    display: block;
}
.float-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: #f2f2f2;
    display: block;
}
.float-title {
    padding: 0.875vw 0.75vw 1.125vw 0.75vw;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
    text-align: center;
    background: #fff;
}

.article-content-area {
    flex: 1;
    background: #FFFFFF;
	margin: 3% 13%;/* 文章内容主体宽度 */
    overflow-y: auto;
}
.article-content {
    max-width: 90%;
    margin: 0 auto;
}
.article-content-title  {
    font-size: 2.3rem;
    line-height: 2;
    color: #333;
    /* margin-bottom: 1.5vw; */
}

.PubYear-arc{
	margin-top: -1rem;
}
/* about me pc端样式 */
@media (min-width: 769px) {
.article-content-aboutme{
	max-width: 35%;
	margin: 0 auto;
    }
}

/* =========================
   文章编辑器 样式
   ========================= */

.entry-content{
    width:96% !important;
    margin:2% auto;
    color:#111;
    hyphens:auto;
    -ms-hyphens:auto;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
}

/* 图片 */
.entry-content img{
    width:100% !important;
    height:auto !important;
    display:block;
    margin:0.1rem auto;
}
.entry-content-aboutme img{
	   margin: 0 auto !important;
}
/* iframe视频 */
.entry-content iframe, .video-wrap iframe{
    width:96% !important;
    aspect-ratio:16/9;
    border:none;
    display:block;
    margin:2em auto;
}

/* 文章布局大屏适配 */
/* @media (min-width: 769px) {
    .articles-main {
        flex-direction: row !important;
    }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .articles-sidebar {
        flex: 0 0 22%;
        min-width: 12.5rem;
    }
    .work-headline {
        font-size: 2rem;
    }
    .articles-showcase {
        padding: 2vw 1.5vw;
    }
    .article-content-area {
        padding: 2.5vw 2.5vw;
    }
    .article-float-item {
        width: 18%;
        margin: 0 1% 1.5vw 1%;
    }
}
@media (min-width: 769px) and (max-width: 900px) {
    .article-float-item {
        width: 30%;
        margin: 0 1% 1.25vw 1%;
    }
    .float-title {
        font-size: 0.85rem;
        padding: 0.75vw 0.625vw 0.875vw;
    }
} */

/* ==============================================
   十、移动端全局统一适配 768px 以下
   ============================================== */
@media (max-width: 768px) {
    /* 头部导航移动端 */
    .header {
        justify-content: center;
        position: relative;
        padding: 1.2vh 2vw;
        box-shadow: 0 0.2vw 0.6vw rgba(0, 0, 0, 0.08), inset 0 0.06vw 0 rgba(255,255,255,0.5);
    }
    .logo-area {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .right-panel {
        margin-left: auto;
        gap: 0.5vw;
    }
    .live-clock {
        display: none;
    }
    .logo-img {
        height: 1.8rem;
    }
    .nav-item {
        font-size: 1.4rem;
    }

    /* 导航弹窗右侧滑样式 */
	.nav-overlay{
        justify-content:flex-end;
        align-items:stretch;
        backdrop-filter:none;
    }
    .nav-modal-close{
        display: none;
    }
    .nav-container{
        width:50vw;
        height:100%;
        margin-left:auto;
        border-radius:0;
        border:none;
        background:rgba(20,20,30,.6);
        padding:80px 20px 30px;
        box-shadow:-8px 0 30px rgba(0,0,0,.35);
        transform:translateX(100%);
        transition:transform .35s ease;
    }
    .nav-overlay.active .nav-container{
        transform:translateX(0);
    }
    .main-nav-list {
        gap: 1rem;
    }
    .nav-item {
        text-align: center;
    }
    .nav-item > a, #contactMainTrigger {
        display: inline-block;
        width: auto;
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        backdrop-filter: none;
        box-shadow: none;
        font-size: 1.2rem;
        color: #fff;
        line-height: 2.2;
    }
    .sub-nav{
        width:100%;
        max-width:none;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:0.8rem;
        margin-top:1rem;
    }
    .sub-nav a{
        display:block;
        text-align:center;
        font-size:0.9rem;
        padding: initial;
        border-radius: initial;
        background: initial;
        border: initial;
    }
    .contact-links a {
        display: inline-block;
        width: auto;
    }
    .nav-item > a:hover, #contactMainTrigger:hover {
        background: none;
        color: #fff;
        transform: none;
    }
    #contactMainTrigger::after {
        margin-left: 8px;
        font-size: 0.8rem;
    }

    /* 首页布局移动端 */
    .bg-image-side {
        display: none;
    }
	/* 移动端首页背景图 */
    .main-content {
            background-image: url('/assets/images/indexbg.jpg');
            background-size: 115% auto;
            background-position: 30% center;  /* 底部居中 */
            background-repeat: no-repeat;
			min-height: 92vh;  /* 确保容器至少撑满视口 */
    }

    .gallery-side {
        background-color: transparent;
        backdrop-filter: none;
        flex: 1 1 100%;
        padding: 3vh 2vw 5vh 2vw;
		margin: 0 auto !important;
    }
	/* 右侧移动端整体位置 */
    .photo-grid {
        max-width: 70%;
		margin: 40vh 1vw auto auto;
        gap: 2vh 1.2vw;
        justify-content: center;
    }
    .photo-card {
        width: calc(33% - 1vw);
        min-width: 0;
        background-color: transparent;
        backdrop-filter: none;
        padding: 0;
        border-radius: 0;
    }
    .photo-caption {
        font-size: 0.7rem;
        margin-top: 0.4vw;
        color: #000000;
        text-shadow: none;
    }

    /* 图集瀑布流移动端 */
    .gallery-main {
        padding: 6vh 2vw !important;
    }
    .waterfall-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 3vw;
    }
	.gallery-title{
		margin-top: 10px;
	}
    .waterfall-grid .gallery-item:nth-child(3n) { border-right: none; }
    .gallery-title {
        font-size: 0.7rem;
    }
    .gallery-year, .gallery-press {
        font-size: 0.6rem;
    }
    .gallery-info {
        padding: 0.5vw 0.375vw;
    }

    /* 文章页面移动端 */
    .articles-sidebar {
        display: none;
    }
    .articles-main {
        flex-direction: column;
        flex-wrap: wrap;
    }
    .articles-showcase {
        flex: 1 1 100%;
        padding: 2vh 2vw 4vh 2vw;
    }
    .articles-float-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25vw;
    }
    .article-float-item {
        float: none;
        width: 100%;
        margin: 0;
        border-radius: 0.75vw;
    }
    .float-title {
        padding: 0.625vw 0.5vw 0.875vw 0.5vw;
        font-size: 0.7rem;
        font-weight: 500;
    }
    .article-content-area {
        flex: 1 1 100%;
        margin: 3% auto;
    }
    .article-content-title {
		text-align: center;
        font-size: 1.7rem;
        line-height: 1.8;
    }
	.PubYear-arc{
		margin-top:inherit;
	}
	/* 编辑器移动端 */
	
	

    /* 联系方式弹窗移动端 */
    .modal-content{
        width:min(240px,85vw);
        padding:20px 24px;
        border-radius:16px;
    }
    .modal-close-btn{
        top:-12px;
        right:-12px;
    }

    /* 图片查看器移动端 */
    .viewer-arrow {
        display: none;
    }
    .viewer-close-btn {
        top: 2vh;
        right: 3vw;
        width: 2.5rem;
        height: 2.5rem;
    }
    .viewer-close-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    .page-tip {
        bottom: 1.25vw;
        font-size: 0.75rem;
        padding: 0.3125vw 0.875vw;
    }
    .viewer-img-item img {
        max-height: 80vh;
    }
	/* about me 移动端样式 */
	.article-content-aboutme{
		max-width: 92%;
		margin: 0 auto;
	}
	.entry-content-aboutme img{
		    width:100% !important;
		    height:auto !important;
		    display:block;
		    margin:0.1rem auto;
		}
	}
	.entry-content-aboutme p span {
		font-size: 16px !important;
	}
	/* 版权信息 */

	
	/* 让主要内容自动撑开 */
	.main-content,
	.articles-main,
	.gallery-main {
	    flex: 1 0 auto;
	}
	
	/* 页脚自动推到最底部 */
	.footer {
	    position: relative;
	    	left: 0;
	    	font-size: 12px;
	    	color: #ccc;
	    	text-align: center;
	    	z-index: 999;
	    	cursor:pointer;
	}
	/* 移动端隐藏所有右上角关闭按钮 */
	@media (max-width: 480px) {
	.nav-modal-close,.nav-modal-close,.modal-close-btn,#trashModal.modal-close-btn,.viewer-close-btn,
	#viewerCloseBtn.viewer-close-btn
	{
		display: none;
	}
}

/* ==============================================
   小屏手机二次适配 480px以下
   ============================================== */
@media (max-width: 480px) {
    .waterfall-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 3vw;
    }
    .waterfall-grid .gallery-item:nth-child(2n) { border-right: none; }
}
/* works页左侧 */
/* ==============================================
   侧边栏树形菜单扩展样式
   兼容原有文章侧边栏布局，实现年份折叠树形结构
   ============================================== */
.tree-year-item {
    margin-bottom: 6px;
}

/* 年份折叠头部栏 */
.year-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
/* 鼠标悬浮背景高亮 */
.year-header:hover {
    background: rgba(0,0,0,0.06);
}
/* 当前激活的年份/图集项背景色 */
.year-header.active,
.gallery-item-link.active {
    background: #c9ccd6;
}

/* 文件夹缩略图标（注释为旧尺寸方案，当前使用40px尺寸） */
/* .folder-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
} */
.folder-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
}

/* 折叠箭头图标，默认靠右 */
.arrow-toggle {
    width: 14px;
    height: 14px;
    margin-left: auto;
    transition: transform 0.25s ease;
}
/* 展开状态箭头旋转180度 */
.arrow-toggle.open {
    transform: rotate(180deg);
}

/* 年份文字区域，自动占满剩余宽度 */
.year-name {
    flex: 1;
    font-size: 0.95rem;
}

/* 图集子列表容器，默认收起 */
.gallery-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height .18s ease-out;
    padding-left: 24px;
}
/* 子列表展开状态 */
.gallery-sub-list.open {
    max-height: 100%;
}

/* 单个图集链接选项 */
.gallery-item-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    margin: 4px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
/* 图集项悬浮背景高亮 */
.gallery-item-link:hover {
    background: rgba(0,0,0,0.06);
}

/* 图集名称文字样式 */
.gallery-name {
    font-size: 0.9rem;
}

/* ==============================================
   图集右侧瀑布流布局适配
   ============================================== */
.gallery-main {
    flex: 1;
    padding: 2.5vw 2.25vw;
}

/* ==============================================
   移动端适配：隐藏侧边栏，改为上下纵向布局
   ============================================== */
@media (max-width:768px) {
    .articles-sidebar {
        display: none;
    }
    .articles-main {
        flex-direction: column;
    }
}


