
* { box-sizing: border-box; }
:root {
    --bg: #e9eef5;
    --card: #e9eef5;
    --text: #24324a;
    --subtext: #75839b;
    --shadow-dark: #c8d0dc;
    --shadow-light: #ffffff;
    --green: #07c160;
    --blue: #2f6df6;
}
html, body { margin: 0; min-height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
button, a { font: inherit; }
.page { min-height: 100vh; padding: 16px 14px 24px; }
.wrap { width: min(1240px, 100%); margin: 0 auto; }
.neu-card {
    background: var(--card);
    border-radius: 24px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}
.neu-inset {
    background: var(--card);
    border-radius: 18px;
    box-shadow: inset 8px 8px 16px rgba(200,208,220,.95), inset -8px -8px 16px rgba(255,255,255,.95);
}
.time-card {
    width: min(420px, 100%);
    margin: 0 auto 20px;
    padding: 18px 18px;
    text-align: center;
}
.date-text { color: #6f81a2; font-size: clamp(16px,2vw,22px); margin-bottom: 10px; font-weight: 500; }
.time-text { font-size: clamp(36px,5vw,54px); line-height: 1; font-weight: 800; letter-spacing: 1px; color: #2d3d59; }
.main-card { padding: 24px 22px 22px; }
.title-pill {
    width: fit-content; margin: 0 auto 14px; padding: 14px 24px; border-radius: 999px;
    font-size: clamp(24px,3.2vw,42px); line-height: 1; font-weight: 800; color: #2a3955;
}
.main-subtitle {
    margin: 0; text-align: center; color: #7483a0; font-size: clamp(14px,1.5vw,18px);
    padding-bottom: 18px; border-bottom: 1px solid rgba(194,202,214,.55);
}
.cards-wrap { padding-top: 22px; }
.cards-scroller {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 4px 8px;
    scrollbar-width: none;
}
.cards-scroller::-webkit-scrollbar { display: none; }
.service-card {
    flex: 0 0 calc(100% - 8px);
    min-width: calc(100% - 8px);
    scroll-snap-align: start;
    padding: 22px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.icon-circle {
    width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
    background: var(--card);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.icon-circle img { width: 42px; height: 42px; display: block; }
.service-card h2 { margin: 0 0 10px; font-size: clamp(22px,2.4vw,30px); color: #263550; }
.desc {
    margin: 0 auto 16px; max-width: 410px; color: #7887a1;
    font-size: clamp(14px,1.4vw,17px); line-height: 1.65; min-height: 3.1em;
}
.image-panel {
    width: min(220px, 62vw); margin: 0 auto; padding: 14px; border: 0; cursor: zoom-in;
}
.image-panel img {
    width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 12px;
}
.tip {
    margin-top: 12px; color: #7787a2; font-size: 13px; line-height: 1.6; min-height: 2.8em;
}
.id-row { margin-top: 12px; color: #50607c; font-size: 15px; }
.id-row strong { color: #24324a; font-size: 16px; word-break: break-all; }
.id-row .small-strong { font-size: 15px; }
.btn-stack {
    margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr; gap: 10px;
}
.action-btn, .link-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border-radius: 14px;
    border: 0; cursor: pointer; font-weight: 800; text-decoration: none; background: var(--card);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    font-size: 15px;
}
.action-btn:active { box-shadow: inset 6px 6px 12px rgba(200,208,220,.95), inset -6px -6px 12px rgba(255,255,255,.95); }
.btn-green { color: var(--green); }
.btn-blue { color: var(--blue); }
.scroll-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c8d0dc; box-shadow: inset 2px 2px 4px rgba(170,178,190,.5), inset -2px -2px 4px rgba(255,255,255,.8); }
.dot.active { background: #93a6c4; }
.modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 999; padding: 16px; }
.modal.open { display: grid; }
.modal-mask { position: absolute; inset: 0; background: rgba(33,43,62,.36); backdrop-filter: blur(2px); }
.modal-box { position: relative; z-index: 1; width: min(420px, 92vw); padding: 18px; text-align: center; }
.modal-image { width: 100%; display: block; border-radius: 14px; -webkit-touch-callout: default; background: #fff; }
.modal-box p { margin: 12px 0 0; color: #70819d; font-size: 14px; }
.modal-close { position: absolute; right: 8px; top: 6px; width: 34px; height: 34px; border: 0; background: transparent; color: #52627d; font-size: 24px; line-height: 1; cursor: pointer; }
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    transition: .2s ease; background: rgba(42,57,85,.92); color: #fff; padding: 9px 16px; border-radius: 999px; z-index: 1200;
    box-shadow: 0 12px 24px rgba(0,0,0,.18); font-size: 14px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 900px) {
    .cards-scroller {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        overflow: visible;
        align-items: stretch;
    }
    .service-card {
        min-width: 0;
        width: 100%;
        height: 100%;
        flex: 1 1 auto;
    }
    .btn-stack.two-btns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .scroll-dots { display: none; }
}

@media (max-width: 1024px) {
    .wrap { width: min(1080px, 100%); }
    .main-card { padding: 22px 16px 20px; }
    .image-panel { width: min(210px, 62vw); }
}
@media (max-width: 768px) {
    .page { padding: 12px 10px 20px; }
    .time-card { margin-bottom: 16px; padding: 16px 14px; }
    .main-card { padding: 18px 12px 16px; border-radius: 20px; }
    .title-pill { padding: 12px 20px; }
    .main-subtitle { padding-bottom: 16px; }
    .cards-wrap { padding-top: 18px; }
    .service-card { padding: 18px 14px 16px; border-radius: 20px; }
    .icon-circle { width: 72px; height: 72px; margin-bottom: 14px; }
    .icon-circle img { width: 38px; height: 38px; }
    .desc { margin-bottom: 14px; }
    .id-row { font-size: 14px; }
    .id-row strong { font-size: 15px; }
    .action-btn, .link-btn { min-height: 42px; font-size: 14px; }
}
@media (max-width: 430px) {
    .page { padding: 10px 8px 16px; }
    .time-text { letter-spacing: 0.5px; }
    .title-pill { width: 100%; text-align: center; padding-left: 14px; padding-right: 14px; }
    .image-panel { width: min(200px, 66vw); padding: 12px; }
    .tip { font-size: 12px; }
}


.scan-guide {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 1300;
    padding: 18px;
}
.scan-guide.open {
    display: grid;
}
.scan-guide-mask {
    position: absolute;
    inset: 0;
    background: rgba(33, 43, 62, .42);
    backdrop-filter: blur(3px);
}
.scan-guide-box {
    position: relative;
    z-index: 1;
    width: min(390px, 92vw);
    padding: 26px 22px 22px;
    text-align: center;
}
.scan-guide-close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #52627d;
    font-size: 26px;
    cursor: pointer;
}
.scan-guide-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #07c160;
    font-size: 38px;
    font-weight: 800;
    background: var(--card);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}
.scan-guide-box h3 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #263550;
}
.scan-guide-box p {
    margin: 0 0 20px;
    color: #70819d;
    font-size: 15px;
    line-height: 1.75;
}
