/* 教程弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf8 100%);
    margin: 20px;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(45, 74, 45, 0.4);
    max-width: 950px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
    border: 2px solid rgba(74, 124, 89, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, #4a7c59 0%, #5a8c69 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.tutorial-content {
    line-height: 1.6;
    font-size: 15px;
    color: #333;
}

.tutorial-section {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8f5e8;
}

.tutorial-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tutorial-section h3 {
    color: #4a7c59;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tutorial-section h4 {
    color: #2d4a2d;
    font-size: 1.1em;
    margin: 12px 0 8px 0;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.tutorial-section p {
    margin-bottom: 10px;
    color: #4a6a4a;
    font-size: 15px;
    line-height: 1.5;
}

.tutorial-section ul {
    margin: 8px 0;
    padding-left: 20px;
}

.tutorial-section li {
    margin-bottom: 6px;
    color: #4a6a4a;
    font-size: 15px;
    line-height: 1.4;
}

.step {
    background: linear-gradient(135deg, #f8fdf8 0%, #f0f8f0 100%);
    padding: 18px;
    border-radius: 12px;
    margin: 12px 0;
    border-left: 4px solid #4a7c59;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
    transition: transform 0.2s ease;
}

.step:hover {
    transform: translateY(-1px);
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 18px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.warning-box ul {
    margin: 0;
    padding-left: 20px;
}

.warning-box li {
    color: #856404;
    margin-bottom: 6px;
    font-weight: 500;
}

.update-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 18px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.update-box ul {
    margin: 0;
    padding-left: 20px;
}

.update-box li {
    color: #155724;
    margin-bottom: 6px;
    font-weight: 500;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 18px 0;
}

.format-item {
    background: linear-gradient(135deg, #f8fdf8 0%, #f0f8f0 100%);
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #e8f5e8;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
    transition: transform 0.2s ease;
}

.format-item:hover {
    transform: translateY(-2px);
}

.format-item h4 {
    color: #4a7c59;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.format-item ul {
    margin: 0;
    padding-left: 18px;
}

.format-item li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.faq {
    margin: 18px 0;
}

.faq-item {
    background: linear-gradient(135deg, #f8fdf8 0%, #f0f8f0 100%);
    padding: 18px;
    border-radius: 12px;
    margin: 12px 0;
    border-left: 4px solid #4a7c59;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
    transition: transform 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-1px);
}

.faq-item h4 {
    color: #4a7c59;
    margin-bottom: 8px;
    font-size: 1.05em;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: #4a6a4a;
    font-size: 15px;
    line-height: 1.5;
}

.modal-footer {
    background: #f8fdf8;
    padding: 20px 25px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    border-top: 2px solid #e8f5e8;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: linear-gradient(135deg, #4a7c59 0%, #5a8c69 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
    background: linear-gradient(135deg, #5a8c69 0%, #6a9c79 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-60px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4a7c59;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #5a8c69;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 18px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.3em;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 18px 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .format-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step, .warning-box, .update-box, .faq-item {
        padding: 15px;
    }
    
    .tutorial-content {
        font-size: 14px;
    }
    
    .tutorial-section h3 {
        font-size: 1.2em;
    }
    
    .tutorial-section h4 {
        font-size: 1.05em;
    }
}
