/* 导入主题文件 */

/* 详情页主体内容 */
.product-detail-main {
    padding: 20px 0;
    position: relative ;
}
.product-detail-main img{
    max-width: 100%;
    height: auto;
}

/* 左侧产品信息 */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.product-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.product-share {
    display: flex;
    align-items: center;
}

.product-share span {
    margin-right: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.share-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    margin-left: 8px;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* 产品图片画廊 */
.product-gallery {
    margin-bottom: 40px;
}

.main-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.main-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

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

.thumbnail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.thumbnail-item {
    flex: 1;
    min-width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

/* 产品介绍 */
.product-intro,
.service-process,
.required-materials,
.product-faq,
.user-reviews,
.related-products {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* 服务流程 */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.process-step {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* 所需材料 */
.materials-list {
    margin-left: 20px;
}

.material-category {
    margin-bottom: 25px;
}

.material-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.material-category h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.material-category ul {
    margin: 0;
    padding-left: 15px;
}

.material-category li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.material-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 常见问题 */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 18px;
}

.faq-answer {
    margin-top: 15px;
    padding-left: 30px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* 用户评价 */
.review-item {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.reviewer-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.reviewer-rating {
    color: var(--warning-color);
    margin-bottom: 5px;
}

.reviewer-rating i {
    margin-right: 3px;
}

.review-time {
    font-size: 12px;
    color: var(--border-dark);
}

.review-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.reviews-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more-reviews {
    background-color: var(--bg-primary);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more-reviews:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* 相关推荐 */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.product-item {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.product-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.product-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-name a {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--danger-color);
    margin-top: 8px;
}

/* 右侧咨询和购买 */
.product-price-section {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.price-content {
    margin-bottom: 25px;
    text-align: center;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 10px;
}

.price-symbol {
    font-size: 24px;
}

.price-value {
    font-size: 48px;
}

.price-unit {
    font-size: 18px;
    font-weight: 500;
}

.original-price {
    font-size: 16px;
    color: var(--border-dark);
    text-decoration: line-through;
    margin-bottom: 10px;
}

.price-tips {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-tips i {
    margin-right: 5px;
}

.buy-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-buy-now {
    flex: 1;
    background-color: var(--primary-color);
    border: none;
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-consult {
    flex: 1;
    background-color: var(--success-color);
    border: none;
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-consult:hover {
    background-color: rgba(40, 167, 69, 0.9);
    transform: translateY(-2px);
}

.service-guarantee {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guarantee-item {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.guarantee-item i {
    color: var(--success-color);
    margin-right: 5px;
}

/* 服务信息卡片 */
.service-info-card {
    padding: 0 10px;
}
.enterprise-advantages-card{
    padding: 0 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

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

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: var(--dark-color);
    text-align: right;
}

/* 客服在线 */
.customer-service {
    text-align: center;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.service-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.service-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.service-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.online {
    background-color: var(--success-color);
}

.status-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.service-intro {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-service-chat {
    background-color: var(--primary-color);
    border: none;
    color: var(--text-light);
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-service-chat:hover {
    background-color: var(--primary-dark);
}

/* 联系电话 */
.contact-phone-card {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.phone-icon {
    font-size: 32px;
    margin-right: 20px;
}

.phone-content .phone-title {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.phone-content .phone-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.phone-content .phone-time {
    font-size: 12px;
    opacity: 0.8;
}

/* 企业优势 */
.company-advantages {
    /* 使用全局卡片样式 */
}

.advantages-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

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

.advantages-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}

.advantages-list li:last-child {
    border-bottom: none;
}

.advantages-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .process-step {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .main-image img {
        height: auto;
    }
    
    .thumbnail-item {
        min-width: 80px;
        height: 60px;
    }
    
    .buy-buttons {
        flex-direction: column;
    }
    
    .guarantee-item {
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .product-detail-main {
        padding: 20px 0;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .price-value {
        font-size: 36px;
    }
    
    .contact-phone-card {
        flex-direction: column;
        text-align: center;
    }
    
    .phone-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    
    .product-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-price-section,
    .service-info-card,
    .customer-service,
    .company-advantages {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================ */
/* 业务组件样式统一管理 */
/* ============================ */

/* 企业优势组件样式 */
.enterprise-advantages-card .advantages-list {
    /* 采用与服务信息列表相同的基础样式 */
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    gap: 8px; /* 与服务信息列表项的margin-bottom保持一致 */
}

.enterprise-advantages-card .advantage-item {
    /* 参考服务信息列表项的样式 */
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
}

.enterprise-advantages-card .advantage-item i {
    /* 参考服务信息标签的样式特点 */
    color: #007bff;
    font-size: 16px;
    margin-right: 8px; /* 与服务信息组件的右边距保持一致 */
    width: 20px;
    text-align: center;
    min-width: 20px; /* 类似服务信息标签的固定宽度 */
    flex-shrink: 0; /* 防止图标被压缩 */
    margin-top: 1px; /* 微调垂直对齐 */
}

.enterprise-advantages-card .advantage-item span {
    /* 参考服务信息值的样式特点 */
    color: #333;
    font-size: 14px;
    flex-grow: 1;
    line-height: 1.4; /* 保持良好的行高 */
}

/* 企业优势响应式设计 */
@media (max-width: 768px) {
    .enterprise-advantages-card .advantages-list {
        grid-template-columns: 1fr;
    }
}

/* 服务信息组件样式 */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    flex-wrap: wrap;
}

.info-list .info-label {
    font-weight: 600;
    color: #555;
    margin-right: 8px;
    min-width: 80px;
}

.info-list .info-value {
    color: #333;
    flex-grow: 1;
}

/* 联系电话组件样式 */
.phone-content {
    width: 100%;
}

.phone-content .phone-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.phone-content .phone-number {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin-right: 12px;
}

.phone-content .phone-number i {
    margin-right: 8px;
    color: #007bff;
}

.phone-content .phone-time {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.phone-content .btn-phone-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    height: 24px;
    margin-top: 0;
}

.phone-content .btn-phone-call:hover {
    background-color: #0056b3;
}