/* ============================================
   云卡栈 - 高级感UI系统 v18.0
   页面体验增强20项（第301-320项）
   总计320项高级感优化
   ============================================ */

/* ========== 301. 商品详情页增强 ========== */
.product-gallery {
  position: relative;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.product-gallery-main {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.product-gallery-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.product-gallery-thumb.active {
  border-color: var(--primary-500);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.product-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin: 16px 0;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}

.product-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.product-tab.active {
  color: var(--primary-600);
  font-weight: 600;
}

.product-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary-500);
  border-radius: 2px;
}

.product-params {
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
}

.product-param-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.product-param-row:last-child {
  border-bottom: none;
}

.product-param-label {
  width: 100px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.product-param-value {
  flex: 1;
  color: var(--text-primary);
}

/* ========== 302. 店铺主页增强 ========== */
.shop-header {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  padding: 24px 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.shop-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.shop-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.shop-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(255,255,255,0.3);
}

.shop-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.shop-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  opacity: 0.9;
}

.shop-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.shop-stat {
  text-align: center;
}

.shop-stat-value {
  font-size: 18px;
  font-weight: 700;
}

.shop-stat-label {
  font-size: 11px;
  opacity: 0.8;
}

.shop-categories {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.shop-category {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.shop-category.active {
  background: var(--primary-500);
  color: white;
}

/* ========== 303. 结算页增强 ========== */
.checkout-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.checkout-coupon-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.checkout-coupon-value {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--danger);
  font-weight: 600;
}

.checkout-points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 12px;
}

.checkout-summary {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.checkout-summary-row.total {
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
}

.checkout-summary-row.total .value {
  color: var(--danger);
  font-size: 20px;
}

/* ========== 304. 支付页增强 ========== */
.payment-methods {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease;
}

.payment-method:last-child {
  border-bottom: none;
}

.payment-method:active {
  background: var(--bg-secondary);
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.payment-method-icon.wechat { background: #dcfce7; }
.payment-method-icon.alipay { background: #dbeafe; }
.payment-method-icon.balance { background: #fef3c7; }

.payment-method-info {
  flex: 1;
}

.payment-method-name {
  font-size: 15px;
  font-weight: 500;
}

.payment-method-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.payment-method-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.payment-method.selected .payment-method-radio {
  border-color: var(--primary-500);
}

.payment-method.selected .payment-method-radio::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--primary-500);
  border-radius: 50%;
}

.payment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 16px;
}

.payment-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--bg-secondary);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: paymentSpin 1s linear infinite;
}

@keyframes paymentSpin {
  to { transform: rotate(360deg); }
}

.payment-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  gap: 12px;
  animation: successIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.payment-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ========== 305. 订单列表增强 ========== */
.order-tabs {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.order-tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.order-tab.active {
  color: var(--primary-600);
  font-weight: 600;
}

.order-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary-500);
  border-radius: 2px;
}

