/* ============================================================
   商品详情页 - 样式
   ============================================================ */
.product-detail-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}
.product-gallery {
    flex: 0 0 480px;
    max-width: 480px;
}
.main-image-wrap {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.main-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.thumbnail-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.thumbnail {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}
.thumbnail.active {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-info {
    flex: 1;
}
.detail-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.detail-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}
.price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.detail-stock {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.stock-available { color: var(--neon-green); }
.stock-empty { color: var(--neon-red); }
.spec-group { margin-bottom: 1.25rem; }
.spec-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}
.spec-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.spec-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}
.spec-btn:hover {
    border-color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.1);
}
.spec-btn.active {
    border-color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.2);
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}
.quantity-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0;
}
.quantity-group .spec-label {
    margin-bottom: 0;
    margin-right: 10px;
}
.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-glass);
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn:hover { background: rgba(139, 92, 246, 0.2); }
.quantity-input .form-control {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    border-radius: 0;
    padding: 8px 4px;
    background: transparent;
}
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}
.favorite-btn { font-size: 0.9rem; }
.favorite-btn[data-favorited="true"] {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}
.product-description { padding: 2rem; }
.rich-content {
    line-height: 1.8;
    color: var(--text-secondary);
}
.rich-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}
.table-wrapper { overflow-x: auto; }
.table-wrapper table { width: 100%; border-collapse: collapse; }
.table-wrapper th, .table-wrapper td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
}
.table-wrapper th {
    color: var(--text-secondary);
    font-weight: 600;
}
.product-video {
    padding: 2rem;
}
.product-video .section-title {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--text-primary);
}
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-glass);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-container video::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}
.limit-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .product-detail-layout {
        flex-direction: column;
    }
    .product-gallery {
        flex: 1;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-image {
        aspect-ratio: 4 / 3;
        max-height: 320px;
    }
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons .btn {
        width: 100%;
    }
}
