/* 创作指南弹窗样式 */
.guide-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.guide-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.guide-modal-header {
    padding: 30px 30px 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.guide-modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
}

.guide-modal-header .subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.guide-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #bdc3c7;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guide-modal-close:hover {
    background: #f8f9fa;
    color: #e74c3c;
    transform: rotate(90deg);
}

.guide-modal-body {
    padding: 20px 30px 30px;
    flex: 1;
    overflow-y: auto;
    /* 隐藏滚动条但保持可滚动 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE和Edge */
}

/* Webkit浏览器隐藏滚动条 */
.guide-modal-body::-webkit-scrollbar {
    display: none;
}

.guide-section {
    margin-bottom: 28px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #28a745;
    display: inline-block;
}

.guide-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin: 20px 0 10px 0;
}

.guide-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 12px 0;
}

.guide-section p:last-child {
    margin-bottom: 0;
}

.guide-section ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.guide-section ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.guide-section li {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 8px;
}

.guide-section li:last-child {
    margin-bottom: 0;
}

.guide-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin: 20px 0;
    position: relative;
}

.guide-highlight::before {
    content: "💡";
    position: absolute;
    top: 20px;
    left: -2px;
    font-size: 18px;
}

.guide-highlight h4 {
    margin: 0 0 10px 20px;
    color: #28a745;
    font-weight: 600;
}

.guide-highlight p {
    margin: 0 0 8px 20px;
    font-weight: 500;
    color: #333;
}

.guide-highlight p:last-child {
    margin-bottom: 0;
}

.guide-steps {
    counter-reset: step-counter;
    margin: 20px 0;
}

.guide-step {
    counter-increment: step-counter;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    position: relative;
    border-left: 4px solid #007bff;
}

.guide-step::before {
    content: counter(step-counter);
    position: absolute;
    left: -12px;
    top: 16px;
    background: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.guide-step h5 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.guide-step p {
    margin: 0;
    color: #555;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.guide-table th,
.guide-table td {
    border: 1px solid #e1e5e9;
    padding: 12px;
    text-align: left;
}

.guide-table th {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    font-weight: 600;
    color: white;
}

.guide-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.guide-table tr:hover {
    background-color: #e9ecef;
}

.guide-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #fdcb6e;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.guide-warning h4 {
    color: #856404;
    margin: 0 0 8px 0;
    font-size: 15px;
}

.guide-warning p {
    color: #856404;
    margin: 0;
    font-weight: 500;
}

.guide-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.guide-footer p {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
}

.guide-contact {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.guide-contact-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guide-contact-btn.primary {
    background: #28a745;
    color: white;
}

.guide-contact-btn.primary:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

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

.guide-contact-btn.secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .guide-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .guide-modal-header,
    .guide-modal-body,
    .guide-footer {
        padding: 20px;
    }
    
    .guide-modal-header h2 {
        font-size: 20px;
    }
    
    .guide-section h3 {
        font-size: 16px;
    }
    
    .guide-table {
        font-size: 12px;
    }
    
    .guide-table th,
    .guide-table td {
        padding: 8px;
    }
    
    .guide-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .guide-contact-btn {
        width: 200px;
        justify-content: center;
    }
    
    .guide-highlight {
        padding: 16px;
    }
    
    .guide-highlight h4,
    .guide-highlight p {
        margin-left: 16px;
    }
    
    .guide-step {
        padding: 12px 16px;
    }
}
