/* 移动端样式 */
@media (max-width: 768px) {
    .forum-header {
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .forum-header h2 {
        font-size: 18px;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .forum-header p {
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
    }
    
    .upload-section {
        padding: 20px;
        margin: 0 15px 25px;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    
    .upload-section h3 {
        font-size: 16px;
        margin-bottom: 18px;
        text-align: center;
        color: #333;
    }
    
    .upload-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-group label {
        display: block;
        font-size: 14px;
        margin-bottom: 8px;
        font-weight: 500;
        color: #555;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 15px;
        border-radius: 10px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
        font-family: inherit;
    }
    
    .form-group input[type="file"] {
        padding: 20px 15px;
        background: #f9f9f9;
        border: 2px dashed #ddd;
        border-radius: 10px;
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .form-group input[type="file"]:hover {
        border-color: #3498db;
        background: #f0f8ff;
    }
    
    .upload-btn {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
        width: 100%;
        margin-top: 10px;
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white;
        border: none;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .upload-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }
    
    .upload-btn:active {
        transform: translateY(0);
    }
    
    .blueprint-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .blueprint-card {
        padding: 18px;
        border-radius: 15px;
        box-shadow: 0 3px 12px rgba(0,0,0,0.1);
        background: #fff;
        transition: all 0.3s ease;
    }
    
    .blueprint-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }
    
    .blueprint-image {
        height: 220px;
        margin-bottom: 15px;
        border-radius: 10px;
        overflow: hidden;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .blueprint-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .blueprint-card:hover .blueprint-image img {
        transform: scale(1.03);
    }
    
    .blueprint-title {
        font-size: 16px;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
    }
    
    .blueprint-author {
        font-size: 13px;
        margin-bottom: 12px;
        color: #666;
    }
    
    .blueprint-tags {
        margin-bottom: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tag {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 15px;
        background: #f0f0f0;
        color: #666;
        transition: all 0.3s ease;
    }
    
    .tag:hover {
        background: #e0e0e0;
    }
    
    .blueprint-actions {
        display: flex;
        gap: 12px;
    }
    
    .action-btn {
        flex: 1;
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
        text-align: center;
        border: 1px solid #ddd;
        background: #f9f9f9;
        color: #333;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .action-btn:hover {
        background: #e9e9e9;
        transform: translateY(-1px);
    }
    
    .empty-state {
        margin: 40px 15px;
        padding: 50px 20px;
        text-align: center;
        background: #f9f9f9;
        border-radius: 15px;
    }
    
    .empty-state h3 {
        font-size: 17px;
        margin-bottom: 10px;
        color: #333;
    }
    
    .empty-state p {
        font-size: 14px;
        line-height: 1.6;
        color: #666;
    }
    
    /* 图片预览弹窗优化 */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .modal-content {
        max-width: 90%;
        max-height: 90vh;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        transform: scale(0.9);
        transition: all 0.3s ease;
    }
    
    .modal-overlay.active .modal-content {
        transform: scale(1);
    }
    
    .modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255,255,255,0.9);
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        font-size: 20px;
        cursor: pointer;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    /* 响应式调整 */
    @media (max-width: 480px) {
        .upload-section {
            padding: 15px;
            margin: 0 10px 20px;
        }
        
        .blueprint-grid {
            padding: 0 10px;
            gap: 15px;
        }
        
        .blueprint-card {
            padding: 15px;
        }
        
        .blueprint-image {
            height: 180px;
        }
        
        .upload-btn {
            padding: 14px;
            font-size: 15px;
        }
    }
    
    .upload-success {
        text-align: center;
        padding: 30px 15px;
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        border-radius: 15px;
        margin: 0 15px 25px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .upload-success h3 {
        margin-bottom: 12px;
        color: #27ae60;
        font-size: 18px;
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    }
    
    .upload-success p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        background-color: rgba(255,255,255,0.7);
        padding: 8px 12px;
        border-radius: 12px;
    }
}