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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
        Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei',
        sans-serif;
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
    max-width: 500px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-top: 20px;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d81e06;
    display: block;
}

.subtitle {
    font-size: 1rem;
    color: #8a8a8a;
    margin-top: 5px;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.greeting-box {
    width: 95%;
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.greeting-box:active {
    transform: scale(0.98);
}

.greeting-text {
    font-size: 1.4rem;
    color: #333;
    font-weight: bold;
    display: block;
}

.refresh-tip {
    font-size: 0.75rem;
    color: #bfbfbf;
    margin-top: 10px;
    display: block;
}

.qr-section {
    width: 95%;
    margin-top: 20px;
}

.red-packet-style {
    background-color: #d81e06;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(216, 30, 6, 0.2);
}

.packet-text {
    color: #ffd700;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.qr-container {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.qr-container.active {
    display: inline-block;
}

.qr-code {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
}

.payment-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tab.active {
    background: #ffd700;
    color: #d81e06;
    font-weight: bold;
}

.qr-tip {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    display: block;
}

.share-btn {
    width: 85%;
    height: 50px;
    background-color: #ffd700;
    color: #d81e06;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.share-btn:active {
    background-color: #f0cc00;
}

.footer {
    margin-top: auto;
    padding: 30px 0;
}

.footer p {
    font-size: 0.75rem;
    color: #bfbfbf;
}
