/* ============================================
   表单组件样式 - Form
   继承 .footer 块下的 BEM 元素命名：.footer__form-*
   应用于底部留言表单
   ============================================ */

/* --------------------------------------------
   表单容器与标题
   -------------------------------------------- */
.footer__form {
    flex: 1;
    max-width: 600px;
}

.footer__form-title {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 8px;
    position: relative;
    padding-bottom: 10px;
}

/* 标题下方的黄色装饰线 */
.footer__form-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--header-color-accent-2, #fcbc04);
}

/* --------------------------------------------
   表单行与输入控件
   -------------------------------------------- */
.footer__form-body {
    margin-top: 20px;
}

.footer__form-row {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.footer__form-row--full {
    display: block;
}

.footer__form-input,
.footer__form-textarea {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    border: none;
    border-radius: 19px;
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
    padding: 0 18px;
    outline: none;
    font-family: inherit;
    transition: box-shadow 0.2s ease;
}

.footer__form-textarea {
    height: auto;
    min-height: 76px;
    border-radius: 12px;
    padding: 12px 18px;
    resize: vertical;
    line-height: 1.5;
}

.footer__form-input::placeholder,
.footer__form-textarea::placeholder {
    color: #999;
}

.footer__form-input:focus,
.footer__form-textarea:focus {
    box-shadow: 0 0 0 2px var(--header-color-accent-2, #fcbc04);
}

/* --------------------------------------------
   提交按钮
   -------------------------------------------- */
.footer__form-submit {
    display: inline-block;
    min-width: 90px;
    height: 36px;
    padding: 0 28px;
    border: none;
    border-radius: 18px;
    background-color: var(--header-color-accent-2, #fcbc04);
    color: #ffffff;
    font-size: var(--header-font-size-base);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.footer__form-submit:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}

.footer__form-submit:active {
    transform: translateY(0);
}

/* ============================================
   响应式适配
   ============================================ */

/* 中屏桌面 */
@media (max-width: 1279px) {
    .footer__form {
        max-width: 540px;
    }
}

/* 平板 */
@media (max-width: 1023px) {

    .footer__info,
    .footer__form {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .footer__form-body {
        margin-top: 16px;
    }

    .footer__form-row {
        gap: 20px;
    }
}

/* 大屏手机 / 平板竖屏 */
@media (max-width: 767px) {
    .footer__form-title {
        font-size: 20px;
        margin-bottom: 6px;
        padding-bottom: 8px;
    }

    .footer__form-body {
        margin-top: 14px;
    }

    .footer__form-row {
        gap: 14px;
        margin-bottom: 14px;
    }

    .footer__form-input {
        height: 35px;
        font-size: 15px;
    }

    .footer__form-textarea {
        min-height: 90px;
        font-size: 15px;
    }

    .footer__form-submit {
        width: 100%;
        height: 44px;
        font-size: 15px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .footer__form-title {
        font-size: 18px;
    }

    .footer__form-input,
    .footer__form-textarea {
        font-size: 14px;
        border-radius: 16px;
    }

    .footer__form-textarea {
        border-radius: 10px;
    }

    .footer__form-submit {
        border-radius: 22px;
    }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
    .footer__form-submit {
        transition: none;
    }

    .footer__form-submit:hover {
        transform: none;
    }
}