﻿/* tabs.css — Tab 页 / 子页面 / 详情样式（手机首屏按需加载） */
/* ========== Tab 子页面 ========== */
.tab-pages {
  padding-top: var(--nav-height);
  padding-bottom: calc(var(--bottom-nav-height) + var(--beian-bar-height) + 16px);
  min-height: 100vh;
}

.app-container.tab-active .tab-pages {
  position: fixed;
  top: var(--nav-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  bottom: var(--bottom-nav-height);
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  z-index: 100;
  background: var(--bg-page);
}

.app-container.buy-page-active .tab-pages,
.app-container.sell-page-active .tab-pages,
.app-container.mine-page-active .tab-pages {
  top: 0;
}

.tab-page {
  padding: 0 12px 16px;
  animation: fadeInUp 0.35s ease forwards;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-page[hidden] {
  display: none !important;
}

.tab-page.tab-buy,
.tab-page.tab-sell {
  padding: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: block;
}

.tab-page.tab-buy.buy-in-list,
.tab-page.tab-sell.sell-in-form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-page.tab-buy.buy-in-list #buyListView,
.tab-page.tab-sell.sell-in-form #sellPublishView {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-page.tab-buy.buy-in-list .channel-toolbar,
.tab-page.tab-sell.sell-in-form .channel-toolbar {
  display: none;
}

.tab-page.tab-mine {
  padding: 0;
  display: block;
  overflow-y: auto;
}

.app-container.tab-active .top-nav .search-box,
.app-container.tab-active .top-nav .nav-actions {
  display: none;
}

.app-container.tab-active .top-nav .brand {
  flex: 1;
  justify-content: center;
}

.app-container.buy-page-active .top-nav,
.app-container.sell-page-active .top-nav,
.app-container.rent-page-active .top-nav,
.app-container.mine-page-active .top-nav {
  display: none;
}

.app-container.buy-page-active .tab-pages,
.app-container.sell-page-active .tab-pages,
.app-container.rent-page-active .tab-pages,
.app-container.mine-page-active .tab-pages {
  padding-top: 0;
}

.app-container.mine-page-active .tab-pages {
  top: 0;
  background: #f5f6f8;
}

.app-container.buy-page-active .tab-pages,
.app-container.sell-page-active .tab-pages,
.app-container.rent-page-active .tab-pages,
.app-container.mine-page-active .tab-pages {
  top: 0;
}

.tab-page-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 8px 0 4px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.tab-page-header--sub {
  min-height: 56px;
  padding: 8px 8px 10px 4px;
  align-items: start;
}

.tab-page-header--sub .tab-back-btn {
  margin-top: 2px;
}

.tab-page-header--sub .tab-page-header-main {
  text-align: left;
}

.tab-back-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #333;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.tab-back-text {
  display: none;
}

.tab-back-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.tab-back-btn:active {
  background: rgba(0, 0, 0, 0.05);
}

.tab-page-header-main {
  min-width: 0;
  text-align: center;
}

.tab-page-header-main h1 {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  line-height: 1.25;
}

.tab-page-header-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.tab-header-trail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 40px;
}

.tab-header-spacer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.tab-header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.tab-header-btn svg,
.tab-header-btn .tab-header-svg {
  width: 20px;
  height: 20px;
}

.tab-header-btn:active {
  background: rgba(0, 0, 0, 0.05);
}

.tab-header-svg {
  width: 20px;
  height: 20px;
}

/* ========== 我要买号 ========== */
.tab-buy {
  padding: 0 !important;
  background: #fff;
  min-height: 100%;
}

.buy-top {
  flex-shrink: 0;
  background: #fff;
  padding: 12px 16px 0;
  position: relative;
  z-index: 10;
}

.buy-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #f2f3f5;
  border-radius: 20px;
  margin-bottom: 4px;
}

.buy-search svg {
  width: 18px;
  height: 18px;
  color: #999;
  flex-shrink: 0;
}

.buy-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
}

.buy-search input::placeholder {
  color: #999;
  font-size: 13px;
}

.buy-type-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 4px;
  border-bottom: 1px solid #f0f0f0;
}

.buy-type-tab {
  position: relative;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  transition: color 0.2s ease;
}

.buy-type-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.buy-type-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.buy-body {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.tab-page.tab-buy:not(.buy-in-list) .buy-body {
  min-height: auto;
}

.tab-page.tab-buy:not(.buy-in-list) .buy-game-scroll {
  overflow: visible;
  max-height: none;
}

.buy-game-scroll {
  flex: 1;
  min-width: 0;
  padding: 16px 4px 16px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.buy-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 10px;
}

.buy-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.buy-game-item:active .buy-game-icon {
  transform: scale(0.94);
}

.buy-game-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.buy-game-abbr {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  padding: 0 4px;
}

.buy-game-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.buy-game-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.buy-game-badge.steam {
  background: #1b2838;
  font-size: 8px;
}

.buy-game-badge.platform {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.buy-game-name {
  font-size: 12px;
  color: #333;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}

.buy-letter-index {
  position: sticky;
  top: 100px;
  flex-shrink: 0;
  width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 2px 8px 0;
  z-index: 5;
}

.buy-letter-btn {
  padding: 2px 0;
  font-size: 10px;
  font-weight: 500;
  color: #888;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.buy-letter-btn:active {
  color: var(--primary);
  font-weight: 700;
}

.buy-empty {
  padding: 60px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== 频道二级页（买/卖/租） ========== */
.channel-view[hidden],
#buyGameView[hidden],
#buyListView[hidden],
#sellGameView[hidden],
#sellPublishView[hidden] {
  display: none !important;
}

.channel-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.channel-view-list,
.channel-view-form {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.channel-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.channel-trust-bar span {
  font-size: 11px;
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(15, 76, 129, 0.06);
}

.channel-trust-bar--compact {
  padding: 6px 12px;
}

.channel-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.channel-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 6px 4px;
  font-size: 13px;
  color: var(--primary);
  border-radius: 6px;
  flex-shrink: 0;
}

.channel-back-icon {
  width: 18px;
  height: 18px;
}

.channel-toolbar-main {
  min-width: 0;
}

.channel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

.channel-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.channel-filter-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  flex-shrink: 0;
}

.channel-select {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  background: #fff;
  color: #333;
  outline: none;
}

.channel-select:focus {
  border-color: var(--primary);
}

.channel-server-scroll {
  padding: 0 12px 8px;
}

.channel-equip-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 8px;
  flex-shrink: 0;
}

.channel-equip-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.channel-equip-scroll {
  flex: 1;
  min-width: 0;
}

.product-equip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.product-equip-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  line-height: 1.3;
}

