:root {
    --hm-navy: #172858;
    --hm-blue: #245ca4;
    --hm-ink: #1c2d51;
    --hm-text: #69758a;
    --hm-soft: #eef3fb;
    --hm-line: rgba(28, 45, 81, .12);
}

.home-message-section,
.home-message-section * { box-sizing: border-box; }

.home-message-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(90px, 8vw, 150px) 0 clamp(95px, 9vw, 165px);
    color: var(--hm-ink);
    background:
        radial-gradient(circle at 8% 88%, rgba(58, 105, 170, .08), transparent 27%),
        linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.home-message-section::before,
.home-message-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.home-message-section::before {
    top: -230px;
    right: -250px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(36, 92, 164, .08);
    box-shadow: 0 0 0 55px rgba(36, 92, 164, .018), 0 0 0 110px rgba(36, 92, 164, .012);
}

.home-message-section::after {
    left: -85px;
    bottom: 90px;
    width: 170px;
    height: 170px;
    background: linear-gradient(145deg, rgba(36, 92, 164, .08), rgba(36, 92, 164, 0));
}

.home-message-container {
    width: min(88vw, 1560px);
    margin: 0 auto;
}

.home-message-heading {
    position: relative;
    width: min(100%, 980px);
    margin: 0 auto clamp(58px, 6vw, 92px);
    text-align: center;
}

.home-message-word {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    color: rgba(28, 45, 81, .055);
    font: 400 clamp(74px, 9vw, 150px)/.8 Georgia, "Times New Roman", serif;
    letter-spacing: -.07em;
    white-space: nowrap;
    transform: translate(-50%, -58%);
    pointer-events: none;
}

.home-message-kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--hm-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .28em;
}

.home-message-heading h2 {
    margin: 0;
    color: var(--hm-ink);
    font: 600 clamp(30px, 2.8vw, 46px)/1.25 "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
    letter-spacing: .04em;
}

.home-message-heading > i {
    display: block;
    width: 92px;
    height: 2px;
    margin: 22px auto 18px;
    background: linear-gradient(90deg, transparent, rgba(28, 45, 81, .32), transparent);
}

.home-message-heading > p {
    margin: 0;
    color: #9099a8;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: .04em;
}

.home-message-layout {
    display: grid;
    grid-template-columns: minmax(360px, .83fr) minmax(520px, 1.17fr);
    gap: clamp(55px, 8vw, 135px);
    align-items: stretch;
}

.home-message-contact {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--hm-navy) 0 39%, #e9eff9 39% 100%);
    box-shadow: 0 24px 65px rgba(32, 59, 100, .09);
}

.home-message-contact::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 39%;
    opacity: .48;
    background:
        linear-gradient(145deg, transparent 14%, rgba(255,255,255,.035) 14% 35%, transparent 35%),
        linear-gradient(30deg, transparent 34%, rgba(255,255,255,.04) 34% 58%, transparent 58%),
        linear-gradient(120deg, transparent 48%, rgba(255,255,255,.03) 48% 72%, transparent 72%);
}

.home-message-contact::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(36, 92, 164, .1);
    border-radius: 50%;
}

.home-message-contact-top {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 54px clamp(35px, 5vw, 70px) 0;
    color: #fff;
}

.home-message-contact-top span {
    font: 400 clamp(21px, 2vw, 30px)/1.3 Georgia, "Times New Roman", serif;
    letter-spacing: .01em;
    opacity: .95;
}

.home-message-contact-top strong {
    margin-top: 6px;
    font-size: clamp(28px, 2.5vw, 39px);
    font-weight: 400;
    letter-spacing: .08em;
}

.home-message-contact-card {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(64%, 330px);
    min-height: 300px;
    margin: 28px 0 0 clamp(30px, 7vw, 80px);
    padding: 34px 24px;
    border-radius: 12px;
    color: var(--hm-navy);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 50px rgba(33, 58, 101, .12);
    transition: transform .4s cubic-bezier(.2, .75, .25, 1), box-shadow .4s ease;
}

.home-message-contact-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 58px rgba(33, 58, 101, .17);
}

.home-message-contact-card > span {
    font-size: 17px;
    letter-spacing: .08em;
}

.home-message-contact-card > a {
    margin-top: 8px;
    color: var(--hm-navy);
    font: italic 400 clamp(23px, 2vw, 31px)/1.3 Georgia, "Times New Roman", serif;
    white-space: nowrap;
}

.home-message-contact-card svg {
    width: 72px;
    height: 72px;
    margin: 20px 0 15px;
    color: var(--hm-navy);
}

.home-message-contact-card small {
    color: #8b96a8;
    font-size: 11px;
    line-height: 1.6;
}

.home-message-contact-note {
    position: absolute;
    z-index: 2;
    right: 34px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #7d8ca3;
}

.home-message-contact-note b {
    color: rgba(36, 92, 164, .35);
    font: 400 32px/1 Georgia, serif;
}

.home-message-contact-note span {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: .05em;
}

.home-message-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 15px 0;
}

.home-message-form-heading {
    margin-bottom: 32px;
    text-align: center;
}

.home-message-form-heading > span {
    color: var(--hm-ink);
    font-size: clamp(23px, 2vw, 31px);
    font-weight: 400;
    letter-spacing: .04em;
}

.home-message-form-heading > i {
    display: block;
    width: 74px;
    height: 2px;
    margin: 16px auto 17px;
    background: rgba(28, 45, 81, .18);
}

