* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f3f4f6;
    background-image: radial-gradient(at 0% 0%, hsl(340.62deg 81.25% 48.3%) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsl(321.23deg 87.1% 44.27%) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsl(310.67deg 74.97% 49.59%) 0, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.75rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    position: relative;
    width: 460px;
    max-width: 100%;
}

.brand-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

.brand-highlight {
    background: linear-gradient(to right, #ffffff, #fce7f3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    color: #e5e7eb;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.app-frame {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    height: 80vh;
    min-height: 580px;
}

.iframe-content {
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #ffffff;
    display: block;
}

.service-intro {
    margin-top: 1rem;
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: center;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.service-tagline {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

.service-tags {
    margin-top: 0.375rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
}

.separator {
    opacity: 0.3;
}

.promo-badge {
    margin-top: 0.5rem;
    color: #a7f3d0;
    font-weight: 600;
    font-size: 0.75rem;
    background-color: rgba(6, 78, 59, 0.3);
    padding: 0.375rem 0.5rem;
    border-radius: 9999px;
    display: inline-block;
}

.copyright {
    text-align: center;
    margin-top: 0.75rem;
    color: #9ca3af;
    font-size: 0.65rem;
}

.qr-card {
    position: absolute;
    bottom: 170px;
    right: -280px;
    /* 260px宽 + 20px间距 */
    background-color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 260px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    z-index: 40;
}

.qr-card:hover {
    transform: scale(1.05);
}

.qr-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background: linear-gradient(to right, #34d399, #3b82f6);
}

.qr-image-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: scan 2.5s linear infinite;
    opacity: 0.6;
    z-index: 5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.qr-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.qr-logo-inner {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
}

.qr-text-container {
    margin-top: 0.75rem;
    text-align: center;
}

.qr-main-text {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.875rem;
}

.qr-scan-text {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.qr-coupon-text {
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.qr-small-text {
    color: #9ca3af;
    font-size: 0.6rem;
    margin-top: 0.375rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@media (max-width: 1024px) {
    .qr-card {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 50;
    }
}

@media (max-width: 768px) {
    .qr-card {
        display: none !important;
    }

    .app-frame {
        height: 75vh !important;
        min-height: 500px;
    }

    .brand-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 420px) {
    body {
        padding-left: 6px;
        padding-right: 6px;
    }

    .app-frame {
        border-radius: 1rem;
    }

    .service-intro {
        font-size: 0.7rem;
    }

    .copyright {
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) {
    body {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-header {
        margin-bottom: 1rem;
    }

    .brand-title {
        font-size: 1.875rem;
    }

    .copyright {
        font-size: 0.75rem;
    }
}

@media (min-width: 640px) {
    .service-intro {
        font-size: 0.875rem;
    }
}