/* 11 Review Photo Frontend Styles */

.cf-review-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cf-product-review {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.cf-product-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.cf-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.cf-product-info h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.cf-rating-section {
    margin-bottom: 20px;
}

.cf-rating-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.cf-star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.cf-star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.cf-star:hover,
.cf-star.active {
    color: #ffc107;
}

.cf-star.filled {
    color: #ffc107;
}

.cf-review-text {
    margin-bottom: 20px;
}

.cf-review-text label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.cf-review-text textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.cf-review-text textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.cf-media-upload {
    margin-bottom: 20px;
}

.cf-media-upload label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.cf-upload-area {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    position: relative;
}

.cf-upload-area:hover {
    border-color: #007cba;
}

.cf-upload-area.dragover {
    border-color: #007cba;
    background-color: rgba(0, 124, 186, 0.05);
}

.cf-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.cf-upload-text p {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #666;
}

.cf-upload-text small {
    color: #999;
    font-size: 12px;
}

.cf-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.cf-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.cf-preview-item img,
.cf-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cf-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-submit-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cf-submit-btn:hover {
    background: #005a87;
}

.cf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Reviews Display */
.cf-reviews-container {
    margin: 20px 0;
}

/* ==========================================================
   Trustpilot Summary Widget & Reviews List Grid/List Styles
   ========================================================== */

.cf-reviews-container-wrap {
    width: 100%;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    box-sizing: border-box;
}

.cf-reviews-container-wrap *,
.cf-reviews-container-wrap *::before,
.cf-reviews-container-wrap *::after {
    box-sizing: border-box;
}

/* 1. Trustpilot Overall Rating Summary Widget */
.cf-trustpilot-summary-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    transition: box-shadow 0.3s ease;
}

.cf-trustpilot-summary-widget:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.cf-tp-summary-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cf-tp-brand-logo {
    display: flex;
    align-items: center;
}

.cf-tp-logo-svg {
    height: 28px;
    width: auto;
}

.cf-tp-summary-stars-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cf-tp-score-text {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
    letter-spacing: -0.5px;
}

.cf-tp-summary-meta {
    font-size: 14px;
    color: #4b5563;
}

.cf-tp-summary-meta strong {
    color: #111827;
}

.cf-tp-summary-action .cf-tp-external-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00B67A;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 182, 122, 0.25);
}

.cf-tp-summary-action .cf-tp-external-btn:hover {
    background: #009966;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.35);
}

/* 2. Trustpilot Official Style Square Stars */
.cf-tp-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
    user-select: none;
}

.cf-tp-star-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.cf-tp-stars-small .cf-tp-star-box {
    width: 17px;
    height: 17px;
    border-radius: 2px;
}

.cf-tp-stars-medium .cf-tp-star-box {
    width: 22px;
    height: 22px;
    border-radius: 3px;
}

.cf-tp-stars-large .cf-tp-star-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.cf-tp-star-box.filled {
    background-color: #00B67A;
}

.cf-tp-star-box.empty {
    background-color: #DCDCE6;
}

.cf-tp-star-box.half {
    background: linear-gradient(to right, #00B67A var(--fill-percent, 50%), #DCDCE6 var(--fill-percent, 50%));
}

.cf-tp-star-svg {
    width: 70%;
    height: 70%;
    fill: #ffffff;
    display: block;
    pointer-events: none;
}

/* 3. Review Lists Container Layouts */
.cf-reviews-list {
    width: 100%;
}

/* Grid Layout */
.cf-reviews-list.cf-layout-grid {
    display: grid;
    gap: 22px;
}

.cf-reviews-list.cf-layout-grid.cf-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cf-reviews-list.cf-layout-grid.cf-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cf-reviews-list.cf-layout-grid.cf-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cf-reviews-list.cf-layout-grid.cf-cols-1 {
    grid-template-columns: 1fr;
}

/* List Layout */
.cf-reviews-list.cf-layout-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 4. Single Review Item / Card */
.cf-review-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}

.cf-review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.cf-review-item.cf-item-trustpilot {
    border-top: 3px solid #00B67A;
}

/* --- 4 Card Styles System --- */

