/* ============================================================
   成人听力康复 · 游戏化激励系统
   医疗科技风格 · 温和专业 · #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;
  position: static;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: inherit;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  transform: perspective(1px) translateZ(0);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.gs-skin-btn .home-progress-action-icon {
  width: 36px;
  height: 36px;
}

.gs-skin-btn:hover,
.gs-skin-btn:focus-visible {
  background: transparent;
  border-color: transparent;
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 7px 8px rgba(var(--primary-shadow-rgb), 0.22));
  outline: none;
}

.gs-skin-btn:hover .home-progress-action-icon,
.gs-skin-btn:focus-visible .home-progress-action-icon {
  transform: scale(1.03);
  filter: drop-shadow(0 2px 3px rgba(var(--primary-shadow-rgb), 0.16));
}

.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;
  white-space: nowrap;
}

.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;
  align-items: stretch;
}

.gs-shop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  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-visual--highlight {
  height: auto;
  min-height: 132px;
  padding: 8px;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: var(--panel);
}

.gs-shop-card-visual--highlight .community-weibo-card.shop-highlight-card--compact {
  width: 100%;
  padding: 8px 10px 10px;
  border-radius: 10px;
  pointer-events: none;
}

.gs-shop-card-visual--highlight .community-weibo-avatar {
  width: 30px;
  height: 30px;
}

.gs-shop-card-visual--highlight .community-weibo-name {
  font-size: 0.78rem;
  gap: 4px;
}

.gs-shop-card-visual--highlight .community-weibo-title {
  font-size: 0.62rem;
  padding: 0 6px;
}

.gs-shop-card-visual--highlight .community-weibo-medals {
  margin-top: 2px;
  gap: 3px;
}

.gs-shop-card-visual--highlight .community-weibo-medal {
  padding: 1px 5px 1px 3px;
  font-size: 0.58rem;
}

.gs-shop-card-visual--highlight .community-weibo-medal-icon {
  width: 14px;
  height: 14px;
}

.gs-shop-card-visual--highlight .community-weibo-medal-icon svg {
  width: 14px;
  height: 14px;
}

.gs-shop-card-visual--highlight .community-weibo-medal-label {
  max-width: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-shop-card-visual--highlight .community-weibo-time,
.gs-shop-card-visual--highlight .community-weibo-tags {
  display: none;
}

.gs-shop-card-visual--highlight .community-weibo-badge {
  font-size: 0.58rem;
  padding: 2px 6px;
}

.gs-shop-card-visual--highlight .community-weibo-body {
  margin: 6px 0 0 38px;
  font-size: 0.72rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-highlight-preview .community-weibo-card {
  pointer-events: none;
}

.shop-highlight-status {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--primary-muted);
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
}

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

.gs-shop-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
}

.gs-shop-card-meta {
  display: block;
  flex-shrink: 0;
}

.gs-shop-card-cat {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary-muted);
}

.gs-shop-card-state,
.gs-shop-card-tags {
  display: none;
}

.gs-shop-quota {
  font-size: 0.72rem;
  color: var(--sub-text);
}

.gs-shop-limit-note {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sub-text);
  white-space: nowrap;
  padding: 6px 0;
}

.gs-shop-limit-note.is-warn {
  color: var(--warning, #9a7424);
}

.gs-shop-frozen-note {
  color: var(--warning, #9a7424);
  font-weight: 600;
}

.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;
}

.gs-shop-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  padding-top: 8px;
}

.gs-shop-card-foot .shop-action-group {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.gs-shop-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.shop-preview-panel {
  width: min(420px, 100%);
}

.shop-preview-body {
  margin-bottom: 16px;
}

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

.shop-preview-body .shop-highlight-preview .community-weibo-card {
  width: 100%;
}

.shop-preview-body .shop-highlight-status {
  margin-top: 2px;
}

.shop-preview-body .community-weibo-title {
  font-style: normal;
  font-size: 0.72rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary);
}

.shop-home-deco-panel {
  width: min(420px, 100%);
}

.shop-home-deco-intro {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--sub-text);
}

.shop-home-deco-live {
  margin-bottom: 14px;
}

.shop-home-deco-edit-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sub-text);
}

.shop-home-deco-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--card-bg, #fff);
}

.shop-home-deco-input:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.shop-home-deco-edit-meta {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--sub-text);
}

.shop-home-deco-edit {
  display: grid;
  gap: 8px;
}

.shop-home-deco-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.shop-home-deco-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.shop-home-deco-color-field {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sub-text);
}

.shop-home-deco-color-field input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 4px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 10px;
  background: var(--card-bg, #fff);
  cursor: pointer;
}

.shop-home-deco-font-select {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--card-bg, #fff);
}

.shop-home-deco-font-select:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

@media (max-width: 960px) {
  body.reward-shop-page .home-main {
    background: var(--shell-bg, #eff3f6);
  }

  body.reward-shop-page .gs-nav-tabs {
    margin-bottom: 10px;
  }

  body.reward-shop-page .gs-shop-hero {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
  }

  body.reward-shop-page .gs-shop-balance .amount {
    font-size: 1.85rem;
  }

  .gs-shop-categories {
    flex-wrap: nowrap;
    margin-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 46px;
    z-index: 18;
    padding: 8px 0 10px;
    background: var(--shell-bg, #eff3f6);
  }

  body.has-mobile-chrome .gs-shop-categories {
    top: calc(var(--mobile-topbar-height) + 54px);
  }

  .gs-shop-categories::-webkit-scrollbar {
    display: none;
  }

  .gs-shop-cat-tab {
    flex: 0 0 auto;
    border-color: var(--panel-tint-border);
    padding: 8px 14px;
    box-shadow: var(--shadow-sm);
  }

  .gs-shop-cat-tab.is-active {
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.28);
  }

  body.reward-shop-page .gs-shop-panel.card.ach-panel-card {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.reward-shop-page .gs-shop-panel .gs-section-head {
    display: none;
  }

  body.reward-shop-page .gs-shop-panel .gs-shop-grid {
    display: block;
    column-count: 2;
    column-gap: 8px;
    margin: 0 -4px;
    padding: 10px 6px 4px;
    border-radius: 16px 16px 0 0;
    background: var(--shell-bg);
  }

  body.reward-shop-page .gs-shop-panel .gs-shop-grid .gs-empty {
    column-span: all;
    display: block;
    width: 100%;
    padding: 32px 16px;
    text-align: center;
    border-radius: 12px;
  }

  body.reward-shop-page .gs-shop-card {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0 0 8px;
    break-inside: avoid;
    page-break-inside: avoid;
    vertical-align: top;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
  }

  body.reward-shop-page .gs-shop-card:hover {
    transform: translateY(-1px);
  }

  body.reward-shop-page .gs-shop-card-visual {
    height: auto;
    aspect-ratio: 1;
    background: linear-gradient(165deg, var(--primary-soft) 0%, var(--panel) 100%);
  }

  body.reward-shop-page .gs-shop-card-visual--highlight {
    aspect-ratio: auto;
    min-height: 148px;
    padding: 8px;
  }

  body.reward-shop-page .gs-shop-card-visual--highlight .community-weibo-body {
    -webkit-line-clamp: 3;
  }

  body.reward-shop-page .gs-shop-card-visual .gs-icon {
    width: 58%;
    height: 58%;
    max-width: 88px;
    max-height: 88px;
  }

  body.reward-shop-page .gs-shop-card-body {
    padding: 10px 10px 12px;
    gap: 6px;
    flex: 1;
    min-height: 0;
  }

  body.reward-shop-page .gs-shop-card-content {
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.reward-shop-page .gs-shop-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
  }

  body.reward-shop-page .gs-shop-card-state {
    display: inline-flex;
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.35;
    background: var(--primary-soft);
    color: var(--primary-muted);
    border: 1px solid rgba(var(--primary-rgb), 0.16);
  }

  body.reward-shop-page .gs-shop-card-state.is-equipped {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.28);
  }

  body.reward-shop-page .gs-shop-card-state.is-owned {
    background: var(--panel-tint-bg);
    color: var(--sub-text);
    border-color: var(--panel-tint-border);
  }

  body.reward-shop-page .gs-shop-quota {
    display: none;
  }

  body.reward-shop-page .gs-shop-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  body.reward-shop-page .gs-shop-tag {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--primary-muted);
    background: var(--primary-soft);
    border: 1px solid rgba(var(--primary-rgb), 0.16);
  }

  body.reward-shop-page .gs-shop-tag--muted {
    color: var(--sub-text);
    background: var(--panel-tint-bg);
    border-color: var(--panel-tint-border);
  }

  body.reward-shop-page .gs-shop-tag--warn {
    color: var(--warning, #9a7424);
    background: var(--warning-soft, rgba(201, 169, 106, 0.14));
    border-color: rgba(201, 169, 106, 0.28);
  }

  body.reward-shop-page .gs-shop-card-body h3 {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  body.reward-shop-page .gs-shop-card-desc {
    font-size: 0.72rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    flex: none;
  }

  body.reward-shop-page .gs-shop-card-foot {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    width: 100%;
  }

  body.reward-shop-page .gs-shop-card-foot .shop-action-group {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  body.reward-shop-page .gs-shop-price {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  body.reward-shop-page .gs-shop-price small {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary-muted);
  }

  body.reward-shop-page .gs-shop-card .shop-action-group {
    justify-content: stretch;
    gap: 6px;
  }

  body.reward-shop-page .gs-shop-card .shop-action-group .btn {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.74rem;
    border-radius: 999px;
  }

  body.reward-shop-page .gs-shop-card .ach-shop-perk-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--warning);
    background: var(--warning-soft);
    border: 1px solid rgba(201, 169, 106, 0.22);
  }

  body.reward-shop-page .home-main > section.card.ach-panel-card:not(.gs-shop-panel) {
    margin-top: 14px;
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow-sm);
  }
}

/* ── 奖励反馈弹窗 ── */
.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-section-sub {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: var(--sub-text);
  line-height: 1.45;
}

