/* 移动端样式 */
@media screen and (max-width: 992px) {
    body {
        font-family: 'Roboto', sans-serif;
        background: linear-gradient(135deg, rgba(173, 216, 230, 0.6), rgba(240, 255, 255, 0.6));
        color: #333;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .header, .left-section, .right-section, .footer, .bgc {
        display: none;
    }

    .submit {
        width: 90%;
        max-width: 500px;
        margin: 20px auto;
        background: rgba(255, 255, 255, 0.5); /* 使用更明显的透明白色背景 */
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        text-align: center;
        position: relative;
        font-family: 'Great Vibes', cursive;
        animation: popIn 0.5s ease-in-out;
        overflow: hidden;
    }

    .form_title {
        margin-bottom: 20px;
        font-size: 32px;
        color: #333;
        font-family: 'Pacifico', cursive;
        animation: slideInLeft 0.7s ease-in-out;
        position: relative;
    }

    .form_title::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, #76c7c0, #80cbc4);
        bottom: -10px;
        left: 0;
        animation: underline 0.6s ease-in-out;
    }

    .form_input {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        animation: fadeIn 1.5s ease-in-out;
    }

    .form_input label {
        font-size: 18px;
        color: #333;
        margin-bottom: 5px;
        animation: slideInRight 0.7s ease-in-out;
    }

    .inputs {
        width: 80%;
        margin: 12px 0;
        padding: 14px;
        border-radius: 10px;
        border: 1px solid #ccc;
        background-color: rgba(255, 248, 220, 0.5); /* 使用更明显的透明淡金色背景 */
        transition: all 0.3s ease;
        font-size: 16px;
        animation: zoomIn 1.2s ease-in-out;
        position: relative;
    }

    .inputs:focus {
        outline: none;
        border-color: #76c7c0;
        background-color: rgba(224, 255, 255, 0.5); /* 使用更明显的透明淡蓝色背景 */
        box-shadow: 0 0 10px rgba(118, 199, 192, 0.5);
    }

    .inputs::placeholder {
        color: rgba(0, 0, 0, 0.6);
    }

    .btn_submit {
        margin-top: 25px;
        display: flex;
        justify-content: space-around;
        width: 100%;
        animation: fadeIn 1.5s ease-in-out;
    }

    .btn, .home_href {
        border: none;
        padding: 14px 25px;
        border-radius: 10px;
        color: #fff;
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(102, 187, 106, 0.8)); /* 渐变背景 */
        cursor: pointer;
        text-decoration: none;
        display: inline-block;
        transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        font-size: 18px;
        position: relative;
        overflow: hidden;
    }

    .btn:hover, .home_href:hover {
        background: linear-gradient(135deg, rgba(76, 175, 80, 1), rgba(102, 187, 106, 1)); /* 加深悬停时的颜色 */
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.5);
    }

    .btn:active, .home_href:active {
        transform: scale(0.95);
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.5);
    }

    .btn::after, .home_href::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 300%;
        height: 300%;
        background: rgba(255, 255, 255, 0.2);
        transition: all 0.75s;
        border-radius: 50%;
        z-index: 0;
        transform: translate(-50%, -50%) scale(0.1);
    }

    .btn:active::after, .home_href:active::after {
        transform: translate(-50%, -50%) scale(1);
    }

    .error-message {
        display: none;
        color: #d8000c;
        background-color: rgba(255, 186, 186, 0.85);
        padding: 8px;
        border-radius: 5px;
        margin-top: 8px;
        font-size: 14px;
        animation: shake 0.5s ease;
    }

    .ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        transform: scale(0);
        animation: ripple 0.6s linear;
    }

    .visible {
        opacity: 1;
        transform: none;
    }
}

/* Keyframes for animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}