.order-card {
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.order-shop {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.order-status {
  font-size: 13px;
  font-weight: 600;
}

.order-status.pending { color: #f59e0b; }
.order-status.paid { color: #3b82f6; }
.order-status.shipped { color: #8b5cf6; }
.order-status.completed { color: #10b981; }
.order-status.cancelled { color: var(--text-tertiary); }

.order-card-body {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
}

.order-product-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.order-product-info {
  flex: 1;
  min-width: 0;
}

.order-product-name {
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.order-product-spec {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.order-product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--danger);
}

.order-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}

.order-btn {
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-btn.primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.order-btn.danger {
  border-color: var(--danger);
  color: var(--danger);
}

/* ========== 307. 个人中心增强 ========== */
.profile-header {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  padding: 32px 16px 60px;
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(255,255,255,0.3);
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-id {
  font-size: 13px;
  opacity: 0.8;
}

.profile-stats-card {
  background: var(--bg-card);
  border-radius: 16px;
  margin: -40px 16px 16px;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.profile-stat {
  text-align: center;
  cursor: pointer;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin: 0 16px 16px;
}

.profile-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.profile-quick-item:active {
  background: var(--bg-secondary);
}

.profile-quick-icon {
  font-size: 24px;
}

.profile-quick-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========== 308. 消息中心增强 ========== */
.message-tabs {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.message-tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
}

.message-tab.active {
  color: var(--primary-600);
  font-weight: 600;
}

.message-tab-badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 30px);
  background: var(--danger);
  color: white;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.message-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease;
}

.message-item:active {
  background: var(--bg-secondary);
}

.message-item.unread {
  background: var(--primary-50);
}

.message-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
}

.message-icon.order { background: #dbeafe; }
.message-icon.system { background: #fef3c7; }
.message-icon.promotion { background: #fce7f3; }
.message-icon.service { background: #dcfce7; }

.message-icon-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.message-title {
  font-size: 15px;
  font-weight: 500;
}

.message-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

.message-preview {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== 309. 搜索结果页增强 ========== */
.search-filter-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  gap: 8px;
}

.search-filter-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-filter-item.active {
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 600;
}

.search-view-toggle {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.search-view-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
}

.search-view-btn.active {
  background: var(--primary-50);
  color: var(--primary-600);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
}

.search-results-list {
  padding: 10px;
}

.search-result-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-card:active {
  transform: scale(0.98);
}

.search-result-image {
  aspect-ratio: 1;
  background: var(--bg-secondary);
}

.search-result-info {
  padding: 8px;
}

.search-result-title {
  font-size: 13px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-result-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--danger);
}

.search-result-sales {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ========== 310. 分类页增强 ========== */
.category-page {
  display: flex;
  height: calc(100vh - 50px);
}

.category-sidebar {
  width: 90px;
  background: var(--bg-secondary);
  overflow-y: auto;
  flex-shrink: 0;
}

.category-sidebar-item {
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.category-sidebar-item.active {
  background: var(--bg-card);
  color: var(--primary-600);
  font-weight: 600;
  border-left-color: var(--primary-500);
}

.category-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.category-banner {
  aspect-ratio: 16/7;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.category-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-subitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  cursor: pointer;
}

.category-subitem-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.category-subitem-name {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========== 311. 首页增强 ========== */
.home-banner {
  position: relative;
  margin: 12px 16px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/7;
}

.home-banner-slides {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.home-banner-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.home-banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.home-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.home-banner-dot.active {
  width: 18px;
  background: white;
}

.home-kingkong {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  margin: 0 16px 12px;
  border-radius: 12px;
}

.home-kingkong-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.home-kingkong-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.home-kingkong-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.home-waterfall {
  columns: 2;
  column-gap: 10px;
  padding: 0 12px;
}

.home-waterfall-item {
  break-inside: avoid;
  margin-bottom: 10px;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.home-waterfall-image {
  width: 100%;
  background: var(--bg-secondary);
}

.home-waterfall-info {
  padding: 8px;
}

/* ========== 312. 登录注册增强 ========== */
.login-third-party {
  margin-top: 24px;
  text-align: center;
}

.login-third-party-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.login-third-party-title::before,
.login-third-party-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.login-third-party-title span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.login-third-party-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.login-third-party-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.login-third-party-icon:active {
  transform: scale(0.9);
}

.login-third-party-icon.wechat { background: #dcfce7; }
.login-third-party-icon.alipay { background: #dbeafe; }
.login-third-party-icon.qq { background: #fef3c7; }

.code-btn {
  padding: 8px 14px;
  background: var(--primary-50);
  color: var(--primary-600);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.code-btn:disabled {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

/* ========== 313. 设置页增强 ========== */
.settings-group {
  background: var(--bg-card);
  border-radius: 12px;
  margin: 12px 16px;
  overflow: hidden;
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:active {
  background: var(--bg-secondary);
}

.settings-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 12px;
}

.settings-item-label {
  flex: 1;
  font-size: 15px;
}

.settings-item-value {
  font-size: 13px;
  color: var(--text-secondary);
  margin-right: 8px;
}

.settings-item-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
}

.settings-switch {
  width: 44px;
  height: 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.settings-switch.on {
  background: var(--primary-500);
}

.settings-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.settings-switch.on::after {
  transform: translateX(20px);
}

/* ========== 316. 反馈建议增强 ========== */
.feedback-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.feedback-type {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-type.selected {
  background: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-600);
  font-weight: 600;
}

.feedback-screenshot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.feedback-screenshot-item {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.feedback-screenshot-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.feedback-screenshot-add {
  width: 70px;
  height: 70px;
  border: 2px dashed var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 11px;
  gap: 4px;
}

/* ========== 317. 分享功能增强 ========== */
.share-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-sheet.show {
  transform: translateY(0);
}

.share-sheet-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.share-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.share-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.share-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.share-channel-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.share-poster {
  width: 280px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.share-poster-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.share-poster-info {
  padding: 16px;
}

.share-poster-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.share-poster-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--danger);
}

.share-poster-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.share-poster-qr-code {
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.share-poster-qr-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========== 319. 空状态增强 ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
  animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.empty-state-btn {
  padding: 10px 28px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ========== 320. 加载状态增强 ========== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-image {
  aspect-ratio: 1;
  margin-bottom: 8px;
}

.skeleton-card {
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 12px;
}

.loading-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.loading-spinner::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg-secondary);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: paymentSpin 0.8s linear infinite;
}

.pull-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  gap: 8px;
}

.pull-refresh-icon {
  font-size: 18px;
  animation: pullRotate 1s linear infinite;
}

@keyframes pullRotate {
  to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
  .home-kingkong { grid-template-columns: repeat(5, 1fr); }
  .category-subgrid { grid-template-columns: repeat(3, 1fr); }
  .search-results-grid { grid-template-columns: repeat(2, 1fr); }
  .share-channels { grid-template-columns: repeat(4, 1fr); }
}
