/* ============================================================
   成人听力康复 · 游戏化激励系统
   医疗科技风格 · 温和专业 · #6b9ac4
   ============================================================ */

.gs-page {
  --gs-gradient: linear-gradient(135deg, #e8f1f9 0%, #f5f9fc 48%, #eef4fa 100%);
  --gs-card-radius: 20px;
  --gs-card-shadow: 0 8px 32px rgba(28, 42, 58, 0.06);
  --gs-glow: 0 0 24px rgba(107, 154, 196, 0.22);
}

/* ── 个人成长主页 · 顶部状态卡 ── */
.gs-hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--gs-card-radius);
  background: var(--gs-gradient);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  box-shadow: var(--gs-card-shadow);
  margin-bottom: 16px;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

.gs-hero-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 154, 196, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.gs-hero-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.gs-hero-name-row .gs-hero-name {
  margin: 0;
}

.gs-skin-btn {
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-start;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(68, 93, 120, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gs-skin-btn svg {
  width: 20px;
  height: 20px;
}

.gs-skin-btn:hover {
  background: #fff;
  border-color: rgba(var(--primary-rgb), 0.4);
}

.gs-avatar-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(68, 93, 120, 0.12);
  background: var(--primary-soft);
}

.gs-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
}

.gs-hero-meta {
  flex: 1;
  min-width: 0;
}

.gs-hero-name {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.gs-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-muted);
}

.gs-level-badge strong {
  font-size: 0.92rem;
  color: var(--primary);
}

.gs-xp-block {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.gs-xp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--sub-text);
}

.gs-xp-head strong {
  font-size: 0.88rem;
  color: var(--text);
}

.gs-xp-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(28, 42, 58, 0.06);
}

.gs-xp-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--progress-bar-start, #4e86c0), var(--progress-bar-end, #638fbd));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.gs-stat-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  text-align: center;
}

.gs-stat-chip .label {
  display: block;
  font-size: 0.68rem;
  color: var(--sub-text);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.gs-stat-chip .value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.gs-stat-chip .unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--sub-text);
}

/* ── 能力成长 / 训练摘要 ── */
.gs-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.gs-training-list {
  display: grid;
  gap: 10px;
}

.gs-training-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-tint-border);
  transition: box-shadow 0.18s ease;
}

.gs-training-item:hover {
  box-shadow: 0 6px 18px rgba(28, 42, 58, 0.06);
}

.gs-training-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-training-copy {
  flex: 1;
  min-width: 0;
}

.gs-training-copy strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}

.gs-training-copy span {
  font-size: 0.76rem;
  color: var(--sub-text);
}

.gs-training-score {
  text-align: right;
  flex-shrink: 0;
}

.gs-training-score .pct {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.gs-training-score .pts {
  font-size: 0.72rem;
  color: var(--sub-text);
}

/* ── 快捷入口 ── */
.gs-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gs-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-tint-border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gs-quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--gs-card-shadow);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.gs-quick-link .gs-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-quick-link span {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

/* ── 勋章收藏墙 ── */
.gs-medal-wall {
  display: grid;
  gap: 24px;
}

.gs-medal-category {
  scroll-margin-top: 80px;
}

.gs-medal-category-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gs-medal-category-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.gs-medal-category-head .count {
  font-size: 0.72rem;
  color: var(--sub-text);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.gs-medal-category-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.2), transparent);
}

.gs-medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

.gs-medal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px 16px;
  border-radius: 18px;
  background: var(--panel-tint-bg);
  border: 1px solid var(--panel-tint-border);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gs-medal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gs-card-shadow);
}

.gs-medal-card.is-earned {
  background: #fff;
  border-color: rgba(var(--primary-rgb), 0.22);
}

.gs-medal-card.is-earned.has-glow {
  animation: gsMedalPulse 2.8s ease-in-out infinite;
}