.gs-section-head--inventory {
  align-items: flex-start;
}

.gs-section-head-main {
  flex: 1;
  min-width: 0;
}

.shop-history-btn {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 6px 12px;
  white-space: nowrap;
}

/* ── 详情弹层 ── */
.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-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: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.shop-inventory-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-inventory-icon.is-rehab {
  background: linear-gradient(165deg, rgba(201, 169, 106, 0.18) 0%, var(--panel) 100%);
  border: 1px solid rgba(201, 169, 106, 0.22);
}

.shop-inventory-icon.is-virtual {
  background: linear-gradient(165deg, var(--primary-soft) 0%, var(--panel) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
}

.shop-inventory-icon.is-community {
  background: linear-gradient(165deg, rgba(212, 168, 67, 0.14) 0%, var(--panel) 100%);
  border: 1px solid rgba(212, 168, 67, 0.22);
}

.shop-inventory-icon .gs-icon {
  width: 34px;
  height: 34px;
}

.shop-inventory-copy {
  min-width: 0;
}

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

.shop-inventory-head strong {
  font-size: 0.88rem;
}

.shop-inventory-cat {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.35;
}

.shop-inventory-cat.is-rehab {
  color: #8a6d2b;
  background: rgba(201, 169, 106, 0.16);
  border: 1px solid rgba(201, 169, 106, 0.24);
}

.shop-inventory-cat.is-virtual {
  color: var(--primary-muted);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
}

.shop-inventory-cat.is-community {
  color: #9a7424;
  background: rgba(212, 168, 67, 0.14);
  border: 1px solid rgba(212, 168, 67, 0.24);
}

.shop-inventory-meta {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: var(--sub-text);
  line-height: 1.45;
}

.shop-inventory-coupons {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.shop-inventory-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.shop-inventory-coupon-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sub-text);
}

