/* 公共样式文件 - 青砚集版本 */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    overflow-y: scroll; /* 确保垂直滚动条始终存在，避免布局跳动 */
}

header {
    background: linear-gradient(135deg, #3a526a, #14395f);
    color: #fff;
    padding: 1.5em 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 3.0em;
    font-weight: bold;
}

header p {
    margin: 0.5em 0 0 0;
    font-size: 1.35em;
    opacity: 0.9;
}

/* 导航栏容器 */
nav {
    background-color: #21354b;
    color: #fff;
    padding: 0.1em 0;
    position: relative;
    overflow: visible;
    /* 关键: 应用Flexbox布局 */
    display: flex;
    justify-content: center; /* 水平居中 */
    gap: 1em;
    padding: 0.1em 1em;
}

/* 导航栏按钮 */
nav a {
    /* flex, min-width, white-space 等属性保持不变 */
    flex: 0 1 80px;
    min-width: 0;
    white-space: nowrap;
    /* 【新增】将按钮自身也设置为Flex容器，以实现更可靠的内部居中 */
    display: inline-flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    color: #fff;
    text-decoration: none;
    padding: 0.3em 2.4em;
    margin: 0.1em 0 0.05em 0;
    position: relative;
    transition: none;
}

/* 添加分隔线 */
nav a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.6em;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.3);
}

nav a:not(.active) + a:not(.active)::after {
    opacity: 1; /* 确保其他按钮间分隔线可见 */
}

nav a:hover {
    background-color: #315578;
    border-radius: 8px;
}

.container {
    max-width: 1200px; /* 限制最大宽度 */
    width: 90%; /* 调整宽度以适应三列 */
    margin: 20px auto; /* 居中显示并留白 */
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* === 首页英雄区域样式 === */
/* 首页hero区域标题和logo横向排列 */
.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* logo和标题之间的间距 */
    margin-bottom: 20px;
}

.hero-logo {
    width: 85px;  /* logo大小，可根据需要调整 */
    height: 85px;
    object-fit: contain;
    padding-bottom: 12px;
}

.hero-title-wrapper h2 {
    margin: 0; /* 移除默认margin，避免影响对齐 */
}

/* 响应式：移动端可能需要调整 */
@media (max-width: 768px) {
    .hero-logo {
        width: 45px;
        height: 45px;
    }
    
    .hero-title-wrapper {
        gap: 10px;
    }
}

