/**
 * 产品详情头部区域样式
 *
 * @package GoodBase
 * @since 1.0.0
 */

.product-header-section {
    margin-bottom: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    margin-top: 12px;
}

.product-header-container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 2rem;
    align-items: start;
}

/* 左侧：产品预览 */
.product-preview-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-preview-image {
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative; /* 为标签绝对定位提供定位上下文 */
}

/* 横图样式（宽度大于等于高度） */
.product-preview-image:not(.image-portrait) img {
    width: 100%;
    height: 286px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* 竖图样式（高度大于宽度） */
.product-preview-image.image-portrait {
    height: 286px;
}

.product-preview-image.image-portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-meta-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.product-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-meta-info .meta-item i {
    color: #999;
    font-size: 0.75rem;
}

.product-meta-info .meta-item-right {
    margin-left: auto;
}

.report-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 0.2rem;
    font-size: 0.75rem;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-banner i {
    color: #ffc107;
}

/* 中间：产品详情 */
.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 592px;
    overflow: visible;
}

.product-title-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

.product-title-area .title-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
    overflow: visible;
    width: 90%;
    max-width: 90%;
}

.product-title-area .title-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #8b5cf6;
    color: #fff;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 标签显示在封面图左上角 */
.product-preview-image .product-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    margin: 0;
    line-height: 1.2;
    padding: 4px 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.product-tag.tag-hot {
    background: #ef4444;
}

.product-preview-image .product-tag.tag-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.product-tag.tag-exclusive {
    background: #f59e0b;
}

.product-preview-image .product-tag.tag-exclusive {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.product-tag.tag-recommended {
    background: #8b5cf6;
}

.product-preview-image .product-tag.tag-recommended {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

.product-tag.tag-premium {
    background: #10b981;
}

.product-preview-image .product-tag.tag-premium {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.product-title-area .title-left .product-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* product-title-area Tooltip 样式 - 与作者 tooltip 保持一致 */
.product-title-area[data-tooltip] {
    position: relative;
}

.product-title-area[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    transform: translateY(4px);
    z-index: 10000;
    min-width: max-content;
}

.product-title-area[data-tooltip]::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    transform: translateY(4px);
    margin-top: 2px;
    border: 5px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    z-index: 10001;
}

.product-title-area[data-tooltip]:hover::after,
.product-title-area[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.product-title-area[data-tooltip]:not(:hover)::after,
.product-title-area[data-tooltip]:not(:hover)::before {
    transition-delay: 0s;
}

.product-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #64748b;
}

.product-meta-line .meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-meta-line .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

/* 作者和分类名称颜色 - 橙红色 */
.product-meta-line .meta-left a.meta-item {
    color: #ff6b35;
}

.product-meta-line .meta-left a.meta-item:hover,
.product-meta-line .meta-left a.meta-item:active,
.product-meta-line .meta-left a.meta-item:visited,
.product-meta-line .meta-left a.meta-item:focus {
    color: #ff6b35;
    opacity: 0.8;
    text-decoration: none !important;
}

.product-meta-line .meta-left a.meta-item i {
    color: #ff6600;
    transition: opacity 0.2s ease;
}

.product-meta-line .meta-left a.meta-item:hover i {
    color: #000000;
    opacity: 0.7;
}

.product-meta-line .meta-left a.meta-item span {
    color: #000;
    font-weight: 400;
    transition: opacity 0.2s ease;
    text-decoration: none !important;
}

.product-meta-line .meta-left a.meta-item:hover span {
    color: #ff6b35;
    opacity: 0.8;
    text-decoration: none !important;
}

.product-meta-line .meta-item:hover,
.product-meta-line .meta-item:active,
.product-meta-line .meta-item:visited,
.product-meta-line .meta-item:focus {
    color: #000000;
    opacity: 0.7;
    text-decoration: none !important;
}

.product-meta-line .meta-item i {
    font-size: 0.875rem;
    color: #000000;
    transition: opacity 0.2s ease;
}

.product-meta-line .meta-item:hover i {
    color: #000000;
    opacity: 0.7;
}

.product-meta-line .meta-item span {
    color: #000000;
    font-weight: 400;
    transition: opacity 0.2s ease;
    text-decoration: none !important;
}

.product-meta-line .meta-item:hover span {
    color: #000000;
    opacity: 0.7;
    text-decoration: none !important;
}

/* 作者名字 Tooltip 样式 */
.product-meta-line .meta-item[data-tooltip] {
    position: relative;
}

.product-meta-line .meta-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    transform: translateY(-4px);
    z-index: 1000;
}

.product-meta-line .meta-item[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 10px;
    transform: translateY(-4px);
    margin-bottom: 2px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    z-index: 1000;
}

.product-meta-line .meta-item[data-tooltip]:hover::after,
.product-meta-line .meta-item[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.product-meta-line .meta-item[data-tooltip]:not(:hover)::after,
.product-meta-line .meta-item[data-tooltip]:not(:hover)::before {
    transition-delay: 0s;
}

.promise-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.promise-content {
    flex: 1;
}

.promise-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.upgrade-vip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.upgrade-vip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.value-added-services {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 6px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.services-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.services-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.services-list {
    align-items: center;
    gap: 0.375rem;
    flex-wrap: nowrap;
    flex: 1;
}

.service-item {
    display: inline-flex;
    align-items: center;
    gap: 0.56rem;
    padding: 0.1rem 0.22rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #475569;
    font-size: 0.6875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    white-space: nowrap;
}

.service-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 0.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.service-item:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.pricing-area {
    margin: 0;
    padding: 0;
}

.pricing-card {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: none;
    position: relative;
    border: none;
    max-height: 88px;
    width: 100%;
    min-height: 64px;
}

/* 收费类型样式 */
.pricing-area.pricing-charge .pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ef4444 0%, #f97316 100%);
}

/* VIP类型样式 */
.pricing-area.pricing-vip .pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8b5cf6 0%, #a78bfa 100%);
}

/* 免费类型样式 */
.pricing-area.pricing-free .pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.pricing-main {
    flex: 1;
    padding: 12px 12px 12px 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.pricing-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.price-type-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}

.pricing-charge .price-type-label {
    color: #ef4444;
}

.pricing-vip .price-type-label {
    color: #8b5cf6;
}

.pricing-free .price-type-label {
    color: #10b981;
}

.price-type-label i {
    font-size: 11px;
}

.pricing-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.1;
}

