/* ==========================================================================
   h5/assets/styles/pages.css —— 各页面样式
   --------------------------------------------------------------------------
   与小程序的页面 wxss 一一对应（rpx ÷ 2 = px）。
   命名沿用同一套前缀：idx- 首页 / cat- 套餐列表 / pd- 套餐详情 /
   oc- 确认下单 / ol- 订单列表 / od- 订单详情 / pf- 个人中心 / cfg- 配置错误。
   ========================================================================== */

/* ==========================================================================
   首页
   ========================================================================== */
.idx-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ee-background);
  border-bottom: 1px solid var(--ee-border);
}

.idx-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 44px;
}

.idx-header {
  padding: 0 16px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.idx-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--ee-radius-md);
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  min-width: 0;
  cursor: text;
}

.idx-search svg {
  flex: 0 0 auto;
  color: var(--ee-muted-foreground);
}

.idx-search-input {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-base);
  color: var(--ee-foreground);
  padding: 0;
  line-height: 1.4;
}

.idx-search-input::placeholder {
  color: var(--ee-muted-foreground);
  opacity: 1;
}

.idx-brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ee-primary-400), var(--ee-primary-600));
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.idx-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idx-brand-name {
  font-size: var(--fs-xl);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ee-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ---------- 轮播 ---------- */
.idx-carousel {
  position: relative;
  height: 160px;
  margin-top: 16px;
  border-radius: var(--ee-radius-lg);
  overflow: hidden;
  touch-action: pan-y;
}

.idx-slide-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.idx-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.idx-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idx-slide-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  text-align: center;
}

.idx-slide-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ee-foreground);
}

.idx-slide-sub {
  font-size: var(--fs-sub);
  color: var(--ee-muted-foreground);
}

.idx-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: -16px;
  position: relative;
  z-index: 2;
}

.idx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ee-muted-foreground);
  opacity: 0.4;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.idx-dot.on {
  background: var(--ee-primary);
  opacity: 1;
}

/* ---------- 导航网格 ---------- */
.idx-nav-card { margin-top: 16px; }

.idx-nav-grid {
  display: flex;
  flex-wrap: wrap;
}

.idx-nav-item {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  cursor: pointer;
}

.idx-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ee-radius-lg);
  background: var(--ee-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ee-primary);
}

.idx-nav-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idx-nav-name {
  font-size: var(--fs-xs);
  color: var(--ee-foreground);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- 公告（短文本静止 / 超宽才滚动） ---------- */
.idx-announce {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-top: 16px;
  border-radius: var(--ee-radius-md);
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  overflow: hidden;
}

.idx-announce-tag {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--ee-radius-full);
  background: var(--ee-primary);
  color: var(--ee-primary-foreground);
}

.idx-announce-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.idx-announce-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.idx-announce-track .idx-announce-text {
  padding-right: 40px;
}

.idx-announce-track.is-marquee {
  animation-name: idx-announce-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes idx-announce-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.idx-announce-text {
  flex: 0 0 auto;
  font-size: var(--fs-sub);
  line-height: 1.5;
  white-space: nowrap;
  color: var(--ee-foreground);
}

.idx-announce-probe {
  position: absolute;
  left: -9999px;
  top: 0;
  width: max-content;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- 分区标题 ---------- */
.idx-section { margin-top: 20px; }

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

.idx-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ee-foreground);
}

.idx-section-bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ee-primary-400), var(--ee-primary-600));
}

.idx-more {
  font-size: var(--fs-sm);
  color: var(--ee-primary);
  cursor: pointer;
}

/* ---------- 套餐卡 ---------- */
.idx-pkg {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.idx-pkg-cover {
  width: 100%;
  height: 160px;
  position: relative;
  background: var(--ee-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ee-muted-foreground);
}

.idx-pkg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idx-hot {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: var(--ee-radius-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--ee-hot-foreground);
  background: linear-gradient(135deg, var(--ee-hot-from), var(--ee-hot-to));
}

.idx-pkg-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.idx-pkg-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ee-foreground);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.idx-pkg-sub {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ee-muted-foreground);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.idx-pkg-price-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.idx-skel-img { width: 100%; height: 160px; border-radius: 0; }
.idx-skel-line { height: 13px; margin-top: 6px; }

