/* 进门前：「留个电话再看」——客户版封面。
   纸感 + 墨色 + 一点金，跟地图内页同一套语言，不放任何平台字样。 */
#gate {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    background: #F7F5F0;
    color: #33322E;
    font-family: "PingFang SC", "Hiragino Sans GB", -apple-system, sans-serif;
    overflow: hidden;
    transition: opacity .42s ease, visibility .42s ease;
}

#gate::after {
    /* 跟内页同一层纸纹，边界才不露 */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

#gate.gone {
    opacity: 0;
    visibility: hidden;
}

.gate-in {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: max(28px, env(safe-area-inset-top)) 32px max(24px, env(safe-area-inset-bottom));
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.gate-kicker {
    font-size: 10px;
    letter-spacing: .42em;
    color: #A39C8B;
    text-transform: uppercase;
}

.gate-title {
    margin: 26px 0 0;
    font-family: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
    font-size: clamp(30px, 8.6vw, 44px);
    line-height: 1.34;
    letter-spacing: .04em;
    color: #2C2A24;
}

.gate-title em {
    font-style: normal;
    color: #8C5B3F;
}

.gate-sub {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.9;
    color: #6E6B62;
    letter-spacing: .02em;
}

.gate-quote {
    margin: 30px 0 0;
    padding-left: 14px;
    border-left: 2px solid #D8C7A6;
    font-family: "Songti SC", "Source Han Serif SC", Georgia, serif;
    font-size: 16px;
    line-height: 1.9;
    color: #6E6B62;
    letter-spacing: .04em;
}

.gate-list {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.gate-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #F0ECE3;
}

.gate-list li:last-child {
    border-bottom: 0;
}

.gate-list b {
    flex: 0 0 52px;
    font-family: "Songti SC", Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    color: #8C5B3F;
    letter-spacing: .06em;
}

.gate-list span {
    flex: 1;
    font-size: 12px;
    line-height: 1.75;
    color: #7C786D;
}

.gate-nums {
    display: flex;
    gap: 0;
    margin: 30px 0 32px;
    border-top: 1px solid #E7E3D9;
    border-bottom: 1px solid #E7E3D9;
}

.gate-nums div {
    flex: 1;
    padding: 15px 0;
    text-align: center;
    border-right: 1px solid #E7E3D9;
}

.gate-nums div:last-child {
    border-right: 0;
}

.gate-nums b {
    display: block;
    font-family: "Songti SC", Georgia, serif;
    font-size: 23px;
    font-weight: 600;
    color: #2C2A24;
    letter-spacing: .02em;
}

.gate-nums span {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #A39C8B;
    letter-spacing: .06em;
}

.gate-form {
    margin-top: auto;
}

.gate-lab {
    display: block;
    font-size: 11px;
    letter-spacing: .18em;
    color: #A39C8B;
    margin-bottom: 10px;
}

.gate-row {
    display: flex;
    align-items: flex-end;
    border-bottom: 1.5px solid #33322E;
    padding-bottom: 9px;
}

#gatePhone,
#gateCode {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 20px;
    letter-spacing: .08em;
    color: #2C2A24;
    font-family: inherit;
    padding: 4px 0;
    -webkit-appearance: none;
}

#gateCode {
    letter-spacing: .34em;
    font-size: 22px;
}

#gatePhone::placeholder,
#gateCode::placeholder {
    color: #C6C0B0;
    letter-spacing: .04em;
    font-size: 16px;
}

.gate-btn {
    flex: 0 0 auto;
    border: 0;
    background: #33322E;
    color: #F7F5F0;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: .14em;
    padding: 11px 16px;
    border-radius: 2px;
    margin-left: 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.gate-btn:active {
    background: #8C5B3F;
}

.gate-btn[disabled] {
    background: #C9C3B4;
    cursor: default;
}

/* 第二步：验证码 */
.gate-sent {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #7C786D;
    letter-spacing: .03em;
}

.gate-sent b {
    font-weight: 600;
    color: #2C2A24;
    letter-spacing: .1em;
}

.gate-sent i {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    color: #8C5B3F;
    border-bottom: 1px solid #D8C7A6;
    cursor: pointer;
}

.gate-resend {
    margin-top: 12px;
    text-align: right;
    font-size: 11px;
}

.gate-resend i {
    font-style: normal;
    color: #8C5B3F;
    letter-spacing: .04em;
    border-bottom: 1px solid #E7E3D9;
    cursor: pointer;
}

.gate-resend i[data-off="1"] {
    color: #B3AC9C;
    border-bottom-color: transparent;
    cursor: default;
}

.gate-tip {
    min-height: 18px;
    margin-top: 10px;
    font-size: 11px;
    color: #B4553F;
    letter-spacing: .04em;
}

.gate-foot {
    margin-top: 26px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 10px;
    color: #B3AC9C;
    letter-spacing: .1em;
}

/* 第二步：去掉引文、压一点间距，正好一屏，不留大块空 */
#gate.step2 .gate-quote {
    display: none;
}

#gate.step2 .gate-list {
    margin-top: 20px;
}

#gate.step2 .gate-list li {
    padding: 8px 0;
}

#gate.step2 .gate-nums {
    margin: 18px 0 20px;
}

@media (max-height: 740px) {
    .gate-title {
        font-size: clamp(24px, 7vw, 30px);
        margin-top: 14px;
    }

    .gate-sub {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.7;
    }

    .gate-quote {
        margin-top: 14px;
        font-size: 14px;
    }

    .gate-list {
        margin-top: 16px;
    }

    .gate-list li {
        padding: 7px 0;
    }

    .gate-nums {
        margin: 14px 0 16px;
    }

    .gate-nums div {
        padding: 10px 0;
    }

    .gate-nums b {
        font-size: 19px;
    }

    .gate-foot {
        margin-top: 14px;
    }
}

.gate-foot b {
    font-family: "Songti SC", Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    color: #6E6B62;
    letter-spacing: .12em;
}
