/* ==============================================
   一、全局重置 & 基础公共样式
   作用：统一浏览器默认样式、盒模型标准化、禁止移动端点击高亮
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 页面平滑滚动，html高度铺满屏幕 */
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;
    line-height: 1.4;
    width: 100%;
    min-height: 100vh;
    overflow-x: 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: 100vh;
    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;
}

/* ==============================================
   二、Header 头部区域样式
   ============================================== */
/* 头部外层容器：弹性两端对齐布局，层级置顶 */
.header {
    background-color: #e9eaef;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 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: 38px;
    width: auto;
    display: block;
}

/* 头部右侧：时钟+菜单按钮横向排列 */
.right-panel {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* 实时时钟样式：等宽字体、圆角背景、单行不换行 */
.live-clock {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(0,0,0,0.03);
    padding: 6px 14px;
    border-radius: 40px;
    font-family: monospace;
    white-space: nowrap;
    color: #1a1a1a;
}

/* 导航打开按钮：透明背景，hover透明过渡 */
.menu-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: opacity 0.2s;
}
.menu-icon-img {
    width: 28px;
    height: 28px;
    display: block;
}

/* 导航关闭按钮：固定右上角，hover缩放动效 */
.close-nav {
    position: absolute;
    top: 32px;
    right: 40px;
    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.82);
    backdrop-filter: blur(12px);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* 双层纹理背景增强视觉质感 */
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,240,0.03) 0px, rgba(255,255,240,0.03) 2px, transparent 2px, transparent 10px),
        repeating-linear-gradient(135deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 8px);
    background-blend-mode: overlay;
}
/* 激活类：显示导航遮罩 */
.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* 导航内容容器：居中限制最大宽度 */
.nav-container {
    width: 90%;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    padding: 0 20px;
    /* 初始隐藏防占位 */
    height: 0;
    pointer-events: none;
    visibility: hidden;
}
.nav-overlay.active .nav-container {
    height: auto;
    pointer-events: auto;
    visibility: visible;
}

/* 一级菜单纵向排列 */
.main-nav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    margin: 40px 0; /* 用上下外边距替代padding，不破坏整体居中 */
}
.nav-item {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}
.nav-item > a {
    color: white;
    transition: opacity 0.2s;
    padding: 0.4em 0;
    display: inline-block;
}
.nav-item > a:hover {
    opacity: 0.7;
}

/* 二级菜单：默认透明隐藏，激活后下滑淡入展示 */
.sub-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s;
}
.sub-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* 二级菜单链接样式：半透背景hover反色 */
.sub-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 6px 16px;
    border-radius: 40px;
    background: rgba(255,255,255,0.15);
    transition: all 0.25s ease;
    transform: scale(1);
}
.sub-nav a:hover {
    background: white;
    color: black;
    transform: scale(1.05);
}

/* 一级菜单下拉箭头样式，激活后旋转180度 */
#contactMainTrigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
#contactMainTrigger::after {
    content: "▼";
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}
.nav-item .sub-nav.active ~ #contactMainTrigger::after,
#contactMainTrigger.active-arrow::after {
    transform: rotate(180deg);
}

/* ==============================================
   四、启动页动画 (Splash Screen)
   网站首次打开全屏加载动画，渐隐退出
   ============================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 1;
    visibility: visible;
}
/* 隐藏启动页激活类 */
.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}
.splash-logo {
    height: 80%;
    width: auto;
    object-fit: contain;
    animation: subtleZoom 1s ease-out;
}

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

/* ==============================================
   五、自定义通用弹窗遮罩层
   用于联系方式弹窗，毛玻璃深色背景
   ============================================== */
.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 {
    background: rgba(20, 20, 30, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 32px 40px;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 20px 35px 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);
}
.custom-modal-overlay.active .modal-content {
    transform: scale(1);
}

/* 弹窗内链接纵向排列，hover上浮变色 */
.modal-link-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modal-link-list a {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 12px 24px;
    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);
}
.modal-link-list a:hover {
    background: white;
    color: #000;
    transform: translateY(-2px);
    border-color: transparent;
}

/* ==============================================
   六、首页主体：左右两栏布局 + 图片网格
   PC左右分栏，移动端背景图切换到右侧容器
   ============================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 70px);
}

/* 左侧固定背景图区域 */
.bg-image-side {
    flex: 1 1 45%;
    background-image: url('/assets/images/indexbg.jpg');
    background-size: auto 100%;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    height: auto;
}

/* 右侧首页功能图片网格区域 */
.gallery-side {
    flex: 1 1 55%;
    background: #FFFFFF;
    padding: 32px 28px 48px 28px;
    overflow: visible;
}

/* 图片卡片弹性网格布局 */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 20px;
    justify-content: flex-start;
}

/* 单张图片卡片宽度：一行5列布局 */
.photo-card {
    width: calc(20% - 16px);
    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: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s, transform 0.2s;
}
.photo-card:hover .grid-img {
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: scale(1.01);
}


