/**
 * Product Info Section Styles
 * 徽章、Safe Delivery、Delivery Details - 主题紫色版
 */

/* Main Container */
.wv-product-info-section {
    margin: 20px 0 30px;
    padding: 0;
}

/* 顶部徽章标签 */
.wv-top-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wv-badge-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #8B5CF6;
    border-radius: 20px;
    color: #8B5CF6;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wv-badge-tag:hover {
    background: rgba(139, 92, 246, 0.1);
}

.wv-badge-tag .wv-badge-icon {
    font-size: 14px;
}

/* 徽章悬浮弹框 */
.wv-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 380px;
    max-width: 90vw;
    background: #1a1c24;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1001;
    pointer-events: none;
    box-sizing: border-box;
}

.wv-badge-tag:hover .wv-badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

/* 弹框箭头 */
.wv-tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1a1c24;
}

.wv-tooltip-arrow::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -11px;
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid rgba(139, 92, 246, 0.3);
    z-index: -1;
}

/* 弹框内容 */
.wv-tooltip-content {
    padding: 18px 20px;
    box-sizing: border-box;
}

.wv-tooltip-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 14px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

.wv-tooltip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wv-tooltip-list li {
    position: relative;
    padding: 10px 0 10px 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #b0b0b0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.wv-tooltip-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wv-tooltip-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 10px;
    color: #8B5CF6;
    font-size: 14px;
    line-height: 1.7;
}

/* 弹框位置调整 - 第一个徽章 */
.wv-badge-tag:first-child .wv-badge-tooltip {
    left: 0;
    transform: translateX(0) scale(0.95);
}

.wv-badge-tag:first-child:hover .wv-badge-tooltip {
    transform: translateX(0) scale(1);
}

.wv-badge-tag:first-child .wv-tooltip-arrow {
    left: 30px;
    transform: none;
}

/* 弹框位置调整 - 最后一个徽章 */
.wv-badge-tag:last-child .wv-badge-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0) scale(0.95);
}

.wv-badge-tag:last-child:hover .wv-badge-tooltip {
    transform: translateX(0) scale(1);
}

.wv-badge-tag:last-child .wv-tooltip-arrow {
    left: auto;
    right: 30px;
    transform: none;
}

/* Safe Delivery 区块 */
.wv-safe-delivery-block {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.03) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.wv-sd-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.wv-sd-content {
    flex: 1;
}

.wv-sd-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.wv-sd-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #a0a0a0;
    margin: 0;
}

.wv-sd-desc strong {
    color: #fff;
    font-weight: 600;
}

/* Delivery Details 区块 */
.wv-delivery-details-block {
    padding: 20px 24px;
    background: rgba(30, 32, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.wv-dd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wv-dd-icon {
    font-size: 24px;
    color: #8B5CF6;
}

.wv-dd-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.wv-dd-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wv-dd-list li {
    position: relative;
    padding: 10px 0 10px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #a0a0a0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wv-dd-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wv-dd-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 10px;
    color: #8B5CF6;
    font-size: 10px;
}

.wv-dd-list li strong {
    color: #fff;
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .wv-top-badges {
        gap: 8px;
    }
    
    .wv-badge-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .wv-badge-tooltip {
        position: fixed;
        top: 50%;
        left: 50% !important;
        right: auto !important;
        bottom: auto;
        transform: translate(-50%, -50%) scale(0.95) !important;
        width: 90vw;
        max-width: 340px;
    }
    
    .wv-badge-tag:hover .wv-badge-tooltip {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    .wv-tooltip-arrow {
        display: none;
    }
    
    .wv-safe-delivery-block {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .wv-sd-icon {
        font-size: 40px;
    }
    
    .wv-sd-title {
        font-size: 18px;
    }
    
    .wv-delivery-details-block {
        padding: 16px 20px;
    }
    
    .wv-dd-title {
        font-size: 16px;
    }
}
