* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #fce4ec 0%, #f8bbd9 100%);
    min-height: 100vh;
    color: #333;
}

.hidden {
    display: none !important;
}

/* ==================== 启动封面 ==================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fad0c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.3)"/></svg>');
}

.splash-content {
    text-align: center;
    z-index: 1;
}

.splash-title {
    font-size: 56px;
    color: #ff69b4;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2), 0 0 30px rgba(255,105,180,0.5);
    font-weight: bold;
    letter-spacing: 5px;
}

.splash-subtitle {
    font-size: 48px;
    color: #ff1493;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-top: 10px;
    font-weight: bold;
}

.loading {
    margin-top: 60px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.loading-dots {
    display: flex;
    gap: 5px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #ff69b4;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==================== 主应用 ==================== */
.app {
    padding-bottom: 70px;
    min-height: 100vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ==================== 顶部滚动公告 ==================== */
.marquee-bar {
    background: linear-gradient(90deg, #fff5f8 0%, #ffe4ec 100%);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.marquee-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.marquee-text {
    flex: 1;
    overflow: hidden;
}

.marquee-text span {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 8s linear infinite;
    font-size: 15px;
    color: #e91e63;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==================== 广告轮播图 ==================== */
.ad-carousel-container {
    margin: 10px 15px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ad-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slide.active {
    opacity: 1;
    z-index: 1;
}

/* 默认占位样式 */
.ad-placeholder {
    padding: 20px;
    color: white;
    text-align: left;
    width: 100%;
}

.banner-logo {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
}

.banner-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
}

.ad-placeholder h2 {
    font-size: 22px;
    margin-top: 10px;
}

.ad-placeholder h3 {
    font-size: 26px;
    color: #ffd700;
}

.banner-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.banner-tags span {
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    width: 16px;
    height: 6px;
    border-radius: 3px;
}

.indicator:hover {
    background: rgba(255,255,255,0.8);
}

/* ==================== 功能入口 ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px;
}

.feature-card {
    border-radius: 15px;
    padding: 18px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-card.green {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.feature-card.pink {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.feature-icon {
    font-size: 35px;
}

.feature-info h4 {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.feature-info p {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* ==================== 分类导航 ==================== */
.category-nav {
    display: flex;
    gap: 30px;
    margin: 15px 15px;
    overflow-x: auto;
    padding: 8px 0;
    align-items: center;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-item {
    padding: 8px 0;
    background: transparent;
    border-radius: 0;
    white-space: nowrap;
    font-size: 17px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.category-item.active {
    background: transparent;
    color: #ff6b9d;
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #ff6b9d;
    border-radius: 1.5px;
}

.category-item.filter-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border-radius: 18px;
    margin-left: auto;
    font-size: 14px;
}

.category-item.filter-btn::after {
    display: none;
}

/* ==================== 内容列表 ==================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 10px;
}

.content-card {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
}

.card-info .location,
.card-info .date {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ==================== 圈子页面 ==================== */
.circle-header {
    position: relative;
    height: 160px;
    background: url('../images/qzfm.png') center/cover no-repeat;
    margin: 10px;
    border-radius: 15px;
    overflow: hidden;
}

.circle-banner-bg {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><text x="50%" y="50%" text-anchor="middle" fill="rgba(255,255,255,0.1)" font-size="20">PIPI</text></svg>');
    background-size: cover;
}

.publish-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

/* 滚动轮播公告 */
.scroll-announcement {
    background: linear-gradient(180deg, #fff8fa 0%, #ffeff4 100%);
    border-radius: 15px;
    padding: 12px 15px;
    margin: 10px;
    height: 110px;
    overflow: hidden;
    position: relative;
}

.scroll-ann-list {
    transition: transform 0.5s ease-out;
}

.scroll-ann-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.scroll-ann-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

.scroll-ann-item p {
    margin: 0;
    flex: 1;
}

/* 帖子样式已移至底部统一定义 */

/* ==================== 发现页面 ==================== */
.user-profile {
    background: linear-gradient(180deg, #fce4ec 0%, #f8bbd9 100%);
    border-radius: 0 0 25px 25px;
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.5)"/><circle cx="90" cy="30" r="2" fill="rgba(255,255,255,0.3)"/></svg>');
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    margin: 0 auto 8px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 17px;
    color: #333;
    margin-bottom: 2px;
    position: relative;
    line-height: 1.3;
}

.user-id {
    color: #c840a0;
    font-size: 13px;
    position: relative;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.copy-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 0;
    cursor: pointer;
}

.vip-hint {
    font-size: 12px;
    margin-top: 2px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    position: relative;
    background: linear-gradient(90deg, #f5b812d0 0%, #eea5089f 100%);
    color: #000000;
    font-weight: 500;
    line-height: 1.4;
}

/* 钱包卡片 */
.wallet-card {
    background: white;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wallet-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-icon-new {
    width: 40px;
    height: 40px;
}

.wallet-icon-new svg {
    width: 100%;
    height: 100%;
}

.wallet-icon-bag {
    width: 45px;
    height: 45px;
}

.wallet-icon-bag svg {
    width: 100%;
    height: 100%;
}

.wallet-icon-img {
    width: 32px;
    height: 32px;
}

.wallet-icon-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.wallet-info {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    color: #333;
    font-size: 12px;
    font-weight: 500;
}

.wallet-balance {
    font-size: 14px;
    color: #ff6b9d;
    font-weight: bold;
}

.wallet-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-detail {
    padding: 0;
    border: none;
    background: transparent;
    color: #666;
    font-size: 12px;
    cursor: pointer;
}

.btn-recharge {
    padding: 6px 16px;
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    font-size: 12px;
    cursor: pointer;
}

/* 福利中心 */
.welfare-section {
    margin: 0 10px 15px;
}

.section-title {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.welfare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.welfare-item {
    background: white;
    border-radius: 18px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.welfare-icon {
    font-size: 45px;
    margin-bottom: 8px;
}

.welfare-item h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.welfare-item p {
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
    line-height: 1.4;
}

.welfare-btn {
    border: none;
    padding: 8px 20px;
    border-radius: 18px;
    font-size: 12px;
    cursor: pointer;
    color: white;
    font-weight: 500;
}

.welfare-btn.pink {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
}

.welfare-btn.purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.welfare-btn.blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* 新福利中心卡片 */
.welfare-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 32px;
}

.welfare-card {
    border-radius: 12px;
    padding: 30px 8px 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.welfare-card.pink-gradient {
    background: linear-gradient(180deg, #fce4ec 0%, #f8bbd9 100%);
}

.welfare-card.purple-gradient {
    background: linear-gradient(180deg, #e8d5f9 0%, #d1b3f0 100%);
}

.welfare-card.blue-gradient {
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
}

.welfare-card-icon {
    width: 65px;
    height: 65px;
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
}

.welfare-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.welfare-card-content {
    margin-top: 5px;
}

.welfare-card-content h4 {
    font-size: 13px;
    color: #333;
    font-weight: bold;
    margin-bottom: 4px;
}

.welfare-card-content p {
    font-size: 10px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 8px;
}

.welfare-card-btn {
    border: none;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    color: white;
}

.welfare-card-btn.pink {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
}

.welfare-card-btn.purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.welfare-card-btn.blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* 邀请好友 + 奖励说明合并卡片 */
.invite-reward-card {
    background: linear-gradient(180deg, #fff5f8 0%, #ffebf0 100%);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 10px;
}

.invite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.invite-header h3 {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.invite-link {
    color: #999;
    font-size: 11px;
}

.invite-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.invite-avatar {
    width: 36px;
    height: 36px;
    background: #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.invite-avatar svg {
    width: 22px;
    height: 22px;
}

.invite-buttons {
    display: flex;
    gap: 8px;
}

.invite-btn {
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
}

.invite-btn.outline {
    background: white;
    border: 1px solid #ff6b9d;
    color: #ff6b9d;
}

.invite-btn.solid {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border: none;
    color: white;
}

/* 奖励说明（在合并卡片内） */
.reward-content {
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 107, 157, 0.3);
}

.reward-title {
    font-size: 12px;
    color: #333;
    font-weight: bold;
    margin-bottom: 4px;
}

.reward-text {
    font-size: 10px;
    color: #666;
    margin-bottom: 3px;
}

/* 其他列表 */
.other-section {
    background: white;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 10px 10px;
}

.other-list {
    display: flex;
    flex-direction: column;
}

.other-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.other-item:last-child {
    border-bottom: none;
}

.other-icon {
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.other-icon svg {
    width: 18px;
    height: 18px;
}

.other-text {
    flex: 1;
    font-size: 12px;
    color: #333;
}

.other-arrow {
    color: #ccc;
    font-size: 14px;
}

/* 底部支持 */
.support-footer {
    text-align: center;
    padding: 10px 0;
}

.support-footer p {
    font-size: 10px;
    color: #999;
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.nav-item.active {
    color: #ff6b9d;
}

.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-icon-wrap {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-icon-wrap.active-wrap {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

.nav-icon {
    width: 22px;
    height: 22px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #999;
}

.nav-item.active .nav-icon {
    stroke: #ff6b9d;
}

.nav-icon-wrap.active-wrap .nav-icon {
    stroke: white;
    width: 18px;
    height: 18px;
}

.nav-text {
    font-size: 11px;
    font-weight: 400;
    margin-top: 2px;
    color: #999;
}

.nav-item.active .nav-text {
    color: #ff6b9d;
    font-weight: 500;
}

/* ==================== 欢迎弹窗 ==================== */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.popup-card {
    position: relative;
    width: 80%;
    max-width: 320px;
    background: transparent;
    padding: 0;
    text-align: center;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.popup-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-content {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 12px;
    margin: 0 10px;
}

.popup-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin: 0;
}

.popup-content p:first-child {
    font-weight: bold;
}

.popup-btn {
    width: 60%;
    padding: 12px 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
    transition: all 0.3s ease;
}

.popup-btn:active {
    transform: scale(0.95);
}

.popup-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    cursor: pointer;
}

.popup-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff6b9d;
    cursor: pointer;
}

.popup-checkbox span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==================== 幸运轮盘页面 ==================== */
.lottery-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/cjbj.png') center center / cover no-repeat;
    z-index: 1000;
    overflow-y: auto;
}

.lottery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    background: white;
}

.lottery-back-btn {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
}

.lottery-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.lottery-content {
    padding: 20px 15px;
    text-align: center;
}

.lottery-subtitle {
    font-size: 13px;
    color: #ddab69;
    margin-bottom: 8px;
    letter-spacing: 3px;
    font-weight: 300;
}

.lottery-title {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #c9a063 0%, #b8894d 50%, #a67840 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(255, 200, 210, 0.5));
    -webkit-text-stroke: 0.5px #f0c8d0;
}

.lottery-chances-btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lottery-chances-btn .chances-num {
    color: #ff6b9d;
    font-weight: bold;
    font-size: 18px;
}

/* 轮盘容器 */
.wheel-container {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 30px auto;
}

/* 外圈转盘背景图 */
.wheel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* 奖项文字层 */
.wheel-prizes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.prize {
    position: absolute;
    font-size: 13px;
    font-weight: bold;
    color: #e91e63;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.prize-1 { top: 26%; left: 38%; }
.prize-2 { top: 26%; right: 38%; }
.prize-3 { top: 38%; right: 23%; }
.prize-4 { bottom: 38%; right: 23%; }
.prize-5 { bottom: 25%; right: 38%; }
.prize-6 { bottom: 25%; left: 36%; }
.prize-7 { bottom: 38%; left: 20%; }
.prize-8 { top: 38%; left: 20%; }
.wheel-pointer-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* 指针箭头（底层旋转，紧贴zjlp.png边缘） */
.pointer-arrow {
    position: absolute;
    width: 68px;
    height: 68px;
    border: 3px solid #6366f1;
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.pointer-arrow::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 22px solid #6366f1;
}

/* 中间抽奖按钮（固定在上层） */
.wheel-center-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    display: flex;
    flex-direction: column;
    z-index: 2;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
    border: 4px solid #fef3c7;
}

.wheel-center-btn img {
    display: none;
}

.wheel-center-btn span {
    font-size: 14px;
    color: #92400e;
    font-weight: bold;
}

/* 规则说明 */
.lottery-rules {
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.lottery-rules h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.lottery-rules p {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 无抽奖机会弹窗 */
.no-chance-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-chance-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.no-chance-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.no-chance-card h3 {
    font-size: 20px;
    color: #ff6b9d;
    margin-bottom: 15px;
}

.no-chance-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.no-chance-btn {
    padding: 12px 50px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}

/* ==================== Toast 提示样式 ==================== */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.toast-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ==================== 充值页面 ==================== */
.recharge-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
}

.recharge-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    background: white;
    border-bottom: 1px solid #f5f5f5;
}

.recharge-back-btn {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
}

.recharge-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.recharge-content {
    padding: 20px 15px;
}

.recharge-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.recharge-input-wrap {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.recharge-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
}

.recharge-input::placeholder {
    color: #999;
}

.recharge-unit {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.recharge-quick-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover,
.quick-btn.active {
    border-color: #ff6b9d;
    color: #ff6b9d;
}

.recharge-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
}

.recharge-notice {
    font-size: 12px;
    color: #ff4757;
    line-height: 1.6;
}

/* ==================== 支付确认页面 ==================== */
.payment-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    z-index: 1000;
    overflow-y: auto;
}

.payment-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    background: transparent;
}

.payment-back-btn {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
}

.payment-header h2 {
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.payment-content {
    padding: 20px 15px;
}

/* 倒计时移到右边 */
.payment-coin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.payment-countdown-mini {
    text-align: right;
}

.countdown-label-mini {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
}

.countdown-time-mini {
    font-size: 20px;
    font-weight: bold;
    color: #00d4aa;
    font-family: 'Courier New', monospace;
}

.payment-info-card {
    background: linear-gradient(135deg, #2d3561 0%, #1e2243 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.payment-coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.coin-details {
    display: flex;
    flex-direction: column;
}

.coin-name {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.coin-network {
    font-size: 12px;
    color: #00d4aa;
    background: rgba(0,212,170,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.payment-amount-section {
    text-align: center;
    margin-bottom: 15px;
}

.amount-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.amount-value {
    font-size: 26px;
    font-weight: bold;
    color: #ffd700;
    margin-right: 5px;
}

.amount-unit {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.amount-warning {
    text-align: center;
    font-size: 13px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.payment-address-section {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 15px;
}

.address-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.address-text {
    flex: 1;
    font-size: 12px;
    color: white;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.copy-address-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.address-suffix {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* 支付二维码 */
.payment-qrcode {
    margin-top: 15px;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
}

.payment-qrcode canvas {
    width: 150px !important;
    height: 150px !important;
}

.qrcode-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* 二维码弹窗 */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.qrcode-modal-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    max-width: 90%;
    width: 300px;
}

.qrcode-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.qrcode-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.qrcode-modal-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.qrcode-modal-address {
    font-size: 10px;
    color: #666;
    word-break: break-all;
    margin: 10px 0;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
}

.qrcode-modal-btns {
    margin-top: 15px;
}

.qrcode-save-btn {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
}

/* 充值明细按钮 */
.recharge-history-btn {
    position: absolute;
    right: 15px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

/* 充值明细页面 */
.recharge-history-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    z-index: 1000;
}

.recharge-history-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    position: relative;
}

.history-back-btn {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.recharge-history-header h2 {
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.recharge-history-content {
    padding: 15px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-type {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.history-time {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.history-item-right {
    text-align: right;
}

.history-amount {
    font-size: 16px;
    font-weight: bold;
    color: #00d4aa;
}

.history-status {
    font-size: 11px;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.history-status.pending {
    background: rgba(255,193,7,0.2);
    color: #ffc107;
}

.history-status.success {
    background: rgba(0,212,170,0.2);
    color: #00d4aa;
}

.history-status.timeout {
    background: rgba(255,107,107,0.2);
    color: #ff6b6b;
}

.history-status.cancelled {
    background: rgba(150,150,150,0.2);
    color: #999;
}

.history-empty {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255,255,255,0.5);
}

.history-item.clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.history-item.clickable:hover,
.history-item.clickable:active {
    background: rgba(255,255,255,0.15);
}

.history-item.clickable::after {
    content: '›';
    position: absolute;
    right: 15px;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
}

.history-item {
    position: relative;
}

.payment-notice {
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.payment-notice h4 {
    font-size: 14px;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.payment-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-notice li {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 5px 0;
    padding-left: 15px;
    position: relative;
}

.payment-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

.cancel-payment-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-payment-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* ========== 发布圈子页面 ========== */
.publish-post-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.publish-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.publish-back-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.publish-header h2 {
    flex: 1;
    text-align: center;
    font-size: 18px;
    color: #333;
    margin-right: 30px;
}

.publish-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.publish-section {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.publish-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.label-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.label-count {
    font-size: 14px;
    color: #999;
    margin-left: 5px;
}

.publish-textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    resize: none;
    background: transparent;
}

.publish-textarea::placeholder {
    color: #ccc;
}

.textarea-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.publish-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-btn {
    width: 80px;
    height: 80px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 12px;
}

.upload-btn:hover {
    border-color: #E91E63;
    color: #E91E63;
}

.preview-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-image .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}

.publish-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.confirm-publish-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #E91E63, #FF5722);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-publish-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========== 帖子列表样式更新 ========== */
.post-list {
    padding: 10px 15px;
}

.post-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E63, #FF5722);
    margin-right: 10px;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-avatar .avatar-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.post-info {
    flex: 1;
}

.post-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-tag {
    background: linear-gradient(135deg, #E91E63, #FF5722);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.post-user {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.post-time {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.post-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.post-img {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
}

.post-stat.liked {
    color: #E91E63;
}

.post-stat svg {
    width: 18px;
    height: 18px;
}

.post-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* ========== 签到弹窗样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.checkin-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    max-width: 300px;
}

.checkin-modal-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.checkin-go-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #E91E63, #FF5722);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

.checkin-success-content {
    background: linear-gradient(180deg, #FFF8E1 0%, #FFE082 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 280px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 10px;
}

.success-title {
    font-size: 20px;
    color: #FF6B00;
    margin-bottom: 15px;
}

.success-amount {
    font-size: 48px;
    font-weight: bold;
    color: #FF6B00;
    margin-bottom: 25px;
}

.success-amount span {
    font-size: 48px;
}

.success-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
}

/* 提示弹窗 */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: toastFade 2s ease-in-out;
}

@keyframes toastFade {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; }
}
