/**
 * 小程序原型 - 组件样式：首页、匹配、消息、我的、社区、Toast、二级页组件
 */
/* 首页 Banner 轮播 */
.home-banner {
  width: 100%; height: 0; padding-bottom: 40%;
  border-radius: var(--radius-lg); margin-bottom: 16px;
  overflow: hidden; position: relative; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.25);
}
.home-banner:active { opacity: 0.95; }
.home-banner .banner-track { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.home-banner .banner-slide {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; text-align: center; padding: 20px;
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.home-banner .banner-slide.active { opacity: 1; pointer-events: auto; }
.home-banner .banner-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.home-banner .banner-desc { font-size: 13px; opacity: 0.95; }
.home-banner .banner-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.home-banner .banner-dots span {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.5); transition: all 0.3s ease;
  cursor: pointer;
}
.home-banner .banner-dots span.active { background: #fff; width: 16px; }

/* 搜索栏 */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px; background: var(--apple-fill);
  border-radius: var(--radius-xl); margin-bottom: 20px;
  font-size: 15px; color: var(--apple-label-secondary);
  cursor: pointer; transition: background 0.2s;
}
.search-bar:active { background: rgba(120, 120, 128, 0.3); }
.search-bar .icon-search { font-size: 18px; opacity: 0.8; }
.search-bar .voice { margin-left: auto; font-size: 14px; }

/* 金刚区 */
.k-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--apple-group); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.k-item {
  text-align: center; padding: 12px 4px; border-radius: var(--radius-md);
  cursor: pointer; transition: background 0.2s;
}
.k-item:active { background: var(--apple-fill); }
.k-item .icon { font-size: 28px; margin-bottom: 6px; }
.k-item span { font-size: 12px; color: var(--apple-label); font-weight: 500; }