@keyframes gsMedalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 154, 196, 0.15), var(--gs-card-shadow); }
  50% { box-shadow: 0 0 20px 4px rgba(107, 154, 196, 0.28), var(--gs-card-shadow); }
}

.gs-medal-card.is-locked .gs-medal-icon-wrap {
  filter: grayscale(0.9);
  opacity: 0.45;
}

.gs-medal-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-medal-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.gs-medal-condition {
  font-size: 0.72rem;
  color: var(--sub-text);
  line-height: 1.4;
  min-height: 2.8em;
}

.gs-medal-progress {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.gs-medal-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--progress-bar-start), var(--progress-bar-end));
  transition: width 0.4s ease;
}

.gs-medal-progress-label {
  font-size: 0.68rem;
  color: var(--sub-text);
}

.gs-medal-earned-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--success-soft);
  color: var(--success);
}

/* ── 积分商城 ── */
.gs-shop-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--gs-card-radius);
  background: var(--gs-gradient);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  margin-bottom: 16px;
}

.gs-shop-balance .label {
  font-size: 0.78rem;
  color: var(--sub-text);
}

.gs-shop-balance .amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.gs-shop-balance .amount small {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sub-text);
}

.gs-shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.gs-shop-cat-tab {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sub-text);
  cursor: pointer;
  transition: all 0.18s ease;
}

.gs-shop-cat-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gs-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gs-shop-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-tint-border);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gs-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gs-card-shadow);
}

.gs-shop-card.is-equipped {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--gs-glow);
}

.gs-shop-card-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--panel) 100%);
}

.gs-shop-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.gs-shop-card-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.gs-shop-card-desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--sub-text);
  line-height: 1.45;
  flex: 1;
}

.gs-shop-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.gs-shop-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.gs-shop-price small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--sub-text);
}

/* ── 奖励反馈弹窗 ── */
.gs-reward-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(10, 16, 24, 0.52);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gs-reward-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.gs-reward-panel {
  position: relative;
  width: min(380px, 100%);
  padding: 32px 24px 24px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-reward-overlay.is-visible .gs-reward-panel {
  transform: scale(1) translateY(0);
}

.gs-reward-ear {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
}

.gs-reward-ear-core {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gsEarGlow 2s ease-in-out infinite;
}

@keyframes gsEarGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 154, 196, 0.3); }
  50% { box-shadow: 0 0 28px 8px rgba(107, 154, 196, 0.45); }
}

.gs-reward-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(107, 154, 196, 0.35);
  animation: gsWaveExpand 2.4s ease-out infinite;
}

.gs-reward-wave:nth-child(2) { animation-delay: 0.6s; }
.gs-reward-wave:nth-child(3) { animation-delay: 1.2s; }

@keyframes gsWaveExpand {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.gs-reward-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.gs-reward-sub {
  margin: 0 0 20px;
  font-size: 0.82rem;
  color: var(--sub-text);
}

.gs-reward-items {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.gs-reward-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-muted);
  animation: gsRewardSlide 0.5s ease backwards;
}

.gs-reward-item:nth-child(2) { animation-delay: 0.12s; }
.gs-reward-item:nth-child(3) { animation-delay: 0.24s; }

@keyframes gsRewardSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gs-reward-medal {
  padding: 12px;
  border-radius: 14px;
  background: var(--gs-gradient);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  margin-bottom: 16px;
  animation: gsRewardSlide 0.5s ease 0.3s backwards;
}

.gs-reward-medal .gs-medal-icon-wrap {
  margin: 0 auto 8px;
}

.gs-reward-medal strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}

.gs-reward-medal span {
  font-size: 0.72rem;
  color: var(--sub-text);
}

.gs-reward-close {
  width: 100%;
}

/* ── 页面导航 Tab ── */
.gs-nav-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.gs-nav-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sub-text);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.gs-nav-tab.is-active,
.gs-nav-tab[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

.gs-page-header {
  margin-bottom: 16px;
}

.gs-page-header .eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-muted);
  font-weight: 600;
}

