/* ================== 红包页面样式 ================== */
body.red-packet-page {
    background-color: #f7f7f7;
    padding-bottom: 0;
}

.red-packet-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.rp-header-img {
    width: 100%;
    height: auto;
    display: block;
}

.rp-form {
    padding: 20px;
}

.rp-input-group {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.rp-input-group label {
    color: var(--text-main);
    width: 80px;
    font-weight: 500;
}

.rp-input-group input {
    flex: 1;
    border: none;
    outline: none;
    text-align: right;
    font-size: 16px;
    color: var(--text-main);
    background: transparent;
}

.rp-input-group span {
    margin-left: 8px;
    color: var(--text-main);
}

.rp-tip {
    font-size: 12px;
    color: #e74c3c;
    margin-top: -8px;
    margin-bottom: 30px;
    padding-left: 4px;
}

.rp-total-display {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px; /* 限制最大字号 */
    font-weight: 700;
    color: var(--text-main);
}

/* 使用 transform 稍微放大金额数字以保持视觉冲击力但遵守字号规则 */
.rp-amount-num {
    display: inline-block;
    transform: scale(1.5);
    font-weight: 700;
    margin: 0 4px;
}

.rp-fee-tip {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.btn-red-packet {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #d95940; /* 微信红包红 */
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-red-packet:active {
    background: #c24e36;
}

.btn-red-packet:disabled {
    background: #eab4aa;
    cursor: not-allowed;
}

.rp-record-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: #576b95; /* 微信链接蓝 */
    text-decoration: none;
    font-size: 13px;
}