.section-title {
  font-size: 17px; font-weight: 600; margin-bottom: 12px;
  padding-left: 4px; color: var(--apple-label);
}
.card-list { display: flex; flex-direction: column; gap: 12px; }
.user-card {
  background: var(--apple-group); border-radius: var(--radius-md);
  padding: 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
}
.user-card:active { transform: scale(0.98); }
.user-card .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(145deg, #E5E5EA, #D1D1D6);
  flex-shrink: 0; overflow: hidden;
}
.user-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.user-card .info { flex: 1; min-width: 0; }
.user-card .name { font-weight: 600; font-size: 16px; }
.user-card .tags { font-size: 13px; color: var(--apple-label-secondary); margin-top: 2px; }
.user-card .price { font-size: 15px; color: var(--apple-blue); font-weight: 600; flex-shrink: 0; }
.user-card .badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.user-card .badge-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 122, 255, 0.12); color: var(--apple-blue); }
.user-card .badge-tag.pro { background: rgba(52, 199, 89, 0.15); color: #34C759; }

.safe-banner {
  background: var(--apple-group); border-radius: var(--radius-md);
  padding: 16px; font-size: 14px; color: var(--apple-label-secondary);
  margin-top: 20px; margin-bottom: calc(var(--tab-h) + var(--safe-bottom) + 20px);
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.safe-banner strong { color: var(--apple-label); }
.safe-banner a { color: var(--apple-blue); text-decoration: none; }

/* 匹配页 */
.role-switch {
  display: flex; background: var(--apple-fill); border-radius: var(--radius-md);
  padding: 4px; margin-bottom: 20px;
}
.role-btn {
  flex: 1; padding: 12px; text-align: center; font-size: 15px;
  border-radius: 8px; border: none; background: transparent;
  color: var(--apple-label-secondary); cursor: pointer;
  transition: all 0.2s;
}
.role-btn.active { background: var(--apple-group); color: var(--apple-blue); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.role-btn:not(.active):active { background: rgba(255,255,255,0.5); }
.match-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.filter-item {
  background: var(--apple-group);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.filter-item:active { opacity: 0.9; }
.filter-item .label { font-size: 14px; color: var(--apple-label-secondary); }
.filter-item .value {
  font-size: 14px; color: var(--apple-label);
  max-width: 60%; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.filter-item .value.placeholder { color: var(--apple-label-secondary); }
.filter-item .arrow { margin-left: 4px; font-size: 12px; color: var(--apple-label-secondary); }
.filter-panel {
  display: none;
  background: var(--apple-group);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.filter-panel.open { display: block; }
.filter-panel-title {
  font-size: 13px; color: var(--apple-label-secondary);
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 0.5px solid var(--apple-separator);
}
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-option {
  padding: 8px 14px;
  background: var(--apple-bg);
  border-radius: 20px;
  font-size: 14px;
  color: var(--apple-label);
  border: none;
  cursor: pointer;
}
.filter-option:active { opacity: 0.8; }
.filter-option.active { background: var(--apple-blue); color: #fff; }
.region-list { display: flex; flex-wrap: wrap; gap: 8px; }
.region-item {
  padding: 8px 12px; background: var(--apple-bg);
  border-radius: 20px; font-size: 14px;
  color: var(--apple-label); cursor: pointer;
}
.region-item:active { opacity: 0.8; }
.region-item.active { background: var(--apple-blue); color: #fff; }
.quick-match-btn {
  width: 100%; padding: 16px; background: var(--apple-blue); color: #fff;
  border: none; border-radius: var(--radius-md); font-size: 17px; font-weight: 600;
  margin-bottom: 20px; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.quick-match-btn:active { background: var(--apple-blue-pressed); transform: scale(0.98); }
.publish-link {
  display: block; text-align: center; margin-top: 20px;
  font-size: 15px; color: var(--apple-blue); text-decoration: none;
}
.publish-link:active { opacity: 0.7; }

/* 活动卡片 */
.activity-card {
  background: var(--apple-group); border-radius: var(--radius-md);
  padding: 14px; display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.activity-card:active { opacity: 0.9; }
.activity-card .btn-join {
  padding: 8px 18px; background: var(--apple-blue); color: #fff;
  border: none; border-radius: 20px; font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.activity-card .btn-join:active { opacity: 0.9; }
.activity-card .btn-joined { background: var(--apple-label-secondary); cursor: default; }

/* 消息页 */
.msg-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.msg-tab { padding: 8px 14px; background: var(--apple-group); border-radius: 20px; font-size: 14px; border: none; color: var(--apple-label-secondary); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.msg-tab.active { background: var(--apple-blue); color: #fff; }
.msg-list { background: var(--apple-group); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.msg-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 0.5px solid var(--apple-separator);
  cursor: pointer; transition: background 0.15s;
}
.msg-item:last-child { border-bottom: none; }
.msg-item:active { background: var(--apple-fill); }
.msg-item .avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(145deg, #E5E5EA, #D1D1D6);
  flex-shrink: 0; overflow: hidden;
}
.msg-item .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.msg-item .content { flex: 1; min-width: 0; }
.msg-item .top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.msg-item .name { font-weight: 600; font-size: 16px; }
.msg-item .time { font-size: 13px; color: var(--apple-label-secondary); }
.msg-item .preview { font-size: 14px; color: var(--apple-label-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-item .badge {
  background: var(--apple-red); color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px; flex-shrink: 0;
}

/* 我的页 */
.profile-header {
  background: var(--apple-group); border-radius: var(--radius-lg);
  padding: 28px 24px; margin-bottom: 20px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.profile-header .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(145deg, #007AFF, #5AC8FA);
  margin: 0 auto 14px; overflow: hidden;
}
.profile-header .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.profile-header .name { font-size: 20px; font-weight: 600; }
.profile-header .sign { font-size: 14px; color: var(--apple-label-secondary); margin-top: 6px; }
.profile-badges {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.profile-auth-hint {
  font-size: 12px;
  color: var(--apple-label-secondary);
}
.menu-list { background: var(--apple-group); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 0.5px solid var(--apple-separator);
  font-size: 16px; text-decoration: none; color: var(--apple-label);
  cursor: pointer; transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--apple-fill); }
.menu-item .arrow { color: var(--apple-label-secondary); font-size: 15px; }

/* 认证中心 */
.auth-status { background: var(--apple-group); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.auth-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--apple-separator);
}
.auth-item:last-child { border-bottom: none; }
.auth-item.pending { background: rgba(255, 149, 0, 0.08); }
.auth-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.auth-info { flex: 1; min-width: 0; }
.auth-title { font-size: 15px; font-weight: 600; color: var(--apple-label); }
.auth-desc { font-size: 13px; color: var(--apple-label-secondary); margin-top: 2px; }
.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-success { background: rgba(52, 199, 89, 0.15); color: #1F8A43; }
.badge-warning { background: rgba(255, 149, 0, 0.16); color: #B05A00; }
.auth-panel {
  background: var(--apple-group);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--apple-separator);
  background: #fff;
  font-size: 15px;
  outline: none;
}
.form-control:focus { border-color: var(--apple-blue); }
.form-control:disabled { background: var(--apple-fill); color: var(--apple-label-secondary); }
.form-group label { display:block; font-size: 13px; color: var(--apple-label-secondary); margin-bottom: 8px; }
.form-help { margin-top: 8px; font-size: 12px; color: var(--apple-label-secondary); }
.auth-tips { margin-top: 10px; font-size: 12px; color: var(--apple-label-secondary); line-height: 1.5; }
.btn-sm {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--apple-separator);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.btn-ghost { color: var(--apple-blue); background: rgba(0, 122, 255, 0.10); border-color: rgba(0, 122, 255, 0.18); }
.btn-sm:active { opacity: 0.9; }
.auth-face-row { display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.auth-face-title { font-size: 15px; font-weight: 600; color: var(--apple-label); }
.auth-face-desc { font-size: 13px; color: var(--apple-label-secondary); margin-top: 2px; }

/* 人脸认证页 */
.face-box {
  height: 280px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 20%, rgba(0,122,255,0.18), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(52,199,89,0.18), transparent 55%),
              linear-gradient(145deg, #1C1C1E, #2C2C2E);
  position: relative;
  overflow: hidden;
  margin: 16px 0 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.face-oval {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 170px; height: 220px;
  border-radius: 50% / 55%;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 0 6px rgba(0,122,255,0.10);
}
.face-scan {
  position: absolute;
  left: 0; right: 0;
  top: -40%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(0, 122, 255, 0.45), transparent);
  filter: blur(0.2px);
  opacity: 0;
}
.face-scan.running { opacity: 1; animation: faceScanMove 1.2s linear infinite; }
@keyframes faceScanMove {
  from { top: -40%; }
  to { top: 100%; }
}
.face-tip {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  backdrop-filter: blur(10px);
}
.face-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--apple-fill);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}
.face-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #007AFF, #34C759);
  border-radius: 999px;
  transition: width 0.12s linear;
}
.face-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.face-step {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--apple-group);
  border: 1px solid var(--apple-separator);
  font-size: 13px;
  color: var(--apple-label-secondary);
}
.face-step.active { background: rgba(0, 122, 255, 0.12); color: var(--apple-blue); border-color: rgba(0, 122, 255, 0.25); }
.face-step.done { background: rgba(52, 199, 89, 0.15); color: #1F8A43; border-color: rgba(52, 199, 89, 0.25); }

/* 社区页 */
.circle-tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.circle-tabs::-webkit-scrollbar { display: none; }
.circle-tab {
  flex-shrink: 0; padding: 10px 18px; background: var(--apple-group);
  border-radius: 20px; font-size: 15px; border: none;
  color: var(--apple-label-secondary); cursor: pointer;
  transition: all 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.circle-tab:active { transform: scale(0.97); }
.circle-tab.active { background: var(--apple-blue); color: #fff; }
.feed-item {
  background: var(--apple-group); border-radius: var(--radius-md);
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feed-item .feed-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feed-item .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, #E5E5EA, #D1D1D6);
  flex-shrink: 0; overflow: hidden;
}
.feed-item .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.feed-item .uname { font-weight: 600; font-size: 15px; }
.feed-item .feed-text { font-size: 15px; line-height: 1.5; color: var(--apple-label); margin-bottom: 12px; }
.feed-item .feed-actions { display: flex; gap: 24px; font-size: 14px; color: var(--apple-label-secondary); }
.feed-item .feed-actions span { cursor: pointer; }
.feed-item .feed-actions span:active { opacity: 0.7; }
.feed-item .feed-actions .liked { color: var(--apple-red); }

/* 社区发布页 */
.post-type-selector {
  display: flex; gap: 10px; margin-bottom: 16px;
}
.post-type-btn {
  flex: 1; padding: 12px; border-radius: var(--radius-md);
  border: 1px solid var(--apple-separator);
  background: var(--apple-group);
  font-size: 14px; color: var(--apple-label-secondary);
  cursor: pointer; transition: all 0.2s;
}
.post-type-btn.active {
  background: rgba(0, 122, 255, 0.12);
  color: var(--apple-blue);
  border-color: var(--apple-blue);
}
.post-type-btn:active { opacity: 0.9; }
.form-group { margin-bottom: 16px; }
.post-content {
  width: 100%; min-height: 140px; padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--apple-separator);
  background: var(--apple-group);
  font-size: 15px; line-height: 1.5; color: var(--apple-label);
  resize: vertical; box-sizing: border-box;
}
.post-content::placeholder { color: var(--apple-label-tertiary); }
.post-content:focus { outline: none; border-color: var(--apple-blue); }
.circle-selector {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}
.circle-btn {
  padding: 10px 16px; border-radius: 20px;
  border: 1px solid var(--apple-separator);
  background: var(--apple-group);
  font-size: 14px; color: var(--apple-label-secondary);
  cursor: pointer; transition: all 0.2s;
}
.circle-btn.active {
  background: var(--apple-blue);
  color: #fff;
  border-color: var(--apple-blue);
}
.circle-btn:active { opacity: 0.9; }
.topic-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.topic-tag {
  padding: 6px 12px; border-radius: 16px;
  background: var(--apple-fill);
  font-size: 13px; color: var(--apple-label-secondary);
  cursor: pointer;
}
.topic-tag.add { color: var(--apple-blue); }
.topic-tag:active { opacity: 0.8; }
.page .sub-footer {
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
  background: var(--apple-bg);
  border-top: 0.5px solid var(--apple-separator);
}

/* 动态详情 - 评论 */
.feed-comment-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(242, 242, 247, 0.92);
  border-top: 0.5px solid var(--apple-separator);
  backdrop-filter: blur(12px);
}
.feed-comment-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--apple-separator);
  background: #fff;
  font-size: 15px;
  outline: none;
}
.feed-comment-send {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: var(--apple-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.feed-comment-send:active { background: var(--apple-blue-pressed); transform: scale(0.98); }
.comment-item {
  background: var(--apple-group);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.comment-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.comment-uname { font-weight: 600; font-size: 14px; color: var(--apple-label); }
.comment-time { font-size: 12px; color: var(--apple-label-secondary); flex-shrink: 0; }
.comment-text { font-size: 14px; line-height: 1.45; color: var(--apple-label); }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 14px 24px; background: rgba(0,0,0,0.75);
  color: #fff; font-size: 15px; border-radius: 12px;
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

/* 二级页组件 */
.btn-primary-full {
  width: 100%; padding: 16px;
  background: var(--apple-blue); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-size: 17px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.btn-primary-full:active { background: var(--apple-blue-pressed); transform: scale(0.98); }
.service-detail-card {
  background: var(--apple-group);
  border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.service-detail-card .detail-row { margin-bottom: 12px; font-size: 15px; }
.service-detail-card .detail-row:last-child { margin-bottom: 0; }
.service-detail-card .detail-label { color: var(--apple-label-secondary); margin-right: 8px; }
.order-item {
  background: var(--apple-group);
  border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.order-item .order-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.order-item .order-id { font-size: 13px; color: var(--apple-label-secondary); }
.order-item .order-status { font-size: 13px; color: var(--apple-blue); font-weight: 500; }
.order-item .order-info { font-size: 15px; color: var(--apple-label); }
.order-item .order-price { font-size: 16px; color: var(--apple-blue); font-weight: 600; margin-top: 6px; }
.payment-summary { background: var(--apple-group); border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; }
.payment-summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.payment-summary .row.total { margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--apple-separator); font-weight: 600; font-size: 17px; }

/* 聊天详情页 - 微信风格（顶栏标题与 .sub-page .sub-header .title 统一为绝对居中） */
.chat-page .chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 80px;
  background: #EDEDED;
  -webkit-overflow-scrolling: touch;
}
.chat-time-row {
  text-align: center; margin: 16px 0;
}
.chat-time-row .chat-time {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}
.chat-bubble-wrap {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 8px;
}
.chat-bubble-wrap.me { flex-direction: row-reverse; }
.chat-bubble-wrap .chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E5E5EA, #D1D1D6);
  flex-shrink: 0; overflow: hidden;
}
.chat-bubble-wrap .chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-bubble-wrap.me .chat-avatar { order: 1; }
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.45;
  border-radius: 4px;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.chat-bubble-wrap:not(.me) .chat-bubble {
  background: #fff;
  color: var(--apple-label);
  border-top-left-radius: 2px;
}
.chat-bubble-wrap.me .chat-bubble {
  background: #95EC69;
  color: #000;
  border-top-right-radius: 2px;
}
.chat-footer {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  padding: 8px 12px;
  padding-bottom: calc(8px + var(--safe-bottom));
  background: #F7F7F7;
  border-top: 0.5px solid var(--apple-separator);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 151;
}
.chat-input-wrap {
  flex: 1;
  min-height: 36px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  border: 0.5px solid var(--apple-separator);
}
.chat-input {
  width: 100%;
  font-size: 16px;
  color: var(--apple-label);
  outline: none;
}
.chat-input { color: var(--apple-label-secondary); }
.chat-send {
  padding: 8px 18px;
  background: var(--apple-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send:active { opacity: 0.9; }