.gs-page-header h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
}

.gs-page-header p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sub-text);
  line-height: 1.5;
}

.gs-empty {
  padding: 32px;
  text-align: center;
  color: var(--sub-text);
  font-size: 0.88rem;
}

.gs-filter-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.gs-filter-tab {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--sub-text);
  cursor: pointer;
}

.gs-filter-tab.is-active {
  background: var(--primary);
  color: #fff;
}

.gs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.gs-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

/* ── 详情弹层 ── */
.gs-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.gs-detail-overlay.mc-hidden {
  display: none;
}

.gs-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 16, 24, 0.55);
  cursor: pointer;
}

.gs-detail-panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 24px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.gs-detail-panel .gs-medal-icon-wrap {
  margin: 0 auto 12px;
}

.gs-detail-panel h3 {
  margin: 0 0 8px;
}

.gs-detail-panel p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--sub-text);
  line-height: 1.55;
}

.gs-detail-reward {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ── 移动端适配 ── */
@media (max-width: 960px) {
  body.gs-mobile-compact .home-main > .home-hero {
    display: none;
  }

  .gs-stat-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .gs-stat-chip {
    padding: 10px 8px;
  }

  .gs-stat-chip .value {
    font-size: 1.15rem;
  }

  .gs-quick-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .gs-quick-link {
    padding: 14px 8px;
  }

  .gs-medal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gs-shop-grid {
    grid-template-columns: 1fr;
  }

  .gs-hero-card {
    padding: 18px;
    border-radius: var(--mobile-card-radius, 18px);
  }

  .gs-nav-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--mobile-shell-bg, var(--shell-bg));
  }

  body.has-mobile-chrome .gs-nav-tabs {
    top: calc(var(--mobile-topbar-height) + 8px);
  }
}

@media (max-width: 480px) {
  .gs-stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .gs-stat-row .gs-stat-chip:last-child {
    grid-column: span 2;
  }
}

/* 商城预览（沿用结构） */
.ach-perk-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.ach-perk-preview-card { display: grid; gap: 10px; }

.ach-perk-preview-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.ach-perk-preview-status {
  font-size: 0.72rem;
  color: var(--sub-text);
}

.ach-perk-preview-medal {
  pointer-events: none;
  min-height: 140px;
}

.ach-perk-preview-post {
  pointer-events: none;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  position: relative;
}

.ach-perk-preview-post.is-reward-highlight {
  border: 2px solid rgba(107, 154, 196, 0.45);
  background: linear-gradient(135deg, rgba(107, 154, 196, 0.08) 0%, var(--panel) 55%);
  box-shadow: 0 0 0 1px rgba(107, 154, 196, 0.1), 0 0 22px rgba(107, 154, 196, 0.18);
}

.ach-perk-preview-post .ach-perk-preview-highlight-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-muted);
  background: rgba(107, 154, 196, 0.15);
  border: 1px solid rgba(107, 154, 196, 0.25);
}

.ach-perk-preview-post-user {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.ach-perk-preview-post-body {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--sub-text);
}

.ach-shop-perk-status {
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--primary-muted);
  background: rgba(107, 154, 196, 0.1);
  border: 1px solid rgba(107, 154, 196, 0.18);
}

.shop-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.shop-inventory-list { display: grid; gap: 8px; }

.shop-inventory-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.shop-inventory-actions { display: flex; gap: 8px; }

.ach-redemption-list { display: grid; gap: 8px; }

.ach-redemption-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.ach-redemption-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--primary);
}

.gs-medal-display-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(96, 139, 187, 0.15);
  color: var(--primary);
  font-weight: 600;
}

.gs-home-deco {
  margin-bottom: 12px;
}

.gs-home-deco-inner {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(96, 139, 187, 0.12), rgba(96, 139, 187, 0.04));
  border: 1px dashed rgba(96, 139, 187, 0.35);
  font-size: 0.82rem;
  color: var(--primary-muted);
  text-align: center;
}

