* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ff8fab;
    --accent-color: #ffc2d1;
    --bg-color: #fff0f3;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --shadow: 0 2px 10px rgba(255, 107, 157, 0.2);
    --radius: 12px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fff0f3 0%, #ffeef4 25%, #fff0f3 50%, #ffeef4 75%, #fff0f3 100%);
    background-size: 400% 400%;
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 107, 157, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    background-size: 120% 120%;
    animation: backgroundFloat 20s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes backgroundFloat {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* 媒体查询 - 移动设备优化 */
@media screen and (max-width: 768px) {
    /* 基础样式调整 */
    :root {
        --radius: 8px;
        --shadow: 0 1px 6px rgba(255, 107, 157, 0.1);
    }
    
    /* 头部样式 */
    .header {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 17px;
        margin-bottom: 5px;
    }
    
    .location-info {
        font-size: 12px;
    }
    
    /* 导航标签 */
    .nav-tabs {
        padding: 6px 4px;
        bottom: 0;
        top: auto;
    }
    
    .nav-tab {
        font-size: 12px;
        padding: 6px 4px;
    }
    
    /* 内容区域 */
    .content {
        padding: 8px;
        padding-bottom: 70px;
    }
    
    /* 公告栏 */
    .announcements-container {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .announcements-title {
        font-size: 14px;
    }
    
    /* 公告列表限制高度 */
    .announcements-list {
        max-height: 120px;
    }
    
    /* 首页提示 - 简化 */
    .homepage-prompt {
        display: none;
    }
    
    /* 群聊卡片优化 */
    .group-list {
        gap: 6px;
    }
    
    .group-card {
        padding: 10px;
        gap: 6px;
    }
    
    .group-title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .group-price {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .group-description {
        font-size: 11px;
        line-height: 1.3;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        margin-bottom: 5px;
    }
    
    .group-footer {
        font-size: 11px;
    }
    
    /* 群聊详情卡片优化 */
    .group-card-with-members {
        padding: 10px;
        gap: 6px;
    }
    
    .group-name {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .group-price-tag {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .group-meta-row {
        font-size: 11px;
    }
    
    /* 省份筛选 */
    .province-filter {
        gap: 4px;
        margin-bottom: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        white-space: nowrap;
    }
    
    .province-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    /* 城市列表 */
    .city-list {
        max-height: 50vh;
    }
    
    /* 地区标签 */
    .district-list {
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 4px;
        white-space: nowrap;
    }
    
    .district-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 搜索框 */
    .search-box {
        flex-direction: column;
        gap: 6px;
    }
    
    .search-box input {
        font-size: 12px;
        padding: 10px;
    }
    
    .search-box button {
        padding: 10px;
        font-size: 14px;
    }
    
    /* 群聊详情卡片 */
    .group-card-with-members {
        padding: 12px;
    }
    
    .group-name {
        font-size: 16px;
    }
    
    .group-price-tag {
        font-size: 13px;
        padding: 4px 12px;
    }
    
    .group-meta-row {
        font-size: 12px;
    }
    
    /* 省份筛选 */
    .province-filter {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .province-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 城市列表 */
    .city-list {
        max-height: 65vh;
    }
    
    /* 地区标签 */
    .district-list {
        gap: 6px;
    }
    
    .district-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* 搜索框 */
    .search-box {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-box input {
        font-size: 13px;
        padding: 12px;
    }
    
    .search-box button {
        padding: 12px;
        font-size: 15px;
    }
    
    /* 用户信息 */
    .user-info {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .username {
        font-size: 16px;
    }
    
    /* 按钮样式 */
    .btn-primary {
        padding: 12px;
        font-size: 15px;
    }
    
    .btn-outline {
        padding: 10px;
        font-size: 13px;
    }
    
    /* 模态框 */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    /* 登录模态框 */
    .auth-modal {
        max-width: 100%;
    }
    
    /* 充值模态框 */
    .recharge-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .amount-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    /* 订单内容 */
    .order-content {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 13px;
    }
    
    /* 提现模态框 */
    .withdraw-modal {
        max-width: 100%;
    }
    
    /* 客服聊天 */
    .chat-modal {
        height: 85vh;
    }
    
    .message {
        max-width: 80%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 二维码模态框 */
    .qrcode-modal {
        max-width: 100%;
    }
    
    /* 无二维码提示 */
    .no-qrcode {
        padding: 15px;
        font-size: 14px;
    }
}

/* 加载中优化 */
.loading {
    padding: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 骨架屏优化 */
.skeleton-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 12px;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 40%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeletonShimmer {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

/* 触摸反馈优化 */
* {
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

/* 快速滚动优化 */
.content, .group-list, .city-list, .announcements-list {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y proximity;
}

/* 加载速度优化 */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

img.lazyload {
    opacity: 0;
}

img.lazyloaded {
    opacity: 1;
}

/* 网络状态优化 */
.network-status {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    z-index: 1000;
    transition: all 0.3s ease;
    background: #f8f8f8;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.network-status.offline {
    background: #f44336;
    color: white;
}

/* 刷新指示器优化 */
.refresh-indicator {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-align: center;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.refresh-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 节流和防抖优化 */
.debounce-delay {
    animation: debounce 0.3s ease;
}

@keyframes debounce {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 小屏设备优化 */
@media screen and (max-width: 480px) {
    /* 头部 */
    .header h1 {
        font-size: 17px;
    }
    
    /* 导航标签 */
    .nav-tab {
        font-size: 12px;
    }
    
    /* 群聊标题 */
    .group-title {
        font-size: 14px;
    }
    
    /* 群聊描述 */
    .group-description {
        font-size: 11px;
    }
    
    /* 按钮尺寸 */
    .btn-primary {
        padding: 13px;
        font-size: 14px;
    }
    
    /* 邀请码部分移动端调整 */
    .referral-section {
        padding: 12px;
        margin: 10px 0;
    }
    
    .referral-section h3 {
        font-size: 16px;
    }
    
    .referral-code {
        font-size: 14px;
        padding: 8px 12px;
        letter-spacing: 1px;
    }
    
    .referral-buttons {
        flex-direction: column;
    }
    
    .copy-btn, .detail-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    /* 余额页面移动端调整 */
    .balance-page {
        padding: 10px;
    }
    
    .balance-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .balance-header h2 {
        font-size: 18px;
    }
    
    .balance-info {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .balance-amount {
        font-size: 32px;
    }
    
    .balance-actions {
        max-width: 100%;
    }
    
    .balance-actions button {
        padding: 12px;
    }
    
    /* 邀请码模态框移动端调整 */
    .referral-modal {
        width: 98%;
        padding: 0;
    }
    
    .referral-stats {
        padding: 10px;
    }
    
    .referral-stats-summary {
        padding: 10px;
        gap: 10px;
    }
    
    .summary-row {
        gap: 8px;
    }
    
    .summary-item {
        padding: 10px 8px;
    }
    
    .summary-value {
        font-size: 20px;
    }
    
    .summary-label {
        font-size: 11px;
    }
    
    .user-item {
        padding: 12px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-email {
        font-size: 11px;
    }
    
    .user-consumption {
        font-size: 14px;
    }
}
/* 客服聊天悬浮按钮 */ .chat-float-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

/* 触摸友好的按钮样式 */
button, input[type="button"], input[type="submit"], .btn-primary, .btn-outline, .btn-secondary {
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

/* 按钮悬停效果 */
button:hover, input[type="button"]:hover, input[type="submit"]:hover, .btn-primary:hover, .btn-outline:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 按钮点击效果 */
button:active, input[type="button"]:active, input[type="submit"]:active, .btn-primary:active, .btn-outline:active, .btn-secondary:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

/* 按钮点击波纹效果 */
button::before, input[type="button"]::before, input[type="submit"]::before, .btn-primary::before, .btn-outline::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before, input[type="button"]:active::before, input[type="submit"]:active::before, .btn-primary:active::before, .btn-outline:active::before, .btn-secondary:active::before {
    width: 300px;
    height: 300px;
}

/* 优化所有按钮的触摸体验 */
.province-btn, .district-btn, .district-tab-btn, .amount-btn, .payment-method {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 悬停效果 */
.province-btn:hover, .district-btn:hover, .district-tab-btn:hover, .amount-btn:hover, .payment-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.15);
}

/* 点击效果 */
.province-btn:active, .district-btn:active, .district-tab-btn:active, .amount-btn:active, .payment-method:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
    transition: all 0.1s ease;
}

/* 点击波纹效果 */
.province-btn::before, .district-btn::before, .district-tab-btn::before, .amount-btn::before, .payment-method::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.province-btn:active::before, .district-btn:active::before, .district-tab-btn:active::before, .amount-btn:active::before, .payment-method:active::before {
    width: 300px;
    height: 300px;
}

/* 优化输入框触摸体验 */
input, select, textarea {
    min-height: 44px;
    padding: 8px 12px;
    touch-action: manipulation;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 107, 157, 0.1);
    border-radius: var(--radius);
    background: var(--white);
}

input:hover, select:hover, textarea:hover {
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2);
    transform: translateY(-1px);
}

/* 优化链接触摸体验 */
.announcements-more, .balance, .copy-btn, .detail-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

/* 链接悬停效果 */
.announcements-more:hover, .balance:hover, .copy-btn:hover, .detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.15);
    background: rgba(255, 107, 157, 0.05);
}

/* 链接点击效果 */
.announcements-more:active, .balance:active, .copy-btn:active, .detail-btn:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
    transition: all 0.1s ease;
}

/* 链接点击波纹效果 */
.announcements-more::before, .balance::before, .copy-btn::before, .detail-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.announcements-more:active::before, .balance:active::before, .copy-btn:active::before, .detail-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 优化模态框关闭按钮 */
.modal-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:active {
    transform: scale(0.95);
    background: #ddd;
}

/* 添加真实感的设计元素 */

/* 卡片悬浮效果 */
.group-card, .group-card-with-members, .announcements-container, .user-info {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.1);
}

.group-card:hover, .group-card-with-members:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

/* 平滑滚动效果 */
* {
    scroll-behavior: smooth;
}

/* 加载动画优化 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 渐入动画 */
.tab-content.active {
    animation: fadeIn 0.3s ease;
}

.group-card, .group-card-with-members {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 状态变化动画 */
.order-status {
    transition: all 0.3s ease;
}

/* 微妙的背景效果 */
body {
    background: linear-gradient(135deg, var(--bg-color) 0%, #ffeef4 100%);
    background-attachment: fixed;
}

/* 按钮渐变效果 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
    border: none;
}

.btn-primary:active {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* 增强模态框的真实感 */
.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    will-change: transform;
}

/* 优化滑块样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
.chat-float-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 107, 157, 0.4);
}
/* 提现状态样式 */ .withdrawal-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* 公告栏样式 */
.announcements-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.announcements-title {
    font-weight: bold;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.4;
}

.announcements-more {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    line-height: 1.4;
}

/* 优化字体可读性 */
body {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* 标题样式优化 */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

h1 {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
}

h2 {
    font-size: 24px;
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(255, 107, 157, 0.15);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    border-radius: 2px;
}

h3 {
    font-size: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

/* 正文文本优化 */
p, span, div, li {
    line-height: 1.5;
    word-break: break-word;
    word-wrap: break-word;
}

/* 公告栏文本 */
.announcement-title {
    font-size: 15px;
    font-weight: 600;
}

.announcement-content {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.5;
}

.announcement-date {
    font-size: 12px;
    color: #999;
}

/* 移动端字体大小精细调整 */
@media screen and (max-width: 768px) {
    body {
        font-size: 13px;
        line-height: 1.4;
    }
    
    /* 标题调整 */
    h1 {
        font-size: 18px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    h3 {
        font-size: 15px;
    }
    
    /* 公告内容 */
    .announcement-title {
        font-size: 14px;
    }
    
    .announcement-content {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .announcement-date {
        font-size: 11px;
    }
    
    /* 消息文本 */
    .message {
        font-size: 13px;
        line-height: 1.4;
    }
    
    /* 表单文本 */
    .form-group label {
        font-size: 13px;
        line-height: 1.3;
        font-weight: 500;
    }
    
    /* 订单内容 */
    .order-content {
        line-height: 1.3;
        font-size: 12px;
    }
    
    .order-header {
        font-size: 13px;
    }
    
    /* 按钮文本 */
    .btn-primary, .btn-outline, .btn-secondary {
        font-size: 14px;
        font-weight: 500;
    }
    
    /* 余额文本 */
    .balance {
        font-size: 14px;
        font-weight: 600;
    }
    
    /* 用户信息文本 */
    .username {
        font-size: 16px;
        font-weight: 600;
    }
    
    /* 价格文本 */
    .group-detail-price {
        font-size: 20px;
        font-weight: 700;
    }
}

.announcements-more:hover {
    text-decoration: underline;
}

.announcements-list {
    max-height: 200px;
    overflow-y: auto;
}

.announcement-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.announcement-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 15px;
}

.announcement-content {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 5px;
    line-height: 1.4;
}

.announcement-date {
    font-size: 12px;
    color: #999;
}

.announcement-item.loading {
    text-align: center;
    color: var(--light-text);
    padding: 20px;
}
.withdrawal-status.pending {
    background-color: #f0ad4e;
    color: white;
}
.withdrawal-status.completed {
    background-color: #5cb85c;
    color: white;
}
.withdrawal-status.rejected {
    background-color: #d9534f;
    color: white;
}
/* 聊天模态框 */ .chat-modal {
    max-width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
}
.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header h3 {
    margin: 0;
    font-size: 18px;
}
/* 聊天消息区域 */ .chat-messages {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-welcome {
    text-align: center;
    color: var(--light-text);
    padding: 20px 0;
    font-size: 14px;
}
/* 聊天提示高亮 */ .chat-prompt-highlight {
    color: #ff9800;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px 15px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: var(--radius);
    display: inline-block;
    border-left: 3px solid #ff9800;
}
/* 消息样式 */ .message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: var(--radius);
    font-size: 14px;
    word-wrap: break-word;
}
.message.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}
.message.admin {
    align-self: flex-start;
    background: white;
    color: var(--text-color);
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 3px;
    text-align: right;
}
/* 照片消息样式 */ .message-photo {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}
.message-photo:hover {
    transform: scale(1.05);
}
.message-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 聊天输入区域 */ .chat-input-area {
    display: flex;
    padding: 15px;
    background: white;
    gap: 10px;
}
.input-wrapper {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
}
.photo-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}
.chat-input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.chat-input-area input:focus {
    border-color: var(--primary-color);
}
.send-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.send-btn:hover {
    background: var(--secondary-color);
}
.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px 15px;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0.9;
}
.location-icon {
    margin-right: 5px;
}
.nav-tabs {
    display: flex;
    background: var(--white);
    padding: 10px 5px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}
.nav-tab {
    flex: 1;
    padding: 8px 5px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-icon {
    font-size: 20px;
    display: block;
    transition: all 0.3s;
}

.nav-text {
    font-size: 12px;
    display: block;
    transition: all 0.3s;
}

.nav-tab.active {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-tab.active .nav-icon {
    transform: scale(1.1);
}

.nav-tab:hover {
    color: var(--primary-color);
}

.nav-tab:hover .nav-icon {
    transform: scale(1.05);
}
.content {
    padding: 15px;
    padding-bottom: 80px;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
    opacity: 0;
    transform: translateY(10px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
    
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 107, 157, 0.05));
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius) var(--radius) 0;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
    text-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), transparent);
    border-radius: 0 0 0 100%;
}
/* 首页提示样式 */ .homepage-prompt {
    margin-bottom: 20px;
    padding: 0 10px;
}
.homepage-prompt-content {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.homepage-prompt-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}
.homepage-prompt-icon {
    font-size: 24px;
    margin-right: 12px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
    transform: scale(1);
}
50% {
    transform: scale(1.1);
}
100% {
    transform: scale(1);
}
    
}
.homepage-prompt-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #856404;
}
.homepage-prompt-text strong {
    color: #721c24;
    font-weight: 700;
}
.homepage-prompt-text span {
    display: block;
    margin-top: 3px;
}
.group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.group-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.1);
}
.group-card-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), transparent);
    border-radius: 0 0 0 100%;
    pointer-events: none;
}
.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.3);
}
.group-card:active {
    transform: scale(0.98);
}
.group-title-container {
    margin-bottom: 8px;
}
.group-tags {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.group-tag {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 107, 157, 0.2));
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 157, 0.3);
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--light-text);
}
.stat-icon {
    font-size: 14px;
}
.stat-value {
    font-weight: 600;
}
.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.group-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}
.group-price {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.group-price.free {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}
.group-description {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.group-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--light-text);
}
.group-location {
    display: flex;
    align-items: center;
}
.group-stats {
    display: flex;
    gap: 15px;
}
.loading {
    text-align: center;
    padding: 30px;
    color: var(--light-text);
}
.empty-tip {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
}
.province-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.province-btn {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.province-btn.active {
    background: var(--primary-color);
    color: var(--white);
}
.city-search {
    margin-bottom: 15px;
}
.city-search input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.city-search input:focus {
    border-color: var(--primary-color);
}
.city-list {
    max-height: 60vh;
    overflow-y: auto;
}
.city-section {
    margin-bottom: 20px;
}
.city-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px 0;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 10px;
}
.district-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.district-btn {
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.district-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.district-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.search-box button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}
.user-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.login-prompt {
    text-align: center;
}
.login-prompt p {
    margin-bottom: 15px;
    color: var(--light-text);
}
.user-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-avatar {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.username {
    font-size: 18px;
    font-weight: 600;
}
.balance {
    color: var(--primary-color);
    font-weight: 600;
}
.user-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn-outline {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    max-width: 400px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
    margin: 20px 0;
}
@keyframes modalIn {
from {
    opacity: 0;
    transform: scale(0.9);
}
to {
    opacity: 1;
    transform: scale(1);
}
    
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #eee;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001; /* 确保关闭按钮在模态框内容的最上层 */
    transition: all 0.2s;
}

.modal-close:hover {
    background: #ddd;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}
.group-detail {
    padding-top: 10px;
}
.group-detail-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}
.group-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.group-detail-price.free {
    color: #4CAF50;
}
.group-detail-description {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}
.group-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}
.meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.meta-label {
    color: var(--light-text);
}
.purchase-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}
.purchase-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.wechat-info {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.group-qrcode {
    max-width: 250px;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: var(--white);
    padding: 10px;
}
.wechat-id {
    font-size: 18px;
    font-weight: 600;
    color: #07C160;
    margin-bottom: 10px;
    word-break: break-all;
}
.copy-btn {
    padding: 8px 20px;
    background: #07C160;
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.auth-modal {
    max-width: 350px;
}
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 15px;
}
.auth-tab.active {
    background: var(--primary-color);
    color: var(--white);
}
#authForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#authForm input {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}
#authForm input:focus {
    border-color: var(--primary-color);
}
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}
to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
    
}
.recharge-modal h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.recharge-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.amount-btn {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.amount-btn.active {
    border-color: var(--primary-color);
    background: var(--accent-color);
    color: var(--primary-color);
}
.custom-amount {
    margin-bottom: 20px;
}
.custom-amount label {
    display: block;
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 8px;
}
.custom-amount input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}
.custom-amount input:focus {
    border-color: var(--primary-color);
}
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.payment-method {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.payment-method.active {
    border-color: var(--primary-color);
    background: var(--accent-color);
}
.payment-method input {
    margin-right: 10px;
    accent-color: var(--primary-color);
}
.recharge-submit {
    margin-top: 10px;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
    transform: rotate(360deg);
}
    
}
.network-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    z-index: 2000;
}
.refresh-indicator {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    text-align: center;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.refresh-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.error-container {
    text-align: center;
    padding: 40px 20px;
}
.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.error-text {
    color: var(--light-text);
    margin-bottom: 15px;
}
.retry-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.skeleton-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.1);
}
.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), transparent);
    border-radius: 0 0 0 100%;
}
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 107, 157, 0.1) 25%,
        rgba(255, 107, 157, 0.05) 50%,
        rgba(255, 107, 157, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 8px;
    border-radius: 6px;
}
.skeleton-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.skeleton-tag {
    height: 18px;
    width: 50px;
    border-radius: 9px;
    background: linear-gradient(
        90deg,
        rgba(255, 107, 157, 0.1) 25%,
        rgba(255, 107, 157, 0.05) 50%,
        rgba(255, 107, 157, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-tag:nth-child(2) {
    width: 60px;
}
.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 4px;
}
.skeleton-text:nth-child(2) {
    width: 90%;
}
.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.skeleton-location {
    height: 16px;
    width: 100px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        rgba(255, 107, 157, 0.1) 25%,
        rgba(255, 107, 157, 0.05) 50%,
        rgba(255, 107, 157, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-stats {
    display: flex;
    gap: 15px;
}
.skeleton-stat {
    height: 16px;
    width: 40px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        rgba(255, 107, 157, 0.1) 25%,
        rgba(255, 107, 157, 0.05) 50%,
        rgba(255, 107, 157, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% {
    background-position: 200% 0;
}
100% {
    background-position: -200% 0;
}
    
}
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}
.dialog {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    max-width: 350px;
    width: 90%;
}
.dialog-content {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}
.dialog-buttons {
    display: flex;
    gap: 10px;
}
.dialog-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}
.dialog-btn.cancel {
    background: #f5f5f5;
    color: var(--light-text);
}
.dialog-btn.confirm {
    background: var(--primary-color);
    color: var(--white);
}
.loading-tip {
    text-align: center;
    padding: 30px;
    color: var(--light-text);
}
.error-tip {
    text-align: center;
    padding: 30px;
    color: var(--light-text);
}
.city-groups-view {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    margin-top: 15px;
}
.back-to-cities {
    margin-bottom: 15px;
}
.back-btn {
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.selected-city-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}
.city-district-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.district-tab-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.district-tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
/* 游客登录相关样式 */ .guest-login-container {
    margin-top: 20px;
    text-align: center;
}
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 13px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}
.divider::before {
    margin-right: 10px;
}
.divider::after {
    margin-left: 10px;
}
#guestLoginBtn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
#guestLoginBtn:hover {
    background: var(--primary-color);
    color: var(--white);
}
.district-tab-btn.active:hover {
    color: var(--white);
}
.district-groups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.group-card-with-members {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.group-card-with-members:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}
.group-card-with-members:active {
    transform: scale(0.98);
}
.group-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.group-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}
.group-price-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.group-price-tag.free {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}
.group-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--light-text);
}
.group-members {
    display: flex;
    align-items: center;
    gap: 5px;
}
.group-location-info {
    display: flex;
    align-items: center;
    gap: 5px;
}
.group-action-hint {
    text-align: center;
    padding: 10px;
    color: var(--light-text);
    font-size: 12px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}