/* Style 1: Modern Clean (.cf-card-style-modern) - Default */
.cf-card-style-modern {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.cf-card-style-modern:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Style 2: Trustpilot Official Branded (.cf-card-style-trustpilot) */
.cf-card-style-trustpilot {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #00B67A !important;
    border-radius: 8px 8px 12px 12px;
    box-shadow: 0 4px 14px rgba(0, 182, 122, 0.08);
}
.cf-card-style-trustpilot:hover {
    border-color: #cbd5e1;
    border-top-color: #009966 !important;
    box-shadow: 0 10px 28px rgba(0, 182, 122, 0.15);
}
.cf-card-style-trustpilot .cf-tp-item-badge {
    background: #e6f7f1;
    border-color: #00B67A;
    color: #005128 !important;
    font-weight: 700;
}
.cf-card-style-trustpilot .cf-review-footer {
    background: #f8fafc;
    margin: 14px -22px -22px -22px;
    padding: 12px 22px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #edf2f7;
}

/* Style 3: Media Showcase Focus (.cf-card-style-media) */
.cf-card-style-media {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.cf-card-style-media:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.cf-card-style-media .cf-review-media {
    order: -1;
    margin: -22px -22px 16px -22px;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}
.cf-card-style-media .cf-media-item-box {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Style 4: Dark Elegance (.cf-card-style-dark) */
.cf-card-style-dark {
    background: #181a20 !important;
    border: 1px solid #282a36 !important;
    color: #f3f4f6 !important;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.cf-card-style-dark:hover {
    border-color: #3f4454 !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}
.cf-card-style-dark .cf-reviewer-name {
    color: #ffffff !important;
}
.cf-card-style-dark .cf-review-date {
    color: #9ca3af !important;
}
.cf-card-style-dark .cf-review-title {
    color: #ffffff !important;
}
.cf-card-style-dark .cf-review-content {
    color: #d1d5db !important;
}
.cf-card-style-dark .cf-tp-star-box.empty {
    background-color: #374151;
}
.cf-card-style-dark .cf-tp-item-badge {
    background: rgba(0, 182, 122, 0.15);
    border-color: rgba(0, 182, 122, 0.4);
    color: #34d399 !important;
}
.cf-card-style-dark .cf-media-item-box {
    background: #22252e;
    border-color: #374151;
}
.cf-card-style-dark .cf-review-footer {
    border-top-color: #282a36;
}
.cf-card-style-dark .cf-tp-footer-link {
    color: #34d399 !important;
}

/* Header */
.cf-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cf-reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cf-reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
    background: #f9fafb;
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.cf-reviewer-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cf-reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cf-review-date {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* Trustpilot Badge on Item (New Window Link) */
.cf-tp-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d !important;
    text-decoration: none !important;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cf-tp-item-badge:hover {
    background: #00B67A;
    border-color: #00B67A;
    color: #ffffff !important;
}

.cf-tp-item-badge .cf-tp-badge-star {
    transition: fill 0.2s ease;
}

.cf-tp-item-badge:hover .cf-tp-badge-star {
    fill: #ffffff;
}

.cf-tp-badge-arrow {
    opacity: 0.7;
}

/* Rating Row */
.cf-review-rating-row {
    margin-bottom: 12px;
}

/* Title & Content */
.cf-review-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.cf-review-content {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 14px;
    flex-grow: 1;
}

.cf-review-content p {
    margin: 0 0 10px 0;
}

.cf-review-content p:last-child {
    margin-bottom: 0;
}

/* 5. Review Media Gallery */
.cf-review-media {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.cf-media-item-box {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cf-media-item-box:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cf-media-item-box img,
.cf-media-item-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cf-media-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cf-media-item-box:hover .cf-media-zoom-overlay {
    opacity: 1;
}

/* 6. Card Footer Link */
.cf-review-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.cf-tp-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #00B67A !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.cf-tp-footer-link:hover {
    color: #007a52 !important;
    text-decoration: underline !important;
}

/* 7. Fullscreen Lightbox Modal */
.cf-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.cf-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: cfLightboxPop 0.2s ease-out;
}

.cf-lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: transform 0.15s ease;
}

.cf-lightbox-close:hover {
    transform: scale(1.15);
}

@keyframes cfLightboxPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 8. Mobile & Responsive Styles */
@media (max-width: 1024px) {
    .cf-reviews-list.cf-layout-grid.cf-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cf-trustpilot-summary-widget {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 16px;
    }

    .cf-tp-summary-action {
        width: 100%;
    }

    .cf-tp-summary-action .cf-tp-external-btn {
        width: 100%;
        justify-content: center;
    }

    .cf-reviews-list.cf-layout-grid.cf-cols-4,
    .cf-reviews-list.cf-layout-grid.cf-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .cf-review-item {
        padding: 18px;
    }
}

@media (max-width: 580px) {
    .cf-reviews-list.cf-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .cf-tp-summary-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cf-media-item-box {
        width: 68px;
        height: 68px;
    }
}

/* Loading States */
.cf-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    /* 第298行 */
    animation: cf-spin 1s linear infinite;
    
    /* 第301行 */
    @keyframes cf-spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

@keyframes erp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.cf-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 15px 0;
}

.cf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cf-review-form-container {
        padding: 15px;
    }
    
    .cf-product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cf-product-info img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cf-star-rating {
        justify-content: center;
    }
    
    .cf-preview-container {
        justify-content: center;
    }
    
    .cf-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Half-star rating system - single row display */
.cf-star-rating-inline {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.cf-star-rating-inline input[type="radio"] {
    display: none;
}

.cf-star-rating-inline .cf-star-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.cf-star-rating-inline .cf-star-label:hover {
    border-color: #ffc107;
    background: #fff8e1;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(255, 193, 7, 0.2);
}

.cf-star-rating-inline .cf-star {
    font-size: 16px;
    color: #ddd;
    transition: color 0.3s ease;
}

.cf-star-rating-inline .cf-rating-text {
    color: #666;
    transition: color 0.3s ease;
    font-size: 11px;
}

.cf-star-rating-inline input[type="radio"]:checked + .cf-star-label {
    border-color: #ffc107;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.cf-star-rating-inline input[type="radio"]:checked + .cf-star-label .cf-star {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cf-star-rating-inline input[type="radio"]:checked + .cf-star-label .cf-rating-text {
    color: #fff;
    font-weight: 600;
}

/* Responsive design for half-star ratings */
@media (max-width: 768px) {
    .cf-star-rating-inline {
        gap: 6px;
    }
    
    .cf-star-rating-inline .cf-star-label {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .cf-star-rating-inline .cf-star {
        font-size: 14px;
    }
    
    .cf-star-rating-inline .cf-rating-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cf-star-rating-inline {
        gap: 4px;
    }
    
    .cf-star-rating-inline .cf-star-label {
        padding: 4px 6px;
    }
    
    .cf-star-rating-inline .cf-rating-text {
        display: none; /* Hide text on very small screens */
    }
}

/* SVG星级评分样式（前端） */
.cf-star-rating-svg {
    margin: 10px 0;
    user-select: none;
}

.cf-stars-container {
    display: flex;
    gap: 4px;
    align-items: center;
}

.cf-star-item {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.cf-star-bg,
.cf-star-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cf-star-fg {
    z-index: 2;
    clip-path: inset(0 100% 0 0); /* 初始状态完全隐藏 */
    transition: clip-path 0.3s ease;
}

.cf-star-bg {
    z-index: 1;
}

.cf-star-click-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 3;
}

.cf-star-half,
.cf-star-full {
    height: 100%;
    cursor: pointer;
}

.cf-star-half {
    width: 50%;
}

.cf-star-full {
    width: 50%;
}

/* 选中状态 */
.cf-star-item.selected .cf-star-fg {
    clip-path: inset(0 0 0 0); /* 完全显示 */
}

.cf-star-item.half-selected .cf-star-fg {
    clip-path: inset(0 50% 0 0); /* 显示一半 */
}

/* 悬停效果 */
.cf-star-item:hover .cf-star-fg {
    filter: brightness(1.2);
}

.cf-star-item.hover-preview .cf-star-fg {
    filter: brightness(1.1);
}

.cf-rating-display {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    min-height: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cf-star-item {
        width: 28px;
        height: 28px;
    }
    
    .cf-stars-container {
        gap: 2px;
    }
}
