/* ============================================================
 *  V8.5 弘度生活 — 5个核心页面视觉样式
 *  依赖: variables.css + v85-design-system.css
 * ============================================================ */

/* ==================== 1. 首页 index.html ==================== */
.v85-home { padding-bottom: var(--v85-page-bottom); }

/* Header — 天空蓝渐变 + 云朵装饰 */
.v85-home-header {
  background: var(--v85-gradient-header);
  position: relative;
  overflow: hidden;
  padding-top: var(--v85-safe-top);
}
.v85-home-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--v85-cloud-shape);
  pointer-events: none;
  z-index: var(--v85-z-base);
}

/* 搜索框 — 圆角毛玻璃效果 */
.v85-search-bar {
  display: flex;
  align-items: center;
  gap: var(--v85-space-sm);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--v85-radius-pill);
  padding: 0.5rem 1rem;
  margin: var(--v85-space-sm) var(--v85-space-md) 0;
  box-shadow: var(--v85-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--v85-transition-base);
}
.v85-search-bar:focus-within {
  box-shadow: var(--v85-shadow-md), 0 0 0 2px rgba(8, 145, 178, 0.15);
  border-color: var(--v85-primary-200);
}

/* 金刚区 Tab 导航 */
.v85-kk-tabs {
  display: flex;
  gap: var(--v85-space-xs);
  padding: 0 var(--v85-space-md);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: var(--v85-space-sm);
}
.v85-kk-tabs::-webkit-scrollbar { display: none; }
.v85-kk-tab {
  flex-shrink: 0;
  padding: 0.4rem 0.875rem;
  border-radius: var(--v85-radius-pill);
  font-size: var(--v85-text-xs);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-secondary);
  background: transparent;
  white-space: nowrap;
  transition: var(--v85-transition-colors);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v85-kk-tab:hover { color: var(--v85-primary); background: var(--v85-primary-50); }
.v85-kk-tab.active {
  color: var(--text-white);
  background: var(--v85-primary);
  box-shadow: var(--v85-shadow-sm);
}

/* 金刚区网格 */
.v85-kk-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--v85-space-xs);
  padding: var(--v85-space-md);
}
@media (max-width: 374px) {
  .v85-kk-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 金刚区图标项 */
.v85-kk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: var(--v85-space-sm) var(--v85-space-xs);
  border-radius: var(--v85-radius-md);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
}
.v85-kk-item:hover { background: rgba(0, 0, 0, 0.03); transform: scale(1.03); }
.v85-kk-item:active { transform: scale(0.97); }

/* 图标容器 — 圆形柔和背景 */
.v85-kk-icon-wrap {
  width: clamp(2.625rem, 7vw, 3.125rem);
  height: clamp(2.625rem, 7vw, 3.125rem);
  border-radius: var(--v85-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--v85-transition-colors);
}
.v85-kk-icon-wrap i {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  line-height: 1;
}

/* 图标文字标签 */
.v85-kk-label {
  font-size: var(--v85-text-xs);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-primary);
  text-align: center;
  line-height: var(--v85-line-height-tight);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 商品推荐卡片 */
.v85-goods-section { padding: 0 var(--v85-space-md); }
.v85-goods-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--v85-space-lg) var(--v85-space-md) var(--v85-space-sm);
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-lg);
  font-weight: var(--v85-weight-bold);
  color: var(--v85-text-primary);
}
.v85-goods-more {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  cursor: pointer;
  transition: var(--v85-transition-colors);
}
.v85-goods-more:hover { color: var(--v85-primary); }

/* 商品网格 — 2列 */
.v85-goods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--v85-space-sm);
  padding: 0 var(--v85-space-md) var(--v85-space-lg);
}

