/* ========================================
   儿童任务打卡系统 - 酷炫玻璃拟态风格
   ======================================== */

/* CSS 变量 */
:root {
    --primary: #00BCD4;
    --primary-light: #4DD0E1;
    --primary-dark: #0097A7;
    --accent: #00E5A0;
    --accent-light: #69F0AE;
    --success: #6BCB77;
    --success-light: #A8E6B0;
    --danger: #FF6B6B;
    --danger-light: #FFB3B3;
    --info: #74C0FC;
    --bg: #F0FDFA;
    --bg-card: #FFFFFF;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    --text: #37474F;
    --text-light: #78909C;
    --text-white: #FFFFFF;
    --shadow: 0 2px 12px rgba(0, 188, 212, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 188, 212, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 50%;
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(16px);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 25%, #E0F2F1 50%, #E8F5E9 75%, #E3F2FD 100%);
    background-size: 400% 400%;
    animation: bgFlow 15s ease infinite;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* 浮动气泡装饰 */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}
body::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -80px;
    right: -60px;
    animation: floatBubble1 8s ease-in-out infinite;
}
body::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: 80px;
    left: -80px;
    animation: floatBubble2 10s ease-in-out infinite;
}

@keyframes floatBubble1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.1); }
}
@keyframes floatBubble2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.15); }
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   布局
   ======================================== */

.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}


/* ========================================
   儿童选择器
   ======================================== */

.child-selector {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.child-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    min-width: 90px;
    position: relative;
}

.child-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.child-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(224,247,250,0.9), rgba(255,255,255,0.9));
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.25);
}

.child-avatar {
    font-size: 2rem;
    line-height: 1;
}

.child-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.child-points {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

/* ========================================
   紧凑顶栏
   ======================================== */

/* 整体容器 */
.dashboard-bar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 10px 14px 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: barFadeIn 0.4s ease both;
}

@keyframes barFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 底部彩色渐变线 */
.dashboard-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success), #00BCD4, var(--accent), #0097A7);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* 问候语行 */
.bar-greeting {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.greeting-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.greeting-date {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 500;
}

/* 统计横排 */
.bar-stats {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

/* 单个统计项 */
.bar-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.bar-stat-item:hover {
    background: rgba(0, 188, 212, 0.06);
}

/* 分隔线 */
.bar-stat-item + .bar-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(0,0,0,0.06);
}

/* 迷你进度环 */
.bar-stat-ring {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(107, 203, 119, 0.15);
    stroke-width: 6;
}

.ring-fill-today {
    fill: none;
    stroke: var(--success);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 213.628;
    stroke-dashoffset: 213.628;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-ring-value {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--success);
    z-index: 1;
    line-height: 1;
}

/* 图标徽章（紧凑版） */
.bar-stat-badge {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
    text-align: center;
}

.streak-badge {
    animation: flamePulse 1.5s ease-in-out infinite;
}

.points-badge {
    animation: starTwinkle 2.5s ease-in-out infinite;
}

.coins-badge {
    animation: coinShine 2s ease-in-out infinite;
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes coinShine {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* 数值文字 */
.bar-stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    transition: var(--transition);
}

.streak-value {
    background: linear-gradient(135deg, #00BCD4, #00E5A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.points-value {
    background: linear-gradient(135deg, #0097A7, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coins-value {
    background: linear-gradient(135deg, #00E5A0, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 标签 */
.bar-stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 数值变化动画 */
.bar-stat-value.value-changed {
    animation: valueBounce 0.4s ease;
}

@keyframes valueBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 保留旧的 stat-card 用于其他地方 */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ========================================
   任务列表
   ======================================== */

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .emoji {
    font-size: 1.2rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.segmented-tabs {
    display: flex;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 16px;
}

.segmented-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.segmented-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.task-tab-panel.active {
    display: block;
}

/* 页面切换过渡动画 */
.page-view {
    animation: pageEnter 0.3s ease both;
}

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

.task-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.task-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}

.task-card:hover::after {
    animation: shimmerCard 0.6s ease;
}

@keyframes shimmerCard {
    0% { left: -100%; }
    100% { left: 100%; }
}

.task-card.completed {
    opacity: 0.75;
    background: linear-gradient(135deg, rgba(240,255,240,0.8), rgba(255,255,255,0.7));
}

.task-card.completed::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--success), var(--success-light));
    border-radius: 0 4px 4px 0;
}

.task-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

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

.task-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.task-card.completed .task-name {
    text-decoration: line-through;
    color: var(--text-light);
}

.task-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.task-desc {
    display: inline;
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    vertical-align: middle;
}

/* 任务类型颜色标签 */
.task-type-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.task-type-tag.type-daily {
    background: rgba(0, 188, 212, 0.12);
    color: #0097A7;
}

.task-type-tag.type-weekly {
    background: rgba(156, 39, 176, 0.12);
    color: #7B1FA2;
}

.task-type-tag.type-once {
    background: rgba(255, 152, 0, 0.12);
    color: #E65100;
}

/* 完成时间 */
.task-done-time {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 500;
    margin-left: 6px;
}

/* 右侧操作区域 */
.task-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* 积分奖励标签 */
.task-reward {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 229, 160, 0.1);
    padding: 1px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.task-reward.claimed {
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.04);
    text-decoration: line-through;
}

/* 打卡胶囊按钮 */
.checkin-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--success), #5AB868);
    color: white;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 3px 12px rgba(107, 203, 119, 0.35);
    animation: checkinGlow 2.5s ease-in-out infinite;
    letter-spacing: 0.3px;
}