.gs-hero-card[data-progress-skin="sky"] {
  background: linear-gradient(145deg, #eef6fc 0%, #d4e8f7 42%, #eef6fc 100%);
  border-color: rgba(107, 154, 196, 0.28);
}

.gs-hero-card[data-progress-skin="meadow"] {
  background: linear-gradient(145deg, #edf7f0 0%, #cfe8d6 45%, #edf7f0 100%);
  border-color: rgba(76, 140, 96, 0.28);
}

.gs-hero-card[data-progress-skin="lavender"] {
  background: linear-gradient(145deg, #f3effa 0%, #ddd0f0 45%, #f3effa 100%);
  border-color: rgba(130, 100, 180, 0.28);
}

.gs-hero-card[data-progress-skin="amber"] {
  background: linear-gradient(145deg, #fff8ec 0%, #fde8c4 45%, #fff8ec 100%);
  border-color: rgba(200, 150, 60, 0.28);
}

.gs-hero-card[data-progress-skin="rose"] {
  background: linear-gradient(145deg, #fff0f2 0%, #f8d0d8 45%, #fff0f2 100%);
  border-color: rgba(200, 100, 120, 0.28);
}

.gs-hero-card[data-progress-skin="ocean"],
.gs-hero-card.vp-skin-ocean {
  background: linear-gradient(145deg, #e8f4fa 0%, #a8cce8 48%, #e8f4fa 100%);
  border-color: rgba(74, 142, 196, 0.35);
  box-shadow: 0 12px 32px rgba(74, 142, 196, 0.18);
}

.gs-hero-card[data-progress-skin="dawn"] {
  background: linear-gradient(145deg, #fff5ee 0%, #ffd4b8 45%, #fff5ee 100%);
  border-color: rgba(220, 140, 90, 0.28);
}

.gs-hero-card[data-progress-skin="forest"] {
  background: linear-gradient(145deg, #eef5ee 0%, #b8d4b0 45%, #eef5ee 100%);
  border-color: rgba(80, 130, 70, 0.28);
}

.gs-hero-card[data-progress-skin="dusk"] {
  background: linear-gradient(145deg, #f3eef8 0%, #c9b0e0 45%, #f3eef8 100%);
  border-color: rgba(120, 90, 160, 0.28);
}

.gs-hero-card[data-progress-skin="aurora"] {
  background: linear-gradient(145deg, #e8faf5 0%, #88d4c8 48%, #e8faf5 100%);
  border-color: rgba(70, 150, 140, 0.28);
}

.gs-hero-card[data-progress-skin="starlight"] {
  background: linear-gradient(145deg, #1a2840 0%, #2d4a70 48%, #1e3050 100%);
  border-color: rgba(100, 140, 200, 0.35);
  box-shadow: 0 12px 32px rgba(30, 50, 80, 0.25);
}

.gs-hero-card[data-progress-skin="starlight"] .gs-hero-name,
.gs-hero-card[data-progress-skin="starlight"] .gs-xp-head,
.gs-hero-card[data-progress-skin="starlight"] .gs-stat-chip .label {
  color: rgba(232, 240, 250, 0.85);
}

.gs-hero-card[data-progress-skin="starlight"] .gs-hero-name,
.gs-hero-card[data-progress-skin="starlight"] .gs-stat-chip .value {
  color: #f0f6ff;
}

.gs-hero-card[data-progress-skin="zenith"] {
  background: linear-gradient(145deg, #fff8e8 0%, #e8c878 42%, #fff8e8 100%);
  border-color: rgba(180, 140, 50, 0.32);
  box-shadow: 0 12px 32px rgba(200, 160, 60, 0.15);
}

.gs-reward-item--debit {
  color: #b45309;
}

.gs-reward-item--hint {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sub-text);
}

/* ── 积分任务中心 ── */
.pt-task-section {
  margin-top: 14px;
}

.pt-section-sub {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--sub-text);
}

.pt-checkin-hint,
.pt-frozen-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--sub-text);
  line-height: 1.45;
}

.pt-frozen-hint {
  color: #c0392b;
}

.pt-task-list {
  display: grid;
  gap: 10px;
}

.pt-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  background: var(--panel);
}

.pt-task-card.is-done {
  opacity: 0.72;
  background: rgba(var(--primary-rgb), 0.03);
}

.pt-task-main {
  min-width: 0;
}

.pt-task-main h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.pt-task-points {
  justify-self: end;
  min-width: 7em;
  text-align: right;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}

.pt-task-desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--sub-text);
  line-height: 1.45;
}

.pt-task-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pt-task-btn {
  min-width: 88px;
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.pt-task-done-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2e7d4f;
  background: rgba(46, 125, 79, 0.1);
  border: 1px solid rgba(46, 125, 79, 0.25);
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 420px) {
  .pt-task-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main main"
      "points action";
  }

  .pt-task-main {
    grid-area: main;
  }

  .pt-task-points {
    grid-area: points;
    justify-self: start;
    text-align: left;
    min-width: 0;
  }

  .pt-task-action {
    grid-area: action;
    justify-self: end;
  }
}

.shop-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ── 华住会式积分会员卡 ── */
.gs-member-card-mount {
  margin-bottom: 14px;
}

.pmc-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px rgba(28, 42, 58, 0.12);
}

.pmc-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6b9ac4 0%, #4a7aaa 48%, #355f87 100%);
  opacity: 1;
}

.pmc-card.tier-seed .pmc-card-bg {
  background: linear-gradient(135deg, #8fb4d4 0%, #6b9ac4 55%, #5a86ad 100%);
}
.pmc-card.tier-silver .pmc-card-bg {
  background: linear-gradient(135deg, #c8d4e0 0%, #9eb3c9 45%, #6b8aa8 100%);
}
.pmc-card.tier-gold .pmc-card-bg {
  background: linear-gradient(135deg, #f0d998 0%, #d4a843 42%, #a67c2e 100%);
}
.pmc-card.tier-platinum .pmc-card-bg {
  background: linear-gradient(135deg, #dce4ec 0%, #a8b8c8 40%, #6a7f96 100%);
}
.pmc-card.tier-diamond .pmc-card-bg {
  background: linear-gradient(135deg, #e8f4fc 0%, #7eb8e8 38%, #3d7aad 100%);
}
.pmc-card.tier-legend .pmc-card-bg {
  background: linear-gradient(135deg, #2a3544 0%, #4a3f6a 45%, #1a2840 100%);
}

.pmc-card-inner {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
  color: #fff;
}

.pmc-card.tier-gold .pmc-card-inner,
.pmc-card.tier-silver .pmc-card-inner {
  color: #1c2a3a;
}

.pmc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pmc-tier-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.pmc-card.tier-gold .pmc-tier-badge,
.pmc-card.tier-silver .pmc-tier-badge {
  background: rgba(0, 0, 0, 0.08);
}

.pmc-brand {
  font-size: 0.72rem;
  opacity: 0.85;
  letter-spacing: 0.06em;
}

.pmc-balance-label {
  font-size: 0.75rem;
  opacity: 0.88;
}

.pmc-balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.pmc-balance {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pmc-yuan {
  font-size: 0.78rem;
  opacity: 0.9;
}

.pmc-tier-progress {
  margin-top: 14px;
}

.pmc-tier-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  opacity: 0.9;
  margin-bottom: 6px;
}

.pmc-tier-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.pmc-tier-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
  transition: width 0.4s ease;
}

.pmc-card.tier-gold .pmc-tier-bar span,
.pmc-card.tier-silver .pmc-tier-bar span {
  background: rgba(28, 42, 58, 0.75);
}

.pmc-expire,
.pmc-frozen,
.pmc-tier-max {
  margin: 10px 0 0;
  font-size: 0.72rem;
  opacity: 0.92;
  line-height: 1.4;
}

.pmc-frozen {
  color: #ffe0e0;
}

.pmc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pmc-btn {
  font-size: 0.78rem !important;
  padding: 7px 12px !important;
}

.pmc-card--compact .pmc-balance {
  font-size: 1.65rem;
}

.pmc-card--compact .pmc-card-inner {
  padding: 14px 16px;
}

/* ── 虚拟商品特效 ── */
.vp-deco-inner {
  position: relative;
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(96, 139, 187, 0.18), rgba(96, 139, 187, 0.06));
  border: 1px solid rgba(96, 139, 187, 0.35);
  font-size: 0.82rem;
  color: var(--primary);
  text-align: center;
}

.vp-deco-wave {
  position: absolute;
  inset: -20% 0 auto;
  height: 120%;
  background: radial-gradient(ellipse at 30% 50%, rgba(96, 139, 187, 0.35), transparent 60%);
  animation: vpDecoWave 3.5s ease-in-out infinite;
  pointer-events: none;
}

.vp-deco-wave--2 {
  animation-delay: -1.2s;
  background: radial-gradient(ellipse at 70% 50%, rgba(212, 168, 67, 0.2), transparent 55%);
}

@keyframes vpDecoWave {
  0%, 100% { transform: translateX(-8%) scale(1); opacity: 0.6; }
  50% { transform: translateX(8%) scale(1.05); opacity: 1; }
}

.vp-sound-frame,
.gs-avatar-wrap.vp-sound-frame,
.sidebar-user-avatar.vp-sound-frame {
  box-shadow:
    0 0 0 2px var(--primary),
    0 0 0 5px rgba(96, 139, 187, 0.25),
    0 0 16px rgba(96, 139, 187, 0.45);
  border-radius: 50%;
  animation: vpFramePulse 2.8s ease-in-out infinite;
}

@keyframes vpFramePulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--primary), 0 0 0 5px rgba(96, 139, 187, 0.2), 0 0 10px rgba(96, 139, 187, 0.25); }
  50% { box-shadow: 0 0 0 2px var(--primary), 0 0 0 6px rgba(96, 139, 187, 0.35), 0 0 22px rgba(96, 139, 187, 0.5); }
}

.vp-user-title {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.68rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(96, 139, 187, 0.14);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.sidebar-user-copy > .vp-user-title {
  display: inline-flex;
  margin-top: 2px;
}

.gs-hero-card.vp-skin-ocean,
.gs-hero-card[data-progress-skin="ocean"],
.home-ref-progress.vp-skin-ocean,
.home-ref-progress[data-progress-skin="ocean"] {
  background: linear-gradient(145deg, #e8f4fa 0%, #7eb8e8 42%, #4a8ec4 100%) !important;
  box-shadow: 0 12px 32px rgba(74, 142, 196, 0.22);
}

.gs-medal-card.has-glow,
.gs-medal-card.has-glow.vp-glow-demo {
  animation: gsMedalGlow 2.4s ease-in-out infinite;
}

@keyframes gsMedalGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.2); }
  50% { box-shadow: 0 0 20px 6px rgba(212, 168, 67, 0.45); }
}

.vp-preview-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.vp-skin-preview {
  height: 56px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--sub-text);
}

.vp-skin-preview.is-ocean {
  background: linear-gradient(145deg, #e8f4fa, #6a9ec8);
  color: #2a5070;
  border-color: rgba(106, 158, 200, 0.5);
}

.vp-deco-preview {
  position: relative;
  padding: 10px;
  border-radius: 10px;
  background: rgba(96, 139, 187, 0.08);
  font-size: 0.78rem;
  overflow: hidden;
}

.vp-deco-preview.is-on {
  border: 1px dashed rgba(96, 139, 187, 0.4);
  color: var(--primary);
}

.vp-community-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vp-preview-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.vp-preview-name {
  font-size: 0.78rem;
}
