/* SNP 页面专用样式 - 不影响其他页面 */

/* 主容器样式 */
.snp {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* 文档内容包装器 - 左右分栏布局 */
.doc-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

/* 主内容区域 */
.doc-main-content {
    flex: 1;
    min-width: 0;
}

/* 侧边栏区域 */
.doc-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* 目录导航样式 */
.nav-index {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #dee2e6;
}

.nav-index h2 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
    text-align: center;
}

.nav-index ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-index li {
    margin-bottom: 10px;
}

.nav-index a {
    display: block;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.nav-index a:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 18px;
    transform: translateX(3px);
}

.nav-index a:active,
.nav-index a.active {
    background-color: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

/* 滚动条样式优化（仅针对侧边栏） */
.doc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.doc-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.doc-sidebar::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.doc-sidebar::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .doc-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .doc-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }

    .nav-index {
        position: relative;
        top: 0;
    }
}

/* 页面标题区域 */
.snp-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.snp-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.snp-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 300;
}

/* 通用区块样式 */
.snp-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.snp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.snp-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 区块图标 */
.section-icon {
    text-align: center;
    margin-bottom: 25px;
}

.section-icon .icon-emoji {
    font-size: 3.5rem;
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    line-height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 区块标题 */
.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    text-align: left;
    text-indent: 2em;
}

/* 段落首行缩进 */
.snp-section p {
    text-indent: 2em;
    text-align: left;
    margin-bottom: 1em;
}

/* 单图包装器 */
.image-wrapper {
    margin-top: 30px;
    text-align: left;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.02);
}

/* 图片画廊 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.image-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.image-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.02);
}

/* 返回顶部按钮 */
.back-to-top {
    text-align: center;
    margin: 60px 0 40px;
}

.back-to-top-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .snp {
        padding: 30px 20px;
    }

    .snp-main-title {
        font-size: 2rem;
    }

    .snp-subtitle {
        font-size: 1rem;
    }

    .snp-section {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-icon .icon-emoji {
        font-size: 2.5rem;
        width: 80px;
        height: 80px;
        line-height: 40px;
    }
}

/* 动画增强 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.snp-section {
    animation: fadeInUp 0.6s ease-out;
}

