:root {
    --orange: #e84b2c;
    --orange-dark: #cf3f23;
    --blue: #183787;
    --blue-deep: #0b1538;
    --blue-bright: #4f66f6;
    --ink: #3b3b3b;
    --body: #727a8e;
    --mist: #f7f8fb;
    --line: #e8e9ed;
    --white: #fff;
    --max: 1240px;
    --nav: 64px;
    --shadow: 0 28px 80px rgb(12 24 68 / .2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--mist);
    font-family: "Source Han Sans SC", "Noto Sans CJK SC", "思源黑体", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - 56px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1001;
    padding: 10px 16px;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
}

.skip-link:focus {
    top: 8px;
}

/* ===== Site Header ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 500;
    height: var(--nav);
    display: flex;
    align-items: center;
    gap: 42px;
    padding: 0 max(28px, calc((100vw - var(--max)) / 2));
    background: rgb(255 255 255 / .92);
    border-bottom: 1px solid rgb(0 0 0 / .045);
    backdrop-filter: blur(24px) saturate(145%);
}

.header-brand {
    flex: 0 0 auto;
}

.header-brand img {
    width: 124px;
}

.site-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 30px;
}

.site-nav a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -22px;
    height: 2px;
    background: var(--orange);
    transition: right .25s;
}

.site-nav a:hover::after {
    right: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 17px;
    border-radius: 8px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}

.btn-blue {
    background: var(--blue);
}

.btn-blue:hover {
    background: #2549a0;
}

.btn-orange {
    background: var(--orange);
}

.btn-orange:hover {
    background: var(--orange-dark);
}

.btn-orange.active {
    box-shadow: 0 8px 20px rgb(232 75 44 / .22);
}

.menu-toggle {
    display: none;
}

/* ===== Main ===== */
main {
    padding-top: var(--nav);
}

/* ===== Contact Hero ===== */
.contact-hero {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    padding: 96px 0;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #09132f 0%, #12285f 52%, #183787 100%);
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 18% 78%, rgb(79 102 246 / .2), transparent 32%),
        radial-gradient(circle at 78% 24%, rgb(42 173 231 / .16), transparent 28%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .25;
    background-image:
        linear-gradient(rgb(255 255 255 / .08) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000, transparent 52%, #000);
}

.aurora {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(1px);
    opacity: .78;
    transform: rotate(-18deg);
}

.aurora::after {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid rgb(255 255 255 / .18);
    border-radius: inherit;
}

.aurora-one {
    width: 680px;
    height: 180px;
    left: -160px;
    bottom: 70px;
    background: linear-gradient(90deg, rgb(79 102 246 / .05), rgb(79 102 246 / .62), rgb(36 178 220 / .35));
    box-shadow: 0 0 90px rgb(79 102 246 / .3);
}

.aurora-two {
    width: 620px;
    height: 150px;
    right: -120px;
    top: 80px;
    background: linear-gradient(90deg, rgb(232 75 44 / .12), rgb(99 76 234 / .58), rgb(36 178 220 / .2));
    box-shadow: 0 0 100px rgb(99 76 234 / .28);
}

/* ===== Contact Layout ===== */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
    align-items: center;
    gap: 88px;
}

.contact-copy {
    padding: 30px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    color: #aabaff;
    font-size: 16px;
    font-weight: 700;
}

.section-label::before {
    content: "";
    width: 44px;
    height: 2px;
    background: var(--orange);
}

.contact-copy h1 {
    margin: 0;
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -2px;
}

.hero-description {
    margin: 28px 0 0;
    color: rgb(255 255 255 / .78);
    font-size: 22px;
    line-height: 1.65;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: #fff;
    font-weight: 600;
}

.hero-note span {
    width: 9px;
    height: 9px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgb(232 75 44 / .16);
}

.service-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 52px;
    border-top: 1px solid rgb(255 255 255 / .16);
    border-bottom: 1px solid rgb(255 255 255 / .16);
}

.service-points div {
    padding: 20px 0;
}

.service-points div+div {
    padding-left: 24px;
    border-left: 1px solid rgb(255 255 255 / .16);
}

.service-points b {
    display: block;
    color: #748cff;
    font-size: 12px;
    letter-spacing: .12em;
}

.service-points span {
    font-size: 14px;
}

/* ===== Form Shell ===== */
.form-shell {
    position: relative;
    padding: 46px 50px 50px;
    color: var(--ink);
    background: rgb(255 255 255 / .97);
    border: 1px solid rgb(255 255 255 / .9);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.form-shell::before {
    content: "";
    position: absolute;
    left: 50px;
    right: 50px;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--blue-bright));
    border-radius: 0 0 3px 3px;
}

.form-heading p {
    margin: 0 0 5px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}

.form-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.35;
}

.form-heading span {
    display: block;
    margin-top: 10px;
    color: var(--body);
    font-size: 14px;
}