/* 邀请码部分 */ .referral-section {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 107, 157, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.referral-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.referral-section h3::before {
    content: '🎁';
    font-size: 16px;
}
.referral-code-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.referral-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.referral-code-label {
    font-weight: bold;
    color: var(--text-color);
    font-size: 14px;
    white-space: nowrap;
}
.referral-code {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    background-color: var(--white);
    border: 2px solid #4CAF50;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.referral-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.copy-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.copy-btn:hover {
    background-color: #45a049;
}
.detail-btn {
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-left: 10px;
}
.detail-btn:hover {
    background-color: #0b7dda;
}
/* 购买记录部分 */ .purchase-records {
    margin: 20px 0;
}
.my-orders {
    margin: 20px 0;
}
/* 余额页面 */ .balance-page {
    padding: 15px;
}
.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}
.balance-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.balance-header h2::before {
    content: '💰';
    font-size: 18px;
}
.balance-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 107, 157, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.balance-amount {
    font-size: clamp(28px, 8vw, 48px);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.balance-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}
.balance-actions button {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.balance-actions button:first-child {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}
.balance-actions button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}
.balance-actions button:last-child {
    background-color: #f5f5f5;
    color: var(--text-color);
    border: 1px solid #ddd;
}
.balance-actions button:last-child:hover {
    background-color: #e9e9e9;
}
.balance-history {
    margin-top: 30px;
}
.balance-history h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.balance-history h3::before {
    content: '📝';
    font-size: 14px;
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.transaction-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 107, 157, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.transaction-type {
    font-weight: bold;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 0;
}
.transaction-amount {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}
.transaction-amount.income {
    color: #4CAF50;
}
.transaction-amount.expense {
    color: #f44336;
}
.transaction-time {
    font-size: 12px;
    color: var(--text-light);
    text-align: left;
}
/* 提现记录项 */ .withdrawal-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 107, 157, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}
.withdrawal-info {
    margin-bottom: 10px;
}
.withdrawal-type {
    font-weight: bold;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 5px;
}
.withdrawal-time {
    font-size: 12px;
    color: var(--text-light);
}
.withdrawal-amount {
    font-weight: bold;
    font-size: 16px;
    color: #f44336;
    margin-bottom: 10px;
}
.withdrawal-status {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}
.withdrawal-status.completed {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}
.withdrawal-status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}
.withdrawal-status.rejected {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}
.withdrawal-remark {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(255, 107, 157, 0.05);
    border-radius: 4px;
}
.withdrawal-screenshot {
    margin-top: 10px;
}
.screenshot-btn {
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.screenshot-btn:hover {
    background-color: var(--primary-hover);
}
/* 提现模态框 */ .withdraw-modal {
    max-width: 500px;
    width: 90%;
}
.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.withdraw-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.withdraw-form label {
    font-weight: bold;
    color: #333;
}
.withdraw-form input, .withdraw-form select {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
}
.available-balance {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}
.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.upload-placeholder {
    text-align: center;
    padding: 30px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    width: 100%;
    background-color: #f9f9f9;
}
.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}
.upload-placeholder p {
    margin: 15px 0;
    color: #666;
}
.qrcode-preview {
    text-align: center;
}
.qrcode-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.form-note {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}
.form-note p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}
.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-small:hover {
    background-color: #c82333;
}
/* 邀请码详情模态框 */ .referral-modal {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 支付失败模态框 */ .payment-failed-modal {
    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: 30px 20px;
}

.payment-failed-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #f44336;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.payment-failed-title {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-failed-message {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.payment-failed-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.payment-failed-actions button {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.payment-failed-actions .btn-outline {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.payment-failed-actions .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.payment-failed-actions .btn-primary {
    border: none;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.payment-failed-actions .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}
