/* ============================================================
   成长记录 - 参考 banchong.cn/growth 布局
   ============================================================ */
#growth-record { display: none; }
#growth-record.active { display: block; }
.growth-inner { max-width: 640px; margin: 0 auto; padding: 24px 16px; }

/* 页面标题 */
.g-page-head { margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; }
.g-page-title { font-size: 20px; font-weight: 700; color: #111827; }
.g-page-sub   { font-size: 13px; color: #999; }

/* 筛选 + 操作行 */
.g-filter-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.g-filter-tabs { display: flex; gap: 4px; }
.g-filter-tab {
    height: 28px; padding: 0 12px;
    font-size: 13px; color: #666;
    border: none; border-radius: 6px;
    background: transparent; cursor: pointer;
    transition: all 0.15s; font-family: inherit;
    white-space: nowrap;
}
.g-filter-tab:hover { background: #F3F4F6; color: #111827; }
.g-filter-tab.active { background: #4F46E5; color: #FFFFFF; font-weight: 600; }
.g-filter-actions { display: flex; align-items: center; gap: 8px; }
.g-btn-refresh, .g-btn-export {
    height: 30px; padding: 0 14px;
    font-size: 13px; color: #111827;
    border: 1px solid #E5E6EB; border-radius: 6px;
    background: #FFFFFF; cursor: pointer;
    transition: all 0.15s; font-family: inherit;
}
.g-btn-refresh:hover, .g-btn-export:hover { background: #F3F4F6; }
.g-btn-export:disabled { opacity: .5; cursor: not-allowed; }

/* 统计卡片 */
.g-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.g-stat-card {
    padding: 16px 20px; border-radius: 10px;
    display: flex; flex-direction: column; gap: 4px;
}
.g-stat-card--add { background: #E8F8E8; }
.g-stat-card--sub { background: #FFF3E0; }
.g-stat-num { font-size: 32px; font-weight: 700; line-height: 1; }
.g-stat-card--add .g-stat-num { color: #00B42A; }
.g-stat-card--sub .g-stat-num { color: #F59E0B; }
.g-stat-label { font-size: 13px; color: #666; }

/* 流水列表 */
.g-log-list { display: flex; flex-direction: column; }
.g-log-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #F3F4F6;
    transition: background .15s;
    overflow: hidden;
}
.g-log-item:hover { background: #FAFAFA; }

/* 头像 */
.g-log-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #F3F4F6; color: #6B7280;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600; flex-shrink: 0;
}

/* 中间主体 */
.g-log-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-log-name { font-size: 15px; font-weight: 600; color: #111827; }
.g-log-detail {
    font-size: 13px; color: #6B7280;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.g-log-time { font-size: 12px; color: #C9CDD4; margin-top: 1px; }

/* 右侧金额 */
.g-log-amount {
    font-size: 16px; font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    text-align: right;
}
.g-log-amount.add { color: #00B42A; }
.g-log-amount.sub { color: #F53F3F; }

/* 空状态 */
.g-empty { padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #6B7280; }
.g-empty .g-empty-icon { font-size: 48px; }
