/* 产品详情 */
.product-detail {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 产品图片区域 */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-radius: var(--border-radius-md);
    border: 1px solid #e0e7ff;
    transition: all 0.3s ease;
}

.main-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.thumbnail {
    width: 100%;
    height: 70px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-weight: 600;
    color: var(--light-text);
}

.thumbnail:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.thumbnail.active {
    border-color: var(--primary-color);
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.15);
}

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

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 4px;
}

.product-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
}

.price-note {
    font-size: 14px;
    color: var(--light-text);
    margin-top: -8px;
}

.product-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--light-text);
    flex-wrap: wrap;
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
}

.product-meta-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-meta-label {
    color: var(--text-color);
    font-weight: 600;
}

.product-description {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    padding: 20px;
    background: #fafbfc;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color);
}

.product-description p {
    margin-bottom: 12px;
}

.product-description p:last-child {
    margin-bottom: 0;
}

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

.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 200px;
}

.add-to-cart-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.2);
}

.buy-now-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 200px;
}

.buy-now-btn:hover {
    background: #e5534b;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.2);
}

/* 规格参数表 */
.specs-section {
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.specs-table th,
.specs-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.specs-table th {
    background: #f8fafc;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.specs-table tr:hover {
    background-color: #f8fafc;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* 特殊表格样式 */
.special-table {
    border: 1px solid #fed7aa;
}

.special-table th {
    background: #fffbeb;
    color: #92400e;
}

.special-table tr:nth-child(odd) {
    background-color: #fefce8;
}

.special-table tr:hover {
    background-color: #fef3c7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-images {
        align-items: center;
    }
    
    .main-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .thumbnails {
        max-width: 500px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 20px;
    }
    
    .specs-section {
        padding: 24px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 28px;
    }
    
    .product-price {
        font-size: 32px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        min-width: auto;
        padding: 14px 24px;
    }
    
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .thumbnail {
        height: 64px;
        font-size: 14px;
    }
    
    .specs-table {
        overflow-x: auto;
        display: block;
    }
}

/* 搜索区域 */
.search-area {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.search-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

/* 面包屑导航 */
.breadcrumb {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumb span {
    margin: 0 8px;
    color: #cbd5e1;
}

.breadcrumb a:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* 图文详情区域 */
.product-gallery {
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gallery-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.gallery-item.reverse > * {
    direction: ltr;
}

.gallery-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-radius: var(--border-radius-md);
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.gallery-text {
    padding: 0 20px;
}

.gallery-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.gallery-text p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.8;
}

/* 商家信息区域 */
.seller-info {
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.seller-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: #fefce8;
    border-radius: var(--border-radius-md);
    border: 1px solid #fde68a;
}

.seller-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border-radius: 50%;
    border: 3px solid #fcd34d;
    flex-shrink: 0;
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.seller-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.contact-label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 100px;
}

.contact-value {
    color: var(--light-text);
    font-weight: 500;
}

.seller-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.seller-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 140px;
}

.seller-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.2);
}

.seller-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.seller-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .gallery-item,
    .gallery-item.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seller-content {
        flex-direction: column;
        text-align: center;
    }
    
    .seller-actions {
        flex-direction: row;
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-gallery,
    .seller-info {
        padding: 24px;
    }
    
    .gallery-content {
        gap: 30px;
    }
    
    .gallery-item {
        padding: 16px;
    }
    
    .gallery-image {
        height: 200px;
        font-size: 40px;
    }
    
    .gallery-text h3 {
        font-size: 20px;
    }
    
    .seller-name {
        font-size: 22px;
    }
    
    .seller-actions {
        flex-direction: column;
    }
    
    .seller-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .gallery-image {
        height: 180px;
        font-size: 36px;
    }
    
    .gallery-text {
        padding: 0;
    }
    
    .seller-content {
        padding: 16px;
    }
    
    .seller-logo {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }
}

/* 编辑器内容样式 */
.editor-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-md);
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-color);
}

.editor-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.editor-content h3:first-child {
    margin-top: 0;
}

.editor-content p {
    margin: 0 0 16px;
    color: var(--light-text);
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.editor-content img:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.editor-content ul,
.editor-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--light-text);
}

.editor-content li {
    margin: 8px 0;
    line-height: 1.7;
}

.editor-content ul li {
    list-style-type: disc;
}

.editor-content ol li {
    list-style-type: decimal;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}