* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'PingFang SC', 'Helvetica Neue', sans-serif;
    background-color: #000;
    display: flex;
    flex-direction: column;
}

/* 动态背景层 */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background 0.6s ease-in-out;
    z-index: -2;
}

/* 漂浮装饰圆球 */
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    z-index: -1;
    animation: float 6s ease-in-out infinite alternate;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: -3s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(30px) scale(1.1);
    }
}

/* ===== 顶部 Tab 导航栏 ===== */
.tabs-container {
    width: 100%;
    padding: 20px 15px 10px 15px;
    display: flex;
    flex-wrap: wrap;
    /* 允许自动换行 */
    justify-content: center;
    /* 居中对齐 */
    gap: 12px;
    z-index: 10;
}

.tab-item {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-item.active {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* ===== Swiper 主容器 ===== */
.swiper {
    flex: 1;
    width: 100%;
    height: 100%;
    margin-top: -10px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 80px 20px;
    transition: transform 0.4s ease;
}

/* 核心卡片样式 (玻璃拟态) */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: scale(0.85);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.swiper-slide-active .glass-card {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* 二维码白色背景容器 */
.qr-wrapper {
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 250px;
    height: 250px;
}

/* 确保长按识别有效 */
.qr-wrapper img {
    width: 220px !important;
    height: 220px !important;
    display: block;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* ===== 赞赏按钮 ===== */
.support-btn {
    position: fixed;
    bottom: 60px;
    /* 1. 将左侧推到屏幕 50% 的位置 */
    left: 50%;
    /* 2. 向左反向移动自身宽度的 50%，实现完美居中 */
    transform: translateX(-50%);

    padding: 10px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;

    /* 保持宽度自适应内容 */
    width: fit-content;
    min-width: 140px;
    text-align: center;
}

.support-btn:hover {
    transform: translateX(-50%) scale(1.05);
}

/* ===== 弹窗 ===== */
.support-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 30;
}

/* 遮罩 */
.support-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* 内容 */
.support-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
}

.support-content img {
    width: 260px;
    height: 260px;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.support-btn {
    width: fit-content;
    min-width: 140px;
    text-align: center;
}

/* ===== 随机抽取按钮 ===== */
.random-btn {
    position: fixed;
    bottom: 115px; /* 放在赞赏按钮上方 */
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); /* 醒目的渐变色 */
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
    cursor: pointer;
    z-index: 20;
    border: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.random-btn:active {
    transform: translateX(-50%) scale(0.9);
}