.home-message-form-heading > p {
    margin: 0;
    color: #929baa;
    font-size: 13px;
    line-height: 1.8;
}

.home-message-form {
    display: grid;
    gap: 18px;
    width: 100%;
    margin: 0;
}

.home-message-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin: 0;
}

.home-message-field > span:first-child {
    color: #48536a;
    font-size: 15px;
    text-align: right;
    letter-spacing: .04em;
}

.home-message-field em {
    margin-left: 4px;
    color: #cf5656;
    font-style: normal;
}

.home-message-form input,
.home-message-form textarea {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    outline: 0;
    color: var(--hm-ink);
    background: var(--hm-soft);
    box-shadow: none;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.home-message-form input {
    height: 58px;
    padding: 0 20px;
}

.home-message-form textarea {
    min-height: 116px;
    padding: 17px 20px;
    line-height: 1.75;
    resize: vertical;
}

.home-message-form input::placeholder,
.home-message-form textarea::placeholder { color: #9aa5b7; }

.home-message-form input:focus,
.home-message-form textarea:focus {
    border-color: rgba(36, 92, 164, .35);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 92, 164, .07);
}

.home-message-field--textarea { align-items: start; }
.home-message-field--textarea > span:first-child { padding-top: 17px; }

.home-message-code-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    min-width: 0;
}

.home-message-code-control img {
    display: block;
    width: 132px;
    height: 58px;
    border-radius: 9px;
    object-fit: cover;
    background: #fff;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--hm-line);
}

.home-message-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: min(100%, 300px);
    height: 58px;
    margin: 8px auto 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--hm-navy), #213b78);
    box-shadow: 0 14px 30px rgba(23, 40, 88, .17);
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.home-message-submit i {
    font-size: 20px;
    font-style: normal;
    transition: transform .3s ease;
}

.home-message-submit:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1d3978, #2b5799);
    box-shadow: 0 19px 38px rgba(23, 40, 88, .22);
}

.home-message-submit:hover i { transform: translateX(5px); }

@media (min-width: 1800px) {
    .home-message-container { width: min(90vw, 1720px); }
    .home-message-layout { grid-template-columns: minmax(460px, .85fr) minmax(650px, 1.15fr); }
    .home-message-contact { min-height: 630px; }
    .home-message-field { grid-template-columns: 130px minmax(0, 1fr); }
}

@media (max-width: 1100px) {
    .home-message-container { width: min(92vw, 960px); }
    .home-message-layout { grid-template-columns: minmax(330px, .85fr) minmax(450px, 1.15fr); gap: 45px; }
    .home-message-contact { min-height: 570px; }
    .home-message-contact-card { width: min(70%, 310px); margin-left: 35px; }
    .home-message-field { grid-template-columns: 90px minmax(0, 1fr); gap: 15px; }
}

@media (max-width: 900px) {
    .home-message-section { padding: 80px 0 95px; }
    .home-message-word { font-size: clamp(62px, 15vw, 105px); }
    .home-message-heading { margin-bottom: 55px; }
    .home-message-heading > p { font-size: 14px; }
    .home-message-layout { grid-template-columns: 1fr; gap: 55px; width: min(100%, 720px); margin: 0 auto; }
    .home-message-contact { min-height: 545px; }
    .home-message-contact-card { width: min(58%, 320px); }
    .home-message-form-panel { padding: 0; }
}

@media (max-width: 600px) {
    .home-message-container { width: calc(100% - 32px); }
    .home-message-section { padding: 68px 0 78px; }
    .home-message-word { top: 35%; font-size: 18vw; }
    .home-message-kicker { margin-bottom: 10px; }
    .home-message-heading h2 { font-size: 28px; }
    .home-message-heading > i { margin-top: 17px; }
    .home-message-heading > p { padding: 0 5px; font-size: 13px; line-height: 1.8; }
    .home-message-layout { gap: 45px; }
    .home-message-contact { min-height: 500px; border-radius: 5px; background: linear-gradient(180deg, var(--hm-navy) 0 38%, #e9eff9 38% 100%); }
    .home-message-contact::before { height: 38%; }
    .home-message-contact-top { padding: 38px 25px 0; }
    .home-message-contact-top span { font-size: 20px; }
    .home-message-contact-top strong { font-size: 27px; }
    .home-message-contact-card { width: calc(100% - 70px); min-height: 270px; margin: 24px auto 0; }
    .home-message-contact-card > a { font-size: 24px; white-space: normal; text-align: center; }
    .home-message-contact-card svg { width: 62px; height: 62px; margin: 16px 0 12px; }
    .home-message-contact-note { display: none; }
    .home-message-form-heading { margin-bottom: 26px; }
    .home-message-form-heading > span { font-size: 22px; }
    .home-message-form-heading > p { padding: 0 8px; }
    .home-message-form { gap: 15px; }
    .home-message-field { display: block; }
    .home-message-field > span:first-child { display: block; margin-bottom: 8px; text-align: left; }
    .home-message-field--textarea > span:first-child { padding-top: 0; }
    .home-message-form input { height: 54px; }
    .home-message-form textarea { min-height: 120px; }
    .home-message-code-control { grid-template-columns: minmax(0, 1fr) 112px; gap: 9px; }
    .home-message-code-control img { width: 112px; height: 54px; }
    .home-message-submit { width: 100%; margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-message-contact-card,
    .home-message-submit,
    .home-message-submit i { transition: none !important; }
}