/* 单个商品卡片 */
.v85-good-card {
  background: var(--v85-bg-card);
  border-radius: var(--v85-radius-md);
  overflow: hidden;
  box-shadow: var(--v85-shadow-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
}
.v85-good-card:hover { box-shadow: var(--v85-shadow-md); transform: translateY(-0.15rem); }
.v85-good-card:active { transform: translateY(0); box-shadow: var(--v85-shadow-xs); }

/* 商品图片区域 */
.v85-good-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
}
.v85-good-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* th:src="${imageBaseUrl}/goods_v8/thumb_400/xxx.webp" */
  transition: transform var(--v85-duration-slow);
}
.v85-good-card:hover .v85-good-img-wrap img {
  transform: scale(1.04);
}
/* 自营标签 */
.v85-good-badge-self {
  position: absolute;
  top: var(--v85-space-sm);
  left: var(--v85-space-sm);
  padding: 0.125rem 0.5rem;
  background: linear-gradient(135deg, var(--v85-primary) 0%, var(--v85-primary-dark));
  color: var(--text-white);
  font-size: 10px;
  font-weight: var(--v85-weight-semibold);
  border-radius: var(--v85-radius-pill);
  z-index: var(--v85-z-base);
}

/* 商品信息区 */
.v85-good-info { padding: var(--v85-space-sm); }
.v85-good-name {
  font-size: var(--v85-text-sm);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-primary);
  line-height: var(--v85-line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--v85-space-xs);
}
.v85-good-sub {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  line-height: var(--v85-line-height-normal);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--v85-space-sm);
}
.v85-good-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--v85-space-xs);
}
.v85-good-price {
  font-size: var(--v85-price);
  font-weight: var(--v85-weight-bold);
  color: var(--v85-text-price);
}
.v85-good-subsidy {
  font-size: var(--v85-text-xs);
  color: var(--v85-charity);
  background: var(--v85-charity-light);
  padding: 0.0625rem 0.375rem;
  border-radius: var(--v85-radius-xs);
  line-height: 1.4;
}

/* 社区善人榜横向滚动 */
.v85-rank-scroll {
  display: flex;
  gap: var(--v85-space-md);
  overflow-x: auto;
  padding: var(--v85-space-md) var(--v85-space-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.v85-rank-scroll::-webkit-scrollbar { display: none; }
.v85-rank-item {
  flex-shrink: 0;
  width: clamp(5.5rem, 16vw, 7rem);
  text-align: center;
  scroll-snap-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v85-rank-avatar {
  width: clamp(2.5rem, 7vw, 3rem);
  height: clamp(2.5rem, 7vw, 3rem);
  border-radius: var(--v85-radius-full);
  margin: 0 auto var(--v85-space-xs);
  background: var(--v85-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--v85-text-lg);
  color: var(--v85-primary);
  font-weight: var(--v85-weight-bold);
  border: 2px solid var(--border-white);
  box-shadow: var(--v85-shadow-sm);
}
.v85-rank-name {
  font-size: var(--v85-text-xs);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-primary);
  margin-bottom: 0.125rem;
}
.v85-rank-count {
  font-size: 10px;
  color: var(--v85-text-tertiary);
}

/* 四创八大入口网格 */
.v85-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v85-space-sm);
  padding: var(--v85-space-md);
}


/* ==================== 2. 公益页 charity.html ==================== */
.v85-charity { padding-bottom: var(--v85-page-bottom); background: var(--v85-bg-page); }

/* 公益页 Banner — 暖红渐变 */
.v85-charity-banner {
  background: var(--v85-gradient-charity-banner);
  padding: calc(var(--v85-safe-top) + 1.5rem) var(--v85-space-md) 1.5rem;
  position: relative;
  overflow: hidden;
}
.v85-charity-banner::before {
  content: '';
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.v85-charity-title {
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-xl);
  font-weight: var(--v85-weight-bold);
  color: var(--text-white);
  margin-bottom: var(--v85-space-xs);
}
.v85-charity-subtitle {
  font-size: var(--v85-text-sm);
  color: rgba(255, 255, 255, 0.88);
}

/* 数据概览卡 — 4列等分 */
.v85-charity-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v85-space-sm);
  padding: var(--v85-space-md);
  margin-top: calc(-1 * var(--v85-space-xl));
  position: relative;
  z-index: var(--v85-z-card);
}
.v85-stat-card {
  background: var(--v85-bg-card);
  border-radius: var(--v85-radius-md);
  padding: var(--v85-space-sm) var(--v85-space-xs);
  text-align: center;
  box-shadow: var(--v85-shadow-md);
}
.v85-stat-value {
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-xl);
  font-weight: var(--v85-weight-bold);
  color: var(--v85-charity);
  line-height: 1.2;
}
.v85-stat-label {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  margin-top: 0.125rem;
}