/* ---------- 下单播报（悬浮胶囊） ----------
   ★ 外层容器负责「限宽居中」，内层负责动画 —— 两者不能是同一个元素，
     否则 translateX 动画会覆盖容器用来居中的 transform。 */
.idx-feed-layer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--ee-app-max);
  top: 0;
  z-index: 90;
  pointer-events: none;
  /* ★ 必须裁切：胶囊从「列宽」处起步，宽屏下若不裁会飘到手机列之外的灰色背景上 */
  height: 44px;
  overflow: hidden;
}

.idx-feed {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 88%;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--ee-feed-bg);
  pointer-events: none;
  animation-name: idx-feed-slide;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  will-change: transform;
}

.idx-feed-avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ee-feed-avatar-bg);
  color: var(--ee-feed-foreground);
  font-size: var(--fs-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.idx-feed-text {
  flex: 0 1 auto;
  min-width: 0;
  font-size: var(--fs-sub);
  line-height: 1.4;
  color: var(--ee-feed-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-feed-ago {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--ee-feed-ago);
  white-space: nowrap;
}

@keyframes idx-feed-slide {
  from { transform: translateX(var(--feed-from, 100vw)); }
  to { transform: translateX(-100%); }
}

/* ---------- 进店弹窗 ---------- */
.idx-pop {
  width: 100%;
  max-width: calc(var(--ee-app-max) - 64px);
  max-height: 85vh;
  overflow: hidden;
  background: var(--ee-card);
  border-radius: var(--ee-radius-lg);
  box-shadow: var(--ee-shadow-floating);
  display: flex;
  flex-direction: column;
  animation: ee-pop-in 0.18s ease-out;
}

.idx-pop-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.idx-pop-img {
  width: 100%;
  display: block;
}

.idx-pop-text {
  padding: 20px 20px 4px;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ee-card-foreground);
  text-align: center;
  white-space: pre-wrap;
}

.idx-pop-btn {
  flex-shrink: 0;
  width: calc(100% - 40px);
  height: var(--ee-ctrl-h);
  margin: 16px 20px 20px;
  line-height: var(--ee-ctrl-h);
  text-align: center;
  font-size: var(--fs-md);
  border-radius: var(--ee-radius-md);
  background: var(--ee-primary);
  color: var(--ee-primary-foreground);
  cursor: pointer;
}

/* ==========================================================================
   套餐列表
   ========================================================================== */
.cat-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 8px 16px;
  background: var(--ee-background);
  border-bottom: 1px solid var(--ee-border);
}

.cat-head-row {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cat-bar {
  width: 4px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ee-primary-400), var(--ee-primary-600));
}

.cat-title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-xl);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ee-foreground);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cat-title-input {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ee-foreground);
  padding: 0;
}

.cat-search-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ee-radius-md);
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  margin: -6px -6px -6px 0;
  cursor: pointer;
  color: var(--ee-foreground);
}

.cat-tabs {
  width: 100%;
  display: flex;
  gap: 6px;
  margin-top: 8px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex: 0 0 auto;
  padding: 4px 11px 7px;
  border-radius: 4px;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  color: var(--ee-foreground);
  cursor: pointer;
}

.cat-tab.on {
  background: var(--ee-primary);
  border-color: var(--ee-primary);
  color: var(--ee-primary-foreground);
}

.cat-grid { padding-top: 16px; }

.cat-pkg {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.cat-pkg-cover {
  width: 100%;
  height: 160px;
  position: relative;
  background: var(--ee-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ee-muted-foreground);
}

.cat-pkg-img { width: 100%; height: 100%; object-fit: cover; }

.cat-pkg-ph {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ee-surface-2);
}

.cat-hot {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: var(--ee-radius-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--ee-hot-foreground);
  background: linear-gradient(135deg, var(--ee-hot-from), var(--ee-hot-to));
}

