/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* h3标签样式 */
h3 {
    position: relative;
}

/* 阅读习惯设置样式 */
.settings-group {
    margin-bottom: 30px;
}

.radio-group.vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group.vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.radio-label:hover, .checkbox-label:hover {
    background: #f0f7ff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    transform: scale(1.2);
}

.radio-label span,
.checkbox-label span {
    flex: 1;
    line-height: 1.5;
    color: #333;
}

.setting-hint {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    padding-left: 5px;
}

.settings-note {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-left: 4px solid #007bff;
}

.settings-note h5 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
}

.settings-note ul {
    margin: 10px 0;
}

.settings-note li {
    margin-bottom: 5px;
}

/* 设置选项卡样式 */
.settings-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.settings-tab {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.settings-tab:hover {
    background: #e9ecef;
    color: #333;
}

.settings-tab.active {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.settings-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 设置操作按钮 */
.settings-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: right;
}

.settings-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-tabs {
        flex-wrap: wrap;
    }
    
    .settings-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 10px 15px;
    }
    
    .radio-label, .checkbox-label {
        padding: 10px 12px;
    }
    

}


/* 问卷修改模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 问卷选项样式 */
.radio-option, .checkbox-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-option:hover, .checkbox-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 评分滑块样式 */
.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.rating-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 星星评分样式 */
.star {
    transition: all 0.2s ease;
    cursor: pointer;
}

.star:hover {
    transform: scale(1.2);
}

/* 设置页面样式 */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.settings-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.settings-group {
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .rating-grid {
        grid-template-columns: 1fr !important;
    }
    
    .settings-section {
        padding: 15px;
    }
}

/* 滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* 华文楷体优化 */
.font-sample[style*="STKaiti"],
.font-sample[style*="KaiTi"] {
    font-size: 17px;
    color: #1a202c;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.8;
    font-family: 'STKaiti', 'KaiTi', serif;
}

/* 思源宋体优化 */
.font-sample[style*="Noto Serif SC"] {
    font-size: 16px;
    color: #2d3748;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.7;
    font-family: 'Noto Serif SC', serif;
}

/* 微软雅黑优化 */
.font-sample[style*="Microsoft YaHei"] {
    font-size: 15px;
    color: #2d3748;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 字体描述样式 */
.font-description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    font-style: italic;
}



.preview-box[style*="STKaiti"],
.preview-box[style*="KaiTi"] {
    font-family: 'STKaiti', 'KaiTi', serif, var(--english-font, 'Eczar', serif);
    letter-spacing: 0.3px;
    font-weight: 400;
}

