273 lines
5.0 KiB
CSS
273 lines
5.0 KiB
CSS
/* 反馈按钮悬浮样式 */
|
|
.feedback-button {
|
|
position: fixed;
|
|
right: 30px;
|
|
bottom: 100px;
|
|
z-index: 1000;
|
|
background-color: #2980b9;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50px;
|
|
padding: 12px 24px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
transition: all 0.3s ease;
|
|
font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
|
|
}
|
|
|
|
.feedback-button:hover {
|
|
background-color: #3498db;
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* 反馈弹窗遮罩 */
|
|
.feedback-modal-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 2000;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.feedback-modal-overlay.active {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 反馈弹窗主体 */
|
|
.feedback-modal {
|
|
background-color: white;
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(50px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 关闭按钮 */
|
|
.feedback-modal-close {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 15px;
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
padding: 5px 10px;
|
|
line-height: 1;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.feedback-modal-close:hover {
|
|
color: #333;
|
|
}
|
|
|
|
/* 弹窗标题 */
|
|
.feedback-modal h2 {
|
|
margin: 0 0 20px 0;
|
|
font-size: 20px;
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 表单样式 */
|
|
.feedback-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.feedback-form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.feedback-form-group label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #555;
|
|
}
|
|
|
|
.feedback-form-group textarea,
|
|
.feedback-form-group input[type="text"],
|
|
.feedback-form-group input[type="email"] {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
|
|
transition: border-color 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.feedback-form-group textarea {
|
|
min-height: 120px;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* contenteditable 编辑器样式 */
|
|
.feedback-editor {
|
|
min-height: 150px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
padding: 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
background-color: white;
|
|
transition: border-color 0.2s;
|
|
line-height: 1.6;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.feedback-editor:focus {
|
|
outline: none;
|
|
border-color: #2980b9;
|
|
}
|
|
|
|
.feedback-editor:empty:before {
|
|
content: attr(data-placeholder);
|
|
color: #999;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.feedback-editor img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 10px 0;
|
|
border-radius: 4px;
|
|
border: 1px solid #e1e8ed;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.feedback-editor img:hover {
|
|
border-color: #2980b9;
|
|
box-shadow: 0 2px 8px rgba(41, 128, 185, 0.2);
|
|
}
|
|
|
|
.feedback-form-group input:focus,
|
|
.feedback-form-group textarea:focus {
|
|
outline: none;
|
|
border-color: #2980b9;
|
|
}
|
|
|
|
/* 联系信息部分 */
|
|
.feedback-contact-info {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.feedback-contact-info p {
|
|
margin: 0 0 15px 0;
|
|
font-size: 14px;
|
|
color: #333;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.feedback-contact-fields {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
/* 提交按钮 */
|
|
.feedback-submit-btn {
|
|
align-self: flex-end;
|
|
background-color: #2980b9;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
padding: 12px 40px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.feedback-submit-btn:hover {
|
|
background-color: #3498db;
|
|
}
|
|
|
|
.feedback-submit-btn:disabled {
|
|
background-color: #95a5a6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* 提示信息 */
|
|
.feedback-message {
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
margin-bottom: 15px;
|
|
display: none;
|
|
}
|
|
|
|
.feedback-message.success {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
display: block;
|
|
}
|
|
|
|
.feedback-message.error {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
display: block;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.feedback-button {
|
|
right: 20px;
|
|
bottom: 80px;
|
|
padding: 10px 20px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.feedback-modal {
|
|
padding: 20px;
|
|
width: 95%;
|
|
}
|
|
|
|
.feedback-contact-fields {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|