.channel-result-bar {
  padding: 0 12px 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.channel-product-grid {
  padding: 0 12px 16px;
}

.channel-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.channel-load-more {
  padding: 8px 12px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.channel-load-more[hidden] {
  display: none;
}

.product-gallery-load-sentinel {
  padding: 20px 12px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.product-gallery-load-sentinel.is-end {
  color: #9aa0a6;
  font-size: 12px;
  padding-bottom: 16px;
}

.product-gallery-load-sentinel[hidden] {
  display: none;
}

.channel-sort-bar {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
  overflow-x: auto;
  flex-shrink: 0;
}

.channel-sort {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  color: #666;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  background: #fff;
  white-space: nowrap;
}

.channel-sort.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(15, 76, 129, 0.06);
  font-weight: 600;
}

.product-server {
  font-size: 11px;
  color: var(--text-muted);
  margin: -2px 0 6px;
}

.rent-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.rent-trust-item {
  text-align: center;
  padding: 6px 2px;
}

.rent-trust-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.rent-trust-item strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.rent-trust-item small {
  display: block;
  font-size: 9px;
  color: #999;
  margin-top: 1px;
}

.rent-promo--claimed {
  opacity: 0.75;
}

.rent-promo--claimed .rent-promo-btn {
  background: #ccc;
  pointer-events: none;
}

.sell-steps-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 12px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.sell-steps-hint--form {
  background: #f8fafc;
}

.sell-step {
  color: #999;
}

.sell-step.active {
  color: var(--primary);
  font-weight: 600;
}

.sell-step.done {
  color: #52c41a;
  font-weight: 500;
}

.sell-step-arrow {
  color: #ccc;
  font-size: 10px;
}

.sell-form {
  padding: 12px 16px 24px;
}

.sell-form-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.sell-form-game-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.sell-field {
  display: block;
  margin-bottom: 14px;
}

.sell-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.sell-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #e0e3e8;
  border-radius: 8px;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}

.sell-input:focus {
  border-color: var(--primary);
}

.sell-form select.sell-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.svc-req-form {
  padding: 0;
  max-width: 100%;
}

.svc-req-lead {
  margin: 0 0 20px;
}

.svc-req-submit {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  min-height: 48px;
}

.feature-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.feature-nav-item.feature-disabled,
.service-card.feature-disabled,
.pc-trust-item.feature-disabled,
[data-tab].feature-disabled {
  pointer-events: auto;
}

.sell-textarea {
  resize: vertical;
  min-height: 88px;
  font-family: inherit;
}

.sell-guarantee-field {
  border: none;
  padding: 0;
  margin: 0 0 14px;
}

.sell-guarantee-field legend {
  margin-bottom: 8px;
}

.sell-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  cursor: pointer;
}

.sell-form-tip {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.sell-submit-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #1a6bb5 100%);
  cursor: pointer;
}

/* 通用子页头部 */
.tab-sub-header {
  padding: 16px 4px 12px;
}

.tab-sub-header h1 {
  font-size: var(--font-title);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.tab-sub-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.tab-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  margin-bottom: 12px;
  height: 42px;
}

.tab-search svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tab-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
}

.tab-search input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.tab-banner-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-banner-strip::-webkit-scrollbar {
  display: none;
}

.strip-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(78, 205, 196, 0.12);
  border-radius: 20px;
}

.strip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.tab-filter-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -12px 12px;
  padding: 0 12px;
}

.tab-filter-scroll::-webkit-scrollbar {
  display: none;
}

