* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

html,
body {
    height: 100%;
    overflow: hidden;
    /* 温馨渐变背景 - 柔粉+暖白 */
    background: linear-gradient(120deg, #fff5f7 0%, #ffeef2 100%);
    color: #5a4b47;
    font-size: 14px;
    line-height: 1.6;
}

/* 页面容器 */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 页面标题 - 温馨治愈风格 */
.page-title {
    text-align: center;
    margin-bottom: 24px;
    flex-shrink: 0;
    padding: 10px 0;
}

.page-title h1 {
    font-size: 20px;
    /* 温暖的爱心粉 */
    color: #e66786;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
}

/* 募捐倡议书标题 - 爱心可点击样式 */
.initiative-title {
    margin-top: -10px;
    text-align: center;
    color: #e66786;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 0;
    position: relative;
}

.initiative-title:hover {
    color: #d15876;
    text-decoration: none;
}

.initiative-title::after {
    content: "❤️";
    margin-left: 8px;
    font-size: 12px;
    animation: heartbeat 1.5s infinite;
}

/* 心跳动画 */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 卡片通用样式 - 柔和质感 */
.card {
    background-color: #fff;
    /* 更圆润的边角 */
    border-radius: 18px;
    padding: 22px;
    /* 柔和的暖色调阴影 */
    box-shadow: 0 4px 20px rgba(230, 103, 134, 0.08);
    /* 浅粉色边框 */
    border: 1px solid #fee8ef;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

/* 付款码区域样式 */
.qr-code-section {
    margin-top: -33px;
    height: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.qr-code-title {
    font-size: 16px;
    font-weight: 500;
    color: #5a4b47;
    display: flex;
    align-items: center;
}

.show-qr-btn {
    padding: 10px 20px;
    /* 温暖的爱心橙 */
    background-color: #e66786;
    color: #fff;
    border: none;
    /* 胶囊形按钮 */
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    /* 柔和的按钮阴影 */
    box-shadow: 0 3px 10px rgba(230, 103, 134, 0.2);
}

.show-qr-btn:hover {
    background-color: #d15876;
    box-shadow: 0 5px 15px rgba(230, 103, 134, 0.3);
    transform: translateY(-2px);
}

.tip-text {
    /* 温柔的提示文字色 */
    color: #fb0303;
    margin: -21px 0px -7px 0px;
    font-size: 12px;
    line-height: 1.5;
    flex-shrink: 0;
    /* 浅粉色背景 */
    background-color: #fff0f3;
    padding: 12px 16px;
    border-radius: 12px;
    /* 同色系边框 */
    border: 1px solid #fee0e8;
}

/* 二维码弹窗样式 - 温馨大气 */
.qr-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 柔和的暖色调遮罩 */
    background-color: rgba(90, 75, 71, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(5px);
}

.qr-dialog-content {
    position: relative;
    width: 90%;
    max-width: 360px;
    background-color: #fff;
    border-radius: 22px;
    padding: 32px 24px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    /* 温馨的弹窗阴影 */
    box-shadow: 0 8px 30px rgba(230, 103, 134, 0.25);
    border: 1px solid #fee8ef;
}

.qr-dialog.show .qr-dialog-content {
    transform: scale(1);
}

/* 募捐倡议书弹窗样式 */
.initiative-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 75, 71, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.initiative-dialog-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 22px;
    padding: 32px 24px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(230, 103, 134, 0.25);
    border: 1px solid #fee8ef;
}

.initiative-dialog.show .initiative-dialog-content {
    transform: scale(1);
}

.initiative-dialog-title {
    font-size: 18px;
    color: #e66786;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #fee8ef;
}

.initiative-dialog-text {
    font-size: 14px;
    color: #5a4b47;
    line-height: 1.8;
    text-align: justify;
}

.initiative-dialog-text p {
    margin-bottom: 12px;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
    background-color: #fff0f3;
}

.close-btn:hover {
    background-color: #fee0e8;
    color: #e66786;
}

.qr-dialog-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 14px;
    padding: 14px;
    background-color: #fff;
    box-shadow: 0 3px 12px rgba(230, 103, 134, 0.1);
    border: 1px solid #fee8ef;
}

.qr-dialog-title {
    font-size: 18px;
    color: #e66786;
    margin-bottom: 20px;
    font-weight: 500;
}

.qr-dialog-tip {
    margin-top: 20px;
    font-size: 13px;
    color: #7d6c68;
    line-height: 1.6;
}

/* 付款记录区域样式 */
.record-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.record-section .record-title {
    font-size: 16px;
    font-weight: 500;
    color: #e66786;
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid #fee8ef;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* 付款记录列表 - 隐藏滚动条但保留滚动功能 */
.record-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: none;
}

.record-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* 日期分组样式 - 折叠功能 */
.date-group {
    margin-bottom: 18px;
    /* 柔和的背景色 */
    background-color: #fff9fb;
    border-radius: 14px;
    padding: 15px;
    border: 1px solid #fee8ef;
}

.date-label {
    font-size: 14px;
    color: #5a4b47;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.toggle-icon {
    width: 14px;
    height: 14px;
    border: solid #e66786;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.toggle-icon.collapsed {
    transform: rotate(-135deg);
}

.records-container {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 10px;
}

.records-container.collapsed {
    max-height: 0;
}

/* 记录项样式 - 温馨规整 */
.record-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #fee8ef;
}

.record-item:last-child {
    border-bottom: none;
}

.record-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 12px;
}

.username {
    font-size: 14px;
    font-weight: 500;
    color: #5a4b47;
    margin-bottom: 4px;
}

.time {
    font-size: 11px;
    color: #998883;
    margin-bottom: 6px;
}

/* 备注样式 */
.remark {
    font-size: 11px;
    color: #7d6c68;
    line-height: 1.4;
    padding: 4px 4px;
    border-radius: 8px;
    word-break: break-all;
}

.amount {
    font-size: 20px;
    font-weight: 600;
    color: #e66786;
    white-space: nowrap;
}

/* 空数据/加载样式 */
.empty-record,
.loading {
    text-align: center;
    padding: 50px 0;
    color: #998883;
    font-size: 13px;
}

/* 底部募捐说明样式 */
.bottom-desc {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.8;
    background-color: #f8f8f8;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    margin-top: 10px;
    flex-shrink: 0;
}

.bottom-desc h4 {
    font-size: 13px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.bottom-desc ul {
    padding-left: 20px;
    margin: 0;
}

.bottom-desc li {
    margin-bottom: 4px;
}

.bottom-desc li:last-child {
    margin-bottom: 0;
}

/* 响应式适配 */
@media (max-width: 375px) {
    .card {
        padding: 18px;
    }

    .qr-dialog-content {
        padding: 24px 20px;
    }

    .initiative-dialog-content {
        padding: 20px 16px;
    }

    .qr-dialog-img {
        max-width: 220px;
    }

    .record-item {
        padding: 10px 0;
    }
}
.donation-explain h4 {
    font-size: 14px;
    color: #e66786;
    margin-bottom: 10px;
    font-weight: 500;
    padding-bottom: 6px;
    border-bottom: 1px solid #fee8ef;
}

.donation-explain ol {
    padding-left: 20px;
    margin: 0;
}

.donation-explain li {
    margin-bottom: 6px;
}

.donation-explain li:last-child {
    margin-bottom: 0;
}
.donation-explain {
    padding: 12px 15px;
}