/* WCQO Product Page - 地址快查 + 花況照片 */

.wcqo-pv-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.wcqo-pv-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #0f172a;
}

.wcqo-pv-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
}

.wcqo-pv-input-group {
    display: flex;
    gap: 8px;
}

.wcqo-pv-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.wcqo-pv-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wcqo-pv-btn {
    padding: 10px 20px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.wcqo-pv-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.wcqo-pv-btn:active {
    transform: translateY(0);
}

.wcqo-pv-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.wcqo-pv-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.wcqo-pv-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.wcqo-pv-quick-select {
    margin-top: 12px;
}

/* Alerts */
#wcqo-pv-alerts {
    margin-top: 12px;
}

.wcqo-pv-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.wcqo-pv-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.wcqo-pv-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.wcqo-pv-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wcqo-pv-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Flower Photos Grid */
.wcqo-pv-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.wcqo-pv-photo-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wcqo-pv-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wcqo-pv-photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.wcqo-pv-photo-meta {
    padding: 8px 10px;
    font-size: 12px;
    color: #475569;
    background: #fff;
}

.wcqo-pv-photo-meta .price {
    font-weight: 600;
    color: #dc2626;
}

/* Lightbox */
.wcqo-pv-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcqo-pv-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.wcqo-pv-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.wcqo-pv-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.wcqo-pv-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* RWD */
@media (max-width: 600px) {
    .wcqo-pv-input-group {
        flex-direction: column;
    }
    .wcqo-pv-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* OCR Upload Box */
.wcqo-pv-upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 13px;
    color: #64748b;
}
.wcqo-pv-upload-box:hover,
.wcqo-pv-upload-box.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}
.wcqo-pv-upload-box .file-name {
    color: #0f172a;
    font-weight: 600;
}
.wcqo-pv-ocr-summary {
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
}
.wcqo-pv-ocr-summary strong {
    color: #166534;
}

.wcqo-pv-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 2px 0 10px;
}