.cat-pkg-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-pkg-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ee-foreground);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.cat-pkg-sub {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ee-muted-foreground);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cat-pkg-price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.cat-skel-img { width: 100%; height: 160px; border-radius: 0; }
.cat-skel-line { height: 13px; margin-top: 6px; }
.cat-empty { padding-top: 80px; }

/* ==========================================================================
   套餐详情
   ========================================================================== */
.pd-header { gap: 10px; }
.pd-header-title { color: var(--ee-foreground); }

.pd-main {
  padding-bottom: 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.pd-cover {
  width: 100%;
  height: 208px;
  border-radius: var(--ee-radius-lg);
  overflow: hidden;
  background: var(--ee-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ee-muted-foreground);
}

.pd-cover-img { width: 100%; height: 100%; object-fit: cover; }

.pd-cover-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pd-cover-ph-text {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ee-foreground);
}

.pd-info { display: flex; flex-direction: column; gap: 6px; }

.pd-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ee-foreground);
  line-height: 1.4;
}

.pd-sub { font-size: var(--fs-sub); color: var(--ee-muted-foreground); }

.pd-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.pd-price {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--ee-price);
}

.pd-sold {
  font-size: var(--fs-xs);
  padding: 2px 8px;
  border-radius: var(--ee-radius-full);
  background: var(--ee-primary-bg);
  color: var(--ee-primary);
}

.pd-section-title {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ee-foreground);
  margin-bottom: 10px;
}

.pd-richtext {
  font-size: var(--fs-sub);
  color: var(--ee-muted-foreground);
  line-height: 1.8;
  word-break: break-word;
}

.pd-richtext p { margin: 0 0 8px; }
.pd-richtext img { max-width: 100%; height: auto; border-radius: var(--ee-radius-md); margin: 8px 0; }
.pd-richtext ul,
.pd-richtext ol { margin: 8px 0; padding-left: 20px; }
.pd-richtext li { margin-bottom: 4px; }
.pd-richtext strong { color: var(--ee-foreground); }
.pd-richtext h1,
.pd-richtext h2,
.pd-richtext h3 { font-size: var(--fs-base); margin: 12px 0 6px; color: var(--ee-foreground); }

.pd-guarantee { display: flex; flex-direction: column; gap: 10px; }

.pd-g-item { display: flex; align-items: flex-start; gap: 8px; }

.pd-g-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ee-primary);
  flex: 0 0 auto;
  margin-top: 6px;
}

.pd-g-text {
  flex: 1;
  font-size: var(--fs-sub);
  color: var(--ee-muted-foreground);
  line-height: 1.7;
}

.pd-pay-info { flex: 0 0 auto; display: flex; flex-direction: column; }
.pd-pay-price { font-size: var(--fs-2xl); font-weight: 700; color: var(--ee-price); }
.pd-buy { flex: 1; }

/* ==========================================================================
   确认下单
   ========================================================================== */
.oc-header-title { color: var(--ee-foreground); }

.oc-main {
  padding-top: 16px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oc-pkg { padding: 14px; }

.oc-pkg-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oc-pkg-cover {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  border-radius: var(--ee-radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--ee-surface-3), var(--ee-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ee-muted-foreground);
}

.oc-pkg-img { width: 100%; height: 100%; object-fit: cover; }

.oc-pkg-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oc-pkg-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ee-foreground);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oc-pkg-sub {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ee-muted-foreground);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.oc-pkg-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

.oc-price {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ee-price);
}

.oc-form-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}

.oc-form-bar {
  width: 3px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 1.5px;
  background: linear-gradient(180deg, var(--ee-primary-400), var(--ee-primary-600));
}

.oc-form-title {
  font-size: var(--fs-lg);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ee-foreground);
}

/* 密码框：外层只做定位锚点，绝不参与尺寸 */
.oc-pwd-wrap {
  position: relative;
  width: 100%;
}

.oc-pwd-wrap .ee-input { padding-right: 60px; }

.oc-pwd-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.oc-pwd-text {
  font-size: var(--fs-sm);
  line-height: 1;
  color: var(--ee-primary);
  padding: 6px 0;
}

