/* 详情页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #7c3aed;
}

.breadcrumb-nav .separator {
    color: #adb5bd;
}

.breadcrumb-nav .current {
    color: #495057;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    padding: 2rem 0;
    background: #fff;
}

.detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* 产品图片区域 */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 4/3;
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover .image-overlay {
    opacity: 1;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.zoom-btn i {
    font-size: 1.2rem;
    color: #333;
}

.thumbnail-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #7c3aed;
}

.thumbnail:hover {
    border-color: #a855f7;
}

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

/* 产品信息区域 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.2;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
}

.tag.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.tag.recommended {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.tag.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.tag.limited {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.rating-text {
    color: #6b7280;
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7c3aed;
}

.original-price {
    font-size: 1.2rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1rem 0;
}

.product-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.5rem 0;
}

.product-description p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-description li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #374151;
}

.product-description li i {
    color: #10b981;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 140px;
}

/* 发布人信息 */
.publisher-info {
    margin: 3rem 0;
}

.publisher-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.publisher-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.publisher-avatar {
    position: relative;
    flex-shrink: 0;
}

.publisher-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.online-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

.publisher-details {
    flex: 1;
}

.publisher-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
}

.publisher-title {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.publisher-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publisher-rating span {
    color: #6b7280;
    font-size: 0.9rem;
}

.publisher-actions {
    flex-shrink: 0;
}

.publisher-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: #7c3aed;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-label {
    color: #6b7280;
    font-weight: 500;
    min-width: 80px;
}

.contact-value {
    color: #1a202c;
    font-weight: 600;
    flex: 1;
}

.copy-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #f3f4f6;
    color: #7c3aed;
    border-color: #7c3aed;
}

.publisher-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #7c3aed;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 详细信息标签页 */
.detail-tabs {
    margin: 3rem 0;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

.tab-btn:hover {
    color: #7c3aed;
}

.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
}

.content-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem 0;
}

.content-section p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.content-section ol {
    padding-left: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

.content-section li {
    margin: 0.5rem 0;
}

.content-section strong {
    color: #374151;
    font-weight: 600;
}

/* 技术规格表格 */
.spec-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-row {
    display: flex;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #7c3aed;
}

.spec-label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
    margin-right: 2rem;
}

.spec-value {
    color: #6b7280;
    flex: 1;
}

/* 用户评价 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.review-date {
    color: #9ca3af;
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.review-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

.review-content p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* 常见问题 */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qa-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f9fafb;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.question:hover {
    background: #f3f4f6;
}

.question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
}

.question i {
    color: #6b7280;
    transition: transform 0.3s ease;
}

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

.answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.qa-item.active .answer {
    padding: 1.5rem;
    max-height: 200px;
}

.answer p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* 相关推荐 */
.related-products {
    margin: 3rem 0;
}

.related-products h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 2rem 0;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
}

.product-content {
    padding: 1.5rem;
}

.product-content .product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
}

.product-content .product-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.product-content .product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-content .current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
}

.product-content .original-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-content .product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-content .rating-text {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 图片预览模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.close-btn i {
    font-size: 1.2rem;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .publisher-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .publisher-actions {
        align-self: stretch;
    }
    
    .publisher-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        text-align: center;
    }
    
    .publisher-card {
        padding: 1.5rem;
    }
    
    .publisher-header {
        gap: 1rem;
    }
    
    .publisher-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .publisher-name {
        font-size: 1.3rem;
    }
    
    .publisher-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }
    
    .stat-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .tab-nav {
        gap: 0;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-label {
        min-width: auto;
    }
    
    .spec-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .spec-label {
        min-width: auto;
        margin-right: 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .publisher-contact {
        padding: 1rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .close-btn {
        top: -40px;
        width: 35px;
        height: 35px;
    }
}