/* ===== Product Detail Page Improvements ===== */
/* Price Panel Improvements */
.price-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.price-block {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.price-compare {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.price-original {
    font-size: 1rem;
    color: var(--muted);
    text-decoration: line-through;
}

.price-save {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-actions .btn {
    font-weight: 600;
    padding: 0.875rem 1.5rem;
}

.affiliate-disclaimer {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Section Title Improvements */
.section-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--brand);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

/* Description Improvements */
.detail-description {
    line-height: 1.8;
    color: var(--text);
    font-size: 0.95rem;
}

.detail-description p {
    margin-bottom: 1rem;
}

.detail-description p:last-child {
    margin-bottom: 0;
}

.detail-description strong {
    color: var(--text);
    font-weight: 600;
}

/* 内容区图片集：当描述为空时用于补充内容，避免大片留白 */
.detail-gallery-images img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

/* Pros & Cons Panel */
.pros-cons-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: fit-content;
    position: sticky;
    top: 5px;
}

.pros-title,
.cons-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-title {
    color: var(--success);
}

.cons-title {
    color: var(--danger);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.25rem 0;
    line-height: 1.55;
    transition: color 0.2s ease;
}

.feature-list li:hover {
    color: var(--brand);
}

.feature-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
    border-radius: 50%;
}

.feature-list--pros .feature-icon {
    color: var(--success);
}

.feature-list--cons .feature-icon {
    color: var(--danger);
}

.feature-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.55;
}

.pros-box {
    margin-bottom: 1rem;
}

.pros-box:last-child {
    margin-bottom: 0;
}

.cons-box {
    margin-bottom: 1rem;
}

.cons-box:last-child {
    margin-bottom: 0;
}

.buy-now-btn {
    margin: 1rem;
}


/* Alternatives Section */
.alternatives-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: var(--brand);
}

.product-card__img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--muted-bg);
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.product-card__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: 0.9rem;
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    background: #ff3d5a;
    background: linear-gradient(135deg, #ff3d5a, #ff6b35);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(255, 61, 90, 0.5);
    border: 2px solid #fff;
    z-index: 2;
}

.badge-platform-small {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 2;
}

.product-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.product-card__title a:hover {
    color: var(--brand);
}

.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.product-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.alt-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.product-card__foot .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .price-panel,
    .pros-cons-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .price-panel {
        padding: 1.25rem;
    }

    .price-current {
        font-size: 1.5rem;
    }

    .section-block,
    .pros-cons-panel,
    .alternatives-section {
        padding: 1.25rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}
