/* ===== ThirdHub profile.css — 我的页 ===== */
.profile-section { padding: 16px 16px 0; }
.section-title { font-size: 13px; font-weight: 700; color: var(--text-tertiary); padding: 0 4px 8px; }
.profile-foot { text-align: center; padding: 28px 0 12px; font-size: 11px; color: var(--text-tertiary); }

.user-card { display: flex; align-items: center; gap: 14px; margin: 4px 16px 0; }
.user-avatar {
  width: 58px; height: 58px; border-radius: 18px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center; color: #fff; overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar svg { width: 28px; height: 28px; }

.storage-bar { height: 5px; border-radius: 999px; background: var(--bg-input); margin-top: 6px; overflow: hidden; }
.storage-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

.member-card { background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated)); }

.stats-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.stats-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.stats-bar { width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--primary), var(--primary-deep)); }
.stats-day { font-size: 9px; color: var(--text-tertiary); }

/* ===== 历史版本时间线（v1.4） ===== */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 2px; }
.tl-dot {
  position: absolute; left: -22px; top: 14px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-card); border: 3px solid var(--text-tertiary); box-sizing: border-box;
}
.tl-item.major .tl-dot { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,91,253,.15); }
.tl-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 13px; padding: 11px 13px; box-shadow: var(--shadow-card); }
.tl-item.major .tl-card { border-color: rgba(59,91,253,.45); }
.tl-head { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.tl-ver { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.tl-item.major .tl-ver { color: var(--primary); }
.tl-badge { font-size: 10.5px; font-weight: 700; color: var(--primary); background: rgba(59,91,253,.13); padding: 2px 8px; border-radius: 99px; }
.tl-date { margin-left: auto; font-size: 11.5px; color: var(--text-tertiary); font-weight: 500; }
.tl-caret { display: inline-flex; align-items: center; color: var(--text-tertiary); transition: transform .2s; }
.tl-caret svg { width: 13px; height: 13px; }
.tl-item.open .tl-caret { transform: rotate(90deg); }
.tl-list { display: none; padding-left: 17px; margin: 8px 0 2px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.8; }
.tl-list li::marker { color: var(--primary); }
.tl-item.open .tl-list { display: block; animation: msg-in .2s ease; }

/* ================= v1.5 个人资料子页面 ================= */
.profile-hero {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 0 20px;
}
.user-avatar.lg { width: 76px; height: 76px; border-radius: 24px; font-size: 30px; cursor: pointer; }
.avatar-edit-badge {
  position: absolute; right: -4px; bottom: -4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  border: 2px solid var(--bg-page);
}
.avatar-edit-badge svg { width: 13px; height: 13px; }
.profile-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 14px; border-radius: 12px; margin-bottom: 8px;
  background: var(--bg-card); box-shadow: var(--shadow-card);
  font-size: 14px; text-align: left;
}
.profile-row-name { color: var(--text-secondary); flex-shrink: 0; width: 56px; }
.profile-row-val { flex: 1; min-width: 0; color: var(--text-primary); font-weight: 600; text-align: right; }
