/* SOP页面样式 */
.sop-container {
    padding: 40px 0;
    background: #f4f7fa;
    min-height: calc(100vh - 200px);
}

/* 侧边栏样式 */
.sop-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    position: sticky;
    top: 40px;
    height: fit-content;
}

.sidebar-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-title h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-item {
    margin-bottom: 8px;
}

.chapter-toggle {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: transform 0.2s;
}

.chapter-toggle.expanded {
    transform: rotate(90deg);
}

.chapter-link {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.2s;
}

.chapter-link:hover {
    color: #006eff;
}

.chapter-link.active {
    color: #006eff;
    font-weight: bold;
}

.sub-chapters {
    list-style: none;
    padding: 8px 0 8px 20px;
    display: none;
    margin: 0;
}

.sub-chapters li {
    margin-bottom: 6px;
}

.sub-chapters li:last-child {
    margin-bottom: 0;
}

.sub-chapters a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.sub-chapters a:hover {
    color: #006eff;
    padding-left: 5px;
}

.sub-chapters a.active {
    color: #006eff;
    font-weight: 500;
}

.sidebar-tips {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.sidebar-tips p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* 主内容区域 */
.sop-main-content {
    flex: 1;
    margin-left: 30px;
}

/* 双栏布局 */
.sop-content-wrapper {
    display: flex;
    gap: 30px;
}

.sop-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sop-header h1 {
    font-size: 36px;
    line-height: 56px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.sop-header p {
    font-size: 18px;
    color: #666;
}

.sop-content {
    width: 1120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* 章节样式 */
.chapter {
    margin-bottom: 60px;
}

.chapter h2 {
    font-size: 28px;
    line-height: 40px;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #006eff;
}

/* 小节样式 */
.section {
    margin-bottom: 40px;
}

.section h3 {
    font-size: 24px;
    line-height: 36px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.target {
    font-size: 16px;
    line-height: 28px;
    color: #006eff;
    font-weight: bold;
    background: #f0f5ff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #006eff;
}

/* 步骤样式 */
.step {
    margin-bottom: 35px;
    padding: 25px;
    background: #fafbfc;
    border-radius: 8px;
    border-left: 3px solid #e8e8e8;
}

.step h4 {
    font-size: 20px;
    line-height: 30px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.step p {
    font-size: 16px;
    line-height: 28px;
    color: #555;
    margin-bottom: 15px;
}

.step ul, .step ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.step li {
    font-size: 16px;
    line-height: 28px;
    color: #555;
    margin-bottom: 8px;
    list-style-type: disc;
}

.step li strong {
    color: #333;
    font-weight: bold;
}

/* 引用样式 */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #006eff;
    padding: 15px 20px;
    margin: 15px 0;
    font-style: italic;
    color: #666;
    border-radius: 0 4px 4px 0;
}

/* 警告样式 */
.warning {
    background: #fff7e6;
    border-left: 4px solid #faad14;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.warning p {
    color: #fa8c16;
    font-weight: bold;
    margin: 0;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.competition-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e8e8e8;
}

.competition-table th,
.competition-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
}

.competition-table th {
    background: #fafbfc;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.competition-table td {
    font-size: 14px;
    color: #555;
}

.competition-table tr:hover {
    background: #fafbfc;
}

.competition-table th:last-child,
.competition-table td:last-child {
    border-right: none;
}

.competition-table tr:last-child td {
    border-bottom: none;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .sop-container {
        padding: 30px 0;
    }
    
    .sop-sidebar {
        width: 250px;
    }
    
    .sop-header {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .sop-header h1 {
        font-size: 32px;
        line-height: 48px;
    }
    
    .sop-content {
        padding: 30px;
    }
    
    .chapter h2 {
        font-size: 24px;
        line-height: 36px;
        margin-bottom: 25px;
    }
    
    .section h3 {
        font-size: 20px;
        line-height: 30px;
        margin-bottom: 15px;
    }
    
    .step {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .step h4 {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 992px) {
    .sop-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .sop-sidebar {
        width: 100%;
        position: static;
        order: 2;
    }
    
    .sop-main-content {
        margin-left: 0;
        order: 1;
    }
}

@media screen and (max-width: 768px) {
    .sop-container {
        padding: 20px 0;
    }
    
    .sop-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .sop-header h1 {
        font-size: 28px;
        line-height: 40px;
    }
    
    .sop-header p {
        font-size: 16px;
    }
    
    .sop-content {
        padding: 20px;
    }
    
    .chapter h2 {
        font-size: 22px;
        line-height: 32px;
        margin-bottom: 20px;
    }
    
    .section h3 {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 12px;
    }
    
    .target {
        font-size: 14px;
        line-height: 24px;
        padding: 12px 15px;
    }
    
    .step {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .step h4 {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 10px;
    }
    
    .step p,
    .step li {
        font-size: 14px;
        line-height: 24px;
    }
    
    blockquote {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .warning {
        padding: 12px 15px;
    }
    
    .warning p {
        font-size: 14px;
    }
    
    .competition-table th,
    .competition-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}
