:root {
    --bg: #eef1f6;
    --panel: #ffffff;
    --panel-soft: #f5f7fb;
    --text: #192132;
    --muted: #687185;
    --line: #e8ebf2;
    --brand: #1a3df0;
    --brand-dark: #1029a1;
    --accent: #ffb400;
    --success: #26c281;
    --shadow: 0 18px 40px rgba(10, 18, 38, 0.18);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --service: #6b5cff;
    --qq: #1d9bf0;
    --wechat: #19c15f;
    --tg: #2aabee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    min-width: 320px;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: var(--bg);
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
}

.page-shell {
    min-height: 100vh;
    padding: 14px 12px 28px;
}

.phone-window {
    display: flex;
    flex-direction: column;
    width: min(100%, 460px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 14px 28px;
    background: #f5f7fb;
    border-radius: 26px;
    border: 1px solid #e3e7f0;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
}

.hero,
.panel,
.carousel,
.promo-strip,
.bottom-banner {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero {
    padding: 18px;
    background: transparent;
    color: var(--text);
    box-shadow: none;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

#contact {
    order: 99;
}

.hero-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 230px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badge,
.hero-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.16);
}

.hero-status {
    background: rgba(255, 180, 0, 0.18);
    color: #ffe18b;
}

.hero-title {
    margin-top: 14px;
    font-size: clamp(28px, 7vw, 34px);
    line-height: 1.15;
}

.hero-copy {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.84);
    max-width: 720px;
}

.hero-reference {
    margin-top: 16px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-reference img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.carousel,
.panel,
.promo-strip,
.bottom-banner {
    margin-top: 16px;
}

.carousel {
    padding: 12px;
    background: var(--panel);
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 16px;
    background: #f7f9fd;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
}

.indicator {
    width: 22px;
    height: 6px;
    border-radius: 999px;
    border: 0;
    background: #d8ddeb;
    cursor: pointer;
    transition: all 0.25s ease;
}

.indicator.active {
    width: 34px;
    background: linear-gradient(90deg, var(--accent) 0%, #ff8e2b 100%);
}

.panel {
    padding: 16px;
    background: var(--panel);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.section-heading h2,
.panel-brief h2 {
    font-size: 18px;
    line-height: 1.2;
}

.section-heading p,
.panel-brief p {
    font-size: 13px;
    color: var(--muted);
    max-width: 100%;
}

.route-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.route-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.route-dot {
    width: 12px;
    height: 12px;
    flex: none;
    border-radius: 50%;
    background: #ff4d4f;
    box-shadow: 0 0 0 6px rgba(255, 77, 79, 0.12);
}

.route-dot-hot {
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(38, 194, 129, 0.14);
}

.route-title {
    font-size: 16px;
    font-weight: 700;
}

.route-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.route-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 82px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex: none;
}

.panel-brief {
    background: #ffffff;
}

.panel-brief p {
    margin-top: 10px;
}

.promo-strip {
    padding: 18px 16px;
    text-align: center;
    background: #fff7e7;
}

.promo-strip span {
    display: block;
    font-size: 14px;
    color: #9b6b00;
}

.promo-strip strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    line-height: 1.15;
    color: #b36c00;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 108px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    text-align: left;
    min-width: 0;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(19, 33, 71, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(19, 33, 71, 0.12);
}

.contact-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 16px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-icon-lg svg {
    width: 34px;
    height: 34px;
}

.contact-card-service .contact-icon {
    background: #ffffff;
    color: var(--service);
    border: 1px solid rgba(107, 92, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 8px 18px rgba(107, 92, 255, 0.08);
}

.contact-card-qq .contact-icon {
    background: #ffffff;
    color: var(--qq);
    border: 1px solid rgba(29, 155, 240, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 8px 18px rgba(29, 155, 240, 0.08);
}

.contact-card-wechat .contact-icon {
    background: linear-gradient(135deg, var(--wechat) 0%, #0d9f48 100%);
}

.contact-card-wechat .contact-icon svg {
    width: 34px;
    height: 34px;
}

.contact-card-tg .contact-icon {
    background: #ffffff;
    color: var(--tg);
    border: 1px solid rgba(42, 171, 238, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 8px 18px rgba(42, 171, 238, 0.08);
}

.contact-label {
    font-size: 12px;
    color: var(--muted);
}

.contact-card strong {
    font-size: 16px;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-copy {
    font-size: 11px;
    color: var(--brand);
}

.contact-card.is-copied {
    border-color: rgba(38, 194, 129, 0.34);
    box-shadow: 0 14px 30px rgba(38, 194, 129, 0.18);
}

.contact-card.is-copied .contact-copy {
    color: var(--success);
}

.bottom-banner {
    overflow: hidden;
    background: var(--panel);
    padding: 16px;
    border: 1px solid rgba(26, 61, 240, 0.08);
}

.bottom-banner .section-heading {
    margin-bottom: 12px;
    gap: 8px;
}

.bottom-banner .section-heading h2 {
    position: relative;
    padding-left: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #162443;
}

.bottom-banner .section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent) 0%, #ff8e2b 100%);
    transform: translateY(-50%);
}

.bottom-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    background: #f7f9fd;
    border: 1px solid var(--line);
}

.footer-wechat {
    margin-top: 14px;
}

.footer-wechat-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(25, 193, 95, 0.14);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(19, 33, 71, 0.08);
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.footer-wechat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(19, 33, 71, 0.12);
}

.footer-wechat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wechat) 0%, #0d9f48 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.footer-wechat-icon svg {
    width: 36px;
    height: 36px;
}

.footer-wechat-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.footer-wechat-label {
    font-size: 12px;
    color: var(--muted);
}

.footer-wechat-body strong {
    font-size: 18px;
    line-height: 1.2;
    word-break: break-all;
}

.footer-wechat-copy {
    font-size: 12px;
    color: var(--wechat);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%) translateY(16px) scale(0.96);
    min-width: 220px;
    max-width: calc(100vw - 32px);
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 21, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 12px;
    background: rgba(38, 194, 129, 0.18);
    color: #74e3b4;
}

