/* ============================================================
   惠爱公益 · 会员个人中心（member.html）
   复用 style.css 的品牌色与 .nav/.btn 等全局类；本文件仅承载中心专属布局。
   ============================================================ */

.mc-wrap { max-width: var(--max); margin: 0 auto; padding: 96px 20px 64px; }
.mc-grid { display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: start; }

/* 头部会员卡 */
.mc-hero {
  background: linear-gradient(135deg, #E15A3F 0%, #C2410C 100%);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  color: #fff;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.mc-hero .mc-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.22); display: grid; place-items: center;
  font-size: 30px; font-weight: 800; overflow: hidden; flex: none;
  border: 2px solid rgba(255,255,255,0.5);
}
.mc-hero .mc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mc-hero .mc-name { font-size: 22px; font-weight: 800; }
.mc-hero .mc-meta { margin-top: 6px; opacity: .9; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.mc-hero .mc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 10px; border-radius: 999px; font-size: 12px;
}

/* 侧边栏 */
.mc-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px; position: sticky; top: 88px; }
.mc-side button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: none; background: transparent; cursor: pointer;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; color: var(--ink-2);
  text-align: left; transition: background .15s, color .15s;
}
.mc-side button .mc-ico { width: 20px; height: 20px; opacity: .7; }
.mc-side button:hover { background: var(--bg-alt); color: var(--ink); }
.mc-side button.active { background: var(--red-light); color: var(--red-deep); font-weight: 700; }
.mc-side button.active .mc-ico { opacity: 1; }
.mc-side .mc-side-sep { height: 1px; background: var(--line); margin: 8px 6px; }

/* 面板 */
.mc-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 28px; min-height: 420px; }
.mc-panel h2 { font-size: 20px; margin-bottom: 4px; }
.mc-panel .mc-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* 概览统计卡 */
.mc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.mc-stat { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 16px; text-align: center; border: 1px solid var(--line); }
.mc-stat .n { font-size: 28px; font-weight: 800; color: var(--red-deep); }
.mc-stat .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mc-stat a { color: inherit; text-decoration: none; display: block; }

/* 动态流 */
.mc-feed { display: flex; flex-direction: column; gap: 10px; }
.mc-feed-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mc-feed-item .tag { flex: none; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--red-light); color: var(--red-deep); font-weight: 600; }
.mc-feed-item .ti { flex: 1; min-width: 0; }
.mc-feed-item .ti b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-feed-item .ti small { color: var(--muted); font-size: 12px; }
.mc-feed-item .st { flex: none; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #EEF2F5; color: var(--ink-2); }

/* 列表 */
.mc-list { display: flex; flex-direction: column; gap: 12px; }
.mc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: box-shadow .15s; }
.mc-card:hover { box-shadow: var(--shadow-sm); }
.mc-card .mc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mc-card .mc-title { font-size: 16px; font-weight: 700; }
.mc-card .mc-no { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mc-card .mc-desc { color: var(--ink-2); font-size: 14px; margin-top: 8px; line-height: 1.6; }
.mc-card .mc-foot { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.mc-pill { flex: none; font-size: 12px; padding: 3px 11px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.st-pending { background: #FFF3E0; color: #B26A00; }
.st-open { background: #E6F4EA; color: #1E7E34; }
.st-claimed { background: #E3F0FF; color: #0B62C9; }
.st-fulfilled,.st-done { background: #EDE7F6; color: #5E35B1; }
.st-closed,.st-rejected { background: #F1F1F1; color: #757575; }
.st-submitted { background: #FFF3E0; color: #B26A00; }
.st-assigned { background: #E3F0FF; color: #0B62C9; }
.st-verified,.st-confirmed { background: #E6F4EA; color: #1E7E34; }
.st-approved { background: #E3F0FF; color: #0B62C9; }
.st-active { background: #EDE7F6; color: #5E35B1; }

.mc-empty { text-align: center; color: var(--muted); padding: 48px 0; }
.mc-empty a { color: var(--red); font-weight: 600; }

.mc-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.mc-pager button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; cursor: pointer; font-size: 14px; }
.mc-pager button:disabled { opacity: .45; cursor: not-allowed; }

/* 资料表单 */
.mc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; max-width: 640px; }
.mc-field { display: flex; flex-direction: column; gap: 6px; }
.mc-field.full { grid-column: 1 / -1; }
.mc-field label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.mc-field input, .mc-field select, .mc-field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--ink);
}
.mc-field input:focus, .mc-field select:focus, .mc-field textarea:focus { outline: none; border-color: var(--red); }
.mc-avatar-edit { display: flex; align-items: center; gap: 14px; }
.mc-avatar-edit .av { width: 60px; height: 60px; border-radius: 50%; background: var(--red-light); color: var(--red-deep); display: grid; place-items: center; overflow: hidden; font-weight: 800; }
.mc-avatar-edit .av img { width: 100%; height: 100%; object-fit: cover; }

/* 通用按钮 */
.mc-btn { display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 700; font-family: inherit; }
.mc-btn-primary { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; box-shadow: 0 6px 18px rgba(225,90,63,.3); }
.mc-btn-ghost { background: #fff; color: var(--red-deep); border: 2px solid var(--red); }
.mc-btn-sm { padding: 6px 14px; font-size: 13px; }
.mc-btn:disabled { opacity: .55; cursor: not-allowed; }

/* 志愿进度 */
.mc-steps { display: flex; gap: 0; margin: 10px 0 24px; flex-wrap: wrap; }
.mc-step { flex: 1; min-width: 110px; text-align: center; position: relative; padding-top: 30px; }
.mc-step .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #E5E7EB; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.mc-step.done .dot { background: var(--red); }
.mc-step.active .dot { background: var(--red-deep); box-shadow: 0 0 0 4px var(--red-light); }
.mc-step .txt { font-size: 13px; color: var(--muted); }
.mc-step.done .txt, .mc-step.active .txt { color: var(--ink); font-weight: 600; }
.mc-step::before { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #E5E7EB; z-index: 0; }
.mc-step:first-child::before { display: none; }
.mc-step.done::before { background: var(--red); }

/* 图片上传（服务纪录） */
.mc-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.mc-imgs .it { position: relative; width: 92px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.mc-imgs .it img { width: 100%; height: 100%; object-fit: cover; }
.mc-imgs .it .x { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; }
.mc-img-add { width: 92px; height: 92px; border: 2px dashed var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); cursor: pointer; font-size: 13px; }
.mc-img-add:hover { border-color: var(--red); color: var(--red); }

/* 登录门 */
.mc-gate { text-align: center; padding: 90px 20px; }
.mc-gate .ico { font-size: 54px; }
.mc-gate h2 { margin: 14px 0 8px; }
.mc-gate p { color: var(--muted); margin-bottom: 22px; }

/* 我的参与（参加 / 志愿 / 赞助 三分组） */
.myact-sec { margin-bottom: 26px; }
.myact-sec:last-child { margin-bottom: 0; }
.myact-h { font-size: 16px; margin: 6px 0 4px; display: flex; align-items: center; gap: 8px; }
.myact-cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red-deep, #E15A3F); color: #fff; font-size: 12px; font-weight: 700; }

@media (max-width: 860px) {
  .mc-grid { grid-template-columns: 1fr; }
  .mc-side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .mc-side button { white-space: nowrap; width: auto; }
  .mc-side .mc-side-sep { display: none; }
  .mc-stats { grid-template-columns: repeat(2, 1fr); }
  .mc-form { grid-template-columns: 1fr; }
}
