/* 评价系统样式 */
.chuangdp-review-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--background-color-alt);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color-light);
}

.review-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.review-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.average-rating {
    font-size: 16px;
}

.average-rating strong {
    font-size: 24px;
    color: #ffa502;
    margin-right: 4px;
}

.review-count {
    font-size: 14px;
    color: var(--text-color-light);
    background: var(--background-color);
    padding: 4px 10px;
    border-radius: 20px;
}

.review-form-container {
    margin-bottom: 25px;
}

.review-form {
    background: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-label {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating .star {
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.selected {
    transform: scale(1.1);
}

.star-rating .star svg {
    transition: fill 0.2s ease;
}

.star-rating .star:hover svg {
    fill: #ffa502;
}

.rating-value {
    font-size: 14px;
    color: var(--text-color-light);
    min-width: 20px;
}

.comment-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-input textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.anonymous-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.anonymous-fields input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 14px;
}

.anonymous-fields input:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.submit-review {
    padding: 10px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-review:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-tip {
    font-size: 12px;
    color: var(--text-color-light);
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: var(--background-color);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    margin-bottom: 20px;
}

.login-prompt a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* 评价列表样式 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    background: var(--background-color);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.reviewer-avatar.default-avatar {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-color);
}

.verified-badge {
    background: #2ecc71;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating .star {
    width: 16px;
    height: 16px;
}

.rating-value {
    font-size: 13px;
    color: var(--text-color-light);
    margin-left: 5px;
}

.review-time {
    font-size: 12px;
    color: var(--text-color-light);
}

.review-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 10px;
}

.review-reply {
    margin-top: 15px;
    padding: 12px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    border-left: 3px solid #3498db;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
}

.review-reply strong {
    color: #3498db;
}

.no-reviews {
    text-align: center;
    padding: 30px;
    color: var(--text-color-light);
    font-size: 14px;
}

.load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more button {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color-light);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more button:hover {
    border-color: #3498db;
    color: #3498db;
}

/* 工具标签样式 */
.tool-tag-review {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.3);
    margin-right: 8px;
    margin-bottom: 8px;
}

.tool-tag-review:hover {
    background: rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.2);
}

.tool-tag-review .chuangdp-review-icon {
    width: 12px;
    height: 12px;
}

.tool-tag-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 71, 87, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 71, 87, 0.3);
    margin-right: 8px;
    margin-bottom: 8px;
}

.tool-tag-like:hover {
    background: rgba(255, 71, 87, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255, 71, 87, 0.2);
}

.tool-tag-like .chuangdp-like-icon {
    width: 12px;
    height: 12px;
}

/* 消息提示样式 */
.chuangdp-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 300px;
    font-size: 14px;
    font-weight: 500;
}

.chuangdp-message.success {
    background: #2ecc71;
    color: white;
    border-left: 4px solid #27ae60;
}

.chuangdp-message.error {
    background: #e74c3c;
    color: white;
    border-left: 4px solid #c0392b;
}

.chuangdp-message.info {
    background: #3498db;
    color: white;
    border-left: 4px solid #2980b9;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 心跳动画 */
@keyframes chuangdp-heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.chuangdp-like-animate {
    animation: chuangdp-heartbeat 0.5s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chuangdp-review-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-stats {
        align-self: flex-start;
    }
    
    .review-form {
        padding: 15px;
    }
    
    .anonymous-fields {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .submit-review {
        width: 100%;
    }
    
    .form-tip {
        text-align: center;
    }
    
    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-item {
        padding: 15px;
    }
    
    .tool-tag-review,
    .tool-tag-like {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .reviewer-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .chuangdp-review-section {
        padding: 12px;
    }
    
    .review-header h3 {
        font-size: 16px;
    }
    
    .average-rating strong {
        font-size: 20px;
    }
    
    .rating-input {
        flex-wrap: wrap;
    }
    
    .review-form {
        padding: 12px;
    }
    
    .review-content {
        font-size: 13px;
    }
    
    .reviewer-avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* 暗色模式适配 */
.dark-mode .chuangdp-review-section {
    background: #2d3436;
    border-color: #4a5568;
}

.dark-mode .review-form {
    background: #1a1d20;
    border-color: #4a5568;
}

.dark-mode .review-header h3 {
    color: #fff;
}

.dark-mode .review-count {
    background: #1a1d20;
    color: #a0aec0;
}

.dark-mode .comment-input textarea {
    background: #1a1d20;
    border-color: #4a5568;
    color: #fff;
}

.dark-mode .anonymous-fields input {
    background: #1a1d20;
    border-color: #4a5568;
    color: #fff;
}

.dark-mode .review-item {
    background: #1a1d20;
    border-color: #4a5568;
}

.dark-mode .reviewer-name {
    color: #fff;
}

.dark-mode .review-content {
    color: #d1d5db;
}

.dark-mode .review-reply {
    background: rgba(52, 152, 219, 0.2);
    color: #d1d5db;
}

.dark-mode .tool-tag-review {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

.dark-mode .tool-tag-like {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.5);
}

.dark-mode .load-more button {
    border-color: #4a5568;
    color: #a0aec0;
}

.dark-mode .load-more button:hover {
    border-color: #3498db;
    color: #3498db;
}

.dark-mode .reviewer-avatar.default-avatar {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
}