/* 基础响应式样式 */
@media (max-width: 768px) {
    .wrap {
        padding: 10px !important;
    }
    
    .main {
        padding: 15px !important;
    }
    
    .form-container {
        padding: 15px !important;
    }
    
    .form-title {
        font-size: 18px !important;
        padding: 15px 0 !important;
    }
    
    /* 表单布局调整 */
    .fb {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 0 !important;
    }
    
    .fb label {
        width: 100% !important;
        font-size: 14px !important;
        text-align: left !important;
    }
    
    .fb input,
    .fb select,
    .fb textarea {
        width: 100% !important;
        font-size: 14px !important;
    }

    .sex-group {
        flex-direction: row;
    }

    .sex-option label,
    .sex-option input {
        width: auto !important;
    }

    .fb2  {
        flex-direction: column !important;
    }

    .fb2 .l, .fb2 .m { 
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 0;
    }

    .fb2 .m {
        margin-bottom: 10px;
    }
    
    /* 表单行布局 */
    .form-row {
        flex-direction: column !important;
        margin-bottom: 0 !important;
        gap: 10px !important;
    }
    
    .form-col {
        width: 100% !important;
        margin-bottom: 0 !important;
        min-width: auto !important;
    }
    
    /* 按钮样式 */
    .btn {
        width: 100% !important;
        margin: 5px 0 !important;
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    .footerWrap {
        flex-direction: column !important;
    }
    
    /* 上传区域调整 */
    .upload-container {
        width: 100% !important;
    }
    
    .upload-video-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .video-preview video {
        max-height: 200px !important;
    }
    
    /* 付款凭证上传区域 */
    .payment-upload-list {
        gap: 10px !important;
    }
    
    .payment-upload-area,
    .payment-item .lib {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* 项目项调整 */
    .project-item {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
    }
    
    .remove-project {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        z-index: 10 !important;
    }
    
    /* 登录注册弹窗 */
    .login-box {
        width: 90% !important;
        max-width: 400px !important;
        padding: 20px !important;
    }
    
    .form-group {
        margin-bottom: 15px !important;
    }
    
    /* 用户信息区域 */
    .user-info {
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 10px !important;
    }
    
    .logout-btn {
        width: 100% !important;
    }
    
    /* 进度条调整 */
    .progress-circle {
        width: 40px !important;
        height: 40px !important;
    }
    
    .progress-percent {
        font-size: 12px !important;
    }

    /* 容器顶部header */
    .project-section-header,
    .project-item-header {
        padding: 12px !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .project-section-header .header-title,
    .project-item-header .header-title {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .toggle-btn {
        flex-shrink: 0 !important;
        align-self: flex-start !important;
        margin-top: 0 !important;
    }
    
    .header-info {
        font-size: 12px !important;
        margin-left: 5px !important;
    }
    
    .selected-count {
        font-size: 11px !important;
        padding: 1px 6px !important;
    }
    
    .personal-project-summary {
        font-size: 12px !important;
        padding: 8px !important;
    }

    .loginBtn {
        margin: 0 auto !important;
    }

    .copyright_wrap {
        bottom: 10px !important;
    }

    .copyright {
        font-size: 12px !important;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .wrap {
        padding: 20px !important;
    }
    
    .form-container {
        padding: 20px !important;
    }
    
    .form-row {
        gap: 15px !important;
    }
    
    .form-col {
        width: 48% !important;
    }
    
    .payment-upload-area,
    .payment-item .lib {
        width: 110px !important;
        height: 110px !important;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .head {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    .loginBtn,
    .logout-btn {
        width: 100% !important;
    }
    
    .tabs-wrap h4 {
        font-size: 16px !important;
        padding: 10px 15px !important;
    }
    
    .item-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .form-hint {
        font-size: 12px !important;
    }
    
    .payment-upload-area,
    .payment-item .lib {
        width: 80px !important;
        height: 80px !important;
    }
}

/* 横屏适配 */
@media (orientation: landscape) and (max-height: 500px) {
    .wrap {
        padding: 10px !important;
    }
    
    .form-container {
        padding: 10px !important;
    }
    
    .fb {
        margin-bottom: 10px !important;
    }
    
    .video-preview video {
        max-height: 150px !important;
    }
}

/* 高DPI屏幕适配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn,
    .upload-video-btn,
    .img-upload-btn {
        border-width: 1px !important;
    }
    
    .payment-upload-area,
    .payment-item .lib {
        border-width: 1px !important;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .form-container {
        background-color: #1a1a1a !important;
        color: #f0f0f0 !important;
    }
    
    .fb input,
    .fb select,
    .fb textarea {
        background-color: #2a2a2a !important;
        color: #f0f0f0 !important;
        border-color: #444 !important;
    }
    
    .payment-upload-area {
        background-color: #2a2a2a !important;
        border-color: #444 !important;
    }
}