* {
    margin: 0;
    padding: 0;
    border: 0;
}
/*body {*/
/*    font-weight: 300;*/
/*    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
/*}*/
body,
button,
input,
keygen,
legend,
select,
textarea {
    -webkit-font-smoothing: antialiased;
    color: #555;
    outline: 0;
}

ul li {
    list-style: none;
}

a {
    text-decoration: none;
}

input {
    background: none;
}

input:focus {
    border: none;
}
img[lazy=loading] {
    opacity: 0.2;
}
  /* 图片加载完成状态：设置透明度为1，并添加过渡动画 */
img[lazy=loaded] {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* 杂志风格 · 现代摄影画廊 */

.gallery-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
  background: #ffffff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  grid-auto-rows: 10px;
}

/* 使用行内样式设置不同高度，例如 style="grid-row-end: span 30;" */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f0f0f0;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* ========== 瀑布流样式 ========== */
.main {
    flex: 1;
    padding: 0 20px;
}

.waterfall-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.waterfall-header-left h1 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #1e2a3a;
    margin: 0 0 6px 0;
}
.waterfall-header-left p {
    color: #6c7a8f;
    font-size: 0.9rem;
    margin: 0;
}
.waterfall-header-right .count {
    background: #eef2f7;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #2c5f6e;
}

/* 瀑布流核心：CSS 多列布局 (Masonry) */
.waterfall-container {
    column-count: 4;
    column-gap: 24px;
}

/* 瀑布流卡片 */
.waterfall-card {
    break-inside: avoid;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    cursor: pointer;
}
.waterfall-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    line-height: 0;
}
.card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.waterfall-card:hover .card-img img {
    transform: scale(1.02);
}

.card-info {
    padding: 14px 16px 18px;
}
.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #1e2a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-info p {
    font-size: 0.8rem;
    color: #7c8ba0;
    margin: 0 0 8px;
}
.meta {
    font-size: 0.7rem;
    color: #9aa9bf;
    display: flex;
    align-items: center;
    gap: 6px;
}
.meta i {
    font-size: 0.7rem;
}