/* 公益金刚区 — 4+4 对齐 */
.v85-charity-kk {
  padding: var(--v85-space-lg) var(--v85-space-md) var(--v85-space-sm);
}
.v85-charity-kk-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v85-space-sm);
  margin-bottom: var(--v85-space-sm);
}
.v85-charity-kk-row:last-child { margin-bottom: 0; }
.v85-charity-kk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: var(--v85-space-sm) var(--v85-space-xs);
  border-radius: var(--v85-radius-md);
  background: var(--v85-bg-card);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
  box-shadow: var(--v85-shadow-xs);
}
.v85-charity-kk-item:hover {
  box-shadow: var(--v85-shadow-sm);
  transform: translateY(-0.1rem);
}
.v85-charity-kk-icon {
  width: clamp(2.25rem, 6vw, 2.75rem);
  height: clamp(2.25rem, 6vw, 2.75rem);
  border-radius: var(--v85-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: var(--v85-charity);
  background: var(--v85-charity-light);
}
.v85-charity-kk-label {
  font-size: var(--v85-text-xs);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-primary);
  white-space: nowrap;
}

/* 项目卡片 */
.v85-project-list { padding: 0 var(--v85-space-md); }
.v85-project-card {
  background: var(--v85-bg-card);
  border-radius: var(--v85-radius-lg);
  overflow: hidden;
  box-shadow: var(--v85-shadow-sm);
  margin-bottom: var(--v85-space-md);
  transition: var(--v85-transition-base);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v85-project-card:hover { box-shadow: var(--v85-shadow-lg); transform: translateY(-0.15rem); }
.v85-project-card:active { transform: translateY(0); }

/* 项目封面图 */
.v85-project-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f8f8, #eee);
}
.v85-project-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* th:src="${imageBaseUrl}/gongyi/xxx.webp" */
  transition: transform var(--v85-duration-slow);
}
.v85-project-card:hover .v85-project-cover-wrap img {
  transform: scale(1.03);
}
/* 图片加载失败占位符 */
.v85-project-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--v85-text-tertiary);
  background: linear-gradient(135deg, var(--v85-bg-page), #f0f0f0);
}

/* 项目信息 */
.v85-project-body { padding: var(--v85-space-md); }
.v85-project-status-tag {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: var(--v85-radius-pill);
  font-size: 10px;
  font-weight: var(--v85-weight-semibold);
  margin-bottom: var(--v85-space-sm);
}
.v85-project-status-tag--active {
  background: var(--v85-success-light);
  color: var(--v85-success);
}
.v85-project-status-tag--pending {
  background: var(--v85-bg-warm);
  color: var(--v85-cta-dark);
}
.v85-project-title {
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-base);
  font-weight: var(--v85-weight-bold);
  color: var(--v85-text-primary);
  line-height: var(--v85-line-height-tight);
  margin-bottom: 0.25rem;
  cursor: pointer;
}
.v85-project-title:hover { color: var(--v85-primary); }
.v85-project-org {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  margin-bottom: var(--v85-space-sm);
}

/* 进度条 */
.v85-progress-bar-wrap { margin-bottom: var(--v85-space-sm); }
.v85-progress-bar {
  height: 0.375rem;
  background: #E5E7EB;
  border-radius: var(--v85-radius-pill);
  overflow: hidden;
}
.v85-progress-fill {
  height: 100%;
  background: var(--v85-gradient-success);
  border-radius: var(--v85-radius-pill);
  transition: width var(--v85-duration-slower);
}
.v85-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: var(--v85-text-xs);
  color: var(--v85-text-secondary);
  margin-bottom: var(--v85-space-sm);
}
.v85-progress-info b { color: var(--v85-charity); font-weight: var(--v85-weight-bold); }

/* 项目底部：关注人数 + 按钮 */
.v85-project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--v85-space-sm);
  border-top: 1px solid #F3F4F6;
}
.v85-project-donors {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.v85-btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 1rem;
  background: var(--v85-gradient-charity-banner);
  color: var(--text-white);
  border: none;
  border-radius: var(--v85-radius-pill);
  font-size: var(--v85-text-xs);
  font-weight: var(--v85-weight-semibold);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
  box-shadow: var(--v85-shadow-charity);
}
.v85-btn-follow:hover { filter: brightness(1.08); transform: scale(1.02); }
.v85-btn-follow:active { transform: scale(0.98); }