@keyframes checkinGlow {
    0%, 100% { box-shadow: 0 3px 12px rgba(107, 203, 119, 0.35); }
    50% { box-shadow: 0 3px 20px rgba(107, 203, 119, 0.55); }
}

.checkin-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 5px 18px rgba(107, 203, 119, 0.45);
}

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

.checkin-btn.checked {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-light);
    box-shadow: none;
    animation: none;
    font-weight: 600;
    text-decoration: line-through;
}

/* ========================================
   全部完成庆祝
   ======================================== */

.all-done-banner {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--accent-light), var(--success-light));
    border-radius: var(--radius);
    margin-bottom: 20px;
    animation: celebrateIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.all-done-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.all-done-banner .emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
}

.all-done-banner .text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* ========================================
   底部导航
   ======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    border-radius: 2px;
    opacity: 0.6;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.7rem;
    font-family: inherit;
    position: relative;
}

.nav-item:hover {
    background: rgba(0, 188, 212, 0.1);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
}

.nav-item .nav-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.nav-item .nav-label {
    font-weight: 600;
}

/* ========================================
   模态框
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ========================================
   表单
   ======================================== */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* 图标选择器 */
.icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icon-option {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background: var(--bg);
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-option:hover {
    background: var(--primary-light);
}

.icon-option.active {
    border-color: var(--primary);
    background: rgba(0, 188, 212, 0.15);
}

/* 星期选择 */
.week-picker {
    display: flex;
    gap: 6px;
}

.week-day {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: var(--bg);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}

.week-day.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   按钮
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #5AB868);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 203, 119, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #E85555);
    color: white;
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 10px;
}

/* ========================================
   家长管理页面
   ======================================== */

.admin-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 188, 212, 0.1);
}

.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    flex: none;
    white-space: nowrap;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.admin-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

/* 管理列表项 */
.admin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.admin-item:hover {
    box-shadow: var(--shadow);
}

.admin-item-icon {
    font-size: 1.5rem;
}

.admin-item-info {
    flex: 1;
}

.admin-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-item-meta {
    font-size: 0.78rem;
    color: var(--text-light);
}

.admin-item-actions {
    display: flex;
    gap: 6px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.icon-btn.danger:hover {
    background: var(--danger-light);
}

/* ========================================
   奖励商城
   ======================================== */

.reward-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 80px;
}

.reward-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.reward-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.reward-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    opacity: 0;
    pointer-events: none;
}

.reward-card:hover::after {
    animation: shimmerCard 0.8s ease;
}

.reward-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.reward-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.reward-cost {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.reward-cost::before {
    content: '⭐ ';
}

/* ========================================
   积分游戏
   ======================================== */

.balance-summary {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.game-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.game-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#chestGameCard {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.85), rgba(255, 255, 255, 0.75));
}

#chestGameCard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(135deg, #00E5A0, #00BCD4, #00E5A0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 3s ease-in-out infinite;
    pointer-events: none;
}