/* 图片下方标题居中样式 */
.photo-caption {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #000000;
    text-align: center;
    letter-spacing: 0.2px;
}

/* PC大屏媒体查询适配 */
@media (min-width: 769px) {
    .bg-image-side {
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .photo-card {
        width: calc(20% - 16px);
    }
    .main-content {
        min-height: calc(100vh - 70px);
    }
}

@media (min-width: 1201px) {
    .photo-card {
        width: calc(20% - 16px);
    }
}

/* ==============================================
   七、图集列表页 - Grid瀑布流布局
   PC7列、平板5/4列、手机2列，带边框分割线
   ============================================== */
.gallery-main {
    flex: 1;
    padding: 48px 40px;
    background: #000000;
    color: #ffffff;
}

/* CSS原生Masonry瀑布流网格布局 */
.waterfall-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 0;
    grid-template-rows: masonry;
}

/* 单图集卡片占1列，右侧+底部分割边框 */
.gallery-item {
    grid-column: span 1;
    background: transparent;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-right: 1px solid #2d2d2d;
    border-bottom: 1px solid #2d2d2d;
}
.gallery-item:hover {
    transform: translateY(-3px);
}

/* 链接铺满卡片，扩大点击区域 */
.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.image-container {
    position: relative;
    overflow: hidden;
    background: #222222;
    border-radius: 0;
}
.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 图集文字信息区域 */
.gallery-info {
    padding: 12px 8px;
    border-bottom: none;
    text-align: left;
}
.gallery-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 6px;
}
.gallery-year {
    font-size: 0.7rem;
    color: #999999;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.gallery-press {
    font-size: 0.7rem;
    color: #999999;
    letter-spacing: 0.3px;
}

/* 加载提示占位容器，跨所有列 */
.loading-trigger {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #777777;
    font-size: 14px;
}

/* 平板1200px以下：一行5列，清除每行最后一列右边框 */
@media (max-width: 1200px) {
    .waterfall-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .gallery-title {
        font-size: 0.75rem;
    }
    .gallery-year,
    .gallery-press {
        font-size: 0.65rem;
    }
}
/* 小平板900px以下：一行4列 */
@media (max-width: 900px) {
    .waterfall-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 清除对应列数最后一项右边框 */
.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; } }

/* 移动端768px：一行2列 */
@media (max-width: 768px) {
    .gallery-main {
        padding: 24px 16px;
    }
    .waterfall-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .waterfall-grid .gallery-item:nth-child(2n) { border-right: none; }
    .gallery-title {
        font-size: 0.7rem;
    }
    .gallery-year,
    .gallery-press {
        font-size: 0.6rem;
    }
    .gallery-info {
        padding: 8px 6px;
    }
}
/* 小屏手机保持2列布局 */
@media (max-width: 480px) {
    .waterfall-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .waterfall-grid .gallery-item:nth-child(2n) { border-right: none; }
}

/* ==============================================
   八、图片查看器弹窗
   全屏遮罩、左右切换、移动端手势滑动、键盘快捷键
   ============================================== */
.img-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}
.img-viewer.show {
    display: flex;
}

.viewer-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}
.viewer-img-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform;
}
.viewer-img-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.viewer-img-item img {
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* 查看器关闭按钮、左右切换箭头、页码、滑动提示样式 */
.viewer-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}
.viewer-close-btn:hover {
    background: rgba(255,80,80,0.8);
    transform: scale(1.05);
}
.viewer-close-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.viewer-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 96px;
    height: 96px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 56px;
    font-weight: 300;
    text-align: center;
    line-height: 90px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: monospace;
}
.viewer-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}
.arrow-prev { left: 24px; }
.arrow-next { right: 24px; }

.page-tip {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 15;
    pointer-events: none;
}

.slide-tip {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    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; }
}

.viewer-loading-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    z-index: 25;
    pointer-events: none;
    white-space: nowrap;
}

/* 移动端隐藏左右切换箭头 */
@media (max-width:768px) {
    .viewer-arrow {
        display: none;
    }
}

/* ==============================================
   九、文章列表&详情公共布局样式
   PC左右侧边栏+内容区，移动端侧边栏隐藏单列展示
   ============================================== */
.articles-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    min-height: calc(100vh - 70px);
}

/* 左侧侧边栏固定宽度 */
.articles-sidebar {
    flex: 0 0 18%;
    background-color: #e9eaef;
    padding: 40px 20px 60px 24px;
    color: #1a1a1a;
    min-width: 220px;
    box-shadow: 4px 0 12px 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: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 36px;
    color: #111;
    border-left: 3px solid #111;
    padding-left: 18px;
}

