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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background: #F5F7FA;
    color: #1A1A1A;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.page-container {
    min-height: 100vh;
    padding-bottom: 40px;
}

.header-banner {
    position: relative;
    background: linear-gradient(135deg, #07C160 0%, #00D26A 50%, #07C160 100%);
    padding: 60px 20px 100px;
    overflow: hidden;
}

.banner-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.deco-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -60px;
}

.deco-2 {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: -30px;
}

.banner-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 1;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sub-title {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
}

.content-wrapper {
    margin-top: -70px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.qr-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px 20px;
    box-shadow: 0 10px 40px rgba(7, 193, 96, 0.15);
    position: relative;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(7, 193, 96, 0.15);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 15px 50px rgba(7, 193, 96, 0.25);
        transform: translateY(-3px);
    }
}

.valid-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #07C160;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #07C160;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.expiring-badge {
    text-align: center;
    margin-bottom: 18px;
    font-size: 13px;
    color: #FF6B00;
    font-weight: 600;
    background: #FFF3E8;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }
}

.expired-badge {
    text-align: center;
    margin-bottom: 18px;
    font-size: 13px;
    color: #FF4D4F;
    font-weight: 600;
    background: #FFF0F0;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

.qr-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: #FAFAFA;
    border-radius: 16px;
    border: 2px solid #E8FBF0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: zoom-in;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    -webkit-touch-callout: default;
}

.qr-placeholder {
    text-align: center;
    color: #999;
    padding: 40px;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.placeholder-tip {
    font-size: 13px;
    color: #BBB;
    margin-top: 4px;
}

.group-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.group-icon {
    font-size: 20px;
}

.qr-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #07C160;
    font-weight: 500;
    background: #F0FFF4;
    padding: 10px 20px;
    border-radius: 25px;
}

.tip-icon {
    font-size: 16px;
}

.benefits-section {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    margin-top: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.section-header {
    margin-bottom: 18px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FFB800, #FF9500);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #07C160, #00D26A);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.guide-section {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    margin-top: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.guide-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 20px;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #07C160, #00D26A);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.step-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.step-arrow {
    color: #07C160;
    font-size: 18px;
    font-weight: bold;
    padding-top: 10px;
    flex-shrink: 0;
}

.footer-section {
    text-align: center;
    margin-top: 24px;
}

.footer-text {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.copyright {
    font-size: 12px;
    color: #BBB;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.image-preview.active {
    display: flex;
}

.preview-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.preview-image {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    -webkit-touch-callout: default;
}

.preview-tip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    z-index: 1;
}

@media (min-width: 500px) {
    .page-container {
        max-width: 480px;
        margin: 0 auto;
        background: #F5F7FA;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
        min-height: 100vh;
    }
}