#spinGameCard {
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.85), rgba(255, 255, 255, 0.75));
}

#spinGameCard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(135deg, #0097A7, #00BCD4, #00E5A0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 2.5s ease-in-out infinite;
    pointer-events: none;
}

.game-card-header {
    text-align: center;
}

.game-card-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 8px;
}

.game-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 188, 212, 0.4);
    background: rgba(0, 188, 212, 0.08);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    -webkit-tap-highlight-color: transparent;
}

.game-help-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.game-help-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.game-help-panel:not(.hidden) {
    max-height: 300px;
}

.game-help-content {
    background: rgba(0, 188, 212, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin: 8px 0 4px;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.7;
    border: 1px solid rgba(0, 188, 212, 0.12);
}

.game-help-content p {
    margin: 0;
}

.game-card-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.game-card-result {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 8px;
    background: rgba(0, 188, 212, 0.08);
    border-radius: var(--radius-sm);
}

.game-card-result.hidden {
    display: none;
}

.game-card-result.result-animate {
    animation: resultPop 0.5s ease;
}

@keyframes resultPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Chest animation */
.chest-opening {
    animation: chestShake 0.6s ease;
}

@keyframes chestShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-10deg) scale(1.1); }
    40% { transform: rotate(10deg) scale(1.15); }
    60% { transform: rotate(-8deg) scale(1.2); }
    80% { transform: rotate(8deg) scale(1.15); }
}

/* Spin wheel */
.spin-wheel-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 12px auto;
}

.spin-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3), 0 0 40px rgba(0, 188, 212, 0.1);
}

.spin-wheel canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.spin-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    color: var(--danger);
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Game records */
.game-records-list {
    margin-bottom: 80px;
}

.game-record-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.game-record-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.game-record-text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
}

.game-record-time {
    font-size: 0.72rem;
    color: var(--text-light);
    flex-shrink: 0;
}

/* ========================================
   登录页
   ======================================== */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.login-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ========================================
   Toast 提示
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    width: calc(100% - 40px);
}

.toast {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toast.success {
    background: var(--success);
    color: white;
}

.toast.error {
    background: var(--danger);
    color: white;
}

.toast.info {
    background: var(--info);
    color: white;
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

/* ========================================
   打卡成功星星动画
   ======================================== */

.stars-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 250;
}

.star-particle {
    position: absolute;
    font-size: 1.5rem;
    animation: starFly 1s ease-out forwards;
}

@keyframes starFly {
    0% {
        opacity: 1;
        transform: scale(0) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) translateY(-40px);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-100px);
    }
}

@keyframes celebrateIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 鼓励语弹出 */
.encouragement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 32px;
    box-shadow: var(--shadow-lg);
    z-index: 260;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    animation: popIn 0.5s ease forwards;
    pointer-events: none;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* ========================================
   空状态
   ======================================== */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state .emoji {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.empty-state .text {
    font-size: 0.95rem;
}

/* ========================================
   加载动画
   ======================================== */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 188, 212, 0.2);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   刮刮卡
   ======================================== */

.scratch-container {
    position: relative;
    width: 280px;
    height: 120px;
    margin: 12px auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: none;
}

.scratch-container.active {
    display: block;
}

.scratch-prize {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #E0F7FA, #B2EBF2);
    border-radius: var(--radius-sm);
}

.scratch-prize.hidden { display: none; }
.scratch-container.active .scratch-prize { display: flex; }

#scratchCanvas {
    position: absolute;
    inset: 0;
    cursor: pointer;
    touch-action: none;
    z-index: 2;
    border-radius: var(--radius-sm);
}

.scratch-info {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 8px;
}

.scratch-info.hidden { display: none; }

/* ========================================
   猜数字
   ======================================== */

.guess-game-area {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 188, 212, 0.06);
    border-radius: var(--radius-sm);
}