.shop-inventory-coupon-code,
.ach-redemption-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  word-break: break-all;
}

.ach-redemption-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
}

.ach-redemption-code-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sub-text);
}

.shop-inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

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

.ach-redemption-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.shop-redemption-panel {
  width: min(480px, 100%);
}

.shop-redemption-body {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  body.reward-shop-page .shop-inventory-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.reward-shop-page .shop-inventory-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  body.reward-shop-page .gs-section-head--inventory {
    gap: 10px;
  }

  body.reward-shop-page .shop-history-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
}

.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 {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

.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;
  width: 100%;
  min-height: 64px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
}

.vp-deco-glass-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    var(--vp-deco-bg-soft, rgba(232, 200, 120, 0.58)) 0%,
    var(--vp-deco-bg-mid, rgba(212, 168, 67, 0.4)) 42%,
    var(--vp-deco-bg-deep, rgba(180, 130, 40, 0.24)) 100%
  );
}

.vp-deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.85;
  animation: vpDecoBlobDrift 9s ease-in-out infinite;
  pointer-events: none;
}

.vp-deco-blob--a {
  width: 58%;
  height: 150%;
  left: -6%;
  top: -35%;
  background: var(--vp-deco-blob-a, rgba(212, 168, 67, 0.78));
}

.vp-deco-blob--b {
  width: 48%;
  height: 130%;
  right: -10%;
  bottom: -40%;
  background: var(--vp-deco-blob-b, rgba(232, 200, 120, 0.56));
  animation-delay: -3s;
}