.articles-list-simple {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.simple-article-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.4);
}
.simple-article-link:hover {
    background: rgba(0,0,0,0.06);
    transform: translateX(4px);
}
.simple-thumb-left {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    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: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 文章列表右侧卡片浮动布局 */
.articles-showcase {
    flex: 1;
    background: #FFFFFF;
    padding: 40px 36px 60px 36px;
    overflow-y: auto;
}
.articles-float-container {
    width: 100%;
    overflow: hidden;
}
.article-float-item {
    float: left;
    width: 12%;
    margin: 0 1% 30px 1%;
    overflow: hidden;
}
.article-float-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 28px -8px 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: 14px 12px 18px 12px;
    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;
    padding: 60px 80px;
    overflow-y: auto;
}
.article-content {
    max-width: 900px;
    margin: 0 auto;
}
.article-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}
.article-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #111;
}
.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #222;
}

/* PC强制左右布局不堆叠 */
@media (min-width: 769px) {
    .articles-main {
        flex-direction: row !important;
    }
}

/* 中等PC适配 */
@media (min-width: 769px) and (max-width: 1100px) {
    .articles-sidebar {
        flex: 0 0 22%;
        min-width: 200px;
    }
    .work-headline {
        font-size: 2rem;
    }
    .articles-showcase {
        padding: 32px 24px;
    }
    .article-content-area {
        padding: 40px 40px;
    }
    .article-float-item {
        width: 18%;
        margin: 0 1% 25px 1%;
    }
}

/* 小PC适配 */
@media (min-width: 769px) and (max-width: 900px) {
    .article-float-item {
        width: 30%;
        margin: 0 1% 20px 1%;
    }
    .float-title {
        font-size: 0.85rem;
        padding: 12px 10px 14px;
    }
}

/* ==============================================
   十、移动端768px以下全局响应式样式
   ============================================== */
@media (max-width: 768px) {
    /* 头部移动端居中布局 */
    .header {
        justify-content: center;
        position: relative;
        padding: 12px 16px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.5);
    }
    .logo-area {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .right-panel {
        margin-left: auto;
        gap: 8px;
    }
    .live-clock {
        display: none;
    }
    .logo-img {
        height: 40px;
    }
    .close-nav {
        top: 20px;
        right: 24px;
        font-size: 2.5rem;
    }
    .nav-item {
        font-size: 1.4rem;
    }
    #contactMainTrigger::after {
        font-size: 0.7rem;
    }

    /* 首页左侧背景隐藏，背景迁移至主容器 */
    .bg-image-side {
        display: none;
    }
    .main-content {
        background-image: url('/assets/images/indexbg.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        position: relative;
        min-height: calc(100vh - 60px);
    }
    .gallery-side {
        background-color: transparent;
        backdrop-filter: none;
        flex: 1 1 100%;
        padding: 24px 16px 40px 16px;
    }
    .photo-card {
        width: calc(33.333% - 10px);
        min-width: 0;
        background-color: transparent;
        backdrop-filter: none;
        padding: 0;
        border-radius: 0;
    }
    .photo-grid {
        gap: 14px 10px;
        justify-content: flex-start;
        margin: 0;
        padding: 0;
    }
    .photo-caption {
        font-size: 0.7rem;
        margin-top: 6px;
        color: #000000;
        text-shadow: none;
    }

    /* 弹窗移动端适配 */
    .modal-content {
        padding: 24px 28px;
        width: 85%;
    }
    .modal-link-list a {
        font-size: 1rem;
        padding: 10px 16px;
    }

    /* 图片查看器移动端 */
    .viewer-arrow {
        display: none;
    }
    .slide-tip {
        display: block;
    }
    .viewer-close-btn {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    .viewer-close-btn svg {
        width: 20px;
        height: 20px;
    }
    .page-tip {
        bottom: 20px;
        font-size: 12px;
        padding: 5px 14px;
    }
    .viewer-img-item img {
        max-height: 80vh;
    }

    /* 图集列表移动端3列布局 */
    .gallery-main {
        padding: 24px 16px;
    }
    .waterfall-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-item {
        border-right: 1px solid #2d2d2d;
        border-bottom: 1px solid #2d2d2d;
    }
    .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: 8px 6px;
    }

    /* 小屏手机图集改为2列 */
    @media (max-width: 480px) {
        .waterfall-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        .waterfall-grid .gallery-item:nth-child(2n) { border-right: none; }
    }

    /* 文章页面移动端隐藏侧边栏，单列布局 */
    .articles-sidebar {
        display: none;
    }
    .articles-main {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .articles-showcase {
        flex: 1 1 100%;
        padding: 24px 16px 40px 16px;
    }
    .articles-float-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .article-float-item {
        float: none;
        width: 100%;
        margin: 0;
        border-radius: 12px;
    }
    .float-title {
        padding: 10px 8px 14px 8px;
        font-size: 0.7rem;
        font-weight: 500;
    }

    .article-content-area {
        flex: 1 1 100%;
        padding: 24px 20px 40px 20px;
    }
    .article-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .article-content h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .article-content h2 {
        font-size: 1.4rem;
        margin: 30px 0 15px 0;
    }
}
