/**
 * 分类评价系统样式
 * 精致简约风格 - 冥想类网站
 */

/* ==================== 评价页面样式 ==================== */

.review-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
    padding-bottom: 60px;
}

/* 头部区域 */
.review-header {
    position: relative;
    padding: 48px 20px 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    text-align: center;
    overflow: hidden;
}

.review-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
}

.review-header-bg .meditation-wave {
    position: absolute;
    border-radius: 45%;
    background: rgba(255, 255, 255, 0.08);
}

.review-header-bg .wave-1 {
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    animation: wave-rotate 25s linear infinite;
}

.review-header-bg .wave-2 {
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    animation: wave-rotate 30s linear infinite reverse;
}

@keyframes wave-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.review-header-content {
    position: relative;
    z-index: 1;
}

.review-category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.review-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.review-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.review-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 4px;
}

.review-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* 表单容器 */
.review-form-container {
    max-width: 480px;
    margin: -24px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.review-form {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* 评分维度 */
.review-scores {
    margin-bottom: 20px;
}

.review-score-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
}

.review-score-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.score-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.score-icon {
    font-size: 18px;
    margin-right: 8px;
}

.score-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.score-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-left: auto;
}

.score-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    cursor: pointer;
}

.score-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.3);
    transition: transform 0.15s;
}

.score-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.score-value {
    font-size: 16px;
    font-weight: 600;
    color: #6366f1;
    min-width: 36px;
    text-align: right;
}

.score-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* 综合评分 */
.review-total-preview {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.review-total-preview.score-high {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.review-total-preview.score-medium {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.total-label {
    font-size: 12px;
    opacity: 0.9;
}

.total-score {
    font-size: 32px;
    font-weight: 700;
    margin: 4px 0;
}

.total-max {
    font-size: 14px;
    opacity: 0.8;
}

.total-stars {
    font-size: 16px;
    color: #fcd34d;
    letter-spacing: 2px;
}

/* 文字评价 */
.review-content-section {
    margin-bottom: 20px;
}

.content-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.content-icon {
    font-size: 14px;
    margin-right: 6px;
}

.content-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.content-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 4px;
}

.review-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.review-textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.content-counter {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* 按钮 */
.review-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.review-skip-btn {
    flex: 1;
    padding: 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.review-skip-btn:hover {
    background: #e5e7eb;
}

.review-submit-btn {
    flex: 2;
    padding: 12px;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.review-submit-btn:hover {
    background: #4f46e5;
}

.review-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.review-note {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
}

/* ==================== 分类页评价区域 - 精致简约 ==================== */

.category-reviews-section {
    max-width: 680px;
    margin: 32px auto;
    padding: 0 16px;
}

/* 评分概览 */
.review-overview {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

.review-overview-left {
    text-align: center;
    min-width: 80px;
}

.review-overview-score {
    line-height: 1;
}

.review-overview-score .score-num {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
}

.review-overview-score .score-suffix {
    font-size: 14px;
    color: #9ca3af;
}

.review-overview-meta {
    margin-top: 4px;
}

.review-overview-meta .meta-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

.review-overview-meta .meta-count {
    font-size: 11px;
    color: #d1d5db;
}

.review-overview-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-dimension {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-dimension .dim-name {
    font-size: 12px;
    color: #6b7280;
    width: 28px;
}

.review-dimension .dim-bar {
    flex: 1;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
}

.review-dimension .dim-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.review-dimension .dim-val {
    font-size: 12px;
    font-weight: 600;
    color: #6366f1;
    width: 20px;
    text-align: right;
}

/* 写评价按钮 */
.review-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #6366f1;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.review-write-btn:hover {
    background: #4f46e5;
    color: #fff;
}

.review-my-status {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.review-my-status em {
    font-style: normal;
    color: #d97706;
    margin-left: 6px;
}

/* 评价列表 */
.review-list-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.review-list {
    min-height: 60px;
}

.review-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

.review-item-time {
    font-size: 11px;
    color: #9ca3af;
}

.review-item-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

.review-item-score span {
    padding: 2px 6px;
    background: #f9fafb;
    border-radius: 4px;
}

.review-item-score em {
    font-style: normal;
    font-weight: 600;
    color: #6366f1;
    margin-left: auto;
}

.review-item-content {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    border-left: 2px solid #6366f1;
}

/* 分页 */
.review-pagination {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
}

.pagination-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.pagination-inner button,
.pagination-inner span {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.pagination-inner button:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.pagination-inner span.current {
    background: #6366f1;
    color: #fff;
    font-weight: 500;
}

.pagination-inner span.dots {
    color: #d1d5db;
    cursor: default;
}

/* 加载状态 */
.review-list-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.review-list-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 空状态 */
.review-empty {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
    font-size: 13px;
}

.review-empty-tip {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    color: #9ca3af;
    font-size: 13px;
}

/* ==================== 首页卡片评分 ==================== */

.card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #6b7280;
}

.card-rating svg {
    width: 12px;
    height: 12px;
    color: #fbbf24;
}

.rating-score {
    font-weight: 500;
    color: #374151;
}

.rating-count {
    color: #9ca3af;
    font-size: 11px;
}

/* 深色模式 */
.dark-mode .review-page {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
}

.dark-mode .review-form,
.dark-mode .review-overview,
.dark-mode .review-list-wrap,
.dark-mode .review-empty-tip {
    background: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-mode .review-score-item {
    border-bottom-color: #374151;
}

.dark-mode .score-name,
.dark-mode .content-title,
.dark-mode .review-overview-score .score-num,
.dark-mode .review-item-name {
    color: #f3f4f6;
}

.dark-mode .review-textarea {
    background: #111827;
    border-color: #374151;
    color: #f3f4f6;
}

.dark-mode .review-skip-btn {
    background: #374151;
    color: #9ca3af;
}

.dark-mode .dim-bar {
    background: #374151;
}

.dark-mode .review-item-score span,
.dark-mode .review-item-content {
    background: #111827;
}

.dark-mode .review-item {
    border-bottom-color: #374151;
}

.dark-mode .review-pagination {
    border-top-color: #374151;
}

.dark-mode .pagination-inner button:hover {
    background: #374151;
}

/* 响应式 */
@media (max-width: 600px) {
    .review-header {
        padding: 36px 16px 48px;
    }
    
    .review-title {
        font-size: 20px;
    }
    
    .review-form-container {
        padding: 0 12px;
    }
    
    .review-form {
        padding: 20px 16px;
    }
    
    .review-actions {
        flex-direction: column;
    }
    
    .review-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .review-overview-right {
        width: 100%;
    }
    
    .review-dimension .dim-name {
        width: 32px;
    }
}