.vp-deco-blob--c {
  width: 38%;
  height: 100%;
  left: 36%;
  top: 5%;
  background: var(--vp-deco-blob-c, rgba(180, 130, 40, 0.38));
  animation-delay: -6s;
}

.vp-deco-glass-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 18px 32px;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(255, 255, 255, 0.22) 46%,
    rgba(255, 255, 255, 0.32) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 10px 36px var(--vp-deco-shadow, rgba(180, 130, 40, 0.3)),
    0 2px 10px var(--vp-deco-shadow, rgba(180, 130, 40, 0.18));
}

.vp-deco-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 44%,
    transparent 58%
  );
  transform: translateX(-130%);
  animation: vpDecoShine 7s ease-in-out infinite;
  pointer-events: none;
}

.vp-deco-text {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-size: clamp(0.88rem, 2.4vw, 1.02rem);
  font-weight: 600;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-align: center;
  color: var(--vp-deco-text, #5a4524);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.vp-deco-text.vp-deco-font-default {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif !important;
}

.vp-deco-text.vp-deco-font-serif {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif !important;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.vp-deco-text.vp-deco-font-rounded {
  font-family: "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "PingFang SC", sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vp-deco-text.vp-deco-font-elegant {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif !important;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.vp-deco-text.vp-deco-font-classic {
  font-family: "STSong", "SimSun", "Songti SC", serif !important;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.vp-deco-text.vp-deco-font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-weight: 600;
  font-size: clamp(0.82rem, 2.2vw, 0.96rem);
  letter-spacing: 0.08em;
}

.shop-home-deco-font-sample {
  margin: 6px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.06);
  font-size: 0.82rem;
  color: var(--sub-text);
  text-align: center;
}

.shop-home-deco-font-sample span {
  display: inline-block;
  font-size: 1rem;
}

@keyframes vpDecoBlobDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(7%, -5%) scale(1.1);
  }
  66% {
    transform: translate(-5%, 6%) scale(0.94);
  }
}

@keyframes vpDecoShine {
  0%,
  42%,
  100% {
    transform: translateX(-130%);
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  72% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vp-deco-blob,
  .vp-deco-shine {
    animation: none;
  }
}

@media (max-width: 640px) {
  .vp-deco-glass-panel {
    padding: 16px 20px;
    min-height: 58px;
  }

  .vp-deco-text {
    font-size: 0.9rem;
  }
}

.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;
  width: 100%;
  padding: 0;
  border-radius: 22px;
  background: transparent;
  overflow: hidden;
}

.vp-deco-preview.is-on {
  border: none;
  color: inherit;
  box-shadow: 0 6px 28px var(--vp-deco-shadow, rgba(180, 130, 40, 0.22));
}

.shop-home-deco-live.vp-deco-preview.is-on {
  box-shadow: 0 8px 32px var(--vp-deco-shadow, rgba(180, 130, 40, 0.24));
}

.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;
}