/* ==================== 3. 号外页 haowai.html ==================== */
.v85-haowai {
  padding-bottom: calc(var(--v85-safe-bottom) + 5.625rem);
  background: var(--v85-bg-page);
  min-height: 100vh;
}
.v85-haowai-header {
  background: linear-gradient(180deg, #1E3A5A 0%, var(--v85-bg-page) 100%);
  padding: calc(var(--v85-safe-top) + 1.25rem) var(--v85-space-md) 1.25rem;
  position: relative;
}
.v85-haowai-header h1 {
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-xl);
  font-weight: var(--v85-weight-bold);
  color: var(--text-white);
  margin: 0;
}

/* 新闻列表 */
.v85-news-list { padding: 0 var(--v85-space-md); }
.v85-news-card {
  display: flex;
  gap: var(--v85-space-md);
  background: var(--v85-bg-card);
  border-radius: var(--v85-radius-md);
  padding: var(--v85-space-md);
  margin-bottom: var(--v85-space-md);
  box-shadow: var(--v85-shadow-xs);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
}
.v85-news-card:hover { box-shadow: var(--v85-shadow-md); }
.v85-news-img {
  flex-shrink: 0;
  width: clamp(6rem, 18vw, 8rem);
  height: clamp(4.5rem, 13vw, 6rem);
  border-radius: var(--v85-radius-md);
  overflow: hidden;
  background: var(--v85-bg-page);
}
.v85-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* th:src="${imageBaseUrl}/haowai/xxx.webp" */
}
.v85-news-body { flex: 1; min-width: 0; }
.v85-news-title {
  font-size: var(--v85-text-base);
  font-weight: var(--v85-weight-bold);
  color: var(--v85-text-primary);
  line-height: var(--v85-line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--v85-space-sm);
}
.v85-news-desc {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  line-height: var(--v85-line-height-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--v85-space-sm);
}
.v85-news-meta {
  display: flex;
  align-items: center;
  gap: var(--v85-space-md);
  font-size: 10px;
  color: var(--v85-text-placeholder);
}

/* AI悬浮按钮 */
.hw-ai-fab-wrap {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0) + 5rem);
  right: 1rem;
  z-index: var(--z-emergency, 9999);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.hw-ai-fab-btn {
  width: clamp(2.4rem, 12.8vw, 3.45rem);
  height: clamp(2.4rem, 12.8vw, 3.45rem);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hw-blue-deep, #0D47A1), var(--hw-blue, #1565C0));
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  animation: fabPulse 2s ease-in-out infinite;
  font-family: inherit;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(13, 71, 161, 0.35); }
  50% { box-shadow: 0 4px 24px rgba(13, 71, 161, 0.5); }
}