.guess-range {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.guess-tries {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.guess-history {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.guess-record {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    font-size: 0.82rem;
    border-radius: 6px;
    margin-bottom: 4px;
}

.guess-record.high {
    background: rgba(255, 107, 107, 0.1);
    color: #E85555;
}

.guess-record.low {
    background: rgba(107, 203, 119, 0.1);
    color: #4CAF50;
}

.guess-record.correct {
    background: rgba(0, 188, 212, 0.15);
    color: #0097A7;
    font-weight: 700;
}

.guess-input-row {
    display: flex;
    gap: 8px;
}

.guess-input-row .form-input {
    flex: 1;
    padding: 8px 12px;
}

.guess-input-row .btn {
    flex-shrink: 0;
}

/* ========================================
   响应式
   ======================================== */

@media (min-width: 768px) {
    .app-container,
    .admin-container {
        max-width: 600px;
    }
    
    .reward-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   PWA 适配
   ======================================== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    .app-container,
    .admin-container {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* ========================================
   工具类
   ======================================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }

.reward-points-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 80px;
}

.admin-title {
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 12px;
}

.login-modal-hero {
    text-align: center;
    margin-bottom: 16px;
}

.login-modal-icon {
    font-size: 3rem;
}

.login-tip {
    font-size: 0.78rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.bounty-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    animation: bountyFadeIn 0.4s ease-out;
}

.bounty-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 活跃悬赏 - 酷炫金色光边效果 */
.bounty-card.status-active {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bounty-card.status-active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700, #ffed4a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 3s ease-in-out infinite;
    pointer-events: none;
}

.bounty-card.status-active::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 215, 0, 0.08) 45%,
        rgba(255, 215, 0, 0.15) 50%,
        rgba(255, 215, 0, 0.08) 55%,
        transparent 60%
    );
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.bounty-card.status-active:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.3);
}

.bounty-card.status-active .task-name {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bounty-card.status-active .bounty-meta {
    color: rgba(255, 255, 255, 0.7);
}

.bounty-card.status-active .bounty-desc {
    color: rgba(255, 255, 255, 0.85);
}

.bounty-card.status-active .bounty-footer {
    color: rgba(255, 255, 255, 0.6);
}

.bounty-card.status-active .task-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

/* 待审核状态 - 温暖脉冲 */
.bounty-card.status-pending {
    background: linear-gradient(135deg, #fff9dc, #fff3b0);
    border: 2px solid rgba(255, 193, 7, 0.3);
    animation: bountyFadeIn 0.4s ease-out, pendingPulse 2s ease-in-out infinite;
}

/* 已完成状态 - 绿色庆祝 */
.bounty-card.status-completed {
    background: linear-gradient(135deg, #f0fff0, #d4edda);
    border: 2px solid rgba(107, 203, 119, 0.3);
    opacity: 0.85;
}

.bounty-card.status-completed::before {
    content: '✅';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2rem;
    opacity: 0.3;
}

/* 已过期/已取消 - 暗淡 */
.bounty-card.status-expired,
.bounty-card.status-cancelled {
    opacity: 0.6;
    background: linear-gradient(135deg, #f6f6f6, #e8e8e8);
    filter: grayscale(0.5);
}

.bounty-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bounty-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
}

.bounty-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.bounty-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1;
}
.bounty-grade.grade-c {
    background: rgba(107,203,119,0.18);
    color: #4CAF50;
    border: 1px solid rgba(107,203,119,0.3);
}
.bounty-grade.grade-b {
    background: rgba(33,150,243,0.15);
    color: #2196F3;
    border: 1px solid rgba(33,150,243,0.3);
}
.bounty-grade.grade-a {
    background: rgba(156,39,176,0.15);
    color: #9C27B0;
    border: 1px solid rgba(156,39,176,0.3);
}
.bounty-grade.grade-s {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
    border: none;
    box-shadow: 0 0 8px rgba(255,215,0,0.4);
    text-shadow: 0 0 4px rgba(255,255,255,0.5);
    animation: gradeSGlow 2s ease-in-out infinite;
}
@keyframes gradeSGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 0 14px rgba(255,215,0,0.6); }
}

