/* 我的 · me.css */
a { color: inherit; text-decoration: none; }
/* 复用世界线的视觉语言：紫=内容/功能，粉=人+时效，克制留白，chip 风 */

/* ═══ Hero：统计铺开当 banner + 头像挂载（Twitter 风骨架 + A 版统计数字） ═══ */
.me-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px var(--pad-x) 24px;
}

/* 统计铺开区（原 banner-collage 位置） */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  min-height: 140px;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(700px 200px at 85% 0%, rgba(var(--accent-rgb), 0.12), transparent 65%),
    radial-gradient(500px 180px at 0% 100%, rgba(var(--accent-2-rgb), 0.08), transparent 65%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 10px 4px;
  border-radius: var(--r-sm);
  transition: background .22s var(--ease);
}
.hero-stat:hover { background: rgba(var(--glass-rgb), 0.04); }
.hero-stat-ico {
  width: 24px; height: 24px;
  color: var(--fg-3); opacity: 0.6;
  margin-bottom: 4px;
}
.hero-stat-n {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--fg);
}
.hero-stat-n .unit {
  font-size: 14px; font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.hero-stat-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  margin-top: 6px;
}
.hero-stat.is-accent .hero-stat-n { color: rgb(var(--accent-rgb)); }
.hero-stat.is-pink .hero-stat-n { color: rgb(var(--accent-2-rgb)); }
.hero-stat.is-credits .hero-stat-n {
  background: linear-gradient(135deg, rgb(var(--accent-rgb)), rgb(var(--accent-2-rgb)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 头像挂载区（跨 stat 底边，同 Twitter 风 id-zone） */
.hero-id {
  position: relative;
  padding: 0 8px;
  margin-top: -32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.hero-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
  border: 3.5px solid var(--bg);
  box-shadow: 0 0 0 1.5px rgba(var(--accent-rgb), 0.3), 0 8px 24px rgba(0,0,0,0.4);
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.hero-id-main { flex: 1; min-width: 0; margin-top: 32px; }
.hero-name-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero-name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.15;
}
.hero-tier {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.85);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 3px 6px; border-radius: 3px;
  flex-shrink: 0;
}
.hero-bio {
  font-size: 15px; color: var(--fg-2); line-height: 1.65;
  margin-top: 6px; max-width: 52ch;
}
.hero-chips {
  margin-top: 10px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.hero-chip {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; color: var(--fg-3);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.hero-chip.is-pink {
  color: rgba(var(--accent-2-rgb), 0.85);
  border-color: rgba(var(--accent-2-rgb), 0.25);
  background: rgba(var(--accent-2-rgb), 0.06);
}
.hero-footline {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 6px;
}

/* ═══ 内容区：双列（主列 + 侧栏） ═══ */
.me-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}
.sec-label {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--fg-3);
}
.sec-label .link {
  text-decoration: none; color: var(--fg-2);
  letter-spacing: 0.05em; transition: color .22s var(--ease);
}
.sec-label .link:hover { color: var(--fg); }
.sec-label .count {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); margin-left: 6px;
}

/* 主列区块 */
.stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── 我的帖子 ─── */
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .22s var(--ease);
}
.post-card:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.post-head {
  display: flex; align-items: center; gap: 10px;
}
.post-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.post-author {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--fg); font-weight: 500;
}
.post-time {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); margin-left: auto;
  letter-spacing: 0.05em;
}
.post-time.is-recent { color: rgba(var(--accent-2-rgb), 0.9); }
.post-body {
  font-size: 14px; color: var(--fg);
  line-height: 1.65;
  padding: 0 2px;
}
.post-ref {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(var(--accent-rgb), 0.85);
  margin-top: 4px;
}
.post-ref svg { width: 12px; height: 12px; flex-shrink: 0; }
.post-ref svg + span { margin-left: 2px; }
.post-actions {
  display: flex; gap: 18px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); align-items: center;
}
.post-actions span {
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; transition: color .22s var(--ease);
}
.post-actions span:hover { color: var(--fg); }
.post-actions svg { width: 14px; height: 14px; opacity: 0.7; }
.post-actions .is-like { color: rgba(var(--accent-2-rgb), 0.9); }

