/* 报告生成页面专用样式 */

/* 主内容区域 */
.report-generation-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.report-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 设置区域 */
.settings-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.settings-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.settings-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.template-selection h4,
.custom-fields h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.template-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.template-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.template-card.active {
    border-color: var(--primary-color);
    background: rgba(29, 64, 175, 0.05);
}

.template-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.template-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.template-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.template-card p {
    color: #6B7280;
    font-size: 0.9rem;
}

/* 自定义字段设置优化 - 超紧凑布局 */
.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.field-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.1rem;
}

.field-tools {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field input {
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 180px;
    background: #F8FAFC;
    transition: var(--transition);
}

.search-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

.search-icon {
    position: absolute;
    right: 0.6rem;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    background: #6B7280;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-small:hover {
    background: #4B5563;
}

.field-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.field-list::-webkit-scrollbar {
    width: 4px;
}

.field-list::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 2px;
}

.field-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 2px;
}

.field-list::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.field-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.4rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    transition: var(--transition);
    cursor: grab;
    position: relative;
    min-height: 36px;
}

.field-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-0.5px);
}

.field-item:active {
    cursor: grabbing;
    box-shadow: 0 1px 4px rgba(30, 64, 175, 0.15);
}

.field-item.dragging {
    opacity: 0.6;
    background: #F0F9FF;
    border-color: var(--primary-color);
}

.field-handle {
    color: #9CA3AF;
    font-size: 0.9rem;
    cursor: grab;
    padding: 0.2rem;
    border-radius: 3px;
    transition: var(--transition);
    line-height: 1;
    flex-shrink: 0;
}

.field-handle:hover {
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.1);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    min-width: 0;
}

.checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-item span {
    font-weight: 500;
    color: #374151;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.checkbox-item:hover span {
    color: var(--primary-color);
}

.field-actions {
    display: flex;
    gap: 0.15rem;
    opacity: 0;
    transition: var(--transition);
    flex-shrink: 0;
}

.field-item:hover .field-actions {
    opacity: 1;
}

.move-up,
.move-down {
    width: 24px;
    height: 24px;
    border: 1px solid #D1D5DB;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6B7280;
    transition: var(--transition);
    flex-shrink: 0;
}

.move-up:hover {
    border-color: var(--primary-color);
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-color);
}

.move-down:hover {
    border-color: var(--primary-color);
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-color);
}

.move-up:disabled,
.move-down:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #E5E7EB;
    background: #F9FAFB;
}

.field-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 0.4rem;
}

.field-buttons .btn-secondary,
.field-buttons .btn-primary {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* 拖拽占位符样式 */
.field-placeholder {
    height: 50px;
    background: rgba(30, 64, 175, 0.05);
    border: 2px dashed var(--primary-color);
    border-radius: 6px;
    margin: 0.3rem 0;
}

/* 排序动画 */
@keyframes highlight {
    0% { background: rgba(16, 185, 129, 0.1); }
    100% { background: transparent; }
}

.field-item.highlight {
    animation: highlight 0.8s ease;
}

/* 字段分组样式 */
.field-group {
    margin-bottom: -0.3rem;
}

.field-group-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    padding: 0.3rem 0.5rem;
    background: #F8FAFC;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.field-group-header h5 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.field-group-toggle {
    margin-left: auto;
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.field-group-toggle:hover {
    color: var(--primary-color);
}

.field-group-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.field-group-content.collapsed {
    display: none;
}

/* 自定义字段添加 */
.custom-field-add {
    margin-top: -0.5rem;
    padding: 0.6rem;
    background: #F8FAFC;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
}

.add-field-input {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.add-field-input input {
    flex: 1;
    padding: 0.4rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.85rem;
}

.add-field-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.field-presets {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.preset-label {
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

.preset-btn {
    padding: 0.2rem 0.5rem;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #4B5563;
    transition: var(--transition);
}

.preset-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.05);
}

/* 预览区域 */
.preview-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.preview-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F8FAFC;
    border-radius: var(--border-radius);
    padding: 0.25rem;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: white;
}

.zoom-level {
    font-size: 0.9rem;
    color: #6B7280;
    min-width: 40px;
    text-align: center;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
}

.page-btn:hover {
    background: #2D4FCC;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.9rem;
}

.page-info input {
    width: 40px;
    padding: 0.25rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    text-align: center;
}

/* 报告预览内容 */
.report-preview {
    border: 1px solid #E5E7EB;
    border-radius: var(--border-radius);
    background: rgba(147, 225, 181, 0.244);
    min-height: 600px;
    overflow: auto;
    position: relative;
}

.report-page {
    padding: 3rem;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1000px;
    min-height: 1000px;
}

.report-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
}

