/* 底部声明与反馈/免责弹窗 - 独立样式，可在任意页面引入 */
:root {
    --footer-text-disabled: #bfbfbf;
    --footer-text-tertiary: #8c8c8c;
    --footer-border-light: #f0f2f5;
    --footer-spacing-sm: 16px;
    --footer-spacing-md: 24px;
    --footer-spacing-lg: 48px;
    --footer-radius: 8px;
}

.footer-legal {
    margin-top: var(--footer-spacing-lg);
    padding: var(--footer-spacing-sm) 0 var(--footer-spacing-md);
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: var(--footer-text-disabled);
    background: var(--footer-border-light);
    border-radius: 0 0 var(--footer-radius) var(--footer-radius);
}
.footer-legal-line { margin: 0; padding: 0; }
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 4px;
}
.footer-legal-links span:not(.footer-sep),
.footer-legal-links a {
    color: var(--footer-text-disabled);
    text-decoration: none;
}
.footer-legal-links a:hover {
    color: var(--footer-text-tertiary);
    text-decoration: underline;
}
.footer-sep {
    color: var(--footer-text-disabled);
    opacity: 0.8;
    user-select: none;
}
.footer-legal-disclaimer {
    font-size: 11px;
    color: var(--footer-text-disabled);
    opacity: 0.95;
}

/* 免责声明模态框 */
.disclaimer-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: footerLegalFadeIn 0.3s ease;
}
.disclaimer-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: footerLegalSlideIn 0.3s ease;
}
.disclaimer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}
.disclaimer-modal-header h3 {
    margin: 0;
    color: #1a56a7;
    font-size: 1.15rem;
}
.disclaimer-modal-body { padding: 20px; }
.disclaimer-modal-body p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
.disclaimer-modal-body p:last-child { margin-bottom: 0; }

/* 意见反馈模态框（类名限定，避免与页面 form 冲突） */
.feedback-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: footerLegalFadeIn 0.3s ease;
}
.feedback-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: footerLegalSlideIn 0.3s ease;
}
.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}
.feedback-modal-header h2 {
    margin: 0;
    color: #1a56a7;
    font-size: 1.5rem;
}
.footer-legal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.footer-legal-close:hover,
.footer-legal-close:focus { color: #1a56a7; }
.feedback-modal-body { padding: 20px; }
.feedback-modal .form-group { margin-bottom: 20px; }
.feedback-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.feedback-modal .form-group textarea,
.feedback-modal .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}
.feedback-modal .form-group textarea:focus,
.feedback-modal .form-group input:focus {
    outline: none;
    border-color: #1a56a7;
    box-shadow: 0 0 0 2px rgba(26, 86, 167, 0.2);
}
.feedback-modal .form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.feedback-modal .submit-btn {
    background: linear-gradient(135deg, #1a56a7 0%, #144785 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
}
.feedback-modal .submit-btn:hover {
    box-shadow: 0 4px 15px rgba(26, 86, 167, 0.3);
}
.feedback-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}
.feedback-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.feedback-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes footerLegalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes footerLegalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
