/* ========== 产品详情页特有样式 ========== */

/* 分类表格样式（产品概述模块） */
.product-overview-plain .classification-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 14px;
}
.product-overview-plain .classification-table th,
.product-overview-plain .classification-table td {
    border: 1px solid #d9dee7;
    padding: 10px 14px;
    text-align: left;
    line-height: 1.5;
    color: #374151;
}
.product-overview-plain .classification-table th {
    background: #f0f4f8;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}
.product-overview-plain .classification-table tr:hover td {
    background: #f8fafc;
}
@media (max-width: 768px) {
    .product-overview-plain .classification-table {
        table-layout: fixed;
    }
    .product-overview-plain .classification-table th:first-child,
    .product-overview-plain .classification-table td:first-child {
        width: 4em;
        word-break: break-all;
        white-space: normal;
    }
    .product-overview-plain .classification-table th,
    .product-overview-plain .classification-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* 认证流程容器 - 兼容纯文本段落和语义化HTML两种格式 */
.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%
    );
}

/* 旧格式：纯文本段落（编辑器输出的 <p class="ds-markdown-paragraph">） */
.cert-process-wrapper > 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;
    transition: all 0.3s ease;
}
/* 隐藏编辑器生成的空段落（只含<br>或&nbsp;） */
.cert-process-wrapper > p:empty,
.cert-process-wrapper > p:has(br:only-child),
.cert-process-wrapper > p:has(> br:first-child:last-child) {
    display: none;
}
/* 隐藏只含空白文本的段落 */
.cert-process-wrapper > p span:only-child:empty {
    display: none;
}
.cert-process-wrapper > p:last-child {
    margin-bottom: 0;
}

/* 旧格式：数字圆圈 */
.cert-process-wrapper > 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;
}

/* 旧格式：标题增强（编辑器中的加粗span） */
.cert-process-wrapper > p span[style*="font-weight: 600"],
.cert-process-wrapper > p strong,
.cert-process-wrapper > 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 {
    margin: 2rem 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 80px, #ffffff 100%);
    border: 1px solid #E8ECF0;
    border-radius: 14px;
    padding: 24px;
    overflow: hidden;
}
.cert-docs-wrapper .cert-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cert-docs-wrapper .cert-doc-list li {
    font-size: 14px;
    color: #4b5563;
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.6;
}
.cert-docs-wrapper .cert-doc-list li::before {
    content: "\2022";
    position: absolute;
    left: 8px;
    color: #0070f3;
    font-weight: bold;
    font-size: 16px;
}

/* 费用预估模块样式 */
.cost-split-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 80px, #ffffff 100%);
    border: 1px solid #e2e4e8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.cost-top-row {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e4e8;
}
.cost-left {
    width: 260px;
    flex-shrink: 0;
    background: transparent;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: #1a1a1a;
}
.cost-amount {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #1a1a1a;
}
.cost-label {
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.cost-disclaimer {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    white-space: nowrap;
}
.cost-right {
    flex: 1;
    padding: 20px;
}
.cost-details {
    margin-bottom: 0;
}
.cost-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #0070f3;
    display: inline-block;
}
.cost-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.cost-table-wrapper th {
    background: #f8fafc;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e4e8;
    font-size: 12px;
}
.cost-table-wrapper td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e4e8;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}
.cost-table-wrapper tr:last-child td {
    border-bottom: 1px solid #e2e4e8;
}
.cost-table-wrapper tr:hover td {
    background: #f8fafc;
}
.cost-includes-excludes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.cost-includes, .cost-excludes {
    padding: 16px 20px;
}
.cost-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cost-list li {
    font-size: 12px;
    color: #4b5563;
    padding: 3px 0;
    line-height: 1.4;
    position: relative;
    padding-left: 16px;
}
.cost-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.cost-includes .cost-list li::before {
    background: #22c55e;
}
.cost-excludes .cost-list li::before {
    background: #ef4444;
}

/* 产品概述模块样式 */
.product-overview-plain strong {
    color: #1a1a1a;
    font-weight: 600;
}
.product-overview-plain h3 {
    font-size: inherit;
    font-weight: normal;
    color: inherit;
    margin: 0;
    padding: 0;
    line-height: inherit;
    display: inline;
}
.product-overview-plain h3::before {
    display: none !important;
}
.product-overview-plain table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 12px 0;
}
.product-overview-plain table th,
.product-overview-plain table td {
    border: 1px solid #d9dee7;
    padding: 10px 14px;
    text-align: left;
    line-height: 1.5;
    color: #374151;
}
.product-overview-plain table th {
    background: #f0f4f8;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}
.product-overview-plain table tr:hover td {
    background: #f8fafc;
}
.product-overview-plain a {
    color: #0070f3;
    text-decoration: none;
}
.product-overview-plain a:hover {
    text-decoration: underline;
}



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



/* 响应式 */
@media (max-width: 768px) {
    .cost-top-row {
        flex-direction: column;
        border-bottom: 1px solid #e2e4e8;
    }
    .cost-left {
        width: 100%;
        padding: 16px 20px;
    }
    .cost-right {
        width: 100%;
        padding: 16px;
    }
    .cost-amount {
        font-size: 24px;
    }
    .cost-includes-excludes {
        grid-template-columns: 1fr;
    }
    .cert-process > li {
        padding-left: 36px;
    }
    .cert-process > li::before {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 13px;
    }
    .cert-process-wrapper::before,
    .cert-process::before {
        left: 14px;
    }
}
