/* ========== 指令详情页特有样式 ========== */

/* 指令概述、认证依据、指令定位与目标、基本要求 - 与产品页 .product-overview-plain 统一 */
.directive-content {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}
.directive-content p {
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
    color: #374151;
}
.directive-content p:last-child {
    margin-bottom: 0;
}
.directive-content strong {
    color: #1a1a1a;
    font-weight: 600;
}
.directive-content h3,
.directive-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 2rem 0 0.75rem 0;
}
.directive-content h3:first-of-type,
.directive-content h4:first-of-type {
    margin-top: 0;
}

/* 指令定位与目标、基本要求 - 卡片样式优化 */
#directive-goal .directive-content,
#basic-requirements .directive-content {
    margin: 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 80px, #ffffff 100%);
    border: 1px solid #E8ECF0;
    border-radius: 14px;
    padding: 24px;
    overflow: hidden;
}

/* 指令定位与目标 - "定位"和"目标"小标题样式（蓝色） */
#directive-goal .directive-content p:first-child span span,
#directive-goal .directive-content p:nth-child(3) span span {
    color: #0070f3 !important;
    font-weight: 600 !important;
}

/* 恢复圆圈后面的文字颜色 */
#directive-goal .directive-content p span:not(.goal-num):not([style*="定位"]):not([style*="目标"]) {
    /* color已统一由 .directive-content 控制 */
}

/* 基本要求 - 圆点列表样式 */
#basic-requirements .directive-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#basic-requirements .directive-content li,
#basic-requirements .directive-content ul li {
    font-size: 14px;
    color: #4b5563;
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.6;
    list-style: none !important;
    list-style-type: none !important;
}
#basic-requirements .directive-content li::before,
#basic-requirements .directive-content ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #0070f3;
    font-weight: bold;
    font-size: 16px;
}
#basic-requirements .directive-content li p {
    margin: 0;
}

/* 表格样式 - 与产品页 .product-overview-plain table 一致 */
.directive-content table,
.classification-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 14px;
}
.directive-content table th,
.directive-content table td,
.classification-table th,
.classification-table td {
    border: 1px solid #d9dee7;
    padding: 10px 14px;
    text-align: left;
    line-height: 1.5;
    color: #374151;
}
.directive-content table th,
.classification-table th {
    background: #f0f4f8;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}
.directive-content table tr:hover td,
.classification-table tr:hover td {
    background: #f8fafc;
}

/* 适用范围标签列表 */
.scope-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.scope-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 20px;
    font-size: 13px;
    color: #0070f3;
    text-decoration: none;
    transition: all 0.2s ease;
}
.scope-tag:hover {
    background: #0070f3;
    color: white;
    border-color: #0070f3;
}

/* 认证流程容器 - 兼容指令页的 .directive-content 包裹和纯文本/语义化两种格式 */
.cert-process-wrapper {
    position: relative;
    counter-reset: step;
}
.cert-process-wrapper::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        #0070f3 8%,
        #00a8ff 92%,
        transparent 100%
    );
}

/* 旧格式：纯文本段落（兼容指令页的 .directive-content 包裹） */
.cert-process-wrapper > p,
.cert-process-wrapper .directive-content > p {
    position: relative;
    margin: 0 0 20px 0;
    padding: 14px 18px 14px 48px;
    background: #FFFFFF;
    border: 1px solid #e2e4e8;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    counter-increment: step;
    line-height: 1.6;
    font-size: 14px;
}
.cert-process-wrapper > p:last-child,
.cert-process-wrapper .directive-content > p:last-child {
    margin-bottom: 0;
}
.cert-process-wrapper > p::before,
.cert-process-wrapper .directive-content > p::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0070f3 0%, #00a8ff 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}
.cert-process-wrapper > p span[style*="font-weight: 600"],
.cert-process-wrapper > p strong,
.cert-process-wrapper > p b,
.cert-process-wrapper .directive-content > p span[style*="font-weight: 600"],
.cert-process-wrapper .directive-content > p strong,
.cert-process-wrapper .directive-content > p b {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* 语义化认证流程样式 - ol/li 结构 */
.cert-process {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    counter-reset: step;
}
.cert-process > li {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 24px;
    position: relative;
    padding-left: 44px;
}
.cert-process > li:last-child {
    margin-bottom: 0;
}
.cert-process > li::before {
    content: counter(step);
    counter-increment: step;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, #0070f3 0%, #00a8ff 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.cert-process > li > article {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid #e2e4e8;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.cert-process h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 6px 0;
    line-height: 1.4;
}
.cert-process time {
    font-size: 13px;
    color: #0070f3;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin: 4px 0 8px 0;
    font-weight: 500;
}
.cert-process p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}


/* 合规文件列表样式 - 与产品页 cert-docs-wrapper 一致 */
.compliance-card {
    margin: 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 80px, #ffffff 100%);
    border: 1px solid #E8ECF0;
    border-radius: 14px;
    padding: 24px;
    overflow: hidden;
}
.compliance-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.compliance-card li,
.compliance-card ul li {
    font-size: 14px;
    color: #4b5563;
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.6;
    list-style: none !important;
    list-style-type: none !important;
}
.compliance-card li::before,
.compliance-card ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #0070f3;
    font-weight: bold;
    font-size: 16px;
}
.compliance-card li p {
    margin: 0;
}

/* 相关资讯样式 - 上下排版 */
.news-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.news-category {
    margin-bottom: 0;
}
.news-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A1A1A;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.news-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background-color: #f97316;
    border-radius: 2px;
}
.news-item {
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e4e8;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item a {
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
}
.news-item a:hover {
    color: #FF6A00 !important;
}
.news-item p {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* 主体内容宽度统一 */
.w1600 {
    max-width: 1400px !important;
    width: 100% !important;
}

/* 响应式 */
@media (max-width: 768px) {
    /* 分类表格：固定布局，强制按百分比分配列宽 */
    .classification-table {
        table-layout: fixed;
    }
    .classification-table th:first-child,
    .classification-table td:first-child {
        width: 4em;
        word-break: break-all;
        word-wrap: break-word;
        white-space: normal;
    }
    .classification-table th,
    .classification-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .scope-tags {
        gap: 8px;
    }
    .scope-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
    .news-section {
        grid-template-columns: 1fr;
    }
    .directive-content h3,
    .directive-content h4 {
        font-size: 15px;
    }
    .cert-process-wrapper,
    .compliance-card {
        padding: 16px 20px;
    }
    .cert-process-wrapper::before {
        display: none;
    }
    .cert-process > li {
        padding-left: 40px;
    }
    .cert-process > li::before {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
}