.report-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.report-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #6B7280;
    font-size: 0.9rem;
}

.report-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 0.5rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: var(--border-radius);
    border: 1px solid #E5E7EB;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6B7280;
    font-size: 0.9rem;
}

/* 新增报告内容样式 */
.assessment-section {
    margin-bottom: 2rem;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.assessment-card {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #E5E7EB;
}

.assessment-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.score-bar {
    position: relative;
    height: 20px;
    background: #E5E7EB;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.score-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.digital-profile {
    margin-bottom: 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-item {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #E5E7EB;
}

.profile-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.profile-summary {
    background: #F0F9FF;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.profile-summary h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.profile-summary ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    color: #4B5563;
}

.profile-summary li {
    margin-bottom: 0.5rem;
}

.training-analysis {
    margin-bottom: 2rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.analysis-card {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #E5E7EB;
}

.analysis-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.priority-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.priority-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background: white;
    border: 1px solid #E5E7EB;
}

.priority-item.high {
    border-left: 4px solid #EF4444;
}

.priority-item.medium {
    border-left: 4px solid #F59E0B;
}

.priority-item.low {
    border-left: 4px solid #10B981;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.priority-item.high .priority-badge {
    background: #FEE2E2;
    color: #DC2626;
}

.priority-item.medium .priority-badge {
    background: #FEF3C7;
    color: #D97706;
}

.priority-item.low .priority-badge {
    background: #D1FAE5;
    color: #065F46;
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recommendation-category {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #E5E7EB;
}

.recommendation-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.recommendation-category ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    color: #4B5563;
}

.recommendation-category li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.implementation-path {
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-content {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #E5E7EB;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    color: #4B5563;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.expected-outcomes {
    margin-bottom: 2rem;
}

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.outcome-item {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #E5E7EB;
}

.outcome-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.outcome-summary {
    background: #F0F9FF;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.outcome-summary h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.outcome-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.outcome-table th,
.outcome-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.outcome-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.outcome-table tr:hover {
    background: #F8FAFC;
}

/* 导出区域 */
.export-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.export-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.export-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.export-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.export-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.export-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.export-card p {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* 分享模态框 */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.share-setting {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-setting label {
    font-weight: 500;
    color: #4B5563;
    min-width: 100px;
}

.share-link {
    display: flex;
    gap: 0.5rem;
}

.share-link input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--border-radius);
    background: #F8FAFC;
}

.share-qrcode {
    text-align: center;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--border-radius);
    background: #F8FAFC;
}

.share-qrcode span {
    display: block;
    margin-top: 1rem;
    color: #6B7280;
    font-size: 0.9rem;
}

/* 按钮样式 */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary:hover {
    background: #2D4FCC;
}

.btn-secondary {
    background: #6B7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-secondary:hover {
    background: #4B5563;
}

/* 页面导航样式优化 */
.page-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.08);
    position: relative;
    overflow: hidden;
}

.page-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.03), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav-back {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(30, 64, 175, 0.05);
    border: 1px solid rgba(30, 64, 175, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-back:hover {
    color: #2D4FCC;
    background: rgba(30, 64, 175, 0.1);
    border-color: rgba(30, 64, 175, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.nav-back:hover::before {
    left: 100%;
}

.nav-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    position: relative;
}

.nav-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #2D4FCC);
    border-radius: 2px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(30, 64, 175, 0.1);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    position: relative;
    overflow: hidden;
}

.nav-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.completed {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.in-progress {
    background: linear-gradient(135deg, var(--primary-color), #2D4FCC);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, #6B7280, #9CA3AF);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.progress-text {
    color: #4B5563;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.progress-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-status:hover .progress-text::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .settings-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .export-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-nav {
        padding: 1rem 0;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-back {
        order: 1;
        align-self: flex-start;
    }
    
    .nav-content h2 {
        order: 2;
    }
    
    .nav-status {
        order: 3;
        align-self: stretch;
        justify-content: center;
    }
    
    .template-cards {
        grid-template-columns: 1fr;
    }
    
    .field-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .preview-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .export-options {
        grid-template-columns: 1fr;
    }
    
    .report-page {
        padding: 1rem;
        margin: 1rem;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 动画效果 */
@keyframes pageTurn {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

.page-turn {
    animation: pageTurn 0.6s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-in {
    animation: zoomIn 0.3s ease;
}