body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    cursor: url(https://xn--boqy28c.cn/img/21.jpg), auto;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header, .about, .quotes, .fun-facts, .footer {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out;
}

.header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3em;
    margin-bottom: 10px;
    color: #333;
}

.header .subtitle {
    font-size: 1.2em;
    margin: 0;
    padding: 0 10%;
}

.from {
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px; /* 添加的间距 */
    animation: fadeIn 2s ease-in;
}

.bgc {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
    animation: zoomInOut 20s infinite alternate;
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.submit {
    z-index: 9;
    width: 50%; /* 调整宽度 */
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    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;
}

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

.left-section, .right-section {
    width: 30%; /* 增大宽度 */
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: 'Great Vibes', cursive;
    animation: popIn 0.5s ease-in-out;
}

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

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

.form_input {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

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

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

.inputs {
    width: 100%; /* 增加文本框宽度 */
    margin: 12px 0;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: rgba(248, 248, 248, 0.85);
    transition: all 0.3s ease;
    font-size: 16px;
    animation: fadeIn 1.2s ease-in-out;
}

.inputs:focus {
    outline: none;
    border-color: #23a6d5;
    background-color: rgba(238, 249, 254, 0.85);
    box-shadow: 0 0 10px rgba(35, 166, 213, 0.5);
}

.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: rgba(35, 166, 213, 0.85);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 18px;
    overflow: hidden;
    position: relative;
}

.btn:hover,
.home_href:hover {
    background: rgba(25, 119, 169, 0.85);
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(25, 119, 169, 0.5);
}

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

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

.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;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
}

.form_input label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #444;
    transition: color 0.3s ease;
}

.form_input label::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #23a6d5;
    transition: width 0.3s ease;
}

.form_input label:hover {
    color: #23a6d5;
}

.form_input label:hover::after {
    width: 100%;
}

.inputs::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.inputs:focus::placeholder {
    color: rgba(35, 166, 213, 0.85);
}

.about, .quotes, .fun-facts {
    max-width: 800px;
    margin: 20px auto;
}

.about h2, .quotes h2, .fun-facts h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
}

.about p, .fun-facts ul, .quotes blockquote {
    font-size: 1.2em;
    color: #666;
}

.fun-facts ul {
    list-style: none;
    padding: 0;
}

.fun-facts li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.fun-facts li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
}

.quotes blockquote {
    font-style: italic;
    background: rgba(35, 166, 213, 0.1);
    padding: 10px 20px;
    border-left: 5px solid rgba(35, 166, 213, 0.85);
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quotes blockquote:hover {
    background: rgba(35, 166, 213, 0.2);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer {
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
}

.footer p {
    margin: 5px 0;
    display: inline-block;
}

.footer a {
    color: #23a6d5;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.footer a:hover {
    color: #e73c7e;
}

@media (max-width: 600px) {
    .submit, .left-section, .right-section {
        width: 100%;
        border-radius: 0;
        padding: 20px;
    }

    .form_input label {
        font-size: 16px;
    }

    .inputs {
        font-size: 14px;
        padding: 10px;
    }

    .btn,
    .home_href {
        font-size: 16px;
        padding: 10px 15px;
    }

    .header h1 {
        font-size: 2em;
    }

    .header p, .about p, .fun-facts ul, .quotes blockquote {
        font-size: 1em;
    }

    .about h2, .quotes h2, .fun-facts h2 {
        font-size: 1.5em;
    }

    .footer p {
        display: block;
        margin: 10px 0;
    }
}

.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}
