/* 检测项目详情页样式 */
.test-project-detail-container {
    margin: 0 auto;
    padding: 20px;
}

/* 第一栏：项目图片和基本信息 */
.project-info-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
}

.project-image-wrapper {
    flex-shrink: 0;
    width: 450px;
    overflow: hidden;
}

.project-image-wrapper img {
    max-width: 100%;
    border:1px solid #e6e6e6;
    border-radius: 8px;
}

.project-info-content {
    flex-grow: 1;
    margin-left: 20px;
}

.project-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.project-price {
    font-size: 22px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.project-details {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 0;
   /*  display: grid;
    grid-template-columns:repeat(2, 1fr); */
    gap: 10px;
}

.project-detail-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    color: rgb(102, 102, 102);
    min-height: 38px;
}

.project-detail-item:first-child {
    padding-top: 0;
}

.project-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-detail-label {
    width: 140px;
    color: #666;
    flex-shrink: 0;
    font-weight: normal;
    line-height: 1.5;
}

.project-detail-value {
    flex-grow: 1;
    color: #333;
    word-break: break-all;
    line-height: 1.5;
}

/* 参考价格特殊样式 - 红色高亮 */
.project-detail-item .project-detail-value[style*="color:rgb(234, 21, 18)"],
.project-detail-item .project-detail-value[style*="color:#ea1512"],
.project-detail-item:has(.project-detail-label:contains("参考价格")) .project-detail-value {
    color: #ea1512 !important;
    font-weight: 500;
}

/* 服务提供商链接样式 - 蓝色 */
.project-detail-item .project-detail-value a {
    color: #296cf2 !important;
    text-decoration: none;
    transition: color 0.3s;
}

.project-detail-item .project-detail-value a:hover {
    color: #1e5fd9 !important;
    text-decoration: underline;
}

/* 项目明细（规格选择） */
.project-spec-box {
    margin: 16px 0 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}
.project-spec-list {
    display: flex;
    flex-direction: column;
}
.project-spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.project-spec-row:last-child {
    border-bottom: none;
}
.project-spec-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}
.project-spec-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.project-spec-name {
    display: block;
    width: 100%;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}
.project-spec-price {
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}
.project-spec-qty {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.project-spec-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f2f2f2;
    color: #333;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    border-radius: 2px;
    padding: 0;
}
.project-spec-qty-btn:hover {
    background: #e8e8e8;
}
.project-spec-qty-input {
    width: 40px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 14px;
    color: #333;
    background: transparent;
    -moz-appearance: textfield;
}
.project-spec-qty-input::-webkit-outer-spin-button,
.project-spec-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.project-spec-list:not(.is-expanded) .project-spec-row.is-extra {
    display: none;
}
.project-spec-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 4px 0 0;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #296cf2;
    font-size: 13px;
    cursor: pointer;
}
.project-spec-toggle:hover {
    color: #1e5fd9;
}
.project-spec-toggle .toggle-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}
.project-spec-list.is-expanded + .project-spec-toggle .toggle-arrow {
    transform: rotate(180deg);
}
.project-spec-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 0 4px;
    font-size: 14px;
    color: #333;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}
.project-spec-summary .hl {
    color: #ff4d00;
    font-weight: 600;
}
.project-spec-summary .ship-tip {
    margin-left: auto;
    color: #999;
    font-size: 12px;
}

.project-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.project-actions .action-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
}

.project-actions .btn-consult {
    background: #fff;
    border:1px solid rgb(59, 130, 246);
    color: rgb(59, 130, 246);
}

.project-actions .btn-consult:hover {
    background: rgb(59, 130, 246);
    color: #fff;
}

.project-actions .btn-order {
    background: rgb(41, 108, 242);
    color: #fff;
    text-decoration: none;
}
.project-actions button.btn-order {
    font-family: inherit;
}
.project-actions .btn-order:hover {
    background: #0d8ae0;
}
.project-actions .btn-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 第二栏：项目介绍和其他项目 */
.project-content-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.project-content-left {
    flex: 1;
    background: #fff;
}

.project-content-right {
    width: 350px;
    flex-shrink: 0;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.other-projects-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1E9FFF;
}

.other-project-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
    cursor: pointer;
}

.other-project-item:hover {
    background: #f5f5f5;
    padding: 10px;
    margin: 0 -10px 20px -10px;
    border-radius: 6px;
}

.other-project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.other-project-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.other-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-project-info {
    flex-grow: 1;
}

.other-project-price {
    font-size: 18px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 8px;
}

.other-project-name {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.other-institution-block {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.other-institution-tip {
    font-size: 13px;
    color: #999;
    margin: -10px 0 15px;
    line-height: 1.5;
}

.other-institution-name {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.other-institution-meta {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    line-height: 1.5;
}


.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.service-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    padding: 15px;
}

/* 服务详情中的表格样式 */
.service-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.service-detail-content table th,
.service-detail-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.service-detail-content table th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: center;
}

.service-detail-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.service-detail-content table tr:hover {
    background-color: #f0f0f0;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.review-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.review-stars {
    font-size: 16px;
    color: #ffb400;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.review-time {
    font-size: 13px;
    color: #999;
}

.review-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.review-meta {
    font-size: 14px;
    color: #999;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .project-info-section {
        flex-direction: column;
    }

    .project-image-wrapper {
        width: 100%;
        height: 250px;
    }

    .project-content-section {
        flex-direction: column;
    }

    .project-content-right {
        width: 100%;
        display: none !important;
    }
}