/* A/S级卡片边框色调 */
.bounty-card.grade-a:not(.status-active) {
    border-color: rgba(156,39,176,0.2);
    box-shadow: 0 2px 12px rgba(156,39,176,0.1);
}
.bounty-card.grade-s:not(.status-active) {
    border-color: rgba(255,215,0,0.25);
    box-shadow: 0 2px 16px rgba(255,215,0,0.12);
}

/* S级卡片额外光效 */
.bounty-card.grade-s.status-active {
    box-shadow: 0 0 20px rgba(255,215,0,0.25), 0 4px 20px rgba(0,0,0,0.2);
}
.bounty-card.grade-s.status-active::before {
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #ffd700, #ff8c00);
}

.bounty-status.status-active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* 活跃卡片内按钮适配深色背景 */
.bounty-card.status-active .btn-success {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.bounty-card.status-active .btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a1a2e;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.bounty-status.status-pending {
    background: rgba(255, 217, 61, 0.24);
    color: #a88300;
}

.bounty-status.status-completed {
    background: rgba(107, 203, 119, 0.2);
    color: #2f9d47;
}

.bounty-status.status-expired,
.bounty-status.status-cancelled {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-light);
}

.bounty-desc {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.bounty-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-light);
}

.review-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.review-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.review-points {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.review-image-link {
    display: block;
    margin-bottom: 12px;
}

.review-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.review-note {
    background: rgba(0, 188, 212, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.86rem;
    color: var(--text);
    margin-bottom: 12px;
}

.reward-cost.coins {
    color: #d89b00;
}

.reward-cost.coins::before,
.reward-cost.points::before {
    content: '';
}

/* ========================================
   仓库样式
   ======================================== */

.inventory-list {
    padding: 0 0 20px;
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.inventory-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.inventory-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.inventory-status {
    font-weight: 500;
}

.inventory-actions {
    flex-shrink: 0;
}

.inventory-item.status-owned {
    border-left: 3px solid #4CAF50;
}

.inventory-item.status-pending {
    border-left: 3px solid #FF9800;
    opacity: 0.85;
}

.inventory-item.status-approved {
    border-left: 3px solid #2196F3;
    opacity: 0.6;
}

.inventory-item.status-rejected {
    border-left: 3px solid #f44336;
}

.reward-tab-panel {
    padding: 0;
}

.reward-tab-panel.hidden {
    display: none;
}

/* ========================================
   悬赏卡片动画
   ======================================== */

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

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-30%) rotate(45deg);
    }
    100% {
        transform: translateX(30%) rotate(45deg);
    }
}

@keyframes pendingPulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(255, 193, 7, 0.15);
    }
    50% {
        box-shadow: 0 2px 20px rgba(255, 193, 7, 0.35);
    }
}

/* ========================================
   悬赏类型选择器
   ======================================== */

.bounty-type-picker {
    display: flex;
    gap: 10px;
}

.bounty-type-option {
    flex: 1;
    padding: 12px 10px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}

.bounty-type-option:hover {
    border-color: var(--primary-light);
}

.bounty-type-option.active {
    border-color: var(--primary);
    background: rgba(0, 188, 212, 0.1);
}

.bounty-type-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.bounty-type-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.bounty-type-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ========================================
   连续打卡进度样式
   ======================================== */

.streak-progress {
    padding: 8px 0;
}

.streak-dots {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    justify-content: center;
}

.streak-dot {
    font-size: 1.1rem;
    line-height: 1;
    transition: var(--transition);
    opacity: 0.5;
}

.streak-dot.filled {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(0, 188, 212, 0.5));
    animation: dotPulse 2s ease-in-out infinite;
}

.streak-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.streak-flame {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--danger);
}

.streak-target {
    font-size: 0.78rem;
    color: var(--text-light);
}

.streak-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.streak-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00BCD4, #00E5A0, #0097A7);
    transition: width 0.5s ease;
    position: relative;
}

.streak-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: barShimmer 2s ease-in-out infinite;
}

.bounty-streak-status {
    font-size: 0.8rem;
    font-weight: 600;
}

/* 深色活跃卡片内的进度条适配 */
.bounty-card.status-active .streak-bar {
    background: rgba(255, 255, 255, 0.15);
}

.bounty-card.status-active .streak-target {
    color: rgba(255, 255, 255, 0.5);
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes barShimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

