/* feedback.css - 用户反馈页面样式 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 50px;
    width: 100%;
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 修复标题和返回按钮布局 */
.header-with-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.page-title {
    text-align: center;
    color: var(--dark);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

h1::before {
    content: "";
    font-size: 2rem;
}

/* 表单组 */
.form-group {
    margin-bottom: 32px;
}

label {
    display: block;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

label[for="feedback_text"]::before {
    content: "";
}

label[for="contact_info"]::before {
    content: "";
}

/* 输入框和文本域 */
textarea, input[type="text"] {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

textarea {
    height: 140px;
    resize: vertical;
    line-height: 1.6;
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* 消息样式 */
.message {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-left: 4px solid var(--success);
}

.error {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #7f1d1d;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
}

/* 错误列表 */
.error-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.error-list li {
    padding: 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #7f1d1d;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid var(--danger);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-list li::before {
    content: "⚠️";
}

/* 表单占位符样式 */
::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/*跳转按钮*/
/* 在 feedback.css 中添加以下样式 */

/* 返回按钮样式 */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
    color: white;
    text-decoration: none;
}

.btn-back:active {
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
        margin: 20px;
    }

    .header-with-back {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .page-title {
        font-size: 2rem;
        order: 2;
    }

    .btn-back {
        order: 1;
        align-self: center;
    }

    textarea, input[type="text"] {
        padding: 16px 18px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 30px 24px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .form-group {
        margin-bottom: 24px;
    }

    textarea, input[type="text"] {
        padding: 14px 16px;
        font-size: 15px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }

    .message {
        padding: 16px;
        font-size: 14px;
    }

    .error-list li {
        padding: 12px;
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: slideIn 0.6s ease-out;
}

.form-group {
    animation: slideIn;
}