/* ─── 作品集网格 ─── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .22s var(--ease);
}
.work-card:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.work-cover {
  width: 100%; height: 110px;
  object-fit: cover; object-position: center 20%;
  display: block;
}
.work-card-body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.work-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-line {
  font-size: 11.5px; color: var(--fg-2);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-tags {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-top: 2px;
}
.work-tag {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.work-stats {
  display: flex; gap: 10px;
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3);
}
.work-stats span { display: flex; align-items: center; gap: 3px; }
.work-stats svg { width: 11px; height: 11px; opacity: 0.6; }
.work-status {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: 3px;
  margin-left: auto;
}
.work-status.is-draft { color: var(--fg-3); border: 1px solid var(--line); }
.work-status.is-published { color: rgb(var(--accent-rgb)); border: 1px solid rgba(var(--accent-rgb), 0.35); }

/* ─── 活动流（复用 B 版的 act-card 形态） ─── */
.act-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .22s var(--ease);
}
.act-card:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.act-head { display: flex; align-items: center; gap: 10px; }
.act-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 1px solid var(--line); flex-shrink: 0; }
.act-id { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.act-handle { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg); font-weight: 500; }
.act-verb { font-size: 12.5px; color: var(--fg-3); }
.act-target { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; color: rgba(var(--accent-rgb), 0.9); }
.act-time { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.05em; flex-shrink: 0; }
.act-time.is-recent { color: rgba(var(--accent-2-rgb), 0.9); }
.act-bubble {
  position: relative; margin-left: 50px;
  padding: 12px 14px;
  background: rgba(var(--bg-rgb), 0.5);
  border: 1px solid var(--line);
  border-radius: 2px 12px 12px 12px;
  font-size: 14px; color: var(--fg); line-height: 1.6;
}
.act-bubble::before {
  content: ''; position: absolute; top: -6px; left: 10px;
  width: 10px; height: 10px;
  background: rgba(var(--bg-rgb), 0.5);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.act-quote {
  margin-left: 50px;
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding: 8px 10px;
  background: var(--surface-hover);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  align-items: center;
}
.act-quote img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line-strong); }
.act-quote-kind { font-family: var(--font-mono); font-size: 10px; color: rgba(var(--accent-rgb), 0.85); text-transform: uppercase; letter-spacing: 0.14em; }
.act-quote-name { font-family: var(--font-display); font-size: 14px; color: var(--fg); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-quote-line { font-family: var(--font-body); font-size: 12.5px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.act-actions {
  display: flex; gap: 18px; margin-left: 50px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.05em; align-items: center;
}
.act-actions span { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: color .22s var(--ease); }
.act-actions span:hover { color: var(--fg); }
.act-actions svg { width: 14px; height: 14px; opacity: 0.7; }
.act-actions .is-like { color: rgba(var(--accent-2-rgb), 0.9); }

/* ═══ 侧栏：进行中世界 ═══ */
.side-col { display: flex; flex-direction: column; gap: 24px; }
.w-mini-list { display: flex; flex-direction: column; }
.w-mini {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 12px; padding: 12px 10px;
  border-radius: var(--r-sm);
  text-decoration: none; color: inherit;
  transition: background .2s var(--ease);
  align-items: center;
}
.w-mini + .w-mini { margin-top: 4px; }
.w-mini:hover { background: var(--surface-hover); }
.w-mini-cover { width: 44px; height: 56px; border-radius: 4px; object-fit: cover; object-position: center 20%; border: 1px solid var(--line); }
.w-mini-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.w-mini-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-mini-meta { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; }
.w-mini-meta .ch-progress { color: rgb(var(--accent-rgb)); }
.w-mini-meta .is-recent { color: rgba(var(--accent-2-rgb), 0.9); }
.w-mini-deck { display: flex; margin-top: 2px; }
.w-mini-deck img {
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; object-position: center 15%;
  border: 1.5px solid var(--bg);
  margin-left: -6px; opacity: 0.9;
}
.w-mini-deck img:first-child { margin-left: 0; }

/* ═══ 响应式 ═══ */
@media (max-width: 860px) {
  .me-page { max-width: none; padding: 16px 16px 20px; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px; min-height: auto;
    padding: 20px 12px 16px;
  }
  .hero-stat-n { font-size: 26px; }
  .hero-stat-ico { width: 20px; height: 20px; }
  .hero-id { margin-top: -24px; gap: 14px; padding: 0 4px; }
  .hero-avatar { width: 72px; height: 72px; border-width: 3px; }
  .hero-id-main { margin-top: 24px; }
  .hero-name { font-size: 22px; }
  .hero-bio { font-size: 13px; }
  .me-layout { grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
  .works-grid { grid-template-columns: 1fr; }
  .act-bubble, .act-quote, .act-actions { margin-left: 0; }
  .act-bubble::before { display: none; }
}