/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #0f0f1e;
    color: #fff;
    min-height: 100vh;
}

/* 背景图片 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../static/images/xuyuanPC.jpg');
    background-size: 100% 100%;
    /* 强制拉伸图片填满整个屏幕 */
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: all 0.3s ease;
}

/* 横屏设备 - 强制拉伸图片填满整个屏幕 */
@media screen and (min-aspect-ratio: 1/1) {
    .background {
        background-size: 100% 100%;
        width: 100%;
        height: 100%;
    }
}

/* 竖屏设备 - 强制拉伸图片填满整个屏幕 */
@media screen and (max-aspect-ratio: 1/1) {
    .background {
        background-size: 100% 100%;
        width: 100%;
        height: 100%;
    }
}

/* 小屏幕移动设备 - 使用专用图片 */
@media screen and (max-width: 480px) {
    .background {
        background-image: url('../../static/images/xuyuanH5.jpg');
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 头部样式 */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.back-btn img {
    width: 18px;
    height: 18px;
}

.page-title {
    width: 100%;
    text-align: center;
    font-family: "华文行楷", "STXingkai", serif;
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

/* 福愿卡片 */
.blessing-card {
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    position: relative;
}

.blessing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.2);
    padding-bottom: 8px;
}

.wisher-name {
    font-size: 1.1rem;
    color: #FFD700;
    font-weight: bold;
}

.wish-label {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.wish-info {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 15px;
    white-space: pre-wrap;
    min-height: 60px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.create-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* 助力按钮 */
.boost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 20px;
    color: #ffd1d1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    user-select: none;
}

.boost-btn:hover {
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.6);
}

.boost-btn:active {
    transform: scale(0.95);
}

/* 已助力状态 */
.boost-btn.boosted {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.boost-btn.boosted:hover {
    background: linear-gradient(135deg, #FF5252, #FF7043);
}

/* 助力图标 */
.boost-icon {
    font-size: 16px;
    line-height: 1;
}

/* 排名徽章 */
.rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    color: #8B4500;
    font-size: 18px;
}

.rank-2 {
    background: linear-gradient(135deg, #E0E0E0, #BDBDBD);
    color: #555;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #fff;
}

/* 助力动画 */
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1);
    }
}

.boost-animation {
    position: absolute;
    color: #FF6B6B;
    font-weight: bold;
    font-size: 16px;
    pointer-events: none;
    animation: floatUp 0.8s ease-out forwards;
    left: 50%;
    margin-left: -5px;
    /* Center adjustment */
    top: -20px;
}

/* 加载更多 */
.loading-area {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.load-more-btn {
    padding: 10px 30px;
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

.no-more-data {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}