/* 个人中心 — 暗色金边壳，对齐截图 */
.hg-profile-page{padding-bottom:48px}
.hg-profile-user{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:8px 0 28px;padding:4px 0;
}
.hg-profile-user__left{display:flex;align-items:center;gap:14px;min-width:0}
.hg-profile-avatar{
  position:relative;flex:none;width:56px;height:56px;border-radius:50%;
  background:#6EC9CB;overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.hg-profile-avatar__letter{
  color:#fff;font-size:26px;font-weight:700;line-height:1;text-transform:uppercase;
  user-select:none;
}
.hg-profile-avatar__img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;
}
.hg-profile-user__meta{min-width:0}
.hg-profile-user__name{
  color:#fff;font-size:22px;font-weight:700;line-height:1.25;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.hg-profile-user__id{margin-top:4px;color:rgba(255,255,255,.45);font-size:13px}
.hg-profile-user__login{margin-top:4px;color:rgba(255,255,255,.55);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hg-profile-settings{
  flex:none;display:inline-flex;align-items:center;justify-content:center;
  height:36px;padding:0 16px;border:1px solid rgba(255,255,255,.28);border-radius:999px;
  color:rgba(255,255,255,.85);font-size:13px;text-decoration:none;white-space:nowrap;
  background:transparent;transition:border-color .15s,color .15s;
}
.hg-profile-settings:hover{border-color:var(--color-primary,#ffd21c);color:#fff}

.hg-profile-section{margin-top:8px}
.hg-profile-section__title{
  display:flex;align-items:center;gap:8px;margin:0 0 14px;
  color:#fff;font-size:16px;font-weight:700;
}
.hg-profile-section__bar{
  display:inline-block;width:3px;height:16px;border-radius:2px;
  background:var(--color-primary,#ffd21c);
}

.hg-profile-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;
}
.hg-profile-card{
  display:flex;align-items:center;gap:12px;
  min-height:88px;padding:16px 14px;border-radius:12px;
  background:#1c1c1c;border:1px solid rgba(255,255,255,.07);
  color:#fff;text-decoration:none;transition:border-color .15s,background .15s,transform .15s;
}
.hg-profile-card:hover{border-color:rgba(255,210,28,.35);background:#222}
.hg-profile-card.is-homeway{
  background:linear-gradient(135deg,rgba(255,210,28,.12),#1c1c1c 55%);
  border-color:rgba(255,210,28,.22);
}
.hg-profile-card__icon{
  flex:none;width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  color:var(--color-primary,#ffd21c);
}
.hg-profile-card__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.hg-profile-card__title{font-size:15px;font-weight:700;color:#fff}
.hg-profile-card__desc{font-size:12px;color:rgba(255,255,255,.45);line-height:1.4}
.hg-profile-card__chev{flex:none;color:rgba(255,255,255,.28);font-size:22px;line-height:1}

/* 压过 common.css button:not(.hg-btn){background-color:unset}，默认也要有底色 */
button.hg-profile-logout.hg-profile-logout{
  -webkit-appearance:none;appearance:none;
  display:block;width:100%;margin:28px 0 8px;height:48px;
  border:1px solid rgba(255,255,255,.12);border-radius:12px;
  background-color:#1c1c1c;background-image:none;
  color:#ff4d4f;font-size:15px;font-weight:600;cursor:pointer;
  transition:background-color .15s,border-color .15s;
}
button.hg-profile-logout.hg-profile-logout:hover{
  background-color:#242424;border-color:rgba(255,255,255,.18);
}

@media (max-width:960px){
  .hg-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .hg-profile-user__name{font-size:18px}
}
@media (max-width:640px){
  .hg-profile-grid{grid-template-columns:1fr;gap:10px}
  .hg-profile-card{min-height:76px;padding:14px 12px;width:100%}
  .hg-profile-avatar{width:48px;height:48px}
  .hg-profile-avatar__letter{font-size:22px}
  .hg-profile-user__name{font-size:17px}
  .hg-profile-settings{height:32px;padding:0 12px;font-size:12px}
  .hg-profile-logout{margin-top:20px;height:46px}
}

/* —— 个人中心子页：收藏 / 喜欢 / 历史（对齐「我的收藏」截图） —— */
.hg-profile-list-page{padding-bottom:64px;min-height:60vh}
.hg-profile-list-page .hg-breadcrumb,
.hg-profile-list-page .hg-breadcrumb a,
.hg-profile-list-page .hg-breadcrumb__sep,
.hg-profile-list-page .hg-breadcrumb__current{
  color:var(--color-primary,#ffd21c);
}
.hg-profile-list-page .hg-breadcrumb a:hover{opacity:.85}

.hg-profile-list__head{margin:4px 0 18px}
.hg-profile-list__title-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.hg-profile-list__head h1{
  margin:0;min-width:0;color:#fff;font-size:28px;font-weight:700;line-height:1.25;
}
.hg-profile-list__subtitle{
  margin:8px 0 0;color:rgba(255,255,255,.45);font-size:14px;line-height:1.5;
}
.hg-profile-list__pill{
  flex:none;display:inline-flex;align-items:center;
  height:32px;padding:0 14px;border-radius:999px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.55);font-size:13px;white-space:nowrap;line-height:1;
}

/* Tab 行独占整宽，底部分割线拉满 */
.hg-profile-list__tabs-row{
  display:block;width:100%;margin:0 0 8px;
}
.hg-profile-list-page .hg-channel-tabs{
  display:flex;width:100%;margin-top:0;gap:28px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.hg-profile-list-page .hg-channel-tabs__item{
  text-decoration:none;padding:0 0 12px;font-size:15px;
  color:rgba(255,255,255,.45);background:transparent;border:0;
}
.hg-profile-list-page .hg-channel-tabs__item.is-active{
  color:var(--color-primary,#ffd21c);font-weight:600;
}
.hg-profile-list-page .hg-channel-tabs__item.is-active::after{
  background:var(--color-primary,#ffd21c);
}
.hg-profile-list-page .hg-channel-tabs__item:hover{color:#fff}

.hg-profile-list__empty{
  margin-top:48px;padding:56px 16px 72px;
}

@media (max-width:960px){
  .hg-profile-list__head h1{font-size:24px}
  .hg-profile-list-page .hg-channel-tabs{gap:20px}
}
@media (max-width:640px){
  .hg-profile-list-page{padding-bottom:40px;min-height:50vh}
  .hg-profile-list__head{margin-bottom:14px}
  .hg-profile-list__title-row{gap:10px}
  .hg-profile-list__head h1{font-size:22px}
  .hg-profile-list__subtitle{font-size:13px;margin-top:6px}
  .hg-profile-list__pill{height:28px;padding:0 12px;font-size:12px}
  .hg-profile-list__tabs-row{width:100%}
  .hg-profile-list-page .hg-channel-tabs{
    width:100%;gap:8px;margin:0;padding:2px 0 0;
  }
  .hg-profile-list-page .hg-channel-tabs__item{
    font-size:13px;padding:8px 10px 10px;
  }
  .hg-profile-list__empty{margin-top:28px;padding:36px 12px 48px}
  .hg-profile-list__empty .hg-empty__art{width:140px;height:140px;max-width:140px}
  .hg-profile-list-page .hg-channel-tabs{
    overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .hg-profile-list-page .hg-channel-tabs::-webkit-scrollbar{display:none}
}

/* 种子资源卡片区：复用 hg-zhongzi.css，略收紧顶距 */
.hg-profile-list__zz.hg-zz-masonry{margin-top:12px}


.hg-profile-user__vip{
  display:inline-flex;align-items:center;margin-top:6px;padding:2px 8px;border-radius:999px;
  background:linear-gradient(90deg,#f6d365,#fda085);color:#3b1d0b;font-size:12px;font-weight:600;
}
.hg-profile-user__vip[hidden]{display:none!important}


/* 头像区创作点（登录态） */
.hg-profile-user__balance{
  display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap;
  color:rgba(255,255,255,.72);font-size:13px;line-height:1.3;
}
.hg-profile-user__balance[hidden]{display:none!important}
.hg-profile-user__balance-label{color:rgba(255,255,255,.5)}
.hg-profile-user__balance-num{color:var(--color-primary,#ffd21c);font-weight:700;font-size:14px}
.hg-profile-user__balance-detail{
  color:rgba(255,255,255,.55);text-decoration:none;font-size:12px;
  border-bottom:1px dashed rgba(255,255,255,.28);
}
.hg-profile-user__balance-detail:hover{color:#fff;border-bottom-color:rgba(255,255,255,.55)}