/* AI聊天窗口 */
.ai-chat-win {
  position: fixed;
  bottom: 8.75rem;
  right: 1rem;
  width: calc(100vw - 32px);
  max-width: 22.5rem;
  height: clamp(21.0rem, 128.0vw, 31.5rem);
  max-height: calc(100vh - 200px);
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  z-index: var(--z-emergency, 9999);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.ai-chat-win.show {
  display: flex;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(1.25rem) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-c-head {
  background: linear-gradient(135deg, var(--hw-blue-deep, #0D47A1), var(--hw-blue, #1565C0));
  color: #fff;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ai-c-avatar {
  width: clamp(1.8rem, 9.6vw, 2.59rem);
  height: clamp(1.8rem, 9.6vw, 2.59rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}
.ai-c-title { flex: 1; }
.ai-c-title h3 { margin: 0; font-size: 0.875rem; font-weight: 600; }
.ai-c-title p { margin: 0.125rem 0 0; font-size: 0.6875rem; opacity: 0.85; }
.ai-c-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: clamp(1.4rem, 7.5vw, 2.01rem);
  height: clamp(1.4rem, 7.5vw, 2.01rem);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}
.ai-c-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 0.875rem;
  background: var(--bg-page, #f8f9fa);
}
.ai-c-msg {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
}
.ai-c-msg.user { flex-direction: row-reverse; }
.ai-c-av {
  width: clamp(1.5rem, 8.0vw, 2.16rem);
  height: clamp(1.5rem, 8.0vw, 2.16rem);
  border-radius: 50%;
  background: var(--hw-blue-deep, #0D47A1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ai-c-msg.user .ai-c-av { background: var(--warm-ink-dim, #666); }
.ai-c-bubble {
  max-width: 70%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.ai-c-msg:not(.user) .ai-c-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-line, #e5e7eb);
  border-top-left-radius: 0.25rem;
}
.ai-c-msg.user .ai-c-bubble {
  background: var(--hw-blue-deep, #0D47A1);
  color: #fff;
  border-top-right-radius: 0.25rem;
}
.ai-c-input {
  padding: 0.625rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-line, #e5e7eb);
  display: flex;
  gap: 0.375rem;
  align-items: center;
}
.ai-c-input input {
  flex: 1;
  padding: 0.5625rem 0.875rem;
  border: 1px solid var(--border-line, #e5e7eb);
  border-radius: 1.375rem;
  font-size: 0.8125rem;
  outline: none;
  font-family: inherit;
}
.ai-c-input input:focus { border-color: var(--hw-blue); }
.ai-c-send {
  width: clamp(1.8rem, 9.6vw, 2.59rem);
  height: clamp(1.8rem, 9.6vw, 2.59rem);
  border-radius: 50%;
  background: var(--hw-blue-deep, #0D47A1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.ai-c-quick {
  padding: 0.5rem 0.625rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-line, #f0f0f0);
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
}
.ai-c-q {
  white-space: nowrap;
  padding: 0.375rem 0.625rem;
  background: var(--bg-card);
  border: 1px solid var(--border-line, #e5e7eb);
  border-radius: 0.875rem;
  font-size: 0.6875rem;
  cursor: pointer;
  font-family: inherit;
}
.ai-c-q:hover {
  background: var(--hw-blue);
  color: #fff;
  border-color: var(--hw-blue);
}
@media (max-width: 768px) {
  .ai-chat-win {
    width: calc(100vw - 20px);
    height: calc(100vh - 180px);
    bottom: calc(env(safe-area-inset-bottom, 0) + 5rem);
    right: 0.625rem;
  }
}

/* ==================== 4. 我的页 my/page.html ==================== */
.v85-my { padding-bottom: var(--v85-page-bottom); background: var(--v85-bg-page); }

/* 用户信息卡 — 天空蓝渐变背景 */
.v85-my-header {
  background: var(--v85-gradient-my-header);
  padding: calc(var(--v85-safe-top) + 1.25rem) var(--v85-space-md) 1.5rem;
  position: relative;
  overflow: hidden;
}
.v85-my-header::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(to top, var(--v85-bg-page), transparent);
  pointer-events: none;
}
.v85-my-user-row {
  display: flex;
  align-items: center;
  gap: var(--v85-space-md);
  position: relative;
  z-index: var(--v85-z-base);
}
.v85-my-avatar {
  width: clamp(3.25rem, 9vw, 4rem);
  height: clamp(3.25rem, 9vw, 4rem);
  border-radius: var(--v85-radius-full);
  border: 3px solid rgba(255, 255, 255, 0.88);
  background: var(--v85-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--v85-text-xl);
  color: var(--v85-primary);
  font-weight: var(--v85-weight-bold);
  flex-shrink: 0;
}
.v85-my-info { flex: 1; min-width: 0; }
.v85-my-name {
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-lg);
  font-weight: var(--v85-weight-bold);
  color: var(--v85-text-primary);
  line-height: var(--v85-line-height-tight);
}
.v85-my-phone {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  margin-top: 0.125rem;
}
.v85-my-member-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.625rem;
  background: var(--v85-gradient-gold);
  color: var(--hex-78350f);
  font-size: 10px;
  font-weight: var(--v85-weight-bold);
  border-radius: var(--v85-radius-pill);
  margin-top: 0.375rem;
  align-self: flex-start;
}
.v85-my-actions {
  display: flex;
  flex-direction: column;
  gap: var(--v85-space-sm);
  position: relative;
  z-index: var(--v85-z-base);
}
.v85-my-action-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--v85-radius-full);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--v85-text-lg);
  color: var(--v85-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
  border: none;
}
.v85-my-action-btn:hover { background: #fff; box-shadow: var(--v85-shadow-sm); }

/* 资产数据区 — 4列等分 */
.v85-my-assets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v85-space-sm);
  padding: 0 var(--v85-space-md);
  margin-top: calc(-1 * var(--v85-space-lg));
  position: relative;
  z-index: var(--v85-z-card);
}
.v85-my-asset-card {
  background: var(--v85-bg-card);
  border-radius: var(--v85-radius-md);
  padding: var(--v85-space-sm) var(--v85-space-xs);
  text-align: center;
  box-shadow: var(--v85-shadow-md);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
}
.v85-my-asset-card:hover { box-shadow: var(--v85-shadow-lg); transform: translateY(-0.1rem); }
.v85-my-asset-value {
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-lg);
  font-weight: var(--v85-weight-bold);
  color: var(--v85-text-primary);
  line-height: 1.2;
}
.v85-my-asset-label {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  margin-top: 0.125rem;
}
.v85-my-asset-sub {
  font-size: 10px;
  color: var(--v85-text-placeholder);
  margin-top: 0.0625rem;
}

/* 常用工具网格 — 5列响应式 */
.v85-my-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--v85-space-xs);
  padding: var(--v85-space-md);
}
@media (max-width: 400px) {
  .v85-my-tools-grid { grid-template-columns: repeat(4, 1fr); }
}
.v85-my-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: var(--v85-space-sm) var(--v85-space-xs);
  border-radius: var(--v85-radius-md);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
}
.v85-my-tool-item:hover { background: rgba(8, 145, 178, 0.05); }
.v85-my-tool-icon {
  width: clamp(2.25rem, 6vw, 2.75rem);
  height: clamp(2.25rem, 6vw, 2.75rem);
  border-radius: var(--v85-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: var(--text-white);
  transition: var(--v85-transition-base);
}
.v85-my-tool-label {
  font-size: var(--v85-text-xs);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-primary);
  text-align: center;
  line-height: var(--v85-line-height-tight);
}