/* select 用原生控件，只保留右侧箭头 */
.oc-select-wrap { position: relative; }

.oc-select-wrap select {
  width: 100%;
  height: var(--ee-ctrl-h);
  padding: 0 36px 0 12px;
  font-size: var(--fs-base);
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-md);
  color: var(--ee-foreground);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.oc-select-wrap select.is-empty { color: var(--ee-muted-foreground); }

.oc-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ee-muted-foreground);
}

.oc-safe-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ee-border);
}

.oc-safe-text {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ee-muted-foreground);
}

.oc-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-summary .ee-divider { margin: 2px 0; }

.oc-discount { color: var(--ee-state-success); }

.oc-total-label {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ee-foreground);
}

.oc-total {
  font-size: var(--fs-2xl);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ee-primary);
}

.oc-pay-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 0 0 auto;
  padding-right: 2px;
}

.oc-pay-price {
  font-size: 19px;
  font-weight: 700;
  color: var(--ee-price);
  line-height: 1.2;
}

.oc-submit {
  flex: 1;
  font-weight: 600;
}

.oc-submitting {
  opacity: 0.6;
  pointer-events: none;
}

/* ==========================================================================
   订单列表
   ========================================================================== */
.ol-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 16px 6px;
  background: var(--ee-background);
}

.ol-head-row {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.ol-back { flex: 0 0 auto; }

.ol-title {
  flex: 1;
  text-align: center;
  font-size: var(--fs-xl);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ee-foreground);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ol-tabs {
  display: flex;
  padding: 4px 0;
  width: 100%;
  gap: 5px;
}

.ol-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 0;
  border-radius: 4px;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ee-muted-foreground);
  background: var(--ee-surface-2);
  cursor: pointer;
}

.ol-tab.on {
  color: var(--ee-primary-foreground);
  background: var(--ee-primary);
}

.ol-group-title {
  display: block;
  font-size: var(--fs-sub);
  font-weight: 500;
  color: var(--ee-muted-foreground);
  margin: 4px 0 10px;
}

.ol-card {
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  background: var(--ee-card);
}

.ol-card-tap { cursor: pointer; }
.ol-card-tap:active { opacity: 0.7; }

.ol-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.ol-order-no {
  font-size: var(--fs-sm);
  color: var(--ee-muted-foreground);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ol-pkg-name {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ee-card-foreground);
  margin-bottom: 10px;
  line-height: 1.4;
}

.ol-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ol-time {
  font-size: var(--fs-sm);
  color: var(--ee-muted-foreground);
}

.ol-price {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ee-primary);
}

.ol-skel-line { border-radius: 4px; }
.ol-skel-badge { width: 50px; height: 18px; border-radius: 999px; }
.ol-empty { padding-top: 60px; }

/* ==========================================================================
   订单详情
   ========================================================================== */
.od-header { justify-content: space-between; }
.od-back { flex: 0 0 auto; }
.od-title { color: var(--ee-foreground); }

.od-main {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.od-card {
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  background: var(--ee-card);
}

.od-card-title {
  display: block;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ee-card-foreground);
  margin-bottom: 10px;
}

.od-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.od-status-row .od-card-title { margin-bottom: 0; }

/* 步骤条 */
.od-steps {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 4px;
}

.od-step-line {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ee-surface-3);
}

.od-step-line-on {
  position: absolute;
  top: 9px;
  left: 0;
  height: 2px;
  background: var(--ee-primary);
  transition: width 0.3s ease;
}

.od-step {
  position: relative;
  z-index: 2;
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.od-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--ee-surface-3);
  color: var(--ee-muted-foreground);
}

.od-step-dot.on {
  background: var(--ee-primary);
  color: var(--ee-primary-foreground);
}

.od-step-dot.cur { box-shadow: 0 0 0 3px var(--ee-primary-bg); }

.od-step-label {
  margin-top: 6px;
  font-size: 10px;
  color: var(--ee-muted-foreground);
}

.od-step-label.on { color: var(--ee-primary); }
.od-step-label.cur { font-weight: 500; }