.referral-modal-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.referral-modal-title::before {
    content: '🎁';
    font-size: 16px;
}
.referral-stats {
    padding: 15px;
}
.referral-stats-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 107, 157, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 107, 157, 0.1);
}
.summary-row {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}
.summary-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.summary-value {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}
.summary-label {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
    font-size: 12px;
}
.referred-users-list {
    margin-top: 15px;
}
.referred-users-list h3 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.referred-users-list h3::before {
    content: '👥';
    font-size: 14px;
}
.user-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
    background-color: var(--white);
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.user-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.user-info {
    margin-bottom: 10px;
}
.user-name {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 14px;
}
.user-email {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
    word-break: break-all;
}
.user-created {
    font-size: 11px;
    color: var(--text-light);
}
.user-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-consumption {
    font-weight: bold;
    color: #f44336;
    font-size: 14px;
}
.user-reward {
    font-size: 12px;
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
}
.empty-tip {
    text-align: center;
    color: #999;
    padding: 40px 0;
}
.my-orders h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.order-id {
    font-size: 14px;
    color: #666;
}
.order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
/* 支付方式选择 */ .payment-options {
    margin: 20px 0;
    text-align: center;
}
.payment-options h3 {
    margin-bottom: 15px;
    color: #333;
}
.payment-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}
.payment-option-btn:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}
.payment-option-btn.balance:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}
.payment-option-btn.alipay:hover {
    border-color: #1677ff;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
}
.payment-option-btn.wechat:hover {
    border-color: #07c160;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.1);
}
.payment-icon {
    font-size: 20px;
    margin-right: 10px;
}
.payment-name {
    flex: 1;
    text-align: left;
}
.payment-balance {
    color: #666;
    font-size: 14px;
}
.order-status.success {
    background-color: #d4edda;
    color: #155724;
}
.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
}
.order-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    font-size: 14px;
    color: #333;
}
.order-group {
    font-weight: bold;
}

/* 二维码模态框样式 */
.qrcode-modal {
    max-width: 400px;
    width: 100%;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.qrcode-content {
    text-align: center;
}
.qrcode-content h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}
.qrcode-image-container {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}
.qrcode-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.qrcode-tip {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}
    