/* ===== review.css - 评价页面样式 ===== */

/* 全局禁止水平滚动 */
body {
    overflow-x: hidden;
}

/* ===== 面包屑导航 ===== */
.breadcrumb-wrapper {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    width: 100%;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    list-style: none;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-lighter);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li:last-child span {
    color: var(--text);
    font-weight: 500;
}

/* ===== 表单区域 ===== */
.review-form-section {
    background: #dee2e6;
    padding: 60px 0;
    width: 100%;
}

.review-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* 表单卡片 */
.review-form-wrapper {
    background: white;
    border-radius: 24px;
    padding: 48px 56px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

/* 标题区域 */
.review-form-wrapper h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.review-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* 表单组 */
.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

/* 必填标记 */
.label-required {
    color: var(--primary);
    font-weight: normal;
    font-size: 0.85rem;
    margin-left: 6px;
}

/* 输入框样式 */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 6px;
    display: none;
}

.form-group .error-message.show {
    display: block;
}

/* 帮助文字 */
.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-lighter);
}

/* 评分区域 */
.rating-input {
    display: flex;
    gap: 8px;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 10px;
}

.rating-star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.rating-star.active,
.rating-star:hover {
    color: #ffc107;
}

.rating-text {
    display: inline-block;
    margin-left: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 图片上传区域 */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    background: var(--bg-light);
    transition: all 0.3s;
}

.image-upload-area:hover {
    border-color: var(--primary-light);
    background: #fff;
}

.upload-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f5f5f5;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.preview-item .remove-image:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* 按钮区域 */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 23, 24, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.form-note {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-lighter);
    text-align: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 12px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        margin-bottom: 30px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0 15px;
    }

    .review-form-section {
        padding: 40px 0;
    }

    .review-container {
        padding: 0 16px;
    }

    .review-form-wrapper {
        padding: 28px 20px;
    }

    .review-form-wrapper h1 {
        font-size: 1.6rem;
    }

    .review-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: 12px 24px;
        text-align: center;
    }

    .rating-input {
        font-size: 1.5rem;
        gap: 4px;
    }

    .rating-text {
        font-size: 0.85rem;
    }

    .upload-btn {
        width: 100%;
        justify-content: center;
    }

    .image-upload-area {
        padding: 20px;
    }

    .preview-item {
        width: 70px;
        height: 70px;
    }

    .form-note {
        font-size: 0.75rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .review-form-wrapper {
        padding: 24px 16px;
    }

    .review-form-wrapper h1 {
        font-size: 1.4rem;
    }

    .rating-input {
        font-size: 1.2rem;
        gap: 3px;
    }

    .preview-item {
        width: 60px;
        height: 60px;
    }

    .upload-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

.site-footer{
    margin-top: 0;
}
/* ===== 图片预览弹窗样式 ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal.show {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    font-weight: bold;
    transition: opacity 0.3s;
}

.image-modal-close:hover {
    opacity: 0.7;
}

/* 评论图片样式 */
.review-images {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.review-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border);
}

.review-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .review-images img {
        width: 60px;
        height: 60px;
    }

    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
}