/* 意见反馈页面样式 */

.main-container {
    max-width: 1500px;
    width: 1500px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f8f9fa;
}

.feedback-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.feedback-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(21, 117, 64, 0.08), transparent 70%);
    border-top-right-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.page-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-left: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.page-title i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 32px;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 6px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.page-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 18px;
}

.feedback-form {
    padding: 20px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.required {
    color: #f56c6c;
    margin-left: 4px;
}

/* 标签选择器样式 */
.feedback-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.tag-item {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.tag-item:hover {
    background-color: #e8f4ee;
    border-color: #b8e0c7;
    transform: translateY(-2px);
}

.tag-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 输入框样式 */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #fff;
    color: #333;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 117, 64, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.invalid-feedback {
    font-size: 13px;
    color: #dc3545;
    margin-top: 8px;
    display: none;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* 图片上传区域 */
.upload-container {
    margin-top: 15px;
}

.upload-area {
    border: 2px dashed #cce5d5;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    background-color: #f9fefc;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #eef9f4;
}

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 40px;
    color: #7bc19e;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 15px;
    color: #444;
    margin-bottom: 5px;
    font-weight: 500;
}

.upload-hint {
    font-size: 13px;
    color: #777;
}

/* 预览区域 */
.preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #ff4d4f;
    transition: all 0.3s;
}

.delete-btn:hover {
    background-color: rgba(255, 0, 0, 0.15);
    transform: scale(1.1);
}

/* 提交按钮 */
.submit-section {
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.submit-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.submit-btn {
    background: linear-gradient(135deg, #1a8d50, #0d5e30);
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(21, 117, 64, 0.25);
}

.submit-btn i {
    margin-right: 8px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0d5e30, #1a8d50);
    box-shadow: 0 6px 20px rgba(21, 117, 64, 0.35);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(21, 117, 64, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }
    
    .feedback-container {
        padding: 25px 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .feedback-tags {
        gap: 8px;
    }
    
    .tag-item {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 成功提交后的样式 */
.feedback-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.success-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.return-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.return-btn:hover {
    background-color: #0d5e30;
    transform: translateY(-2px);
}

.return-btn i {
    margin-right: 8px;
} 