.od-pkg-name {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ee-card-foreground);
  margin-bottom: 4px;
}

.od-pkg-sub {
  display: block;
  font-size: var(--fs-sub);
  color: var(--ee-muted-foreground);
  margin-bottom: 12px;
}

.od-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid var(--ee-border);
}

.od-amount-k { font-size: var(--fs-base); color: var(--ee-muted-foreground); }

.od-amount-v {
  font-size: 19px;
  font-weight: 700;
  color: var(--ee-price);
}

.od-rows { display: flex; flex-direction: column; }

.od-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 0;
}

.od-row-k {
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ee-muted-foreground);
  flex: 0 1 auto;
  min-width: 0;
  max-width: 45%;
  margin-right: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.od-row-v {
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ee-card-foreground);
  text-align: right;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.od-row-masked {
  color: var(--ee-muted-foreground);
  font-size: var(--fs-sub);
}

.od-prog { margin-bottom: 10px; }

.od-prog-head {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ee-muted-foreground);
  margin-bottom: 7px;
}

.od-img-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -4px;
}

.od-img {
  width: calc(50% - 8px);
  height: 110px;
  margin: 4px;
  border-radius: var(--ee-radius-md);
  background: var(--ee-surface-2);
  object-fit: cover;
  cursor: pointer;
}

.od-skel { border-radius: 5px; }
.od-empty { padding-top: 70px; }

/* 底部操作栏 */
.od-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--ee-app-max);
  z-index: 30;
  display: flex;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--ee-background);
  border-top: 1px solid var(--ee-border);
}

.od-footer-btn {
  flex: 1;
  height: 46px;
  border-radius: var(--ee-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ee-primary);
  color: var(--ee-primary-foreground);
  font-size: var(--fs-lg);
  font-weight: 500;
  cursor: pointer;
}

.od-footer-btn.ghost {
  flex: 0 0 auto;
  margin-right: 10px;
  padding: 0 22px;
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  color: var(--ee-foreground);
  font-weight: 400;
  font-size: var(--fs-md);
}

.od-footer-btn.off {
  background: var(--ee-surface-3);
  color: var(--ee-muted-foreground);
}

/* 打手已申请结单提示 */
.od-review-tip {
  display: flex;
  align-items: flex-start;
}

.od-review-mark {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1.2;
  margin-right: 9px;
}

.od-review-body { flex: 1; min-width: 0; }

.od-review-title {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ee-foreground);
  margin-bottom: 4px;
}

.od-review-desc {
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ee-muted-foreground);
}

/* 售后弹层 */
.od-sheet-title {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ee-popover-foreground);
  margin-bottom: 4px;
}

.od-sheet-sub {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ee-muted-foreground);
  margin-bottom: 12px;
}

.od-radio {
  display: flex;
  align-items: center;
  padding: 9px 0;
  cursor: pointer;
}

.od-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ee-border);
  margin-right: 9px;
  flex-shrink: 0;
}

.od-radio-dot.on {
  border-color: var(--ee-primary);
  background: var(--ee-primary);
  box-shadow: inset 0 0 0 3px var(--ee-popover);
}

.od-radio-label {
  font-size: var(--fs-base);
  color: var(--ee-popover-foreground);
}

.od-sheet-area {
  width: 100%;
  height: 80px;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--ee-radius-md);
  border: 1px solid var(--ee-border);
  background: var(--ee-input);
  color: var(--ee-popover-foreground);
  font-size: var(--fs-base);
  resize: none;
  display: block;
}

.od-sheet-btn {
  margin-top: 16px;
  height: 46px;
  border-radius: var(--ee-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ee-primary);
  color: var(--ee-primary-foreground);
  font-size: var(--fs-lg);
  cursor: pointer;
}

/* ==========================================================================
   个人中心
   ========================================================================== */
.pf-header { padding: 10px 16px 14px; }

.pf-title {
  font-size: var(--fs-2xl);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ee-foreground);
}

.pf-user {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  background: var(--ee-card);
  cursor: pointer;
}

.pf-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ee-primary), var(--ee-primary-800));
  color: #fff;
}

