/* 详情页面专用样式 */
.page-header {
    margin: 30px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.breadcrumb {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #4caf50;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 产品详情 */
.product-detail {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: opacity 0.3s, border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #4caf50;
}

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

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-header h2 {
    font-size: 2rem;
    margin-right: 15px;
}

.product-tag {
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.9rem;
}

.product-description h3 {
    margin: 25px 0 15px;
    font-size: 1.3rem;
    color: #333;
    border-left: 4px solid #4caf50;
    padding-left: 10px;
}

.product-description h3:first-child {
    margin-top: 0;
}

.product-description p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-description ul {
    list-style: none;
    margin-bottom: 25px;
}

.product-description ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.product-description ul li i {
    color: #4caf50;
    margin-right: 10px;
    margin-top: 4px;
}

/* 流程步骤 */
.process-steps {
    margin-top: 20px;
}

.step {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    height: calc(100% - 30px);
    width: 2px;
    background-color: #e0e0e0;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 15px;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-content p {
    color: #666;
    margin-bottom: 0;
}

/* 价格和按钮 */
.product-cta {
    margin-top: 40px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.price {
    margin-bottom: 20px;
}

.price .label {
    font-size: 1.1rem;
    color: #333;
}

.price .value {
    font-size: 1.5rem;
    color: #ff5722;
    font-weight: bold;
}

.buttons {
    display: flex;
    gap: 15px;
}

.btn-consult,
.btn-quote {
    flex: 1;
    display: inline-block;
    text-align: center;
    padding: 12px 0;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-consult {
    background-color: #4caf50;
    color: white;
}

.btn-consult:hover {
    background-color: #388e3c;
}

.btn-quote {
    background-color: #f5f5f5;
    color: #333;
}

.btn-quote:hover {
    background-color: #e0e0e0;
}

/* 相关推荐 */
.related-products {
    margin-bottom: 60px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
}

.related-products h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4caf50;
    margin: 10px auto 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 200px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item h3 {
    padding: 15px;
    margin-bottom: 0;
    text-align: center;
}

.btn-view-more {
    display: block;
    background-color: #f5f5f5;
    color: #333;
    text-align: center;
    padding: 10px 0;
    transition: background-color 0.3s;
}

.btn-view-more:hover {
    background-color: #e0e0e0;
}

/* 用户评价 */
.user-reviews {
    margin-bottom: 60px;
}

.user-reviews h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
}

.user-reviews h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4caf50;
    margin: 10px auto 0;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.review-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.reviewer-details h4 {
    margin-bottom: 5px;
}

.rating {
    color: #ffc107;
}

.review-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-date {
    color: #888;
    font-size: 0.9rem;
    text-align: right;
}

/* 添加评价 */
.add-review {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.add-review h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.review-form textarea {
    min-height: 120px;
    resize: vertical;
}

.rating-select {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
    color: #ccc;
}

.rating-select i {
    cursor: pointer;
    transition: color 0.2s;
}

.rating-select i:hover,
.rating-select i.active {
    color: #ffc107;
}

.btn-submit {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #388e3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .product-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
} 