.pricing-plus {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin: 0 2px;
    line-height: 1;
}

.price-amount {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.price-amount.price-charge {
    color: #ef4444;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-amount.price-vip {
    color: #8b5cf6;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-amount.price-free {
    color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-amount.price-discounted {
    color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-discount-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-original-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.price-current .price-amount {
    font-size: 28px;
    font-weight: 800;
}

.price-original-wrapper .price-original {
    margin-left: 0;
    font-size: 18px;
    color: #999;
}

.price-original {
    margin-left: 8px;
    font-size: 18px;
    color: #999;
}

.price-original del {
    text-decoration: line-through;
    color: #999;
}

.price-original-above-tag {
    margin-bottom: 4px;
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.price-original-above-tag .price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.price-original-above-tag .price-original {
    margin-left: 0;
    font-size: 16px;
    color: #999;
    display: inline-block;
}

.price-original-above-tag .price-original del {
    text-decoration: line-through;
    color: #999;
}

.price-unit {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1;
}

.price-desc {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.pricing-charge .price-desc {
    color: #94a3b8;
}

.pricing-vip .price-desc {
    color: #8b5cf6;
}

.pricing-free .price-desc {
    color: #10b981;
}

.pricing-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    line-height: 1.3;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.pricing-tag i {
    font-size: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.pricing-tag-vip {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    color: #d97706;
    cursor: default;
    position: relative;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.1);
}

.pricing-tag-vip i {
    color: #f59e0b;
    font-size: 11px;
    animation: none;
    margin-right: 2px;
}

.pricing-tag-vip:hover {
    /* 移除hover动作效果 */
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.1);
    transform: none;
}

.pricing-tag-vip span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.pricing-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    flex-shrink: 0;
    align-self: center;
}

.pricing-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 160px;
    max-width: 200px;
}

.pricing-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.pricing-info i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

.pricing-charge .pricing-info i {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #ef4444;
}

.pricing-vip .pricing-info i {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #8b5cf6;
}

.pricing-free .pricing-info i {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #10b981;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.info-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
}

.info-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pricing-main {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px 12px 20px;
    }
    
    .pricing-left {
        width: 100%;
    }
    
    .pricing-divider {
        display: none;
    }
    
    .pricing-right {
        width: 100%;
        min-width: auto;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .pricing-card {
        height: auto;
        min-height: 88px;
    }
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-buy {
    background: #ef4444;
    color: #fff;
}

.btn-buy:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.btn-download:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-demo {
    background: #8b5cf6;
    color: #fff;
}

.btn-demo:hover {
    background: #7c3aed;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.btn-upgrade {
    background: #f59e0b;
    color: #fff;
}

.btn-upgrade:hover {
    background: #d97706;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-activity {
    background: #1e293b;
    color: #fff;
}

.btn-activity:hover {
    background: #0f172a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 41, 59, 0.3);
}

.engagement-metrics {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.metric-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.metric-btn i {
    color: #94a3b8;
}

/* 标题右侧收藏按钮 */
.favorite-btn-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.favorite-btn-title:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

/* 支付弹窗样式 */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.payment-overlay.show {
    opacity: 1;
}

.payment-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.payment-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.payment-modal .modal-header {
    padding: 18px;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.payment-modal .modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.payment-modal .modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.payment-modal .modal-body {
    padding: 18px;
    flex: 1;
    overflow-y: auto;
}

.payment-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.payment-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.payment-item-title {
    font-size: 0.875rem;
    color: #64748b;
}

.payment-item-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}

.payment-amount {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #ef4444 !important;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.payment-method-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.payment-method-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-method-radio {
    flex-shrink: 0;
}

.payment-method-radio input[type="radio"] {
    display: none;
}

.payment-method-radio label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.payment-method-radio input[type="radio"]:checked + label {
    border-color: #3b82f6;
    background: #3b82f6;
}

.payment-method-radio input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.payment-method-details {
    flex: 1;
}

.payment-method-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.payment-method-desc {
    font-size: 0.875rem;
    color: #64748b;
}

.payment-modal .modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.payment-modal .modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.payment-modal .modal-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.payment-modal .modal-btn-cancel:hover {
    background: #e2e8f0;
    color: #334155;
}

.payment-modal .modal-btn-confirm {
    background: #3b82f6;
    color: #fff;
}

.payment-modal .modal-btn-confirm:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.payment-modal .modal-btn-confirm:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 优惠券选择区域 */
.payment-coupon-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #fefce8;
    border-radius: 8px;
    border: 1px solid #fde047;
}

/* 优惠券功能禁用时的样式 */
.payment-coupon-section.payment-coupon-disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.payment-coupon-section.payment-coupon-disabled .coupon-section-title {
    color: #64748b;
}

.payment-coupon-section.payment-coupon-disabled .coupon-section-title i {
    color: #94a3b8;
}

.payment-coupon-section.payment-coupon-disabled .coupon-section-header {
    margin-bottom: 0.5rem;
}

.coupon-disabled-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
    padding: 0.5rem 0;
}

.coupon-disabled-notice i {
    color: #94a3b8;
}

.coupon-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.coupon-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #854d0e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-section-title i {
    color: #eab308;
}

.coupon-count {
    font-size: 0.75rem;
    color: #a16207;
    background: #fef08a;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.coupon-selector {
    position: relative;
}

.coupon-select-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coupon-select-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.coupon-select-btn.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.coupon-select-btn.has-coupon {
    border-color: #10b981;
    background: #ecfdf5;
}

.coupon-select-btn.has-coupon .coupon-select-text {
    color: #059669;
    font-weight: 500;
}

.coupon-select-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.coupon-discount-amount {
    color: #dc2626;
    font-weight: 600;
}

.coupon-select-btn i {
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.coupon-select-btn.active i {
    transform: rotate(90deg);
}

.coupon-list-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    padding: 0.5rem;
}

.coupon-list-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.coupon-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

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

.coupon-item:hover:not(.disabled) {
    transform: translateX(2px);
}

.coupon-item.selected .coupon-item-card {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.coupon-item.disabled {
    cursor: not-allowed;
}

.coupon-item-radio {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #fff;
}

.coupon-item-radio i {
    font-size: 0.625rem;
    color: transparent;
}

.coupon-item.selected .coupon-item-radio {
    border-color: #3b82f6;
    background: #3b82f6;
}

.coupon-item.selected .coupon-item-radio i {
    color: #fff;
}

/* 不使用优惠券选项 */
.coupon-item-none {
    padding: 0.875rem 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.coupon-item-none:hover {
    background: #f9fafb;
}

.coupon-item-none.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.coupon-item-content {
    flex: 1;
}

.coupon-item-none-text {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 优惠券卡片样式 - 类似商城中心 */
.coupon-item-card {
    flex: 1;
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    height: 80px;
}

.coupon-item:hover:not(.disabled) .coupon-item-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coupon-item-left {
    flex: 0 0 90px;
    background: linear-gradient(135deg, #ff8c8c 0%, #ff7f7f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #fff;
}

.coupon-item.disabled .coupon-item-left {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.coupon-discount-display,
.coupon-amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.125rem;
    margin-bottom: 0.25rem;
}

.coupon-discount-display .discount-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.coupon-discount-display .discount-unit {
    font-size: 0.875rem;
    font-weight: 600;
}

.coupon-amount-display .currency {
    font-size: 0.875rem;
    font-weight: 600;
}

.coupon-amount-display .amount {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.coupon-type-badge {
    font-size: 0.625rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.coupon-item-divider {
    flex: 0 0 12px;
    position: relative;
    display: flex;
    align-items: center;
}

.coupon-item-divider .divider-line {
    width: 100%;
    height: 100%;
    border-left: 2px dashed rgba(255, 140, 140, 0.3);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.coupon-item.disabled .coupon-item-divider .divider-line {
    border-left-color: rgba(156, 163, 175, 0.3);
}

.coupon-item-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    min-width: 0;
}

.coupon-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coupon-item-desc {
    font-size: 0.6875rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coupon-item-expiry {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.coupon-item-expiry i {
    font-size: 0.625rem;
}

/* 禁用遮罩 */
.coupon-item-disabled-mask {
    position: absolute;
    top: 0;
    left: 30px;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.coupon-item-disabled-mask span {
    font-size: 0.75rem;
    color: #ef4444;
    background: #fef2f2;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

/* 价格显示优化 */
.price-original-strike {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.875rem;
}

.price-final {
    color: #dc2626;
    font-weight: 700;
}

/* 支付提示区域 */
.payment-notice-wrapper {
    margin-top: 1rem;
}

.payment-notice {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    border: 2px solid;
}

.payment-notice-success {
    background: #f0fdf4;
    border-color: #10b981;
}

.payment-notice-warning {
    background: #fffbeb;
    border-color: #f59e0b;
}

.payment-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.payment-notice-success .payment-notice-icon {
    background: #10b981;
    color: #fff;
}

.payment-notice-warning .payment-notice-icon {
    background: #f59e0b;
    color: #fff;
}

.payment-notice-content {
    flex: 1;
}

.payment-notice-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.payment-notice-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-balance-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-balance-info:last-child {
    border-bottom: none;
}

.payment-balance-info.payment-remaining {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid #10b981;
    border-bottom: none;
}

.payment-balance-info.payment-shortage {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid #f59e0b;
    border-bottom: none;
}

.balance-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.balance-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.balance-price {
    color: #3b82f6;
}

.balance-remaining {
    color: #10b981;
    font-size: 1rem;
}

.balance-shortage {
    color: #f59e0b;
    font-size: 1rem;
}

.payment-recharge-tip {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 6px;
    text-align: center;
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 500;
}

.modal-btn-recharge {
    padding: 0.75rem 1.5rem;
    background: #f59e0b;
    color: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-btn-recharge:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.btn-buy.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 权限不足按钮允许鼠标事件以显示悬浮提示 */
.btn-buy.btn-disabled,
.btn-action.btn-disabled {
    pointer-events: auto !important;
    cursor: not-allowed !important;
    opacity: 1;
    background: #999 !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(153, 153, 153, 0.3) !important;
    border: none !important;
}

.btn-buy.btn-disabled:hover,
.btn-action.btn-disabled:hover {
    background: #888 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(153, 153, 153, 0.4) !important;
    transform: translateY(-1px);
}

/* 未收藏状态 - 空心星 */
.favorite-btn-title i {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.favorite-btn-title:hover i {
    color: #64748b;
}

/* 已收藏状态 - 实心星 */
.favorite-btn-title.favorited {
    background: transparent;
    border-color: #f59e0b;
}

.favorite-btn-title.favorited i {
    color: #f59e0b;
    font-weight: 900;
}

.favorite-btn-title.favorited:hover {
    background: #fef3c7;
    border-color: #d97706;
}

.favorite-btn-title.favorited:hover i {
    color: #d97706;
}

/* 右侧：卖家信息 */
.seller-info-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.seller-avatar {
    text-align: center;
    margin-bottom: 1rem;
}

.seller-avatar a {
    display: inline-block;
}

.seller-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.seller-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.seller-name i {
    color: #64748b;
    font-size: 0.75rem;
}

.seller-phone {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.seller-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-seller {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.btn-seller i {
    flex-shrink: 0;
    font-size: 0.875rem;
    position: relative;
    top: 1px;
}

.btn-seller:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.btn-seller.btn-follow {
    grid-column: 1 / -1;
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.btn-seller.btn-follow:hover {
    background: #2563eb;
}

.btn-seller.btn-follow.btn-following {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.btn-seller.btn-follow.btn-following:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.btn-seller.btn-follow.btn-following i {
    color: #fff;
    margin-right: 4px;
}

.btn-seller.btn-follow.btn-following {
    font-weight: 500;
}

/* 确保已关注状态的文字清晰可见 */
.btn-seller.btn-follow.btn-following::after {
    content: '';
    display: inline-block;
    width: 0;
}

/* 点赞作者按钮样式 */
.btn-seller.btn-like-author {
    background: #fff;
    color: #64748b;
    border-color: #e2e8f0;
}

.btn-seller.btn-like-author:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.btn-seller.btn-like-author.liked {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.btn-seller.btn-like-author.liked:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.btn-seller.btn-like-author.liked i {
    color: #fff;
}

.seller-shop-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-shop,
.btn-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-shop {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-shop:hover {
    background: #f1f5f9;
    color: #475569;
}

.btn-service {
    background: #3b82f6;
    color: #fff;
    border: 1px solid #3b82f6;
}

.btn-service:hover {
    background: #2563eb;
    color: #fff;
}

.qr-code-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.qr-code-icon:hover {
    color: #64748b;
}

/* 当产品头部区域显示时，隐藏原有的 entry-header */
.product-header-section ~ .content-wrapper .entry-header {
    display: none !important;
}

/* 发送私信弹窗样式 */
.send-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.send-message-overlay.show {
    opacity: 1;
}

.send-message-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.send-message-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.send-message-modal .modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.send-message-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.send-message-modal .modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.send-message-modal .modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.send-message-modal .modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.message-recipient {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.recipient-avatar {
    flex-shrink: 0;
}

.recipient-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.recipient-name {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.message-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

.message-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.send-message-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e8ecf0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.send-message-modal .modal-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-message-modal .modal-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.send-message-modal .modal-btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.send-message-modal .modal-btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.send-message-modal .modal-btn-send:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.send-message-modal .modal-btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-header-container {
        grid-template-columns: 240px 1fr 240px;
        gap: 1.5rem;
    }
    
    .product-details-section {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .product-header-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-preview-section {
        order: 1;
    }
    
    .product-details-section {
        order: 2;
        max-width: 100%;
        width: 100%;
    }
    
    .seller-info-section {
        order: 3;
    }
}

@media (max-width: 768px) {
    .product-header-section {
        padding: 1.5rem;
    }
    
    .product-details-section {
        max-width: 100%;
        width: 100%;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .seller-actions {
        grid-template-columns: 1fr;
    }
    
    .btn-seller.btn-follow {
        grid-column: 1;
    }
}

/* 当私信按钮隐藏时，为Ta点赞按钮占据整行 */
.seller-actions.no-message-btn {
    grid-template-columns: 1fr;
}

.seller-actions.no-message-btn .btn-seller.btn-like-author {
    grid-column: 1 / -1;
}

/* 关注提示弹窗样式 */
.follow-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.follow-message-overlay.show {
    opacity: 1;
}

.follow-message-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 24px 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 9999;
    margin: 0;
    flex-shrink: 0;
}

.follow-message-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.follow-message-modal .modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.follow-message-modal .modal-icon i {
    font-size: 24px;
    color: #fff;
}

.follow-message-modal .modal-icon i.fa-check-circle {
    color: #10b981;
}

.follow-message-modal .modal-icon i.fa-exclamation-triangle {
    color: #f59e0b;
}

.follow-message-modal .modal-icon i.fa-info-circle {
    color: #3b82f6;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.follow-message-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.follow-message-modal .modal-message {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.follow-message-modal .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.follow-message-modal .modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.follow-message-modal .modal-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.follow-message-modal .modal-btn-confirm:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* VIP折扣工具提示 */
.vip-discount-tooltip {
    position: fixed !important;
    z-index: 10000;
    padding: 12px 16px;
    background: #23282d;
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    margin: 0;
    display: none;
    display: none;
    width: 100px;
}

.vip-requirement-tooltip {
    white-space: normal;
    word-wrap: break-word;
}

.vip-discount-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #23282d;
}

.vip-discount-tooltip-title {
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    word-wrap: break-word;
    line-height: 1.4;
    text-align: center;
}

.vip-discount-tooltip-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vip-discount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.vip-discount-item-empty {
    justify-content: center;
    text-align: center;
}

.vip-discount-name {
    color: #e5e7eb;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.vip-discount-value {
    color: #10b981;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.vip-discount-note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 10px;
    color: #9ca3af;
    font-style: italic;
}

.vip-discount-tooltip-list {
    white-space: normal;
}

/* VIP权限不足提示框样式 */
.vip-permission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.vip-permission-overlay.show {
    opacity: 1;
}

.vip-permission-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 358px;
    height: auto;
    max-height: 90vh;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vip-permission-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.vip-permission-modal .modal-header {
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 52px;
    box-sizing: border-box;
}

.vip-permission-modal .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.vip-permission-modal .modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.vip-permission-modal .modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.vip-permission-modal .modal-body {
    padding: 1rem 1.25rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    min-height: 0;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    max-height: calc(90vh - 104px); /* 减去header和footer的高度 */
}

/* 自定义滚动条样式 */
.vip-permission-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.vip-permission-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.vip-permission-modal .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.vip-permission-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.vip-permission-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100%;
}

.vip-permission-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.625rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.vip-permission-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.vip-permission-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.vip-permission-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    width: 128px;
    background: #f8fafc;
    border-radius: 6px;
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.vip-permission-item i {
    color: #f59e0b;
    font-size: 0.8125rem;
}

.vip-permission-current {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    line-height: 1.4;
}

.vip-permission-current-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.vip-permission-current-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.vip-permission-modal .modal-footer {
    padding: 0.75rem 1.125rem;
    border-top: 1px solid #e8ecf0;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-shrink: 0;
    height: 52px;
    box-sizing: border-box;
    align-items: center;
}

.vip-permission-modal .modal-btn {
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.vip-permission-modal .modal-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.vip-permission-modal .modal-btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.vip-permission-modal .modal-btn-upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.vip-permission-modal .modal-btn-upgrade:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* VIP按钮状态样式 */
.btn-vip-action.btn-disabled {
    opacity: 1;
    cursor: not-allowed !important;
    background: #999;
    color: #fff;
    pointer-events: auto !important;
    box-shadow: 0 2px 4px rgba(153, 153, 153, 0.3);
    border: none;
}

/* 禁用disabled按钮的浏览器默认tooltip */
.btn-vip-action.btn-disabled[title],
.btn-buy.btn-disabled[title] {
    position: relative;
}

.btn-vip-action.btn-disabled[title]:hover::after,
.btn-buy.btn-disabled[title]:hover::after {
    display: none !important;
}

.btn-vip-action.btn-disabled:hover {
    background: #888;
    color: #fff;
    box-shadow: 0 2px 6px rgba(153, 153, 153, 0.4);
    transform: translateY(-1px);
}

.btn-vip-action.btn-download-vip {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.btn-vip-action.btn-download-vip:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-vip-action.btn-download-vip:active {
    transform: translateY(1px);
}

/* VIP次数悬浮提示 */
.vip-count-tooltip-wrapper {
    position: fixed !important;
    z-index: 10000;
    display: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.vip-count-tooltip {
    background: #23282d;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11px;
    line-height: 1.6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    min-width: 100px;
}

.vip-count-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #23282d;
}

.vip-count-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

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

.vip-count-label {
    color: #e5e7eb;
    font-size: 10px;
}

.vip-count-value {
    color: #fbbf24;
    font-weight: 600;
    font-size: 11px;
}

/* VIP权限提示样式 */
.vip-permission-tooltip {
    background: #23282d;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11px;
    line-height: 1.6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    min-width: 100px;
}

.vip-permission-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #23282d;
}

.vip-permission-tooltip-title {
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.vip-permission-tooltip-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vip-permission-tooltip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.vip-permission-tooltip-label {
    color: #e5e7eb;
    font-size: 10px;
}

.vip-permission-tooltip-value {
    color: #fbbf24;
    font-weight: 600;
    font-size: 10px;
    text-align: right;
}