.pf-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.pf-user-info { flex: 1; min-width: 0; }

.pf-name {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ee-card-foreground);
  margin-bottom: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pf-phone {
  display: block;
  font-size: var(--fs-sub);
  color: var(--ee-muted-foreground);
}

.pf-logout {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--ee-surface-2);
  font-size: var(--fs-sm);
  color: var(--ee-muted-foreground);
  cursor: pointer;
}

.pf-menu {
  padding: 0 16px;
  margin-bottom: 14px;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  background: var(--ee-card);
}

.pf-item {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.pf-item-line { border-bottom: 1px solid var(--ee-border); }

.pf-item-label {
  font-size: var(--fs-md);
  color: var(--ee-card-foreground);
}

.pf-arrow {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--ee-muted-foreground);
  border-right: 1.5px solid var(--ee-muted-foreground);
  transform: rotate(45deg);
}

.pf-booster {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  background: var(--ee-card);
  cursor: pointer;
}

.pf-booster-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ee-primary-bg);
  color: var(--ee-primary);
}

.pf-booster-info { flex: 1; min-width: 0; }

.pf-booster-name {
  display: block;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ee-card-foreground);
  margin-bottom: 3px;
}

.pf-booster-desc {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ee-muted-foreground);
}

.pf-version {
  display: block;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ee-muted-foreground);
  opacity: 0.7;
  margin-top: 24px;
}

/* 客服 / 昵称弹层 */
.pf-sheet-title {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ee-popover-foreground);
  margin-bottom: 4px;
}

.pf-sheet-sub {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ee-muted-foreground);
  margin-bottom: 14px;
}

.pf-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--ee-border);
  cursor: pointer;
}

.pf-sheet-k { font-size: var(--fs-base); color: var(--ee-muted-foreground); }

.pf-sheet-v {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ee-primary);
}

.pf-sheet-btn {
  margin-top: 16px;
  height: var(--ee-ctrl-h);
  border-radius: var(--ee-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ee-surface-2);
  color: var(--ee-popover-foreground);
  font-size: var(--fs-md);
  cursor: pointer;
}

.pf-nick-tip {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ee-muted-foreground);
  margin: 4px 0 10px;
}

.pf-nick-input {
  width: 100%;
  height: var(--ee-ctrl-h);
  padding: 0 12px;
  border-radius: var(--ee-radius-md);
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  font-size: var(--fs-base);
  color: var(--ee-foreground);
  display: block;
}

.pf-nick-btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.pf-nick-btn {
  flex: 1;
  height: var(--ee-ctrl-h);
  line-height: var(--ee-ctrl-h);
  font-size: var(--fs-base);
  border-radius: var(--ee-radius-md);
  background: var(--ee-surface-2);
  color: var(--ee-foreground);
  border: 1px solid var(--ee-border);
  text-align: center;
  cursor: pointer;
}

.pf-nick-btn.primary {
  background: var(--ee-primary);
  color: var(--ee-primary-foreground);
  border-color: var(--ee-primary);
}

/* ==========================================================================
   店铺未配置
   ========================================================================== */
.cfg-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--ee-background);
  color: var(--ee-foreground);
}

.cfg-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--ee-state-warning);
  background: var(--ee-state-warning-bg);
  margin-bottom: 16px;
}

.cfg-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: 8px;
}

.cfg-problem {
  font-size: var(--fs-sub);
  line-height: 1.7;
  color: var(--ee-muted-foreground);
  text-align: center;
}

.cfg-card {
  width: 100%;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  background: var(--ee-card);
}

.cfg-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ee-border);
}

.cfg-row:last-child { border-bottom: 0; }

.cfg-k {
  font-size: var(--fs-sub);
  color: var(--ee-muted-foreground);
  flex: 0 0 auto;
}

.cfg-v {
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--ee-card-foreground);
  text-align: right;
  max-width: 62%;
  word-break: break-all;
}

.cfg-hint {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--ee-muted-foreground);
  margin-top: 16px;
  text-align: center;
}

.cfg-btn {
  width: 100%;
  margin-top: 24px;
}
