/* 首页联系卡（2026-10-25）
   取代原来的 /contact.html 联系客服子页面。 */
.contact-hub {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 36px;
    margin: 8px 0 76px;
    padding: 44px 48px;
    border: 1px solid #e6e7ee;
    border-radius: 32px;
    background:
        radial-gradient(520px 260px at 88% 8%, rgba(213, 218, 235, .55), transparent 62%),
        linear-gradient(135deg, #f8f9fc, #f2f4f9 58%, #f7f6f2);
    scroll-margin-top: 90px;
}
.contact-hub-copy .eyebrow { margin-bottom: 14px; color: #8a8a8a; }
.contact-hub-copy h2 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -.045em;
}
.contact-hub-text {
    max-width: 430px;
    margin: 16px 0 0;
    color: #6f6f6f;
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-line;
}
.contact-hub-text:empty { display: none; }

.contact-hub-panel {
    padding: 10px 24px 14px;
    border: 1px solid #e7e7e7;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(31, 36, 48, .07);
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #efeff2;
}
.contact-method[hidden] { display: none; }
.contact-method:last-of-type { border-bottom: 0; }
.contact-method-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: #f3f4f7;
    color: #1f2430;
}
.contact-method-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-method-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}
.contact-method-copy small {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
.contact-method-copy strong {
    overflow-wrap: anywhere;
    color: #1f2430;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}
.contact-copy {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #e3e3e8;
    border-radius: 10px;
    background: #fff;
    color: #1f2430;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s;
}
.contact-copy:hover { background: #f4f5f7; }
.contact-copy.is-done {
    border-color: #1f2430;
    background: #1f2430;
    color: #fff;
}
.contact-hub-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #efeff2;
}
.contact-hub-foot > span {
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.6;
}
.contact-hub-foot a {
    color: #1f2430;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-qr-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #e3e3e8;
    border-radius: 10px;
    background: #fff;
    color: #1f2430;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s;
}
.contact-qr-button:hover { background: #f4f5f7; }
.contact-qr-button[hidden] { display: none; }
.contact-qr-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-qr-dialog {
    width: min(520px, calc(100vw - 32px));
    max-width: none;
    padding: 14px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(16, 20, 28, .28);
}
.contact-qr-dialog::backdrop {
    background: rgba(16, 20, 28, .55);
    backdrop-filter: blur(4px);
}
.contact-qr-dialog img {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}
.contact-qr-dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1f2430;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    cursor: pointer;
}

@media (max-width: 920px) {
    .contact-hub {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 54px;
        padding: 32px 28px;
        border-radius: 26px;
    }
    .contact-hub-text { max-width: none; }
}
@media (max-width: 620px) {
    .contact-hub {
        margin: 2px 0 40px;
        padding: 24px 18px;
        border-radius: 22px;
        scroll-margin-top: 76px;
    }
    .contact-hub-copy h2 { font-size: 29px; }
    .contact-hub-text { margin-top: 12px; font-size: 13px; line-height: 1.75; }
    .contact-hub-panel { padding: 6px 16px 12px; border-radius: 18px; }
    .contact-method { gap: 11px; padding: 14px 0; }
    .contact-method-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
    .contact-method-icon svg { width: 19px; height: 19px; }
    .contact-method-copy strong { font-size: 16.5px; }
    .contact-copy { min-height: 32px; padding: 0 11px; font-size: 11px; }
    .contact-hub-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
    .contact-qr-button { width: 100%; justify-content: center; }
}

/* 客服排班卡片（2026-10-25） */
.contact-schedule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 12px;
    color: #7d90a6;
    font-size: 12px;
}
.contact-schedule strong { color: #4b637a; font-size: 12px; font-weight: 800; }
.contact-schedule-title { margin: 0; color: #22374d; font-size: 20px; font-weight: 900; letter-spacing: -.03em; line-height: 1.2; }
.contact-staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-staff {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 84px;
    padding: 14px;
    border: 1px solid #dfe9f4;
    border-radius: 15px;
    background: linear-gradient(135deg, #eef7ff, #f7fbff);
    color: #22374d;
    text-align: left;
    cursor: pointer;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.contact-staff:hover { transform: translateY(-1px); border-color: #cfe1f2; box-shadow: 0 8px 20px rgba(37, 64, 95, .06); }
.contact-staff:disabled { cursor: default; }
.contact-staff:disabled:hover { transform: none; border-color: #dfe9f4; box-shadow: none; }
.contact-staff.is-on { border-color: #e2e1f4; background: linear-gradient(135deg, #eef4ff, #f8f5ff); }
.contact-staff-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; color: #5b83a6; background: rgba(255, 255, 255, .72); }
.contact-staff-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-staff-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.contact-staff-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.contact-staff-top strong { overflow: hidden; color: #4b637a; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.contact-staff-status { display: inline-flex; align-items: center; gap: 4px; color: #9aa7b8; font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.contact-staff-status::before { width: 5px; height: 5px; border-radius: 50%; background: #b9c4d2; content: ''; }
.contact-staff-status.is-on { color: #2c9a78; }
.contact-staff-status.is-on::before { background: #42b88e; box-shadow: 0 0 0 3px rgba(66, 184, 142, .14); }
.contact-staff-name { overflow: hidden; color: #22374d; font-size: 15px; font-weight: 800; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.contact-staff-shift { color: #7d90a6; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.contact-chevron { margin-left: auto; color: #a7bacd; font-size: 20px; line-height: 1; }
.contact-payment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #dfe9f4;
    border-radius: 14px;
    background: #f7fbff;
    color: #22374d;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s, border-color .18s;
}
.contact-payment-row:hover { border-color: #cfe1f2; background: #f1f8ff; }
.contact-payment-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; color: #5b83a6; }
.contact-payment-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-payment-label { flex: 1; min-width: 0; }
.contact-footnote { margin: 12px 4px 0; color: #8a9bb0; font-size: 11px; line-height: 1.6; }
.contact-footnote[hidden] { display: none; }

@media (max-width: 620px) {
    .contact-schedule { align-items: flex-start; flex-direction: column; gap: 4px; padding-bottom: 10px; }
    .contact-staff-grid { grid-template-columns: 1fr; }
    .contact-staff { min-height: 80px; padding: 13px; }
    .contact-staff-name { font-size: 14.5px; }
}

/* 付款与联系弹层（2026-10-25） */
.contact-modal {
    width: min(660px, calc(100vw - 40px));
    max-width: none;
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: #22374d;
}
.contact-modal::backdrop { background: rgba(16, 28, 42, .42); backdrop-filter: blur(5px); }
.contact-modal-panel {
    display: flex;
    max-height: 90vh;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 28px;
    background: linear-gradient(150deg, #f4faff, #eef4fb 58%, #f7f3ec);
    box-shadow: 0 40px 100px rgba(20, 40, 60, .28);
}
.contact-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 0; }
.contact-modal-head .eyebrow { margin: 0 0 6px; color: #8a9bb0; font-size: 10px; letter-spacing: .2em; }
.contact-modal-head h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.contact-modal-drag { display: none; margin-top: 6px; color: #9aabbe; font-size: 11px; }
.contact-modal-handle { display: none; }
.contact-modal-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; border: 1px solid #e2eaf4; border-radius: 50%; background: #fff; color: #607489; font-size: 20px; line-height: 1; box-shadow: 0 6px 16px rgba(37, 64, 95, .08); cursor: pointer; }
.contact-modal-tabs { display: flex; gap: 8px; padding: 18px 28px 0; }
.contact-modal-tabs button { min-height: 38px; padding: 0 18px; border: 1px solid #dce8f4; border-radius: 999px; background: rgba(255, 255, 255, .7); color: #6b8096; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.contact-modal-tabs button[aria-selected="true"] { border-color: transparent; background: linear-gradient(135deg, #5b83a6, #7ea6c6); color: #fff; box-shadow: 0 8px 18px rgba(91, 131, 166, .2); }
.contact-modal-body { display: grid; min-height: 0; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; padding: 18px 28px 20px; overflow-y: auto; }
.contact-modal-list { display: flex; min-height: 0; flex-direction: column; gap: 8px; }
.contact-modal-choice { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 78px; padding: 12px; border: 1px solid #e0e9f3; border-radius: 14px; background: rgba(255, 255, 255, .78); color: #22374d; text-align: left; cursor: pointer; transition: border-color .18s, background-color .18s, box-shadow .18s; }
.contact-modal-choice:hover { background: #fff; }
.contact-modal-choice.is-selected { border-color: #7fa6c6; background: #fff; box-shadow: 0 8px 20px rgba(55, 95, 135, .1); }
.contact-modal-choice-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: #5b83a6; background: #eef5fb; }
.contact-modal-choice-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-modal-choice-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.contact-modal-choice-role { display: flex; min-width: 0; align-items: center; gap: 6px; color: #7d90a6; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.contact-modal-choice-role-name { min-width: 0; flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-modal-choice-copy strong { overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.contact-modal-choice-copy small { color: #8a9bb0; font-size: 11px; }
.contact-modal-choice-check { margin-left: auto; color: #5b83a6; font-size: 15px; font-weight: 800; }
.contact-modal-detail { display: flex; min-width: 0; flex-direction: column; align-items: center; padding-top: 2px; }
.contact-modal-detail-head { width: 100%; }
.contact-modal-detail-head span { color: #8a9bb0; font-size: 11px; }
.contact-modal-detail-head h3 { margin: 4px 0 12px; font-size: 24px; letter-spacing: -.03em; }
.contact-modal-qr { display: grid; width: min(240px, 100%); aspect-ratio: 1; place-items: center; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(37, 64, 95, .1); }
.contact-modal-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contact-modal-hint { margin: 10px 0 0; color: #8a9bb0; font-size: 11px; text-align: center; }
.contact-modal-empty { display: grid; width: 100%; min-height: 220px; place-items: center; align-content: center; gap: 8px; color: #8a9bb0; text-align: center; }
.contact-modal-empty svg { width: 34px; height: 34px; fill: none; stroke: #9fb3c8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-modal-empty h3 { margin: 0; color: #4b637a; font-size: 16px; }
.contact-modal-empty p { margin: 0; font-size: 12px; }
.contact-modal-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 28px 18px; border-top: 1px solid rgba(214, 226, 240, .8); }
.contact-modal-shortcuts[hidden] { display: none; }
.contact-modal-shortcuts button { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid #e0e9f3; border-radius: 12px; background: #fff; color: #3d556d; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.contact-modal-shortcuts button[hidden] { display: none; }
.contact-modal-shortcut-icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 7px; background: #eef5fb; color: #5b83a6; font-size: 11px; font-weight: 900; }
.contact-modal-shortcut-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-modal-shortcut-label b { font-weight: 800; }
.contact-modal-shortcuts svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 720px) {
    .contact-modal {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        margin: 0;
        border-radius: 22px 22px 0 0;
    }
    .contact-modal-panel { max-height: 92vh; border-radius: 22px 22px 0 0; }
    .contact-modal-handle { display: block; width: 42px; height: 4px; margin: 8px auto 0; border-radius: 999px; background: #9fc1da; }
    .contact-modal-head { padding: 16px 20px 0; }
    .contact-modal-head h2 { font-size: 24px; }
    .contact-modal-drag { display: block; }
    .contact-modal-tabs { padding: 12px 20px 0; }
    .contact-modal-body { grid-template-columns: 1fr; grid-auto-rows: max-content; align-content: start; gap: 12px; padding: 14px 20px 16px; }
    .contact-modal-list { display: grid; grid-template-columns: 1fr; gap: 8px; overflow: visible; min-width: 0; padding-bottom: 2px; }
    .contact-modal-choice { min-width: 0; flex: none; min-height: 72px; padding: 10px 12px; }
    .contact-modal-choice-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .contact-modal-choice-copy strong { font-size: 13px; }
    .contact-modal-choice-copy small { font-size: 10.5px; }
    .contact-modal-choice-role { gap: 4px; font-size: 10px; }
    .contact-modal .contact-staff-status { gap: 3px; font-size: 9.5px; }
    .contact-modal .contact-staff-status::before { width: 4px; height: 4px; }
    .contact-modal-detail { padding-top: 0; }
    .contact-modal-qr { width: min(220px, 72vw); }
    .contact-modal-shortcuts { grid-template-columns: 1fr 1fr; padding: 12px 20px 16px; }
    .contact-modal-shortcuts button { padding: 0 10px; font-size: 11px; }
}