.preview-box[style*="Noto Serif SC"] {
    font-family: 'Noto Serif SC', serif, var(--english-font, 'Eczar', serif);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.preview-box[style*="Microsoft YaHei"] {
    font-family: 'Microsoft YaHei', sans-serif, var(--english-font, 'Eczar', serif);
    letter-spacing: 0px;
    font-weight: 400;
}

/* 英文字体预览优化 */
.preview-box[style*="Eczar"] {
    font-weight: 500;
}

.preview-box[style*="Cabin"] {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 字体网格布局调整为4列 */
.font-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 字体选项增强 */
.font-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.font-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}

.font-option input[type="radio"]:checked + .font-preview {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
}

.font-preview {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

/* 字体名称样式 */
.font-name {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-name::before {
    content: '✓';
    color: transparent;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.font-option input[type="radio"]:checked + .font-preview .font-name::before {
    color: white;
    background: #3b82f6;
    border-color: #3b82f6;
}

/* 字体示例区域 */
.font-sample {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    margin: 10px 0;
    min-height: 80px;
}

/* 预览信息样式 */
.preview-info {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .font-family-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .font-family-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .font-option {
        padding: 15px;
    }
    
    .font-sample {
        min-height: 70px;
        font-size: 14px;
    }
    
    .preview-box {
        font-size: 16px;
        padding: 20px;
    }
}

/* 行高选择器样式 */
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* 底部链接样式增强 */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.footer-link {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    background-color: white;
}

.footer-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 80%;
}

.footer-copyright {
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    padding: 15px 0;
}

/* 模态框样式改进 */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;  /* 确保所有文字都是白色 */
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    color: white !important;  /* 强制白色，使用!important确保优先级 */
    margin: 0;
}

.modal-header button {
    color: white !important;
}

.modal-header button:hover {
    color: #e6f2ff !important;  /* 悬停时稍微亮一点 */
}

.modal-body {
    padding: 30px;
}

.modal-body h5 {
    color: #0056b3;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.modal-body ul, .modal-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-body strong {
    color: #0056b3;
}

.modal-body a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-body a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.modal-footer {
    padding: 10px 30px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #dee2e6;
}

/* 打印按钮样式 */
.btn-print {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-print:hover {
    background-color: #138496;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-link {
        width: 80%;
        text-align: center;
    }
    
    .modal-content {
        padding: 10px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 15px;
    }
}

/* 问卷样式增强 */
.questionnaire-section {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.question-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.question-group h5 {
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.interest-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.interest-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.learning-style-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.learning-style-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.learning-style-item select {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.learning-style-item select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.paper-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ced4da;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.radio-label input[type="radio"] {
    margin-top: 3px;
}

.warning-text {
    color: #dc3545;
    font-size: 14px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    margin: 15px 0;
}

/* 解读结果样式增强 */
.glossary-section {
    margin-top: 30px;
    padding: 20px;
    background: #e8f4ff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.glossary-section h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.interpretation-content {
    line-height: 1.8;
    font-size: 16px;
}

.interpretation-content h1,
.interpretation-content h2,
.interpretation-content h3,
.interpretation-content h4 {
    color: #007bff;
    margin: 20px 0 10px 0;
}

.interpretation-content p {
    margin-bottom: 15px;
}

.interpretation-content ul,
.interpretation-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.interpretation-content li {
    margin-bottom: 5px;
}

/* 强调AI生成提示 */
.interpretation-content em {
    color: #6c757d;
    font-style: italic;
}

/* 思维导图样式 */
.mindmap {
    width: 100%;
    min-height: 400px;
    padding: 20px;
}

.mindmap-center {
    text-align: center;
}

.center-node {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.mindmap-branches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.branch-line {
    width: 2px;
    height: 40px;
    background: #007bff;
}

.branch-node {
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.branch-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: #e3f2fd;
}

.interpretation-content strong {
    color: #28a745;
}

body {
    font-family: 'Microsoft YaHei', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 模态框样式 */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.interest-grid, .learning-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 10px 0;
}

.interest-item, .learning-style-item {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.interest-item label, .learning-style-item label {
    font-weight: normal;
    font-size: 14px;
    margin-bottom: 8px;
    color: #495057;
}

.interest-item select, .learning-style-item select {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.interest-item select:focus, .learning-style-item select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label:hover {
    border-color: #007bff;
    background-color: #f8faff;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

.paper-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.paper-excerpt::-webkit-scrollbar {
    width: 6px;
}

.paper-excerpt::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.paper-excerpt::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.question-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.question-group:last-child {
    border-bottom: none;
    margin-bottom: 20px;
}

.question-group h5 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.warning-text {
    color: #dc3545;
    font-size: 14px;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.tab-btn:hover {
    background-color: #f0f0f0;
}

.tab-btn.active {
    color: #007bff;
    background-color: #e8f4ff;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* 顶部导航栏 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    margin: 0;
}

.tagline {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.nav-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.nav-link.active {
    color: #007bff;
    background-color: #e8f4ff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.page-header h2 {
    font-size: 32px;
    color: #333;
}

.content-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.content-section:hover {
    transform: translateY(-5px);
}

.content-section h3 {
    color: #007bff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0 !important;
}

/* 上传区域 */
.upload-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.upload-box {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #007bff;
    background-color: #f8faff;
}

.upload-box i {
    color: #007bff;
    margin-bottom: 20px;
}

.text-input-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 150px;
}

.char-count {
    text-align: right;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

/* 结果展示区域 */
.results-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
    }
}

.original-paper,
.interpretation-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.paper-content {
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}

.interpretation-content {
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}

/* 设置页面 */
.settings-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-left: 0px;
    margin-right: 0px;
    max-width: none;
}

/* 确保设置选项框与大标题对齐 */
.settings-container .form-group {
    margin-left: 0;
}

.settings-container .radio-group.vertical,
.settings-container .checkbox-group.vertical {
    margin-left: 0;
}

.settings-container .radio-label,
.settings-container .checkbox-label {
    margin-left: 0;
    border-radius: 8px;
}

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.settings-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.settings-tab:hover {
    background-color: #f0f0f0;
}

.settings-tab.active {
    color: #007bff;
    background-color: #e8f4ff;
    font-weight: bold;
}

.settings-panel {
    display: none;
    margin-bottom: 30px;
}

.settings-panel.active {
    display: block;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #007bff;
    background-color: #f8faff;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

.settings-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

/* 底部样式 */
.footer {
    background-color: white;
    border-top: 2px solid #eee;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-link {
    color: #040000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #000000;
}

.footer-copyright {
    color: #0a0101;
    font-size: 13px;
}

/* 加载动画 */
.loading-section {
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--theme-color, #007bff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载状态文字样式 */
.loading-section p,
.loading-section div p,
#pdf-viewer p {
    color: var(--theme-color, #007bff) !important;
    font-size: 16px;
    font-weight: 500;
}

/* 加载图标颜色 */
.fa-spinner {
    color: var(--theme-color, #007bff) !important;
}

/* 推荐论文样式 */
.recommendations-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.recommendations-list {
    display: grid;
    gap: 15px;
}

.recommendation-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    transition: transform 0.3s ease;
}

.recommendation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recommendation-item h5 {
    margin-bottom: 8px;
    color: #333;
}

.recommendation-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 问卷样式 */
.questionnaire-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.question-group {
    margin-bottom: 20px;
}

.question-group h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-info {
        margin-top: 10px;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
    
    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/* 全屏问卷样式 */
#full-questionnaire-modal .modal-content {
    max-width: 1200px;
    width: 100%;
    height: 100vh;
}

#full-questionnaire-modal .modal-body {
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 20px;
}

.questionnaire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.questionnaire-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.questionnaire-section h4 {
    color: #007bff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.question-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.question-group h5 {
    color: #495057;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #full-questionnaire-modal .modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .questionnaire-grid {
        grid-template-columns: 1fr;
    }
}

/* 注册表单中的问卷摘要样式 */
.questionnaire-summary {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: none;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.questionnaire-summary h5 {
    color: #28a745;
    margin-bottom: 10px;
}

.questionnaire-summary button {
    margin-top: 10px;
}
/* 搜索平台样式 */
.search-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.search-platform {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.search-platform h5 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-btn {
    padding: 12px 20px;
    white-space: nowrap;
}

.search-hint {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-platforms {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
}

/* 确保h2和div.page-header背景透明 */
h2 {
    background-color: transparent !important;
}

.page-header {
    background-color: transparent !important;
}