.tab-filters {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.tab-filter {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid rgba(15, 76, 129, 0.08);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.tab-filter.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.tab-sort-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  background: rgba(15, 76, 129, 0.04);
  border-radius: var(--radius-md);
}

.sort-btn {
  flex: 1;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sort-btn.active {
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.tab-empty {
  grid-column: 1 / -1;
  padding: 48px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.product-hot {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff9500, #ff6b6b);
  border-radius: 4px;
  z-index: 2;
}

.rent-price .rent-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.tab-rent {
  padding: 0 !important;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.tab-rent .rent-trust-bar,
.tab-rent .rent-duration-tabs,
.tab-rent .rent-promo,
.tab-rent .tab-filter-scroll,
.tab-rent .channel-sort-bar,
.tab-rent .rent-block-header,
.tab-rent .product-grid,
.tab-rent .channel-empty {
  padding-left: 12px;
  padding-right: 12px;
}

.tab-rent .rent-promo {
  margin-left: 12px;
  margin-right: 12px;
}

.tab-rent .rent-duration-tabs {
  padding-top: 12px;
}

/* 卖号页 */
.tab-sell {
  padding: 0 !important;
  background: #fff;
  min-height: 100%;
}

.sell-banner {
  flex-shrink: 0;
  margin: 0;
  background: linear-gradient(180deg, #1a8cff 0%, #0F4C81 100%);
  color: #fff;
}

.sell-banner-top {
  padding: 14px 16px 12px;
}

.sell-banner-top h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sell-banner-group {
  font-size: 12px;
  opacity: 0.92;
  margin-bottom: 12px;
}

.sell-fee-table {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sell-fee-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.sell-fee-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-size: 12px;
}

.sell-fee-head {
  padding: 8px 4px;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sell-fee-values {
  padding: 10px 4px;
  font-size: 18px;
  font-weight: 700;
  color: #ffe082;
}

.sell-fee-note {
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.88;
}

.sell-banner-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 16px 14px;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sell-rules-col p {
  font-size: 10px;
  line-height: 1.55;
  opacity: 0.85;
  margin-bottom: 4px;
}

.sell-type-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.sell-type-tab {
  position: relative;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  transition: color 0.2s ease;
}

.sell-type-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.sell-type-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.sell-game-body {
  position: relative;
}

.tab-page.tab-sell:not(.sell-in-form) .buy-game-scroll {
  overflow: visible;
  max-height: none;
}

.tab-page-cta {
  width: 100%;
  padding: 14px;
  font-size: var(--font-body);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(78, 205, 196, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tab-page-cta.outline {
  color: var(--primary);
  background: transparent;
  border: 1.5px solid var(--accent);
  box-shadow: none;
}

.tab-page-cta:active {
  transform: scale(0.98);
}

/* 租号页 */
.rent-duration-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  background: rgba(15, 76, 129, 0.05);
  border-radius: var(--radius-md);
}

.rent-duration {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.rent-duration.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 10px var(--accent-glow);
  font-weight: 600;
}

.rent-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.rent-promo-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(78, 205, 196, 0.15);
  border-radius: 10px;
}

.promo-svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.rent-promo-text {
  flex: 1;
  min-width: 0;
}

.rent-promo-text h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.rent-promo-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.rent-promo-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(78, 205, 196, 0.2);
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.rent-promo-btn:active {
  transform: scale(0.95);
}

.rent-block-header {
  margin-bottom: 12px;
  padding: 0 2px;
}

.rent-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* 我的页 */
.tab-mine {
  padding: 0 !important;
  background: #f5f6f8;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.mine-hero {
  position: relative;
  height: 56px;
  padding-bottom: 0;
}

.mine-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F4C81 0%, #1a6aad 45%, #4ECDC4 100%);
}

.mine-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 55%);
}

.mine-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 8px;
  color: #fff;
}

.mine-top-bar h1 {
  font-size: 17px;
  font-weight: 600;
}

.mine-top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mine-bar-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
}

.mine-bar-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.mine-bar-svg {
  width: 22px;
  height: 22px;
}

.mine-profile-card {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -20px 12px -16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 32px rgba(15, 76, 129, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mine-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(78, 205, 196, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.mine-avatar-svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.mine-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.mine-info h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mine-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.mine-login-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(78, 205, 196, 0.35);
}

.mine-login-btn:active {
  transform: scale(0.97);
}

.mine-content {
  position: relative;
  z-index: 1;
  padding: 28px 12px 20px;
}

.mine-wallet-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 18px 0;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

.mine-wallet-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.mine-wallet-btn:active {
  opacity: 0.7;
}

.mine-wallet-card .wallet-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--highlight);
}

.mine-wallet-card .wallet-label {
  font-size: 12px;
  color: #888;
}

.mine-wallet-card .wallet-divider {
  width: 1px;
  height: 36px;
  background: #eee;
}

.mine-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

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

.mine-card-head h3,
.mine-list-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.mine-link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: #999;
}

.mine-link-arrow {
  width: 14px;
  height: 14px;
}

.mine-grid {
  display: grid;
  gap: 12px 8px;
}

.mine-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mine-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.mine-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.mine-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  background: none;
  border: none;
  cursor: pointer;
}

.mine-grid-item:active {
  opacity: 0.65;
}

.mine-grid-svg {
  width: 28px;
  height: 28px;
  color: #333;
}

.mine-grid-item span {
  font-size: 11px;
  color: #555;
  text-align: center;
  line-height: 1.3;
}

.mine-grid-6 .mine-grid-item span {
  font-size: 10px;
}

.mine-list-card {
  padding: 14px 0 4px;
}

.mine-list-card .mine-list-title {
  padding: 0 14px 10px;
}

.mine-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid #f3f3f3;
}

.mine-list-item:active {
  background: #f9f9f9;
}

.mine-list-svg {
  width: 20px;
  height: 20px;
  color: #444;
  flex-shrink: 0;
}

.mine-list-item > span {
  flex: 1;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.mine-list-arrow {
  width: 16px;
  height: 16px;
  color: #ccc;
  flex-shrink: 0;
}

/* ========== 页面过渡 ========== */
.page-transition {
  animation: fadeInUp 0.4s ease forwards;
}

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

/* ========== 首页弹层 ========== */
.home-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.home-sheet-overlay[hidden] {
  display: none;
}

.home-sheet-overlay.is-open .home-sheet-backdrop {
  opacity: 1;
}

.home-sheet-overlay.is-open .home-sheet {
  transform: translateY(0);
}

.home-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 48, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.home-sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(15, 76, 129, 0.18);
}

.home-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(15, 76, 129, 0.15);
  border-radius: 2px;
  margin: 4px auto 12px;
}

.home-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(15, 76, 129, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
}

.home-sheet-close svg {
  width: 16px;
  height: 16px;
}

.home-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  padding-right: 36px;
}

.home-sheet-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.home-sheet-content p {
  margin: 0 0 10px;
}

.home-sheet-content ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.home-sheet-content li {
  margin-bottom: 6px;
}

.home-sheet-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, #1a6bb5 100%);
  color: #fff;
}

.home-sheet-btn.secondary {
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
}

.home-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.home-sheet-actions .home-sheet-btn {
  margin-top: 0;
}

.product-sheet-preview {
  height: 120px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-sheet-preview .game-icon-lg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.9);
}

.product-sheet-title {
  font-size: 16px;
  line-height: 1.45;
}

.product-sheet-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.product-sheet-game,
.product-sheet-id {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(78, 205, 196, 0.12);
  color: var(--primary);
}

.product-sheet-id {
  background: rgba(15, 76, 129, 0.06);
  color: var(--text-secondary);
}

.product-sheet-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-coral);
  margin: 8px 0 12px;
}

.product-sheet-price .currency {
  font-size: 16px;
  margin-right: 2px;
}

.product-sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-sheet-tags li {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(78, 205, 196, 0.1);
  color: #0a8a82;
  border: 1px solid rgba(78, 205, 196, 0.25);
}

.home-empty-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px dashed rgba(15, 76, 129, 0.12);
}

.trust-card[role="button"] {
  cursor: pointer;
}

.trust-card[role="button"]:active {
  transform: scale(0.98);
}

.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15, 76, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.share-sheet-overlay.is-open {
  opacity: 1;
}

.share-sheet-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10003;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.24s ease;
}

.share-sheet-dock.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

.share-sheet {
  position: relative;
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(15, 76, 129, 0.12);
  pointer-events: auto;
}

.share-sheet-dock.is-open .share-sheet {
  animation: none;
}

