*{
    padding: 0px;
    margin: 0px;
}
#app{
    display: flex;
    height: 100vh;
    background-color:#f0f0f0;
    justify-content: center;
    align-items: center;
}

/* 超大屏幕 (> 1400px) */
@media screen and (min-width: 1400px){
    .func{
        width: 500px;
        height: 280px;
        margin: auto;    
        border-radius: 12px;
        background-color: rgb(57, 134, 211);
        padding: 30px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .func > div:not(.bot):not(:last-child) {
        width: 92%;
        margin-bottom: 20px;
    }
    input{
        width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        height: 32px;
        border: none;
        border-radius: 4px;
        background-color: #f0f0f0;
        padding: 0 10px;
        box-sizing: border-box;
    }
    span{
        font-size: 16px;
        color: #333;
        margin-bottom: 8px;
        display: block;
    }
    h1{
        text-align: center;
        margin-bottom: 30px;
        color: #f0f0f0;
        font-size: 26px;
    }    
    button{
        padding: 8px 0px;
        width: 92%;
        margin-left: 0;
        background-color: rgb(63, 91, 245);
        border: none;
        border-radius: 6px;
        color: #f0f0f0;
        font-size: 16px;
    }
    button:hover{
        background-color: royalblue;
    }
    .bot{
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* 大屏幕 (1200px - 1399px) */
@media screen and (min-width: 1200px) and (max-width: 1399px){
    .func{
        width: 440px;
        height: 260px;
        margin: auto;    
        border-radius: 10px;
        background-color: rgb(57, 134, 211);
        padding: 25px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .func > div:not(.bot):not(:last-child) {
        width: 90%;
        margin-bottom: 16px;
    }
    input{
        width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        height: 28px;
        border: none;
        border-radius: 3px;
        background-color:#f0f0f0;
        padding: 0 10px;
        box-sizing: border-box;    
    }
    span{
        font-size: 15px;
        color: #333;
        margin-bottom: 8px;
        display: block;
    }
    h1{
        text-align: center;
        margin-bottom: 26px;
        color: #f0f0f0;
        font-size: 22px;
    }    
    button{
        padding: 6px 0px;
        width: 90%;
        margin-left: 0;
        background-color: rgb(63, 91, 245);
        border: none;
        border-radius: 5px;
        color: #f0f0f0;
        font-size: 15px;
    }
    button:hover{
        background-color: royalblue;
    }
    .bot{
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

/* 中等屏幕 (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px){
    .func{
        width: 380px;
        height: 240px;
        margin: auto;    
        border-radius: 10px;
        background-color: rgb(57, 134, 211);
        padding: 22px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .func > div:not(.bot):not(:last-child) {
        width: 88%;
        margin-bottom: 16px;
    }
    input{
        width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        height: 26px;
        border: none;
        border-radius: 3px;
        background-color:#f0f0f0;
        padding: 0 10px;
        box-sizing: border-box;    
    }
    span{
        font-size: 14px;
        color: #333;
        margin-bottom: 6px;
        display: block;
    }
    h1{
        font-size: 20px;
        text-align: center;
        margin-bottom: 20px;
        color: #f0f0f0;
    }    
    button{
        font-size: 14px;
        padding: 6px 0px;
        width: 88%;
        margin-left: 0;
        height: 30px;
        background-color: rgb(63, 91, 245);
        border: none;
        border-radius: 5px;
        color: #f0f0f0;        
    }
    button:hover{
        background-color: royalblue;
    }
    .bot{
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 6px;
    }
}

/* 小屏幕/平板 (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px){
    #app{
        padding: 15px;
        box-sizing: border-box;
    }
    .func{
        width: 100%;
        max-width: 420px;
        margin: auto;    
        border-radius: 14px;
        background-color: rgb(57, 134, 211);
        padding: 20px 24px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
    }
    .func > div:not(.bot):not(:last-child) {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
    input{
        width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        height: 48px;
        border: none;
        border-radius: 10px;
        background-color: #ffffff;
        padding: 0 16px;
        font-size: 16px;
        box-sizing: border-box;
    }
    input::placeholder {
        color: #999;
    }
    span{
        font-size: 15px;
        color: #ffffff;
        font-weight: 500;
        margin-bottom: 8px;
    }
    h1{
        font-size: 24px;
        text-align: center;
        margin-bottom: 20px;
        color: #f0f0f0;
        font-weight: 600;
    }    
    button{
        font-size: 17px;
        padding: 0;
        width: 100%;
        margin-left: 0;
        height: 48px;
        background-color: rgb(63, 91, 245);
        border: none;
        border-radius: 10px;
        color: #f0f0f0;        
        font-weight: 500;
    }
    button:hover, button:active{
        background-color: royalblue;
        opacity: 0.9;
    }
    .bot{
        display: flex;
        justify-content: center;
        margin-top: 12px;
    }
}

/* 手机横屏 (576px - 767px) */
@media screen and (min-width: 576px) and (max-width: 767px){
    #app{
        padding: 15px;
        box-sizing: border-box;
    }
    .func{
        width: 100%;
        max-width: 400px;
        margin: auto;    
        border-radius: 14px;
        background-color: rgb(57, 134, 211);
        padding: 18px 20px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
    }
    .func > div:not(.bot):not(:last-child) {
        display: flex;
        flex-direction: column;
        margin-bottom: 8px;
    }
    input{
        width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        height: 46px;
        border: none;
        border-radius: 8px;
        background-color: #ffffff;
        padding: 0 14px;
        font-size: 15px;
        box-sizing: border-box;
    }
    input::placeholder {
        color: #999;
    }
    span{
        font-size: 14px;
        color: #ffffff;
        font-weight: 500;
        margin-bottom: 8px;
    }
    h1{
        font-size: 22px;
        text-align: center;
        margin-bottom: 18px;
        color: #f0f0f0;
        font-weight: 600;
    }    
    button{
        font-size: 16px;
        padding: 0;
        width: 100%;
        margin-left: 0;
        height: 46px;
        background-color: rgb(63, 91, 245);
        border: none;
        border-radius: 8px;
        color: #f0f0f0;        
        font-weight: 500;
    }
    button:hover, button:active{
        background-color: royalblue;
        opacity: 0.9;
    }
    .bot{
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}

/* 手机竖屏 (< 576px) */
@media screen and (max-width: 575px){
    #app{
        padding: 12px;
        box-sizing: border-box;
    }
    .func{
        width: 100%;
        max-width: 100%;
        margin: auto;    
        border-radius: 12px;
        background-color: rgb(57, 134, 211);
        padding: 16px 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
    }
    .func > div:not(.bot):not(:last-child) {
        display: flex;
        flex-direction: column;
        margin-bottom: 6px;
    }
    input{
        width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        height: 44px;
        border: none;
        border-radius: 8px;
        background-color: #ffffff;
        padding: 0 12px;
        font-size: 14px;
        box-sizing: border-box;
    }
    input::placeholder {
        color: #999;
    }
    span{
        font-size: 13px;
        color: #ffffff;
        font-weight: 500;
        margin-bottom: 6px;
    }
    h1{
        font-size: 20px;
        text-align: center;
        margin-bottom: 16px;
        color: #f0f0f0;
        font-weight: 600;
    }    
    button{
        font-size: 15px;
        padding: 0;
        width: 100%;
        margin-left: 0;
        height: 44px;
        background-color: rgb(63, 91, 245);
        border: none;
        border-radius: 8px;
        color: #f0f0f0;        
        font-weight: 500;
    }
    button:hover, button:active{
        background-color: royalblue;
        opacity: 0.9;
    }
    .bot{
        display: flex;
        justify-content: center;
        margin-top: 8px;
    }
}

/* 消息提示样式 */
.message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
}