/* 工具图标颜色变体 */
.v85-tool-icon--orange { background: linear-gradient(135deg, #FB923C, #F97316); }
.v85-tool-icon--blue { background: linear-gradient(135deg, #38BDF8, #0891B2); }
.v85-tool-icon--red { background: linear-gradient(135deg, #F87171, #DC2626); }
.v85-tool-icon--green { background: linear-gradient(135deg, #4ADE80, #22C55E); }
.v85-tool-icon--amber { background: linear-gradient(135deg, #FCD34D, #D97706); }
.v85-tool-icon--pink { background: linear-gradient(135deg, #F472B6, #DB2777); }
.v85-tool-icon--teal { background: linear-gradient(135deg, #5EEAD4, #14B8A6); }
.v85-tool-icon--purple { background: linear-gradient(135deg, #C084FC, #9333EA); }
.v85-tool-icon--indigo { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.v85-tool-icon--slate { background: linear-gradient(135deg, #94A3B8, #64748B); }

/* 订单入口 — 4列 */
.v85-my-order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v85-space-sm);
  padding: 0 var(--v85-space-md);
}
.v85-my-order-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: var(--v85-space-md) var(--v85-space-xs);
  border-radius: var(--v85-radius-md);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-base);
}
.v85-my-order-item:hover { background: rgba(8, 145, 178, 0.04); }
.v85-my-order-icon {
  font-size: clamp(1.375rem, 3.5vw, 1.625rem);
  color: var(--v85-primary);
}
.v85-my-order-label {
  font-size: var(--v85-text-xs);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-primary);
}
/* 角标 badge */
.v85-my-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  background: var(--v85-charity);
  color: var(--text-white);
  font-size: 10px;
  font-weight: var(--v85-weight-bold);
  border-radius: var(--v85-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 更多功能列表 */
.v85-my-tools-list { padding: 0 var(--v85-space-md); }
.v85-my-tool-row {
  display: flex;
  align-items: center;
  gap: var(--v85-space-md);
  padding: var(--v85-space-md);
  background: var(--v85-bg-card);
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-colors);
}
.v85-my-tool-row:last-child { border-bottom: none; border-radius: 0 0 var(--v85-radius-md) var(--v85-radius-md); }
.v85-my-tool-row:first-of-type { border-radius: var(--v85-radius-md) var(--v85-radius-md) 0 0; }
.v85-my-tool-row:hover { background: var(--v85-primary-50); }
.v85-my-tool-icon {
  font-size: var(--v85-text-lg);
  color: var(--v85-primary);
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}
.v85-my-tool-label {
  flex: 1;
  font-size: var(--v85-text-sm);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-primary);
}
.v85-my-tool-arrow {
  color: var(--v85-text-placeholder);
  font-size: var(--v85-text-sm);
  flex-shrink: 0;
}


/* ==================== 5. 集市 market/v8/list.html ==================== */
.v85-market { padding-bottom: var(--v85-page-bottom); background: var(--v85-bg-page); }

.v85-market-header {
  background: linear-gradient(135deg, var(--v85-cta) 0%, #FB923C 100%);
  padding: calc(var(--v85-safe-top) + 1rem) var(--v85-space-md) 1rem;
  position: sticky;
  top: 0;
  z-index: var(--v85-z-sticky);
}
.v85-market-header h1 {
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-lg);
  font-weight: var(--v85-weight-bold);
  color: var(--text-white);
  margin: 0;
}

/* 分类宫格 */
.v85-cat-grid {
  display: flex;
  gap: var(--v85-space-sm);
  overflow-x: auto;
  padding: var(--v85-space-md) var(--v85-space-md) var(--v85-space-sm);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.v85-cat-grid::-webkit-scrollbar { display: none; }
.v85-cat-chip {
  flex-shrink: 0;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--v85-radius-pill);
  background: var(--v85-bg-card);
  border: 1.5px solid #E5E7EB;
  font-size: var(--v85-text-xs);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-colors);
}
.v85-cat-chip:hover { border-color: var(--v85-cta); color: var(--v85-cta); }
.v85-cat-chip.active {
  background: var(--v85-cta);
  border-color: var(--v85-cta);
  color: var(--text-white);
}

/* 筛选栏 sticky */
.v85-filter-bar {
  display: flex;
  gap: var(--v85-space-sm);
  padding: var(--v85-space-sm) var(--v85-space-md);
  background: var(--v85-bg-card);
  border-bottom: 1px solid #F3F4F6;
  position: sticky;
  top: 3.5rem;
  z-index: var(--v85-z-filter-bar);
}

/* 悬浮购物车 FAB */
.v85-fab-cart {
  position: fixed;
  right: var(--v85-space-md);
  bottom: calc(var(--v85-nav-height) + var(--v85-safe-bottom) + var(--v85-space-md));
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--v85-radius-full);
  background: var(--v85-gradient-cta);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  box-shadow: var(--v85-shadow-cta), var(--v85-shadow-float);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: var(--v85-z-float-btn);
  transition: var(--v85-transition-base);
  border: none;
}
.v85-fab-cart:hover { transform: scale(1.08); }
.v85-fab-cart:active { transform: scale(0.95); }
.v85-fab-count {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  min-width: 1.25rem;
  height: 1.25rem;
  background: var(--v85-charity);
  color: var(--text-white);
  font-size: 10px;
  font-weight: var(--v85-weight-bold);
  border-radius: var(--v85-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-white);
  line-height: 1;
}


/* ==================== 全局 section 标题样式 ==================== */
.v85-section {
  margin-bottom: var(--v85-space-lg);
}
.v85-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--v85-space-lg) var(--v85-space-md) var(--v85-space-sm);
  font-family: var(--v85-font-heading);
  font-size: var(--v85-text-lg);
  font-weight: var(--v85-weight-bold);
  color: var(--v85-text-primary);
}
.v85-section-more {
  font-size: var(--v85-text-xs);
  color: var(--v85-text-tertiary);
  cursor: pointer;
  transition: var(--v85-transition-colors);
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.v85-section-more:hover { color: var(--v85-primary); }


/* ==================== 底部导航增强 ==================== */
.v85-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v85-nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: var(--v85-z-nav);
  padding-bottom: var(--v85-safe-bottom);
}
.v85-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  flex: 1;
  height: 100%;
  color: var(--v85-text-tertiary);
  font-size: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--v85-transition-colors);
  text-decoration: none;
  border: none;
  background: none;
}
.v85-nav-item i { font-size: 1.25rem; line-height: 1; }
.v85-nav-item.active { color: var(--v85-primary); }
.v85-nav-item:hover:not(.active) { color: var(--v85-text-secondary); }