.share-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.share-sheet-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f3f5f7;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.share-sheet-lead {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.share-sheet-scroll {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(36vh, 240px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.share-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.share-sheet-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid #dce8e0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbf9 0%, #f0f6f2 100%);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.share-sheet-btn--primary {
  background: linear-gradient(135deg, #5a8f6a 0%, #4a7d59 100%);
  border-color: #4a7d59;
  color: #fff;
}

.share-sheet-btn--primary .ui-icon {
  color: #fff;
}

.share-sheet-btn .ui-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.share-sheet-btn:active {
  opacity: 0.92;
}

.share-sheet-btn--primary:active {
  background: linear-gradient(135deg, #4a7d59 0%, #3d6849 100%);
}

@media (max-width: 360px) {
  .share-sheet-actions {
    grid-template-columns: 1fr;
  }

  .share-sheet-btn span {
    font-size: 13px;
  }
}

.share-sheet-preview {
  padding: 10px;
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px dashed #e3e7ec;
}

.share-link-card {
  display: block;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f7f4 0%, #fff 100%);
  border: 1px solid #dce8e0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.share-preview-line {
  margin: 0 0 6px;
}

.share-preview-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  color: var(--text-primary);
}

.share-preview-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.share-link-url {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3e7ec;
  font-size: 12px;
  color: var(--primary);
  word-break: break-all;
}

.share-sheet-token mark.share-token-code,
.share-token-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(111, 168, 114, 0.18);
  color: #2f6b4f;
  font-weight: 700;
  font-style: normal;
}

.share-sheet-label {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.share-sheet-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.share-sheet-open {
  overflow: hidden;
}

.login-modal {
  width: min(100%, 380px);
  padding: 24px;
  border-radius: 16px;
}

.login-modal h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  background: rgba(15, 76, 129, 0.06);
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
}

.auth-tab.is-active {
  background: #fff;
  color: var(--primary, #0f4c81);
  box-shadow: 0 1px 4px rgba(15, 76, 129, 0.12);
}

.auth-switch-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary, #0f4c81);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.login-modal-tip {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.login-modal-hint {
  margin: 0 0 4px;
  font-size: 12px;
  color: #94a3b8;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.login-field span,
.login-field-label {
  font-size: 13px;
  color: #475569;
}

.login-field input {
  border: 1px solid rgba(15, 76, 129, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.login-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.login-modal-actions .detail-btn {
  flex: 1;
  min-height: 40px;
}

.login-captcha-wrap,
.login-code-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-captcha-wrap input,
.login-code-wrap input {
  flex: 1;
  border: 1px solid rgba(15, 76, 129, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.login-captcha-img {
  width: 120px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(15, 76, 129, 0.12);
  flex-shrink: 0;
}

.login-send-code-btn {
  flex-shrink: 0;
  width: auto;
  min-width: 96px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

@media (max-width: 480px) {
  .login-code-wrap {
    flex-wrap: wrap;
  }

  .login-code-wrap input {
    flex: 1 1 calc(100% - 108px);
    min-width: 0;
  }

  .login-send-code-btn {
    flex: 0 0 100px;
    min-height: 44px;
  }

  .login-captcha-wrap {
    flex-wrap: wrap;
  }

  .login-captcha-wrap input {
    flex: 1 1 100%;
    min-width: 0;
  }

  .login-captcha-img {
    width: 100%;
    max-width: 160px;
    height: 44px;
  }
}

.login-send-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mine-list-page { padding: 8px 0 24px; }
.mine-list-summary { font-size: 13px; color: #64748b; margin: 0 0 12px; }
.mine-list-empty, .mine-list-loading { text-align: center; color: #64748b; padding: 40px 16px; }
.mine-record-list { display: flex; flex-direction: column; gap: 10px; }
.mine-record-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
}
.mine-record-main h4 { margin: 0 0 4px; font-size: 15px; }
.mine-record-main p { margin: 0; font-size: 12px; color: #64748b; }
.mine-record-meta { text-align: right; font-size: 12px; color: #475569; }
.mine-record-meta strong { display: block; color: #FF6B6B; font-size: 15px; margin-top: 4px; }
.mine-grid-item[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #FF6B6B;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.mine-grid-item { position: relative; }

.mine-fav-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.mine-fav-main {
  flex: 1;
  min-width: 0;
  padding: 14px 0 14px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mine-fav-main h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.mine-fav-main p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #64748b;
}

.mine-fav-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #FF6B6B;
}

.mine-fav-contact-btn {
  flex-shrink: 0;
  align-self: center;
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid #dce8e0;
  border-radius: 999px;
  background: #f0f7f4;
  color: #2f6b4f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.mine-fav-contact-btn:active {
  opacity: 0.75;
}

#productFavoriteBtn.is-active { color: #FF6B6B; border-color: rgba(255,107,107,0.4); }

/* ========== 响应式微调 ========== */
@media (max-width: 360px) {
  .brand-text {
    display: none;
  }

  .trust-card h3 {
    font-size: 11px;
  }

  .service-card-text h3 {
    font-size: 13px;
  }
}

/* ========== 子页面（详情 / 说明） ========== */
.sub-pages {
  display: none;
}

.sub-pages[hidden] {
  display: none !important;
  pointer-events: none;
}

.app-container.sub-page-active .sub-pages {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  height: 100dvh;
  z-index: 200;
  background: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

.sub-pages.is-swipe-navigating,
.tab-page.is-swipe-navigating {
  touch-action: none;
}

.sub-pages.is-swipe-navigating .sub-page-body,
.tab-page.is-swipe-navigating .tab-page-body {
  overflow: hidden !important;
}

.app-container.sub-page-active .main-content,
.app-container.sub-page-active .tab-pages,
.app-container.sub-page-active .bottom-nav,
.app-container.sub-page-active .top-nav,
.app-container.sub-page-active .pc-game-strip,
.app-container.sub-page-active .pc-footer {
  display: none !important;
}

@media (max-width: 1023px) {
  .app-container.sub-page-active .pc-footer {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .app-container.sub-page-active .pc-footer-top {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  /* 子页打开时默认隐藏底层，仅在右滑返回时临时露出（由 JS 控制），避免双页同屏拖慢真机 */
  .app-container.sub-page-stack.sub-page-active.sub-page-swipe-reveal .main-content,
  .app-container.sub-page-stack.sub-page-active.sub-page-swipe-reveal .tab-pages {
    display: block !important;
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .app-container.sub-page-stack.sub-page-active.sub-page-swipe-reveal .tab-pages {
    width: 100%;
  }

  .app-container.sub-page-stack.sub-page-active .sub-pages {
    background: transparent;
    box-shadow: none;
  }

  .app-container.sub-page-stack.sub-page-active .sub-page {
    background: #fff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  }

  .trust-card.glass-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
}

.sub-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

.sub-page .tab-page-header--subpage {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.sub-page .tab-page-header--subpage .tab-page-header-main {
  display: block !important;
}

.sub-page .tab-page-header--subpage .tab-page-header-main h1 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.sub-page-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 24px;
  touch-action: pan-y;
}

.sub-page-body--messages,
.sub-page-body--chat,
.sub-page-body--product-detail {
  padding-left: 0;
  padding-right: 0;
}

.sub-page-body--messages,
.sub-page-body--chat {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sub-page-body--product-detail {
  padding-top: 0;
}

.sub-page-footer {
  flex-shrink: 0;
}

.sub-page-footer--product {
  touch-action: manipulation;
}

.sub-page-footer--product .detail-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}

.detail-actions--inline {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.sub-page-footer--product .detail-bar-side {
  flex: 0 0 52px;
  width: 52px;
  min-height: 54px;
  background: #ecf1ec !important;
  color: #5f6f61;
  border-right-color: #d8e2d8;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.sub-page-footer--product .detail-bar-side .ui-icon {
  color: #6b8770;
}

.sub-page-footer--product .detail-btn.primary.detail-bar-main {
  background: #6fa872 !important;
  background-image: none !important;
  color: #fff;
}

.buy-list-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #eef1f4;
}

.buy-list-sort-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.buy-list-sort-tab,
.buy-list-filter-btn {
  border: 1px solid #e8eaed;
  background: #fff;
  color: #555;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.buy-list-sort-tab.active,
.buy-list-filter-btn.is-active {
  background: rgba(15, 76, 129, 0.08);
  border-color: rgba(15, 76, 129, 0.22);
  color: var(--primary);
  font-weight: 600;
}

.mine-fav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 16px;
}

.mine-fav-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}

.mine-fav-card-main {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.mine-fav-cover-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3f5f7;
}

.mine-fav-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mine-fav-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mine-fav-card-body {
  padding: 10px;
}

.mine-fav-card-title {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.mine-fav-card-id,
.mine-fav-card-game {
  margin: 0 0 4px;
  font-size: 11px;
  color: #8a94a6;
}

.mine-fav-price {
  display: block;
  margin-top: 6px;
  color: #e74c3c;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .sub-page-body--product-detail {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* 手机端：单列，封面全宽 + 详情 + 底部资产图 */
  .sub-page-body--product-detail .product-detail-page {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .sub-page-body--product-detail .product-detail-top {
    display: block;
    width: 100%;
  }

  .sub-page-body--product-detail .product-detail-hero {
    width: 100%;
    flex-shrink: 0;
  }

  .sub-page-body--product-detail .product-detail-cover {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 42vh;
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sub-page-body--product-detail .product-detail-cover.has-photo .game-icon-md,
  .sub-page-body--product-detail .product-detail-cover.has-photo .game-icon-lg {
    display: none;
  }

  .sub-page-body--product-detail .product-detail-cover.has-photo {
    display: block;
    line-height: 0;
    overflow: hidden;
  }

  .sub-page-body--product-detail .product-detail-cover-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    vertical-align: top;
  }

  .sub-page-body--product-detail .product-detail-main {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px 0;
  }

  .sub-page-body--product-detail .product-detail-summary {
    display: block !important;
    margin-bottom: 12px;
  }

  .sub-page-body--product-detail .product-detail-specs {
    display: grid !important;
    margin-bottom: 14px;
  }

  .sub-page-body--product-detail .product-detail-body-text {
    margin-top: 0;
    margin-bottom: 14px;
  }

  .sub-page-body--product-detail .product-detail-assets {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 16px;
    padding: 0;
    position: relative;
    clear: both;
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

  .sub-page-body--product-detail .product-detail-asset-item {
    display: block;
    position: relative;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    overflow: hidden;
    touch-action: pan-y;
  }

  .sub-page-body--product-detail .product-detail-asset-item:last-child {
    margin-bottom: 0;
  }

  .sub-page-body--product-detail .product-detail-asset-img,
  .sub-page-body--product-detail .product-detail-asset-placeholder {
    display: block;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    object-fit: contain;
    image-rendering: auto;
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
    transform: none !important;
  }

  .sub-page-body--product-detail .product-detail-asset-placeholder {
    min-height: 200px;
    aspect-ratio: 4 / 3;
  }

  .sub-page-body--product-detail .product-detail-summary .product-detail-title {
    display: block;
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
  }

  .sub-page-body--product-detail .product-detail-summary .detail-price {
    display: block;
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-coral);
  }

  .sub-page-body--product-detail .product-detail-summary .product-detail-meta {
    margin-bottom: 10px;
  }

  .sub-page-body--product-detail .product-detail-summary .product-detail-tags {
    margin-bottom: 0;
  }

  .sub-page-body--product-detail .product-detail-cover-img {
    width: 100% !important;
    max-width: none !important;
    display: block;
    position: relative !important;
  }

  .sub-page-body--product-detail .product-detail-tags li {
    background: rgba(107, 142, 111, 0.14);
    color: #5a7160;
  }

  .sub-page-body--product-detail .product-detail-game {
    color: #5a7a62;
  }

  .sub-page.sub-page--product-detail .tab-page-header--subpage {
    background: #f4f7f4;
    border-bottom-color: #e3eae3;
  }
}

.msg-center-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.msg-center-summary {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: #f7f8fa;
  border-bottom: 1px solid #eee;
}

.msg-thread-item--pinned {
  background: linear-gradient(90deg, rgba(78, 205, 196, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid rgba(78, 205, 196, 0.35);
}

.msg-thread-pin {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f4c81;
  background: rgba(78, 205, 196, 0.25);
  vertical-align: middle;
}

.msg-thread-avatar--friend { background: linear-gradient(135deg, #667eea, #764ba2); }

.msg-center-toolbar {
  display: flex;
  gap: 10px;
  padding: 0 4px 12px;
}
.msg-tool-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 76, 129, 0.15);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary, #0f4c81);
  cursor: pointer;
  font-family: inherit;
}
.msg-tool-btn--primary {
  background: linear-gradient(135deg, #4ecdc4, #0f4c81);
  color: #fff;
  border: none;
}

.find-friends-page { padding: 4px 0 24px; }
.find-friends-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.find-friends-search input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(15, 76, 129, 0.15);
  border-radius: 10px;
  font-size: 14px;
}
.find-friends-section { margin-bottom: 20px; }
.find-friends-section h3 {
  font-size: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.find-friends-section h3 em {
  font-style: normal;
  font-size: 12px;
  color: #0f4c81;
  background: rgba(78, 205, 196, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}
.find-friends-list { display: flex; flex-direction: column; gap: 10px; }
.find-friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
.find-friend-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.find-friend-main strong { font-size: 15px; }
.find-friend-main span { font-size: 12px; color: var(--text-muted, #888); }
.find-friend-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 76, 129, 0.2);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.find-friend-btn.primary {
  background: #0f4c81;
  color: #fff;
  border-color: #0f4c81;
}
.find-friend-tag {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.find-friend-actions { display: flex; gap: 8px; }

.msg-thread-list {
  flex: 1;
  overflow-y: auto;
}

.msg-thread-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.msg-thread-item:hover,
.msg-thread-item:focus-visible {
  background: #f8f9fb;
}

.msg-thread-avatar {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.msg-thread-avatar--service { background: linear-gradient(135deg, #4ecdc4, #0f4c81); }
.msg-thread-avatar--order { background: linear-gradient(135deg, #ff9a56, #ff6b35); }
.msg-thread-avatar--alert { background: linear-gradient(135deg, #f093fb, #f5576c); }
.msg-thread-avatar--system { background: linear-gradient(135deg, #667eea, #764ba2); }
.msg-thread-avatar--trade { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #1a5c40; }

.msg-thread-online {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #52c41a;
  border: 2px solid #fff;
}

.msg-thread-body {
  flex: 1;
  min-width: 0;
}

.msg-thread-top,
.msg-thread-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.msg-thread-top {
  margin-bottom: 4px;
}

.msg-thread-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.msg-thread-time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.msg-thread-preview {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-thread-unread {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.chat-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ededed;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 16px;
  -webkit-overflow-scrolling: touch;
}

.chat-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 40px 0;
}

.chat-date-divider {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.chat-date-divider span {
  font-size: 11px;
  color: #999;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

.chat-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  max-width: 78%;
}

.chat-row--other {
  align-items: flex-start;
}

.chat-row--me {
  align-items: flex-end;
  margin-left: auto;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.chat-row--other .chat-bubble {
  background: #fff;
  color: #222;
  border-top-left-radius: 2px;
}

.chat-row--me .chat-bubble {
  background: #95ec69;
  color: #111;
  border-top-right-radius: 2px;
}

.chat-time {
  font-size: 10px;
  color: #aaa;
  margin-top: 4px;
  padding: 0 4px;
}

.chat-compose {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
}

.chat-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chat-compose--readonly {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.chat-compose--readonly p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.chat-contact-btn {
  height: 38px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.info-page-hero {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f7fc 0%, #f8fbff 100%);
  border: 1px solid #e8eef4;
  border-radius: 12px;
}

.info-page-kicker {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.info-page-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.35;
}

.info-page-lead {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.info-page-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  background: #fff;
  border-radius: 12px;
  padding: 4px 2px;
}

.info-page-content p {
  margin: 0 0 12px;
}

.info-page-content ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.info-page-content li {
  margin-bottom: 8px;
}

.info-page-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: 10px;
  border: 1px solid #eef1f5;
  background: #fff;
}

.info-page-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.info-block {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #eef0f3;
}

.info-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-block h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.info-block p {
  margin: 0;
}

.contact-qrcode-block {
  margin-top: 16px;
  margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding-top: 16px;
  border-top: 1px dashed #eef0f3;
  text-align: center;
}

.contact-qrcode-block h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.contact-qrcode-img {
  display: block;
  width: min(220px, 72vw);
  max-width: 100%;
  margin: 0 auto 10px;
  border-radius: 10px;
  border: 1px solid #eef1f5;
  background: #fff;
}

.contact-qrcode-tip {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}

.settings-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  cursor: pointer;
}

.settings-row-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.settings-row-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.settings-row.danger .settings-row-title {
  color: var(--accent-coral);
}

.settings-row:last-child {
  border-bottom: none;
}

.product-detail-page {
  padding-bottom: 16px;
}

.product-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-detail-media {
  margin-bottom: 14px;
}

.product-detail-cover {
  position: relative;
  width: 100%;
  height: 168px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail-cover .game-icon-md,
.product-detail-cover .game-icon-lg {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.92);
}

.product-detail-cover-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.product-detail-thumbs--pc {
  display: none;
}

.product-detail-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-coral);
  color: #fff;
  font-weight: 600;
}

.product-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0 0 10px;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.product-detail-game {
  color: var(--primary);
  font-weight: 500;
}

.product-detail-id {
  color: inherit;
}

.product-id-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  margin: -6px -4px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.45;
  vertical-align: baseline;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
}

.product-id-copy--meta {
  color: var(--text-muted);
  font-size: 13px;
}

.product-id-copy .product-detail-id {
  color: inherit;
  cursor: pointer;
}

.product-id-copy-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-top: -1px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.5;
  flex-shrink: 0;
  line-height: 0;
}

.product-id-copy-icon {
  display: block;
  width: 10px;
  height: 10px;
}

.product-id-copy:hover,
.product-id-copy:active {
  color: var(--primary);
}

.product-id-copy:hover .product-id-copy-icon-wrap,
.product-id-copy:active .product-id-copy-icon-wrap {
  opacity: 1;
  border-color: currentColor;
}

.product-id-copy--inline {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.product-detail-spec-id {
  display: block;
  min-width: 0;
}

.detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-coral);
  margin: 6px 0 12px;
}

.detail-price .currency {
  font-size: 18px;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.product-detail-tags li {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(78, 205, 196, 0.12);
  color: var(--primary);
}

.product-detail-desc {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.product-detail-desc h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.product-detail-desc p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.product-detail-desc p:last-child {
  margin-bottom: 0;
}

.product-detail-panel--mobile {
  display: none;
}

.product-detail-head--mobile {
  display: none;
}

.product-detail-head--mobile .product-detail-title {
  margin: 0 0 8px;
  font-size: 17px;
}

.product-detail-head--mobile .detail-price {
  margin: 0 0 12px;
  font-size: 24px;
}

.product-detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.product-detail-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f5;
  min-width: 0;
}

.product-detail-spec:nth-child(odd) {
  border-right: 1px solid #eef1f5;
}

.product-detail-spec:nth-last-child(-n+2) {
  border-bottom: none;
}

.product-detail-spec dt,
.product-detail-spec-label {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.product-detail-spec dd,
.product-detail-spec-value {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
}

.product-detail-spec-price {
  color: var(--accent-coral);
  font-weight: 700;
}

.product-detail-body-text {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #f8f9fb;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  word-break: break-word;
}

.product-detail-body-rich p {
  margin: 0 0 10px;
}

.product-detail-body-rich p:last-child {
  margin-bottom: 0;
}

.product-detail-body-rich h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-detail-body-rich ul,
.product-detail-body-rich ol {
  margin: 0 0 10px;
  padding-left: 18px;
}

.product-detail-body-rich li {
  margin-bottom: 6px;
}

.product-detail-body-rich img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: 10px;
  border: 1px solid #eef1f5;
  background: #fff;
}

.product-detail-body-rich .info-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #eef0f3;
}

.product-detail-body-rich .info-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.product-detail-assets-entry {
  display: none;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 76, 129, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.detail-btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1a6bb5 100%);
  color: #fff;
}

.detail-btn.secondary {
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
}

#productFavoriteBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#productFavoriteBtn .ui-icon {
  width: 20px;
  height: 20px;
}

.detail-bar-side {
  display: none;
}

.detail-label-pc {
  display: inline;
}

.detail-label-mobile {
  display: none;
}

.detail-btn.assets {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(15, 76, 129, 0.22);
}

.product-detail-gallery {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.product-detail-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-detail-gallery-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-detail-gallery-count {
  font-size: 12px;
  color: var(--text-muted);
}

.product-assets-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-gallery-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.product-gallery-zoom {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.product-gallery-zoom svg {
  width: 14px;
  height: 14px;
}

.product-gallery-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.38);
}

.product-detail-gallery--mobile {
  display: block;
}

.product-assets-page {
  padding-bottom: 8px;
}

.product-assets-head {
  margin-bottom: 16px;
}

.product-assets-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.product-assets-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.product-assets-count {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.product-assets-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-gallery-item--inline {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, 0.08);
  background: var(--bg-card);
  cursor: default;
  touch-action: auto;
}

.product-gallery-inline-label {
  margin: 0;
  padding: 8px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.product-gallery-img--inline {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  background: #f4f6f8;
}

.product-gallery-item--inline .product-gallery-photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.product-gallery-item--inline .product-gallery-gradient {
  position: relative;
  aspect-ratio: 16 / 9;
}

.product-gallery-item--plain {
  border: none;
  background: transparent;
  width: 100%;
}

.product-gallery-item--plain .product-gallery-img--inline {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.product-gallery-img--fit {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  line-height: 0;
}

.product-detail-gallery--detail .product-gallery-img--fit .product-gallery-photo {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: fill !important;
  display: block !important;
  margin: 0;
}

.product-gallery-item--plain .product-gallery-photo {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: fill;
  display: block;
  vertical-align: top;
}

.product-gallery-item--plain .product-gallery-photo.wm-applied {
  width: 100%;
  height: auto;
  max-width: none;
}

.product-gallery-item--plain .product-gallery-gradient {
  width: 100%;
  min-height: 200px;
  aspect-ratio: auto;
}

.product-assets-grid--plain {
  gap: 8px;
  width: 100%;
}

.product-detail-gallery--detail {
  display: block;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.product-detail-gallery--detail .product-assets-grid--plain {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.product-gallery-item--fullbleed {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  cursor: default;
  touch-action: pan-y;
}

.product-gallery-item--fullbleed .product-gallery-photo,
.product-gallery-item--fullbleed .product-gallery-gradient {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  object-fit: fill;
  background: transparent;
}

.product-detail-gallery--detail .product-gallery-item--fullbleed .product-gallery-photo {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  object-fit: fill !important;
}

/* ========== 账号截图放大 ========== */
body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.image-lightbox.is-open .image-lightbox-backdrop {
  opacity: 1;
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.image-lightbox.is-open .image-lightbox-panel {
  opacity: 1;
  transform: scale(1);
}

.image-lightbox-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.image-lightbox-img {
  width: 100%;
  height: min(68vh, 620px);
  height: min(68dvh, 620px);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: #111;
}

.image-lightbox-caption {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.image-lightbox-counter {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.image-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-close svg {
  width: 18px;
  height: 18px;
}

.image-lightbox-nav {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.image-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.image-lightbox-nav svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .image-lightbox {
    padding: 0;
    align-items: stretch;
  }

  .image-lightbox-panel {
    width: 100%;
    max-height: none;
    height: 100%;
    display: block;
    padding: 48px 12px 24px;
  }

  .image-lightbox-stage {
    height: calc(100% - 48px);
    justify-content: center;
  }

  .image-lightbox-img {
    width: 100%;
    height: auto;
    flex: 1;
    min-height: 200px;
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
    border-radius: 8px;
  }

  .image-lightbox-close {
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
  }

  .image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
  }

  .image-lightbox-prev {
    left: 8px;
  }

  .image-lightbox-next {
    right: 8px;
  }
}

.tab-header-btn-text {
  width: auto;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  border-radius: 16px;
  background: rgba(15, 76, 129, 0.08);
}

.tab-header-btn-text.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
}

.tab-page-header--buy-list .tab-header-trail {
  gap: 6px;
}

/* 买号筛选/分类弹层 */
.buy-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.buy-sheet-mask[hidden] {
  display: none !important;
}

.buy-sheet-mask.is-open {
  pointer-events: auto;
}

.buy-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s ease;
}

.buy-sheet-mask.is-open .buy-sheet-backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.buy-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 72vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.22s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.buy-sheet-mask.is-open .buy-sheet {
  transform: translateY(0);
}

.buy-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  flex-shrink: 0;
}

.buy-sheet-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.buy-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f2f3f5;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.buy-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.buy-sheet-section + .buy-sheet-section {
  margin-top: 18px;
}

.buy-sheet-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.buy-sheet-hint {
  margin: -6px 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.buy-sheet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buy-sheet-chip {
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid #e8eaed;
  border-radius: 20px;
  background: #fff;
  color: #333;
  transition: all 0.15s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.buy-sheet-chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
}

.buy-sheet-check {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #e8eaed;
  background: #fff;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.buy-sheet-check input {
  display: none;
}

.buy-sheet-check.is-on {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
}

.buy-sheet-hint-inline {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: #999;
}

.buy-sheet-foot {
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.buy-sheet-reset,
.buy-sheet-confirm {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.buy-sheet-reset {
  background: #f2f3f5;
  color: #333;
}

.buy-sheet-confirm {
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  color: #fff;
}

.tab-page.tab-buy.buy-in-list .tab-page-header {
  /* 买号列表页：标题居中，右上角筛选/分类 */
}

.tab-page.tab-buy.buy-in-list .tab-header-trail {
  min-width: auto;
}

.tab-page-header--mine .tab-header-trail {
  gap: 6px;
}

@media (max-width: 1023px) {
  .sub-page-body.sub-page-body--product-detail {
    padding: 0;
    padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px) + 16px);
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .product-detail-gallery--detail .product-gallery-photo,
  .product-detail-asset-img {
    -webkit-user-drag: none;
    user-select: none;
    touch-action: pan-y;
    pointer-events: none;
    transform: none !important;
  }

  .sub-page-body--product-detail .product-detail-cover-img {
    touch-action: pan-y;
    -webkit-user-drag: none;
    pointer-events: none;
  }

  .product-detail-page {
    padding-bottom: 0;
  }

  .product-detail-media {
    display: block;
    margin-bottom: 0;
  }

  .product-detail-cover {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 42vh;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .product-detail-cover.has-photo .game-icon-md,
  .product-detail-cover.has-photo .game-icon-lg {
    display: none;
  }

  .product-detail-cover-label,
  .product-detail-badge {
    z-index: 2;
  }

  .product-detail-head--mobile {
    display: block;
  }

  .product-detail-info {
    padding: 14px 16px 0;
  }

  .product-detail-head--pc,
  .product-detail-desc--pc {
    display: none;
  }

  .product-detail-panel--mobile {
    display: block;
  }

  .product-detail-gallery--detail {
    display: block;
    width: 100%;
    max-width: none;
    margin: 12px 0 0;
    padding: 0;
    border-top: none;
    box-sizing: border-box;
  }

  .product-detail-gallery--detail .product-assets-grid--plain {
    display: block;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .product-detail-gallery--detail .product-gallery-item--plain,
  .product-detail-gallery--detail .product-gallery-item--fullbleed,
  .product-detail-gallery--detail .product-gallery-img--fit {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
  }

  .product-detail-gallery--detail .product-gallery-item--fullbleed + .product-gallery-item--fullbleed {
    margin-top: 8px;
  }

  .product-detail-gallery--detail .product-gallery-item--plain .product-gallery-photo,
  .product-detail-gallery--detail .product-gallery-item--fullbleed .product-gallery-photo {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: fill !important;
  }

  .product-detail-gallery--mobile {
    display: none !important;
  }

  /* 商品详情：底部居中毛玻璃药丸操作条（单一 fixed 容器，避免上下错位） */
  .sub-page-footer--product {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 500;
    width: min(calc(100vw - 20px), 430px);
    max-width: min(calc(100vw - 20px), 430px);
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .sub-page-footer--product .detail-actions,
  .sub-page-footer--product .detail-actions--inline {
    pointer-events: auto;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    position: relative !important;
    transform: none !important;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0;
    background: rgba(236, 241, 236, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    box-shadow: 0 10px 36px rgba(15, 76, 129, 0.15);
    overflow: hidden;
    border-top: none !important;
  }

  .sub-page-footer--product .detail-actions--inline {
    display: flex;
    flex-direction: row;
  }

  .detail-actions .detail-btn.assets,
  #productAssetsBtn {
    display: none;
  }

  .detail-bar-side {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 52px;
    min-height: 52px;
    padding: 6px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    border-radius: 0;
    background: transparent !important;
    color: #5f6f61;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    border-right: 1px solid rgba(216, 226, 216, 0.9);
  }

  .detail-label-pc {
    display: none;
  }

  .detail-label-mobile {
    display: inline;
  }

  .detail-bar-side .ui-icon {
    width: 22px;
    height: 22px;
    color: #6b8770;
  }

  #productFavoriteBtn.is-active {
    color: #FF6B6B;
    border-color: #f0f2f5;
  }

  #productFavoriteBtn.is-active .ui-icon {
    color: #FF6B6B;
  }

  .detail-bar-main {
    flex: 1 1 auto;
    min-height: 52px;
    width: auto;
    min-width: 0;
    padding: 0 18px;
    border: none;
    border-radius: 0 999px 999px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #6fa872 !important;
    background-image: none !important;
    color: #fff;
  }

  .product-detail-gallery {
    margin-top: 4px;
    padding-top: 0;
    border-top: none;
  }

  .tab-pages .tab-page-header .tab-back-btn {
    display: none !important;
  }

  .tab-pages .tab-page-header-main,
  .tab-pages .tab-page-header-desc {
    display: none !important;
  }

  .sub-page .tab-page-header--subpage .tab-page-header-main {
    display: block !important;
  }

  .tab-page-header,
  .tab-page-header--sub {
    min-height: 44px;
    padding: 0 4px;
    align-items: center;
  }

  .tab-page-header--no-back {
    display: flex;
    justify-content: flex-end;
    padding: 0 8px;
    min-height: 40px;
  }

  .tab-page-header--no-back > .tab-header-spacer {
    display: none;
  }

  .tab-mine .mine-hero {
    display: none;
  }

  .tab-mine .mine-profile-card {
    margin-top: 8px;
  }
}