.trial-form {
    margin-top: 32px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
}

.field {
    display: block;
}

.field>span:first-child {
    display: block;
    margin-bottom: 8px;
    color: #4e5566;
    font-size: 14px;
    font-weight: 600;
}

.field i {
    color: var(--orange);
    font-style: normal;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    color: var(--ink);
    background: #f8f9fc;
    border: 1px solid #e3e6ee;
    border-radius: 9px;
    outline: 0;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input::placeholder {
    color: #adb3c2;
}

.field input:hover {
    border-color: #c3cae0;
}

.field input:focus {
    background: #fff;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 4px rgb(79 102 246 / .1);
}

.field input[aria-invalid="true"] {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgb(232 75 44 / .08);
}

.captcha-field {
    grid-column: 1 / -1;
}

.captcha-control {
    display: grid;
    grid-template-columns: 1fr 128px;
    gap: 10px;
}

.captcha-refresh {
    height: 48px;
    padding: 0;
    overflow: hidden;
    background: #eef1f8;
    border: 1px solid #e3e6ee;
    border-radius: 9px;
    cursor: pointer;
}

.captcha-refresh img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.captcha-refresh:focus-visible,
.submit-button:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid rgb(79 102 246 / .35);
    outline-offset: 3px;
}

.form-status {
    min-height: 24px;
    margin: 12px 0 6px;
    color: var(--orange);
    font-size: 13px;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 52px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), #f06447);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 14px 30px rgb(232 75 44 / .24);
    cursor: pointer;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.submit-button:hover {
    background: linear-gradient(90deg, var(--orange-dark), var(--orange));
    box-shadow: 0 18px 34px rgb(232 75 44 / .3);
    transform: translateY(-2px);
}

.submit-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Site Footer ===== */
.site-footer {
    padding: 64px 0 0;
    color: rgb(255 255 255 / .68);
    background: #0b0e15;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 34px;
    padding-bottom: 48px;
}

.footer-brand img {
    width: 180px;
}

.footer-brand p {
    max-width: 240px;
    margin: 20px 0 0;
    font-size: 14px;
}

.site-footer h3 {
    margin: 0 0 17px;
    color: #fff;
    font-size: 15px;
}

.site-footer a {
    display: block;
    margin: 0 0 10px;
    font-size: 13px;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgb(255 255 255 / .1);
    font-size: 12px;
}

.footer-bottom a:last-child {
    margin-left: auto;
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ===== Responsive: 1120px ===== */
@media (max-width: 1120px) {
    .site-header {
        gap: 24px;
    }

    .site-nav {
        gap: 18px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .header-actions .btn {
        padding: 0 12px;
    }

    .contact-layout {
        grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
        gap: 44px;
    }

    .form-shell {
        padding-inline: 38px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }

    .footer-grid>div:nth-child(n+5) {
        margin-top: 10px;
    }
}

/* ===== Responsive: 900px ===== */
@media (max-width: 900px) {
    .container {
        width: min(var(--max), calc(100% - 40px));
    }

    .site-header {
        padding-inline: 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-left: auto;
        padding: 8px;
        border: 0;
        background: transparent;
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
        background: var(--ink);
    }

    .site-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--nav);
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 12px 20px 24px;
        background: rgb(255 255 255 / .98);
        box-shadow: 0 22px 40px rgb(20 30 60 / .1);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 4px;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a::after {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .contact-hero {
        padding: 72px 0 80px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-copy {
        max-width: 680px;
        padding: 0;
    }

    .contact-copy h1 br {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ===== Responsive: 600px ===== */
@media (max-width: 600px) {
    .container {
        width: calc(100% - 32px);
    }

    .contact-hero {
        min-height: 0;
        padding: 58px 0 64px;
    }

    .contact-copy h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 18px;
    }

    .service-points {
        margin-top: 38px;
    }

    .service-points div {
        padding: 16px 0;
    }

    .service-points div+div {
        padding-left: 12px;
    }

    .service-points span {
        font-size: 12px;
    }

    .form-shell {
        padding: 38px 22px 28px;
        border-radius: 20px;
    }

    .form-shell::before {
        left: 22px;
        right: 22px;
    }

    .form-heading h2 {
        font-size: 28px;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .captcha-field {
        grid-column: auto;
    }

    .captcha-control {
        grid-template-columns: minmax(0, 1fr) 116px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }

    .footer-bottom a:last-child {
        margin-left: 0;
    }

    .email-field {
        grid-column: auto;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ===== Captcha ===== */
.captcha-refresh {
    position: relative;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
}

.captcha-refresh span {
    display: none;
}

.captcha-refresh img {
    position: absolute;
    inset: 0;
}

.captcha-refresh.is-fallback span {
    display: inline;
}

.captcha-refresh.is-fallback img {
    display: none;
}

.email-field {
    grid-column: 1 / -1;
}