/* 产品详情页样式 */

/* 面包屑导航 */
.breadcrumb {
    background-color: #111;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #666;
}

.breadcrumb li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #8a2be2;
}

.breadcrumb li:last-child {
    color: #8a2be2;
    font-weight: 600;
}

/* 产品详情布局 */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 产品图库 */
.product-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #222;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #222;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: #8a2be2;
}

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

/* 产品详细信息 */
.product-info-detail {
    position: relative;
}

.product-info-detail .product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #8a2be2;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-info-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

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

.product-price .price {
    font-size: 28px;
    color: #8a2be2;
    font-weight: bold;
    margin-right: 15px;
}

.product-price .original-price {
    font-size: 16px;
    color: #666;
    text-decoration: line-through;
    margin-right: 15px;
}

.product-price .discount {
    background-color: rgba(138, 43, 226, 0.1);
    color: #8a2be2;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.product-stats {
    display: flex;
    margin-bottom: 20px;
    gap: 30px;
}

.product-stats .stat {
    display: flex;
    flex-direction: column;
}

.product-stats .label {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.product-stats .value {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
}

.product-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-description p {
    color: #ddd;
    font-size: 16px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.product-tags .tag {
    background-color: #222;
    color: #ddd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.product-tags .tag:hover {
    background-color: #333;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary, .btn-share {
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #8a2be2;
    color: #fff;
    flex: 2;
}

.btn-primary:hover {
    background-color: #7621bc;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #8a2be2;
    color: #8a2be2;
    flex: 1;
}

.btn-secondary:hover {
    background-color: rgba(138, 43, 226, 0.1);
}

.btn-share {
    background-color: transparent;
    border: 1px solid #555;
    color: #ddd;
    width: 50px;
    padding: 0;
}

.btn-share:hover {
    background-color: #333;
    border-color: #777;
}

/* 发布者信息卡片 */
.publisher-info {
    margin-top: 40px;
    margin-bottom: 60px;
}

.publisher-card {
    background-color: #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
}

.publisher-header {
    padding: 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
    background-color: rgba(138, 43, 226, 0.05);
}

.publisher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #8a2be2;
    margin-right: 20px;
    flex-shrink: 0;
}

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

.publisher-details {
    flex: 1;
}

.publisher-name {
    font-size: 20px;
    color: #fff;
    margin-bottom: 5px;
}

.publisher-title {
    font-size: 14px;
    color: #8a2be2;
    margin-bottom: 8px;
}

.publisher-company {
    font-size: 14px;
    color: #aaa;
}

.publisher-body {
    padding: 25px;
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    width: 100px;
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
}

.contact-value {
    color: #ddd;
    font-size: 14px;
}

.publisher-footer {
    padding: 25px;
    border-top: 1px solid #222;
    display: flex;
    gap: 15px;
}

.btn-contact-publisher, .btn-view-more {
    padding: 12px 0;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-contact-publisher {
    background-color: #8a2be2;
    color: #fff;
}

.btn-contact-publisher:hover {
    background-color: #7621bc;
}

.btn-view-more {
    background-color: transparent;
    border: 1px solid #8a2be2;
    color: #8a2be2;
}

.btn-view-more:hover {
    background-color: rgba(138, 43, 226, 0.1);
}

/* 产品页签 */
.product-tabs {
    margin-bottom: 60px;
}

.tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
}

.tab {
    padding: 15px 25px;
    background-color: transparent;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #8a2be2;
}

.tab.active {
    color: #8a2be2;
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #8a2be2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 24px;
    color: #fff;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #8a2be2;
}

.detail-content h3 {
    font-size: 20px;
    color: #fff;
    margin: 30px 0 15px;
}

.detail-content p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 20px;
}

.detail-image {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    display: block;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8a2be2;
}

.feature-list li strong {
    display: block;
    color: #ddd;
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-list li p {
    color: #aaa;
    margin: 0;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(138, 43, 226, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.advantage-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.advantage-content h4 {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 8px;
}

.advantage-content p {
    font-size: 14px;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

/* 联系表单 */
.contact-section {
    background-color: #0a0a0a;
    padding: 60px 0;
    margin-bottom: 60px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.contact-section .section-title h2 {
    margin-bottom: 10px;
}

.contact-section .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-section .section-title p {
    color: #aaa;
    font-size: 16px;
}

#inquiry-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    width: calc(50% - 10px);
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 14px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #8a2be2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #666;
}

.btn-submit {
    background-color: #8a2be2;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #7621bc;
}

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

.related-products .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.related-products .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.related-products-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .advantages {
        grid-template-columns: 1fr;
    }
    
    .related-products-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .publisher-header {
        flex-direction: column;
        text-align: center;
    }
    
    .publisher-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .form-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-info-detail h1 {
        font-size: 26px;
    }
    
    .product-price .price {
        font-size: 24px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions a {
        width: 100%;
    }
    
    .related-products-slider {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .contact-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .publisher-footer {
        flex-direction: column;
    }
} 