/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: #fff;
    font-size: 14px;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* ===== 背景动态装饰 ===== */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* ===== 应用容器 ===== */
.app-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    padding-top: 20px;
}

/* ===== 页面切换 ===== */
.page {
    display: none;
    animation: pageFadeIn 0.35s ease;
}

.page.active {
    display: block;
}

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

/* ===== 页面头部 ===== */
.page-header {
    text-align: center;
    padding: 20px 0 24px;
}

.header-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #f5af19, #f12711, #f5af19);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 1px;
}

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

.header-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ===== 余额显示栏 ===== */
.balance-bar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.balance-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.balance-amount {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 抽奖区域 ===== */
.lottery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* ===== 奖品展示圆盘 ===== */
.prize-display {
    position: relative;
    width: 240px;
    height: 240px;
}

.prize-display::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(102, 126, 234, 0.3),
        rgba(118, 75, 162, 0.3),
        rgba(245, 175, 25, 0.3),
        rgba(241, 39, 17, 0.3),
        rgba(102, 126, 234, 0.3)
    );
    animation: spinBorder 4s linear infinite;
    z-index: 0;
}

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

.prize-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.prize-circle.spinning {
    animation: pulseGlow 0.6s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 60px rgba(102, 126, 234, 0.5), 0 0 80px rgba(118, 75, 162, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.prize-icon {
    font-size: 56px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.prize-circle.spinning .prize-icon {
    animation: iconBounce 0.4s ease-in-out infinite alternate;
}

@keyframes iconBounce {
    from { transform: scale(1) rotate(-5deg); }
    to { transform: scale(1.1) rotate(5deg); }
}

.prize-name {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.prize-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ===== 抽奖按钮 ===== */
.draw-btn {
    position: relative;
    width: 200px;
    height: 56px;
    border: none;
    border-radius: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.draw-btn:active {
    transform: scale(0.95);
}

.draw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: btnGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnGlow {
    0%, 100% { transform: translate(-30%, -30%) rotate(0deg); opacity: 0.5; }
    50% { transform: translate(30%, 30%) rotate(180deg); opacity: 1; }
}

.btn-text {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

/* ===== 抽奖记录 ===== */
.records-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-top: 8px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.record-count {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.records-list::-webkit-scrollbar {
    width: 4px;
}

.records-list::-webkit-scrollbar-track {
    background: transparent;
}

.records-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 30px 16px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 4px;
}

.empty-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== 记录项 ===== */
.record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: recordSlideIn 0.3s ease;
}

@keyframes recordSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.record-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.record-info {
    flex: 1;
    min-width: 0;
}

.record-prize {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.record-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.record-value {
    font-size: 15px;
    font-weight: 700;
    color: #f5af19;
    flex-shrink: 0;
}

/* ===== 底部导航栏 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-icon {
    font-size: 24px;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
}

.nav-item.active .nav-label {
    color: #667eea;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 0 3px 3px;
}

/* ===== 个人中心 ===== */

/* 用户信息卡片 */
.profile-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.user-id {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.balance-section {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.balance-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.balance-item {
    flex: 1;
    text-align: center;
}

.balance-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 12px;
}

.balance-section .balance-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.points-value {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 统计网格 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* ===== 功能菜单 ===== */
.menu-section {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.menu-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.menu-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
    min-width: 0;
}

.menu-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.menu-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.menu-arrow {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    flex-shrink: 0;
}

/* ===== 弹窗 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
    animation: overlayFadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px 28px 0 0;
    padding: 24px 24px 36px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: modalSlideUp 0.4s ease;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

/* ===== 积分选项列表 ===== */
.points-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.points-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.points-option:active {
    transform: scale(0.97);
}

.points-option.selected {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.points-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    pointer-events: none;
}

.points-option-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.points-option.selected .points-option-icon {
    background: rgba(102, 126, 234, 0.2);
}

.points-option-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.points-option-value {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2px;
}

.points-option-prize {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.points-option.selected .points-option-prize {
    color: rgba(102, 126, 234, 0.8);
}

.points-option-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.points-option.selected .points-option-check {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

/* ===== 选中奖品展示 ===== */
.selected-prize {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 64px;
}

.selected-prize-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.selected-prize-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.selected-prize-name {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2px;
}

.selected-prize-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 弹窗按钮 ===== */
.modal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
    margin-bottom: 10px;
}

.modal-btn:active {
    transform: scale(0.96);
}

.modal-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.confirm-btn {
    background: linear-gradient(135deg, #f5af19, #f12711);
    box-shadow: 0 6px 24px rgba(241, 39, 17, 0.4);
}

.confirm-btn:disabled {
    opacity: 0.4;
    box-shadow: none;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.cancel-btn:active {
    background: rgba(255, 255, 255, 0.12);
}

/* ===== 结果弹窗 ===== */
.result-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: resultIconPop 0.6s ease;
}

@keyframes resultIconPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-title {
    font-size: 22px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
}

.result-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    line-height: 1.5;
}


/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 14px 28px;
    background: rgba(30, 27, 75, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
    .app-container {
        padding-top: 40px;
    }

    .prize-display {
        width: 280px;
        height: 280px;
    }

    .prize-icon {
        font-size: 64px;
    }

    .draw-btn {
        width: 220px;
        height: 60px;
    }

    .btn-text {
        font-size: 20px;
    }
}

/* ===== 资金日志弹窗 ===== */
.fundlog-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

.fundlog-table-wrap {
    flex: 1;
    overflow-y: auto;
    margin: 0 -8px 16px;
    padding: 0 8px;
    max-height: 55vh;
}

.fundlog-table-wrap::-webkit-scrollbar {
    width: 4px;
}

.fundlog-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.fundlog-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.fundlog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fundlog-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.fundlog-table th {
    background: rgba(40, 35, 90, 0.98);
    padding: 12px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.fundlog-table th:first-child {
    border-radius: 8px 0 0 0;
    padding-left: 12px;
}

.fundlog-table th:last-child {
    border-radius: 0 8px 0 0;
    padding-right: 12px;
}

.fundlog-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    vertical-align: middle;
}

.fundlog-table tbody tr {
    transition: background 0.2s ease;
}

.fundlog-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.fundlog-table tbody tr:active {
    background: rgba(255, 255, 255, 0.08);
}

.fundlog-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'SF Mono', 'Fira Code', monospace;
    white-space: nowrap;
}

.fundlog-type {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.fundlog-amount {
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    text-align: right;
    white-space: nowrap;
}

.fundlog-amount.positive {
    color: #4ade80;
}

.fundlog-amount.negative {
    color: #f87171;
}

.fundlog-balance {
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.fundlog-empty {
    text-align: center;
    padding: 30px 16px;
    display: none;
}

.fundlog-empty .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.fundlog-empty .empty-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* ===== 签到日历弹窗 ===== */
.checkin-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

/* 日历星期头部 */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 日历网格 */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0 4px;
    margin-bottom: 20px;
}

/* 日历格子 */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    cursor: default;
}

.calendar-day.empty {
    background: transparent;
    pointer-events: none;
}

/* 已签到日期 - 高亮 */
.calendar-day.checked-in {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.calendar-day.checked-in::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
}

/* 今天 - 边框高亮 */
.calendar-day.today {
    border: 2px solid rgba(245, 175, 25, 0.6);
    box-shadow: 0 0 12px rgba(245, 175, 25, 0.15);
}

.calendar-day.today.checked-in {
    border: 2px solid rgba(245, 175, 25, 0.8);
    box-shadow: 0 0 16px rgba(245, 175, 25, 0.25), 0 2px 12px rgba(102, 126, 234, 0.3);
}

/* 签到统计 */
.checkin-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkin-stat-item {
    flex: 1;
    text-align: center;
}

.checkin-stat-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.checkin-stat-item:first-child .checkin-stat-value {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkin-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.checkin-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 16px;
}
