/* ===== 活动日志 ===== */
.activity-log {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.activity-log h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.log-entry {
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    flex-shrink: 0;
}

.log-text {
    flex: 1;
}

.log-text.success { color: var(--accent-green); }
.log-text.warning { color: var(--accent-yellow); }
.log-text.danger { color: var(--accent-red); }
.log-text.info { color: var(--accent-blue); }

/* ===== 底部Tab导航栏（移动端） ===== */
#bottom-tab-nav {
    display: none; /* hidden on desktop, shown via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding: 0;
    height: 60px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
#bottom-tab-nav .mobile-nav-scroll {
    display: flex;
    height: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
#bottom-tab-nav .mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}
#bottom-tab-nav .mobile-tab-btn {
    flex: 1 0 auto;
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 10px;
    padding: 4px 2px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
#bottom-tab-nav .mobile-tab-btn .tab-icon {
    font-size: 20px;
    line-height: 1;
}
#bottom-tab-nav .mobile-tab-btn .tab-label {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}
#bottom-tab-nav .mobile-tab-btn.active {
    color: var(--accent-blue);
    background: rgba(88,166,255,0.08);
}
#bottom-tab-nav .mobile-tab-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 0 0 2px 2px;
}
#bottom-tab-nav .mobile-tab-btn:active {
    background: rgba(88,166,255,0.15);
}

/* ===== 底部状态栏 ===== */
#bottom-bar {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    gap: 16px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

#game-time {
    white-space: nowrap;
}

#active-tasks {
    flex: 1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.task-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 11px;
}

/* ===== 通知系统 ===== */
.notification-area {
    position: fixed;
    top: 60px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
}

.notification {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    font-size: 13px;
    max-width: 280px;
    box-shadow: var(--shadow);
    animation: slideInRight 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification.success { border-color: var(--accent-green); }
.notification.warning { border-color: var(--accent-yellow); }
.notification.error { border-color: var(--accent-red); }
.notification.info { border-color: var(--accent-blue); }

/* ===== 模态框 ===== */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

#modal-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-width: 320px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalIn 0.2s ease;
}

#modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

#modal-title {
    font-size: 16px;
    font-weight: 700;
}

#modal-body {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

#modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== 宠物选择器 ===== */
#pet-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

#pet-selector-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalIn 0.2s ease;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

#pet-selector-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

/* ===== 辅助类 ===== */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-green); }
.text-warning { color: var(--accent-yellow); }
.text-danger { color: var(--accent-red); }
.text-info { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* ===== 进度条颜色 ===== */
.bar-blue { background: linear-gradient(90deg, #1f6feb, #58a6ff); }
.bar-green { background: linear-gradient(90deg, #166534, #3fb950); }
.bar-red { background: linear-gradient(90deg, #b91c1c, #f85149); }
.bar-yellow { background: linear-gradient(90deg, #92400e, #d29922); }
.bar-purple { background: linear-gradient(90deg, #6b21a8, #bc8cff); }
.bar-orange { background: linear-gradient(90deg, #c2410c, #ffa657); }
.bar-teal { background: linear-gradient(90deg, #0f766e, #2dd4bf); }