.hero-section {
    background: linear-gradient(135deg, #6293ce 0%, #283d6c 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.hero-description {
    font-size: 1.2em;
    margin: 0 0 40px 0;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.hero-feature h4 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #fff;
}

.hero-feature p {
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.hero-download {
    margin-top: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero-btn.primary {
    background: #ff6b6b;
    color: white;
}

.hero-btn.primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.hero-btn:not(.primary) {
    background: rgba(255, 255, 255, 0.2);
    color: white;

}

.hero-btn:not(.primary):hover {
    background: white;
    color: #667eea;
}

/* === 插件预览区域 === */
.plugins-preview {
    margin-top: 40px;
}

.plugins-preview h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.section-description {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* 首页网格布局 */
.software-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* 列之间的间距 */
    justify-content: flex-start; /* 使列均匀分布 */
}

.software-item {
    flex: 0 1 calc(33.333% - 20px);
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    min-width: 300px;
    cursor: pointer; /* 新增指针样式 */
    transition: all 0.2s ease; /* 新增过渡效果 */
    position: relative;
}
.software-item:hover {
    background-color: #f0f0f0; /* 新增悬停背景色 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 新增悬停阴影 */
}


.plugin-icon {
    position: absolute;

    width: 160px;
    height: 160px;
}

.plugin-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* 插件库卡片 - 顶部居中图标样式 */
.software-item.card-top-icon {
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    margin-bottom: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.software-item.card-top-icon:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.detail-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 6px 14px;
    background-color: #5193ca;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.detail-btn:hover {
    background-color: #3d76a6;
}

.card-top-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px auto; /* 上下间距，左右居中 */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-top-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 名片样式的插件卡片 */
.software-item.card-style {
    display: flex;
    align-items: center;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    background-color: white;
    transition: box-shadow 0.3s ease;
    gap: 25px;
}

.software-item.card-style:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    background-color: #ccc;
    border-radius: 8px;
}

.card-content {
    flex-grow: 1;
}

.card-title {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    color: #2c3e50;
}

.card-separator {

    height: 3px;
    background-color: #5193ca;
    margin-bottom: 12px;
    border-radius: 2px;
}

.card-description {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 1em;
}

.plugin-preview {
    border-left: 4px solid #667eea;
}

.plugin-access {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}



.manager-required {
    background: #e8f4fd;
    color: #1976d2;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 10px;
}

.detail-link {
    color: #667eea;
    text-decoration: none;
    margin-left: 10px;
}

.detail-link:hover {
    text-decoration: underline;
}

.view-all-plugins {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #5193ca;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #3d76a6;
    transform: translateY(-1px);
}

/* === 青砚集页面专用样式 === */
.qingyanset-hero {
    background: linear-gradient(135deg,  #6293ce 0%, #283d6c 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.qingyanset-hero h2 {
    font-size: 2.8em;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.download-section {
    margin-top: 40px;
}

.main-download {
    display: inline-block;
    padding: 20px 40px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.main-download:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.download-icon {
    margin-right: 10px;
    font-size: 1em;
}

.version-info {
    margin-top: 15px;
    opacity: 0.9;
    font-size: 0.95em;
}

.features-section {
    margin: 40px 0;
}

.features-section h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #5193ca;
}

.feature-item h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.feature-item p {
    margin: 0;
    line-height: 1.6;
}

.screenshots-section {
    margin: 40px 0;
}

.screenshots-section h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.screenshot-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.screenshot-item p {
    padding: 15px;
    margin: 0;
    color: #666;
    text-align: center;
}

.tutorials-section {
    margin: 40px 0;
}

.tutorials-section h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.tutorial-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tutorial-item h4 {
    padding: 20px 20px 10px 20px;
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.video-container {
    position: relative;
    width: 100%;
    height: 250px;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial-item p {
    padding: 15px 20px 20px 20px;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.requirements-section {
    margin: 40px 0;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.requirements-section h3 {
    color: #2c3e50;
    font-size: 1.6em;
    margin: 0 0 20px 0;
}

.requirements-content p {
    margin: 0;
    line-height: 1.8;
    color: #555;
}

/* === 插件库通知样式 === */
.plugin-notice {
    background: linear-gradient(135deg,  #6293ce 0%, #283d6c 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.plugin-notice h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.plugin-notice p {
    margin: 0 0 20px 0;
    color: #ffffff;
    line-height: 1.6;
}

.plugin-notice .download-link {
    display: inline-block;
    padding: 12px 25px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.plugin-notice .download-link:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.hero-icon {
    width: 200px;           /* 图标宽度，根据实际需求调整 */
    height: 200px;          /* 图标高度 */
    margin: 0 auto 15px;   /* 图标居中，下方留空 */
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* === 关于页面样式 === */
.about-hero {
    background: linear-gradient(135deg, #9acdff 0%, #fed6e3 100%);
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.about-hero h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.tagline {
    color: #4a5568;
    font-size: 1.2em;
    margin: 0;
    font-style: italic;
}

.about-content {
    padding: 20px 0;
}

.about-content .section {
    margin-bottom: 40px;
}

.about-content .section h3 {
    color: #2c3e50;
    font-size: 1.6em;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.about-content .section p {
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 15px;
}

.tech-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background: #5193ca;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
}

.contact-info p {
    margin-bottom: 10px;
    color: #4a5568;
}

.contact-info strong {
    color: #2c3e50;
}

/* 详情页样式 */
.software-details {
    margin-bottom: 20px; /* 添加底部间距 */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.software-details h2 {
    color: #014d8b;
    margin-top: 0;
}

.software-details .section {
    margin-bottom: 20px;
}

.software-details .section h3 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .software-item {
        flex: 1 1 calc(50% - 20px); /* 两列布局 */
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .qingyanset-hero h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .software-item {
        flex: 1 1 100%; /* 单列布局 */
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .qingyanset-hero {
        padding: 40px 20px;
    }

    .qingyanset-hero h2 {
        font-size: 2em;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .tutorials-grid {
        grid-template-columns: 1fr;
    }
}

.software-item h2 {
    color: #014d8b;
}

.software-item h3 {
    color: #014d8b;
    margin-top: 0;
}

.software-item .description {
    margin-bottom: 10px;
}

.features-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.features-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 下载链接样式 */
.software-item .download-link,
.software-details .download-link {
    display: inline-block;
    background-color: #5193ca;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.software-details .download-link {
    padding: 10px 20px;
    font-size: 1.1em;
}

.software-item .download-link:hover,
.software-details .download-link:hover {
    background-color: #3d76a6;
}

/* 图片和视频样式 */
.instructions img, .instructions video {
    max-width: 50%;
    height: auto;
    display: block;
    margin-top: 10px;
    margin-left: auto; /* 新增：使图片水平居中 */
    margin-right: auto; /* 新增：使图片水平居中 */
}

/* 详情页图片样式 */
.software-details .instructions img,
.software-details .instructions video {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.meta-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.meta-info small {
    color: #999;
}

footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.9em;
}

/* 主题颜色变量 */
:root {
    --theme-color: #f4f4f4; /* 匹配body背景色 */
}

/* 激活状态的导航链接 */
nav a.active {
    background-color: var(--theme-color) !important;
    color: #000 !important;
    border-radius: 8px 8px 0 0;
    position: relative;
    height: calc(100% + 0.4em);
    margin-bottom: -0.1em; /* 同步调整上边距 */
    padding-top: 0.4em; /* 同步调整上边距 */
    line-height: 1.6em; /* 优化文本垂直对齐 */
    pointer-events: none;
    z-index: 1;
}

/* --- 移动端汉堡菜单样式 --- */
/* 汉堡按钮默认隐藏，只在移动端显示 */
.hamburger-btn {
    display: none;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* 确保在最顶层 */
    padding: 0;
}

.hamburger-btn .line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    /* 【新增】Body Scroll Lock 核心样式 */
    body.nav-active {
        overflow: hidden; /* 当菜单激活时，禁止body滚动 */
    }

    .nav-container {
        position: relative;
        height: 50px;
    }

    .hamburger-btn {
        display: block;
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        padding: 10px 8px;
        z-index: 1002;
        box-sizing: border-box;
    }

    .hamburger-btn .line {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #4d6282;
        margin: 4px 0;
        transition: all 0.3s ease;
    }

    /* 【修改】选择器依赖于 body.nav-active */
    body.nav-active .hamburger-btn .line {
        background-color: #fff;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
    }

    body.nav-active .hamburger-btn .line1 {
        width: 70%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    body.nav-active .hamburger-btn .line2 {
        opacity: 0;
    }

    body.nav-active .hamburger-btn .line3 {
        width: 70%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    header + .nav-container > nav {
        background-color: #fff;
    }

    nav#main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        background-color: #36404e;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 0 20px 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* 【修改】选择器依赖于 body.nav-active */
    body.nav-active nav#main-nav {
        transform: translateX(0);
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    /* 【修改】选择器依赖于 body.nav-active */
    body.nav-active .menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    nav#main-nav a {
        position: relative;
        z-index: 1;
        background-color: transparent;
        width: 100%;
        flex-shrink: 0;
        color: #fff;
        box-sizing: border-box;
        border-bottom: 1px solid #555;
        display: flex;
        align-items: center;
        padding: 7px 20px;
    }

    nav#main-nav a:last-child {
        border-bottom: none;
    }

    nav#main-nav a.active {
        background-color: #214b6e;
        border-radius: 8px;
        margin: 5px 10px;
        width: calc(100% - 20px);
        border-bottom: none;
    }

    nav#main-nav a:not(:last-child)::after {
        display: none;
    }
}
/* 联系我们布局样式 */
.contact-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info p {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
}

.contact-info strong {
    color: #333;
    font-weight: 600;
}

.qr-code-section {
    flex-shrink: 0;
    text-align: center;
    margin-right: 15px;
    border-radius: 8px;
    /* background-color: #f9f9f9; */
    /* border: 1px solid #e0e0e0; */
}

.qr-code-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
}

.qr-code-caption {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .qr-code-section {
        align-self: center;
        width: 220px;
    }
    
    .qr-code-img {
        width: 220px;
        height: 220px;
    }
}
.beian-link {
  color: inherit;           /* 继承父元素的文字颜色 (这样它就会和 © 文本一个颜色) */
  text-decoration: none;  /* 移除下划线 */
}
/* 鼠标悬停时，重新显示下划线 */
.beian-link:hover {
  text-decoration: underline;
}
/* ======== 新增：插件截图放大样式 ======== */
.screenshot-item img.js-zoomable-image {
    cursor: zoom-in; /* 提示用户可以点击 */
    transition: transform 0.2s ease;
}

/* 放大时，禁止 body 滚动 */
body.zoom-active {
    overflow: hidden;
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 遮罩层背景 */
    
    /* 使用 Flex 居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 2000; /* 确保在最顶层 */
    
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    cursor: zoom-out; /* 提示点击退出 */
}

.zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zoom-overlay img {
    max-width: 95vw;    /* 95% 视窗宽度 */
    max-height: 95vh;   /* 95% 视窗高度 */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
/* ======== 新增样式结束 ======== */