/* ============================================================
   个人中心 · 高奢深色 Hero 版式（仅在 me.html 引入，不影响其它页面）
   设计语言：深空蓝黑底 + 香槟金渐变 + 科技蓝点缀 + 玻璃拟态
   ============================================================ */

/* ---------- 总体骨架：手机单列 / 桌面左卡右内容 ---------- */
.mc { display: grid; gap: 16px; }
.mc-left, .mc-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 880px) {
  .mc { grid-template-columns: 348px minmax(0, 1fr); gap: 26px; align-items: start; }
  .mc-left { position: sticky; top: 92px; }
}

/* ---------- 顶部横幅容器（会员卡 / 续做提醒） ---------- */
#mcBanners { display: flex; flex-direction: column; gap: 12px; }
#mcBanners:empty { display: none; }

/* 会员资格卡：金色渐变描边 + 柔光 */
.mc-member {
  position: relative; overflow: hidden; border-radius: 18px;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, #FFFDF6 0%, #F9F0DC 55%, #F7E9CB 100%);
  border: 1px solid rgba(201, 162, 39, 0.30);
  box-shadow: 0 10px 26px rgba(150, 118, 30, 0.12);
}
.mc-member::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
  background: linear-gradient(135deg, var(--gold-light), rgba(201, 162, 39, 0.12) 45%, var(--gold-light));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.mc-member::after {
  content: ""; position: absolute; right: -40px; top: -50px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22), transparent 68%); pointer-events: none;
}
.mc-member .mtext { flex: 1 1 150px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; position: relative; }
.mc-member .mtext strong { color: var(--gold-deep); }
.mc-member .mact { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.mc-member .mact .btn { padding: 9px 15px; font-size: 13px; }

/* 续做提醒卡：科技蓝调 */
.mc-banner {
  position: relative; overflow: hidden; border-radius: 18px; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, #F4FAFD 0%, #EDF5FA 100%);
  border: 1px solid rgba(111, 168, 199, 0.38);
  box-shadow: 0 10px 26px rgba(47, 125, 166, 0.10);
}
.mc-banner .mtext { flex: 1 1 150px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.mc-banner .mtext strong { color: var(--tech-deep); font-family: var(--serif); font-size: 16px; }
.mc-banner .btn { padding: 9px 15px; font-size: 13px; }
.mc-banner-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--tech-deep);
  box-shadow: 0 0 0 4px rgba(47, 125, 166, 0.14); animation: mcPulse 2s ease-in-out infinite;
}
@keyframes mcPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 个人主卡：深色渐变 Hero ---------- */
.mc-hero {
  position: relative; overflow: hidden; border-radius: 22px;
  padding: 24px 20px 20px;
  color: #F3EEE2;
  border: 1px solid rgba(201, 162, 39, 0.26);
  background:
    radial-gradient(430px 230px at 88% -18%, rgba(201, 162, 39, 0.42), transparent 62%),
    radial-gradient(340px 210px at -12% 112%, rgba(111, 168, 199, 0.26), transparent 62%),
    linear-gradient(158deg, #26324F 0%, #1B2338 48%, #121826 100%);
  box-shadow: 0 20px 48px rgba(18, 24, 38, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
/* 细金内框 */
.mc-hero::after {
  content: ""; position: absolute; inset: 8px; border-radius: 16px;
  border: 1px solid rgba(230, 207, 139, 0.16); pointer-events: none;
}
/* 顶部流光金线 */
.mc-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(246, 233, 196, 0.9), transparent);
}
/* 点阵纹理（缓慢呼吸，仅改 opacity，移动端开销极低） */
.mc-deco {
  position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: radial-gradient(rgba(230, 207, 139, 0.20) 1px, transparent 1px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(158deg, #000 5%, transparent 68%);
  mask-image: linear-gradient(158deg, #000 5%, transparent 68%);
  animation: mcFade 7.5s ease-in-out infinite;
}
@keyframes mcFade { 0%, 100% { opacity: .28; } 50% { opacity: .52; } }

.mc-hero-top { position: relative; display: flex; align-items: center; gap: 16px; z-index: 1; }

/* 头像：金色渐变 + 缓慢旋转光环 */
.mc-avwrap { position: relative; flex: none; width: 64px; height: 64px; }
.mc-avwrap::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 210deg, #C9A227, #F6E9C4 22%, rgba(201, 162, 39, 0) 46%, rgba(111, 168, 199, 0.55) 72%, #C9A227);
  animation: mcSpin 9s linear infinite;
}
.mc-avwrap::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: linear-gradient(158deg, #26324F, #121826);
}
@keyframes mcSpin { to { transform: rotate(360deg); } }
.mc-avatar {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-family: var(--serif); font-size: 27px; font-weight: 700; color: #2A2110;
  background: linear-gradient(140deg, #F8ECC8 0%, #E0C271 48%, #C9A227 100%);
  box-shadow: inset 0 -3px 8px rgba(120, 88, 12, 0.22);
}

.mc-ident { min-width: 0; flex: 1; }
.mc-avatar img.mc-av-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mc-avcol { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; }
.mc-av-bind { font-size: 10.5px; line-height: 1.3; color: #E7D9AE; background: rgba(230,207,139,.14); border: 1px solid rgba(230,207,139,.3); border-radius: 8px; padding: 3px 7px; cursor: pointer; white-space: nowrap; }
.mc-av-bind:active { transform: scale(.96); }
.mc-name-row { display: flex; align-items: center; gap: 8px; }
.mc-edit { flex: none; width: 23px; height: 23px; border-radius: 50%; border: 1px solid rgba(230,207,139,.34); background: rgba(255,255,255,.06); color: #E7D9AE; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.mc-edit:hover { background: rgba(230,207,139,.18); }
.mc-edit:active { transform: scale(.92); }
.mc-name {
  font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: .6px;
  color: #FBF4E2; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.mc-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; letter-spacing: .4px;
  padding: 3px 10px; border-radius: 999px; font-family: var(--sans);
  color: rgba(243, 238, 226, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(230, 207, 139, 0.26);
}
.mc-chip.gold {
  color: #2A2110; font-weight: 600; border-color: transparent;
  background: linear-gradient(135deg, #F6E9C4, #C9A227);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.34);
}
/* 顶级：确权智能体（金 → 翠绿渐变，凸显「确权完成」地位） */
.mc-chip.confirm {
  color: #06281C; font-weight: 700; border-color: transparent;
  background: linear-gradient(135deg, #E7D9AE 0%, #C9A227 40%, #2EA66B 100%);
  box-shadow: 0 4px 14px rgba(46, 166, 107, 0.36);
}

/* 三宫格数据：玻璃拟态 */
.mc-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 18px; }
.mc-stat {
  border-radius: 14px; padding: 11px 5px 10px; text-align: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(230, 207, 139, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mc-stat .v {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  letter-spacing: -.2px; line-height: 1.3; font-variant-numeric: tabular-nums;
  color: #F2DFA8;
  /* 香槟金渐变数字（不支持 background-clip 时回退为上面的纯金色） */
  background: linear-gradient(180deg, #FBEFC9 8%, #E6CF8B 55%, #C9A227 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-stat .l { font-size: 11px; color: rgba(243, 238, 226, 0.62); margin-top: 3px; letter-spacing: .3px; }

.mc-note {
  position: relative; z-index: 1; margin-top: 12px;
  font-size: 12px; color: rgba(243, 238, 226, 0.60); line-height: 1.7;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.mc-note .sp { width: 1px; height: 11px; background: rgba(230, 207, 139, 0.3); }

.mc-hero-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin-top: 16px; }
.mc-hero-actions .btn { padding: 11px 10px; font-size: 14px; }
.mc-hero .btn-outline { border-color: rgba(230, 207, 139, 0.48); color: #F2DFA8; background: rgba(255, 255, 255, 0.03); }
.mc-hero .btn-outline:hover { background: rgba(230, 207, 139, 0.16); }

/* 附加操作（绑定微信 / 手机号）——Hero 下方轻量条 */
.mc-foot { display: flex; flex-direction: column; gap: 8px; }
.mc-foot:empty { display: none; }
.mc-foot .btn {
  width: 100%; background: var(--surface); color: var(--ink-2);
  border: 1px dashed rgba(201, 162, 39, 0.42); box-shadow: none; font-size: 13.5px; padding: 11px;
}
.mc-foot .btn:hover { background: rgba(201, 162, 39, 0.07); color: var(--gold-deep); }

/* ---------- 功能宫格导航 ---------- */
.mc-sec-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: .6px;
  padding-left: 2px;
}
.mc-sec-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
.mc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mc-tile {
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 6px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm); color: var(--ink-2);
  font-family: var(--sans); font-size: 12.5px; line-height: 1.2;
  transition: transform .24s cubic-bezier(.2,.7,.2,1), box-shadow .24s, border-color .24s, color .24s;
  -webkit-tap-highlight-color: transparent;
}
.mc-tile:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow-md); color: var(--gold-deep); }
.mc-tile .ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, rgba(230, 207, 139, 0.44), rgba(201, 162, 39, 0.13));
  color: var(--gold-deep); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.20);
  transition: background .24s, color .24s, box-shadow .24s;
}
.mc-tile .ic svg { width: 21px; height: 21px; display: block; }
.mc-tile.active {
  background: linear-gradient(160deg, #FFFDF8, #F7EFDD);
  border-color: var(--gold); color: var(--gold-deep); font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.mc-tile.active .ic { background: linear-gradient(140deg, #E9D79C, #C9A227); color: #fff; box-shadow: 0 6px 16px rgba(201, 162, 39, 0.32); }
.mc-tile.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}

/* ---------- 内容面板：金色左侧导轨 ---------- */
.mc-right .panel {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
}
.mc-right .panel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-light), rgba(201, 162, 39, 0.10) 62%, transparent);
}
.mc-right .panel > h3 { position: relative; }
.mc-right .panel > h3::after {
  content: ""; display: block; width: 34px; height: 2px; margin-top: 9px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

/* 面板内的小标题（分段） */
.mc-h {
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin: 20px 0 10px;
}
.mc-h::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: none; }

/* 邀请链接展示框：虚金边 + 等宽感 */
.mc-invlink {
  margin-top: 8px; font-size: 12.5px; color: var(--ink-2); word-break: break-all; line-height: 1.7;
  background: var(--surface-2);
  border: 1px dashed rgba(201, 162, 39, 0.45);
  border-radius: var(--radius-sm); padding: 10px 12px;
}

/* ---------- 本页资产卡（避免与全局 .card 滚动揭示冲突，独立命名） ---------- */
.mc-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.mc-asset {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line-soft); background: var(--surface);
  box-shadow: var(--shadow-sm); transition: transform .24s, box-shadow .24s, border-color .24s;
}
.mc-asset:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.mc-asset .thumb {
  position: relative; overflow: hidden; aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, var(--cream-soft), rgba(111, 168, 199, 0.18));
  display: grid; place-items: center; font-size: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.mc-asset .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mc-asset .t {
  padding: 11px 12px 13px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 确权进度行卡片 ---------- */
.mc-qrow {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-soft); background: var(--surface);
  box-shadow: var(--shadow-sm); transition: border-color .22s, box-shadow .22s;
}
.mc-qrow:hover { border-color: var(--line); box-shadow: var(--shadow-md); }
.mc-qrow .ttl { font-weight: 600; font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-qrow .sub { font-size: 13px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }
.mc-qrow .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-qrow .acts .btn { padding: 9px 15px; font-size: 13px; }
.mc-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.mc-pill.done { background: rgba(46, 160, 67, 0.12); color: #2ea043; }
.mc-pill.rejected { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.mc-pill.pending { background: rgba(201, 162, 39, 0.14); color: var(--gold-deep); }
.mc-pill.tech { background: rgba(47, 125, 166, 0.12); color: var(--tech-deep); }

/* ---------- 表格：更精致的圆角与悬停 ---------- */
.mc-right .tbl th { text-transform: none; letter-spacing: .3px; }
.mc-right .tbl tr:last-child td { border-bottom: none; }

/* ---------- 无障碍：尊重「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  .mc-avwrap::before, .mc-banner-dot, .mc-deco { animation: none !important; }
  .mc-tile, .mc-asset { transition: none !important; }
}

/* ---------- 超窄屏微调 ---------- */
@media (max-width: 380px) {
  .mc-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mc-tile { padding: 14px 4px 12px; font-size: 12px; }
  .mc-tile .ic { width: 40px; height: 40px; }
  .mc-stat .v { font-size: 16px; }
  .mc-hero { padding: 20px 16px 18px; }
}
