/* 全局样式重置 */
* {
    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: 24px;
    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);
    text-decoration: none;
    color: #FFD700;
    font-size: 20px;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.6);
}

.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;
}

/* 个人信息卡片 */
.profile-card {
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    text-align: center;
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

.avatar-wrap {
    display: inline-block;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #a855f7, #00d4ff);
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar-wrap:hover {
    transform: scale(1.08);
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d1f3c, #1a2d4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FFD700;
    font-family: "华文行楷", "STXingkai", serif;
    border: 3px solid #0f0f1e;
}

.profile-name {
    font-family: "华文行楷", "STXingkai", serif;
    font-size: 1.6rem;
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.profile-sign {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-style: italic;
}

/* 分区标题 */
.section-title {
    font-family: "华文行楷", "STXingkai", serif;
    font-size: 1.2rem;
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

/* 福愿卡片 */
.wish-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;
    cursor: pointer;
}

.wish-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;
}

.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);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wish-label-top {
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.wish-label-private {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin-left: 4px;
}

.create-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.wish-info {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 15px;
    white-space: pre-wrap;
    min-height: 40px;
}

.wish-info.private-wish {
    color: rgba(192, 132, 252, 0.7);
    font-style: italic;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 10px;
}

.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;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: relative;
    outline: 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-btn.boosted .boost-icon {
    animation: heartPulse 0.4s ease;
}

.boost-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.boost-icon {
    font-size: 16px;
    line-height: 1;
}

.boost-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.boost-btn.boosted .boost-text {
    color: rgba(255, 255, 255, 0.85);
}

.boost-count {
    font-size: 0.85rem;
    font-weight: 600;
}

.boost-btn.boosted .boost-count {
    color: #fff;
}

.boost-animation {
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -5px;
    font-size: 16px;
    font-weight: bold;
    color: #FF6B6B;
    pointer-events: none;
    animation: boostFloat 0.8s ease-out forwards;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
}

@keyframes boostFloat {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(1); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* 加载更多 */
.loading-area {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.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;
}

/* 客服邮箱 */
.contact-area {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 40px;
    padding: 16px 20px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.contact-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    line-height: 1.8;
}

.contact-text .contact-icon {
    font-size: 1rem;
    margin-right: 4px;
}

.contact-email {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.4);
}

.contact-email:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    border-bottom-color: #fff;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    padding: 10px 22px;
    background: rgba(20, 20, 40, 0.92);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    color: #e0e0e0;
    white-space: nowrap;
    letter-spacing: 1px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 响应式 */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }

    .profile-card {
        padding: 20px 16px;
    }

    .avatar {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .wish-card {
        padding: 16px;
    }
}