.toast-icon svg {
    width: 22px;
    height: 22px;
}

.toast-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.toast-body strong {
    font-size: 13px;
    line-height: 1.2;
}

.toast-body span {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    word-break: break-all;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.toast.is-error .toast-icon {
    background: rgba(255, 107, 107, 0.18);
    color: #ff9a9a;
}

.route-action:focus-visible,
.contact-card:focus-visible,
.indicator:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 359px) {
    .route-list {
        grid-template-columns: 1fr;
    }

    .hero-logo-wrap {
        max-width: 100%;
    }

    .hero-logo {
        max-width: 190px;
    }

    .route-card {
        flex-direction: column;
        align-items: stretch;
    }

    .route-action {
        width: 100%;
    }

    .contact-card {
        align-items: flex-start;
    }

    .toast {
        gap: 10px;
        padding: 12px;
    }
}

@media (min-width: 768px) {
    .page-shell {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 100vh;
        padding: 20px 20px 24px;
    }

    .phone-window {
        width: min(100%, 980px);
        min-height: auto;
        padding: 18px;
        background: #f5f7fb;
        border-radius: 28px;
    }

    .hero-brand {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .hero-logo-wrap {
        width: auto;
        max-width: 320px;
    }

    .hero-top {
        justify-content: flex-end;
    }

    .hero,
    .panel,
    .carousel,
    .promo-strip,
    .bottom-banner {
        border-radius: 24px;
    }

    .panel,
    .carousel {
        padding: 18px;
    }

    .route-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .contact-card {
        min-height: 108px;
    }

    .toast {
        bottom: 32px;
    }

    #contact {
        margin-top: 16px;
    }

    .bottom-banner {
        margin-top: 16px;
    }
}

@media (max-width: 479px) {
    .contact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .page-shell {
        padding-inline: 10px;
    }

    .phone-window {
        padding: 16px 12px 24px;
        border-radius: 22px;
    }

    .hero,
    .panel,
    .carousel,
    .promo-strip,
    .bottom-banner {
        border-radius: 18px;
    }

    .carousel-slide img {
        aspect-ratio: auto;
    }

    .bottom-banner img {
        aspect-ratio: auto;
    }

    .contact-card {
        min-height: 96px;
        padding: 12px;
    }

    .contact-card strong {
        font-size: 15px;
    }

    .contact-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-icon-lg svg {
        width: 30px;
        height: 30px;
    }

    .contact-card-wechat .contact-icon svg {
        width: 30px;
        height: 30px;
    }

    .footer-wechat-card {
        padding: 12px 14px;
    }

    .footer-wechat-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .footer-wechat-icon svg {
        width: 32px;
        height: 32px;
    }

    .toast {
        left: 12px;
        right: 12px;
        bottom: 16px;
        min-width: 0;
        max-width: none;
        transform: translateY(16px) scale(0.96);
    }

    .toast.show {
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 1024px) {
    .phone-window {
        width: min(100%, 1100px);
        padding: 18px;
    }

    main.phone-window {
        display: block;
    }

    .hero,
    .carousel,
    .panel,
    .bottom-banner,
    .footer-wechat {
        margin-top: 16px;
    }

    .route-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .carousel-slide img {
        aspect-ratio: auto;
    }

    .bottom-banner img {
        aspect-ratio: auto;
    }
}