/* 响应式断点 */
@media (max-width: 1200px) {
    .waterfall-container {
        column-count: 3;
        column-gap: 20px;
    }
}
@media (max-width: 800px) {
    .waterfall-container {
        column-count: 2;
        column-gap: 16px;
    }
    .main {
        padding: 0 12px;
    }
}
@media (max-width: 500px) {
    .waterfall-container {
        column-count: 1;
    }
}



        /* ========== 以下为美化样式，与瀑布流列表风格一致 ========== */

        /* 主容器 */
        /*.wrap {*/
        /*    max-width: 1400px;*/
        /*    margin: 0 auto;*/
        /*    padding: 0 20px;*/
        /*}*/

        /* 主区域（左右布局） */
        .main-wrapper {
            display: flex;
            gap: 30px;
            margin: 30px 0;
        }
        .site-sub-header {
            position: static;
            
        }

        /* 左侧主内容 */
        .main-content {
            flex: 3;
            background: #fff;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
            padding: 30px;
        }

        /* 右侧边栏 */
        .sidebar {
            flex: 1;
        }

        /* 标题区域 */
        .article-header {
            margin-bottom: 30px;
            border-bottom: 2px solid #eef2f7;
            padding-bottom: 20px;
        }

        .article-title {
            font-size: 1.8rem;
            font-weight: 600;
            color: #1e2a3a;
            margin: 0 0 12px 0;
        }

        .article-meta {
            color: #7c8ba0;
            font-size: 0.85rem;
            display: flex;
            gap: 20px;
        }

        /* 图片集展示区 */
        .photo-gallery {
            margin-bottom: 40px;
        }

        .photo-gallery img {
            max-width: 100%;
            height: auto;
            border-radius: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .photo-gallery img:hover {
            transform: scale(1.01);
        }

        /* 内容描述 */
        .article-content {
            margin-bottom: 30px;
            font-size: 1rem;
            color: #2c3e4e;
            line-height: 1.7;
        }

        /* 评论模块 */
        .comment-section {
            margin-top: 40px;
            border-top: 1px solid #eef2f7;
            padding-top: 30px;
        }

        /* 侧边栏卡片通用样式 */
        .side-card {
            background: #fff;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        }

        .side-card h3 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid #eef2f7;
            color: #1e2a3a;
        }

        /* 图片推荐（使用grid布局） */
        .pic-recommend {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .pic-recommend a {
            display: block;
            text-decoration: none;
        }

        .pic-recommend img {
            width: 100%;
            height: 90px;
            object-fit: cover;
            border-radius: 12px;
            transition: transform 0.2s;
        }

        .pic-recommend img:hover {
            transform: scale(1.02);
        }

        .pic-recommend span {
            display: block;
            font-size: 0.75rem;
            color: #5b6e8c;
            margin-top: 5px;
            text-align: center;
        }

        /* 最新更新 / 热门点击 列表样式 */
        .side-list {
            list-style: none;
            padding: 0;
        }

        .side-list li {
            margin-bottom: 12px;
            padding: 8px 0;
            border-bottom: 1px dashed #eef2f7;
        }

        .side-list li a {
            text-decoration: none;
            color: #2c3e4e;
            font-size: 0.9rem;
            transition: color 0.2s;
            display: flex;
            justify-content: space-between;
        }

        .side-list li a:hover {
            color: #2c5f6e;
        }


        /* 响应式 */
        @media (max-width: 900px) {
            .main-wrapper {
                flex-direction: column;
            }

            .wrap {
                padding: 0 16px;
            }

            .main-content {
                padding: 20px;
            }

            .article-title {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 600px) {
            .pic-recommend {
                grid-template-columns: repeat(2, 1fr);
            }
        }
 
 /* ========== 全局复用瀑布流列表风格 ========== */

 /* 两栏布局 */
        .gallery-detail {
            display: flex;
            gap: 40px;
            margin: 40px 0;
        }
        /* 左侧图片区 */
        .gallery-main {
            flex: 2;
            background: #ffffff;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
            padding: 24px;
        }
        .main-image-box {
            background: #f8f9fc;
            border-radius: 24px;
            overflow: hidden;
            text-align: center;
            margin-bottom: 24px;
        }
        #mainImage {
            width: 100%;
            max-height: 65vh;
            object-fit: contain;
            display: block;
            transition: transform 0.3s ease;
        }
        /* 缩略图栏 */
        .thumbnail-strip {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            justify-content: center;
            flex-wrap: wrap;
            padding-bottom: 8px;
        }
        .thumbnail-item {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
            opacity: 0.7;
            background: #f0f2f6;
            flex-shrink: 0;
        }
        .thumbnail-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .thumbnail-item.active {
            border-color: #2c5f6e;
            opacity: 1;
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(44,95,110,0.2);
        }
        /* 右侧信息面板 */
        .gallery-info {
            flex: 1;
            background: #ffffff;
            border-radius: 28px;
            padding: 28px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
            align-self: start;
        }
        .info-title {
            font-size: 1.8rem;
            font-weight: 600;
            color: #1e2a3a;
            margin-bottom: 12px;
            line-height: 1.3;
        }
        .info-meta {
            display: flex;
            gap: 20px;
            color: #7c8ba0;
            font-size: 0.85rem;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #eef2f7;
        }
        .prompt-card {
            background: #f8fafc;
            border-radius: 20px;
            padding: 20px;
            margin: 20px 0;
            border-left: 4px solid #2c5f6e;
        }
        .prompt-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #2c5f6e;
            margin-bottom: 8px;
            font-weight: 600;
        }
        .prompt-text {
            font-size: 0.9rem;
            line-height: 1.6;
            color: #2c3e4e;
        }
        .action-buttons {
            display: flex;
            gap: 12px;
            margin-top: 24px;
            flex-wrap: wrap;
        }
        .btn {
            padding: 10px 20px;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: none;
            background: #f1f3f7;
            color: #2c3e4e;
        }
        .btn-primary {
            background: #2c5f6e;
            color: white;
        }
        .btn-primary:hover {
            background: #1e4652;
            transform: translateY(-2px);
        }
        .btn:hover {
            transform: translateY(-2px);
            background: #e6e9f0;
        }
        /* 底部评论模块（保留原样式） */
        .comment-section {
            margin: 30px 0 40px;
            background: #fff;
            border-radius: 28px;
            padding: 24px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
        }
        /* 响应式 */
        @media (max-width: 1000px) {
            .gallery-detail { flex-direction: column; }
            .thumbnail-item { width: 70px; height: 70px; }
        }
        @media (max-width: 640px) {
            .wrap { padding: 0 16px; }
            .info-title { font-size: 1.4rem; }
        }
        
        
        
        /*图片集详情页*/
        .breadcrumb {
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            color: #5a6874;
        }
        .breadcrumb a {
            color: #3b82f6;
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        .info-card {
            background: white;
            border-radius: 24px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .info-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }
        .info-desc {
            color: #334155;
            line-height: 1.5;
            font-size: 0.95rem;
            background: #f8fafc;
            padding: 1rem;
            border-radius: 20px;
        }
        .info-desc-label {
            font-weight: 600;
            margin-bottom: 6px;
            color: #1e293b;
        }
        .thumb-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 16px;
        }
        .thumb-card {
            cursor: pointer;
            border-radius: 16px;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .thumb-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.1);
        }
        .thumb-img {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            display: block;
        }
        /* 全屏模态框 */
        .modal-mask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .modal-container {
            background: white;
            width: 100vw;
            height: 100vh;
            display: flex;
            flex-direction: column;
            border-radius: 0;
            overflow: hidden;
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            border-bottom: 1px solid #edf2f7;
            flex-shrink: 0;
            background: white;
        }
        .modal-header-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .modal-header h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
        }
        .small-download-btn {
            background: #eef2ff;
            border: none;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 500;
            color: #3b82f6;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: background 0.2s;
        }
        .small-download-btn:hover {
            background: #e0e7ff;
        }
        .close-btn {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: #94a3b8;
            transition: color 0.2s;
            line-height: 1;
        }
        .close-btn:hover {
            color: #1e293b;
        }
        /* 左右布局：图片在左，描述在右 */
        .modal-body-row {
            display: flex;
            flex: 1;
            min-height: 0;
        }
        /* 左侧图片区域 */
        .img-left {
            flex: 2;
            background: #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .big-img-wrapper {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .modal-big-img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }
        /* 箭头默认隐藏，鼠标悬停在左侧区域时显示 */
        .nav-arrow {
            position: absolute;
            right: 16px;               /* 固定在右侧 */
            width: 44px;
            height: 44px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            font-size: 24px;
            transition: all 0.2s ease;
            z-index: 10;
            opacity: 0;
            pointer-events: none;
        }
        .img-left:hover .nav-arrow {
            opacity: 1;
            pointer-events: auto;
        }
        .nav-arrow:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: scale(1.05);
        }
        .prev-arrow {
            top: calc(50% - 56px);   /* 向上偏移半高+间距 */
        }
        .next-arrow {
            bottom: calc(50% - 56px);
        }
        /* 右侧描述区域 */
        .desc-right {
            flex: 1;
            background: white;
            overflow-y: auto;
            padding: 2rem 1.8rem;
            border-left: 1px solid #edf2f7;
        }
        .modal-current-desc {
            background: #fff7ed;
            border-left: 5px solid #f59e0b;
            padding: 1.2rem;
            border-radius: 16px;
            margin-bottom: 1rem;
        }
        .modal-current-desc strong {
            font-size: 1rem;
        }
        .modal-current-desc strong i {
            margin-right:10px;
        }
        .desc-text {
            margin-top: 12px;
            line-height: 1.6;
            font-size: 1rem;
            color: #334155;
            word-break: break-word;
        }
        /* 响应式 */
        @media (max-width: 768px) {
            .modal-body-row {
                flex-direction: column;
            }
            .img-left {
                flex: 1.5;
                min-height: 50vh;
            }
            .desc-right {
                flex: 1;
                border-left: none;
                border-top: 1px solid #edf2f7;
                padding: 1.2rem;
            }
            .nav-arrow {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }
            .prev-arrow {
                left: 12px;
            }
            .next-arrow {
                right: 12px;
            }
            .thumb-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 10px;
            }
            .info-title {
                font-size: 1.4rem;
            }
        }
 