/* =========================================================
   MUSE BOX · 移动端服装盲盒商城原型样式表
   ========================================================= */
:root {
  --bg-desktop: #ece9e3;
  --bg-page: #f7f5f0;
  --bg-card: #ffffff;
  --bg-muted: #f2efe9;
  --ink-primary: #171717;
  --ink-secondary: #5c5b57;
  --ink-tertiary: #918e87;
  --accent: #c2593a;
  --accent-soft: #faede8;
  --accent-dark: #9e4328;
  --sage: #246854;
  --sage-soft: #e9f4f0;
  --border-light: #ebe7df;
  --border-strong: #d7d1c5;
  --shadow-sm: 0 2px 10px rgba(23, 23, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(23, 23, 23, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background: var(--bg-desktop);
  font-size: 14px;
  line-height: 1.45;
}

button, input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.is-hidden {
  display: none !important;
}

/* ==================== 桌面端原型外框布局 ==================== */
.prototype-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 20px 32px;
  background: radial-gradient(circle at 20% 20%, #f5f2eb 0%, #e4dfd5 100%);
}

.desktop-guide {
  width: 340px;
  max-height: 850px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-brand .guide-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.guide-brand h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.guide-brand p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  transition: all 0.2s ease;
}

.guide-step-item:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.guide-step-item.is-active {
  background: #ffffff;
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-sm);
}

.guide-step-item .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-step-item.is-active .step-num {
  background: var(--accent);
  color: #ffffff;
}

.guide-step-item .step-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.guide-step-item .step-info span {
  display: block;
  font-size: 12px;
  color: var(--ink-secondary);
}

.guide-status-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.guide-status-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.guide-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--border-light);
}

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

.guide-status-row span {
  color: var(--ink-secondary);
  flex-shrink: 0;
}

.guide-status-row strong {
  color: var(--ink-primary);
  text-align: right;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-tips p {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.btn-reset-demo {
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  transition: background 0.15s ease;
}

.btn-reset-demo:hover {
  background: var(--bg-muted);
}

/* ==================== 手机仿真外壳 ==================== */
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-shell {
  position: relative;
  width: 402px;
  height: 844px;
  max-height: calc(100vh - 36px);
  background: var(--bg-page);
  border-radius: 44px;
  border: 10px solid #1c1c1e;
  box-shadow: 0 28px 70px rgba(20, 20, 20, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 顶部状态栏 */
.phone-statusbar {
  height: 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-page);
  flex-shrink: 0;
  z-index: 20;
}

.status-time {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.dynamic-island {
  width: 96px;
  height: 24px;
  background: #141414;
  border-radius: 999px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}

.signal-bars i {
  display: block;
  width: 2.5px;
  background: var(--ink-primary);
  border-radius: 1px;
}

.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 6px; }
.signal-bars i:nth-child(3) { height: 8px; }
.signal-bars i:nth-child(4) { height: 10px; }

.battery-icon {
  width: 20px;
  height: 10px;
  border: 1.4px solid var(--ink-primary);
  border-radius: 3px;
  padding: 1.5px;
  position: relative;
}

.battery-icon span {
  display: block;
  width: 82%;
  height: 100%;
  background: var(--ink-primary);
  border-radius: 1px;
}

/* 顶部原型流程快捷bar */
.proto-flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #efede7;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  z-index: 15;
}

.flow-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 3px 7px;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.flow-pill.is-active {
  background: var(--ink-primary);
  color: #ffffff;
}

.flow-arrow {
  font-size: 11px;
  color: var(--ink-tertiary);
}

/* 手机主内容滚动区域 */
.phone-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.phone-viewport::-webkit-scrollbar {
  display: none;
}

.app-view {
  display: none;
  min-height: 100%;
  animation: fadeSlideIn 0.22s ease;
}

.app-view.is-active {
  display: block;
}

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

.view-bottom-spacer {
  height: 78px;
}

.view-bottom-spacer-lg {
  height: 92px;
}

/* ==================== 视图1：首页浏览穿搭图 ==================== */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.brand-logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--ink-primary);
}

.brand-logo span {
  color: var(--accent);
  margin-left: 2px;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-secondary);
}

.header-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-primary);
  box-shadow: var(--shadow-sm);
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

/* 核心玩法引导横幅 */
.hero-workflow-banner {
  margin: 6px 14px 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1d1c1a 0%, #342d28 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.hero-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hero-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #e7c6b6;
}

.hero-promise {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fdf6f2;
}

.hero-workflow-banner h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.1px;
}

.hero-steps-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 10px;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #f4efe8;
}

.hero-step span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-step-sep {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

/* 风格筛选条 */
.style-filter-wrap {
  padding: 0 14px 10px;
}

.style-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

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

.filter-chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.filter-chip.is-active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #ffffff;
  font-weight: 600;
}

.feed-section-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 8px;
  font-size: 11px;
  color: var(--ink-secondary);
}

.meta-tip {
  color: var(--accent);
  font-weight: 500;
}

/* 双列穿搭瀑布流 */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px;
}

.look-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.look-card:active {
  transform: scale(0.985);
}

.look-card-media {
  position: relative;
  height: 214px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.look-card-media svg {
  width: 100%;
  height: 100%;
  display: block;
}

.look-sim-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
}

.look-style-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-primary);
  font-size: 10px;
  font-weight: 600;
}

.look-palette-dots {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.palette-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.look-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.look-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}

.look-items-summary {
  font-size: 11px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.look-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.look-orders-count {
  font-size: 10px;
  color: var(--ink-tertiary);
}

.btn-pick-look {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-pick-look:hover {
  background: var(--accent);
}

/* ==================== 通用二级子页头部 ==================== */
.subpage-header {
  position: sticky;
  top: 0;
  z-index: 12;
  height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.icon-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
}

.icon-back-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.subpage-title {
  font-size: 15px;
  font-weight: 700;
}

.header-text-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 8px;
}

.step-badge-mini {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--ink-secondary);
}

/* ==================== 视图2：穿搭详情与近似匹配说明 ==================== */
.detail-hero-card {
  position: relative;
  margin: 12px 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.detail-artwork-wrap {
  height: 300px;
  position: relative;
}

.detail-artwork-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.detail-floating-info {
  padding: 14px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-title-row h2 {
  font-size: 18px;
  font-weight: 700;
}

.detail-sim-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-stylist-note {
  font-size: 12px;
  color: var(--ink-secondary);
  background: var(--bg-page);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-left: 3px solid var(--accent);
}

.detail-dna-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-secondary);
}

.dna-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dna-swatch-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 5px;
  border-radius: 999px;
  background: var(--bg-muted);
  font-size: 11px;
  color: var(--ink-primary);
}

.dna-swatch-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* 核心承诺卡片：按穿搭图匹配近似商品 */
.promise-explain-card {
  margin: 0 14px 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff9f6 0%, #ffffff 100%);
  border: 1.5px solid #eed2c7;
  box-shadow: var(--shadow-sm);
}

.promise-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.promise-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.promise-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.promise-lead {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  line-height: 1.55;
}

.promise-lead strong {
  color: var(--accent-dark);
}

.match-mechanism-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.mechanism-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
}

.mech-idx {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.mechanism-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.mechanism-item p {
  font-size: 11px;
  color: var(--ink-secondary);
}

/* 原图元素 vs 近似备选池对照 */
.pool-compare-box {
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 10px;
  border: 1px dashed var(--border-strong);
}

.pool-compare-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.pool-compare-title span {
  color: var(--sage);
}

.pool-compare-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pool-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.pool-col-label {
  display: block;
  font-size: 10px;
  color: var(--ink-tertiary);
}

.pool-col strong {
  font-size: 11px;
  color: var(--ink-primary);
}

.pool-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

/* 单品拆解卡片 */
.detail-breakdown-card {
  margin: 0 14px 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-light);
}

.detail-breakdown-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
}

.breakdown-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.breakdown-cat-pill {
  padding: 3px 7px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.breakdown-left strong {
  display: block;
  font-size: 12px;
}

.breakdown-left span {
  font-size: 11px;
  color: var(--ink-secondary);
}

.breakdown-sim {
  font-size: 11px;
  font-weight: 600;
  color: var(--sage);
  white-space: nowrap;
}

/* ==================== 视图3：定制盲盒套餐、尺码与地址 ==================== */
.customize-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.locked-look-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink-primary);
  box-shadow: var(--shadow-sm);
}

.locked-look-thumb {
  width: 54px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.locked-look-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.locked-look-info {
  flex: 1;
  min-width: 0;
}

.locked-look-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.locked-look-info h4 {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.locked-look-info p {
  font-size: 11px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.btn-change-look {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
}

/* 通用表单卡片 */
.form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-card.is-error-highlight {
  border-color: #d93829;
  box-shadow: 0 0 0 3px rgba(217, 56, 41, 0.14);
  animation: shakePulse 0.36s ease;
}

@keyframes shakePulse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.card-title-row h3 {
  font-size: 14px;
  font-weight: 700;
}

.card-subtitle {
  font-size: 11px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.required-star {
  color: #d93829;
}

.tag-recommend {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  white-space: nowrap;
}

.link-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  white-space: nowrap;
}

/* 盲盒套餐卡片列表 */
.package-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.package-option {
  position: relative;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  text-align: left;
  transition: all 0.16s ease;
  cursor: pointer;
}

.package-option.is-selected {
  border-color: var(--accent);
  background: #fffaf8;
  box-shadow: 0 2px 10px rgba(194, 89, 58, 0.1);
}

.pkg-badge {
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.pkg-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pkg-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pkg-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.package-option.is-selected .pkg-radio {
  border-color: var(--accent);
}

.package-option.is-selected .pkg-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pkg-name-wrap strong {
  font-size: 13px;
  font-weight: 700;
}

.pkg-count-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--ink-secondary);
}

.pkg-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pkg-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.pkg-tag-price {
  font-size: 10px;
  color: var(--ink-tertiary);
  text-decoration: line-through;
}

.pkg-desc {
  font-size: 11px;
  color: var(--ink-secondary);
  padding-left: 22px;
}

/* 套餐动态近似单品清单 */
.package-preview-box {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px dashed var(--border-strong);
}

.preview-box-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
}

.preview-box-title span {
  color: var(--sage);
}

.preview-items-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preview-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-secondary);
}

.preview-item-row strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.preview-item-sim {
  color: var(--accent);
  font-weight: 600;
  font-size: 10px;
}

/* 尺码选择模块 */
.size-group {
  margin-bottom: 14px;
}

.size-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.size-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-tertiary);
}

.size-hint.is-filled {
  color: var(--sage);
  font-weight: 600;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.size-btn {
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
}

.size-btn strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.size-btn span {
  font-size: 9px;
  color: var(--ink-tertiary);
}

.size-btn.is-selected {
  border-color: var(--ink-primary);
  background: var(--ink-primary);
}

.size-btn.is-selected strong,
.size-btn.is-selected span {
  color: #ffffff;
}

.pref-group {
  margin-top: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pref-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  font-size: 11px;
  color: var(--ink-secondary);
  transition: all 0.15s ease;
}

.pref-chip.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}

/* 收货地址选择模块 */
.selected-address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.selected-address-card:hover {
  border-color: var(--border-strong);
}

.addr-card-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.addr-pin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.addr-user-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.addr-user-line strong {
  font-size: 13px;
}

.addr-phone {
  font-size: 12px;
  color: var(--ink-secondary);
}

.addr-tag-pill {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: var(--ink-primary);
  color: #ffffff;
}

.addr-tag-pill.is-default {
  background: var(--accent);
}

.addr-detail-line {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.addr-chevron {
  color: var(--ink-tertiary);
  font-size: 16px;
  flex-shrink: 0;
}

/* 费用明细卡片 */
.price-summary-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-secondary);
}

.price-row .discount-val {
  color: var(--accent);
  font-weight: 600;
}

.price-row.is-total {
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px dashed var(--border-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

/* ==================== 固定底部操作栏 & Tab栏 ==================== */
.sticky-action-bar,
.sticky-checkout-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.btn-secondary-outline {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
}

.btn-primary-solid {
  flex: 1;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease;
}

.btn-primary-solid:hover {
  background: var(--accent);
}

.checkout-price-col {
  display: flex;
  flex-direction: column;
}

.checkout-total {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--accent);
}

.checkout-total .label {
  font-size: 12px;
  color: var(--ink-primary);
  font-weight: 600;
  margin-right: 3px;
}

.checkout-total .currency {
  font-size: 13px;
  font-weight: 700;
}

.checkout-total strong {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.checkout-discount-tip {
  font-size: 10px;
  color: var(--sage);
  font-weight: 600;
  margin-top: 2px;
}

.btn-checkout-submit {
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #a9472b 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(194, 89, 58, 0.28);
}

.bottom-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 22;
}

.tab-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-tertiary);
  font-size: 10px;
  font-weight: 600;
}

.tab-item.is-active {
  color: var(--ink-primary);
}

.tab-item.is-active svg {
  stroke: var(--accent);
}

.tab-badge {
  position: absolute;
  top: 7px;
  right: 32%;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== 视图4：订单完成与模拟拆盒 ==================== */
.order-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-empty-state {
  text-align: center;
  padding: 56px 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.order-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.order-empty-state h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.order-empty-state p {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.order-status-hero {
  padding: 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1b3d33 0%, #275b4c 100%);
  color: #ffffff;
}

.order-status-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.order-status-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
}

.order-id-text {
  font-size: 11px;
  opacity: 0.8;
}

.order-status-hero h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.order-status-hero p {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.timeline-step {
  text-align: center;
  font-size: 10px;
  opacity: 0.55;
}

.timeline-step.is-done {
  opacity: 1;
  font-weight: 700;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 auto 4px;
}

.timeline-step.is-done .timeline-dot {
  background: #87f5cf;
  box-shadow: 0 0 0 3px rgba(135, 245, 207, 0.25);
}

.unbox-trigger-card {
  background: linear-gradient(180deg, #fff7f3 0%, #ffffff 100%);
  border: 1.5px solid #eec7b9;
  border-radius: var(--radius-md);
  padding: 14px;
}

.unbox-trigger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.unbox-trigger-head h4 {
  font-size: 14px;
  font-weight: 700;
}

.unbox-trigger-head p {
  font-size: 11px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.btn-unbox-spoiler {
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.16s ease;
}

.btn-unbox-spoiler:hover {
  background: var(--accent);
}

.unbox-results-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.unbox-item-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  animation: fadeSlideIn 0.28s ease;
}

.unbox-swatch-box {
  width: 44px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.unbox-item-info {
  flex: 1;
}

.unbox-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.unbox-item-top strong {
  font-size: 12px;
}

.unbox-sim-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
}

.unbox-item-meta {
  font-size: 11px;
  color: var(--ink-secondary);
}

.order-info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  border: 1px solid var(--border-light);
}

.order-info-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
}

.order-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.order-kv-row span {
  color: var(--ink-secondary);
  flex-shrink: 0;
}

.order-kv-row strong {
  text-align: right;
  font-weight: 600;
}

/* ==================== 半屏抽屉与模态层 ==================== */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  z-index: 40;
  backdrop-filter: blur(2px);
}

.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82%;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.16);
  animation: slideUpSheet 0.22s ease;
}

@keyframes slideUpSheet {
  from { transform: translateY(36px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #dcd8cf;
  margin: 8px auto 4px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--border-light);
}

.sheet-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.sheet-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  font-size: 13px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-body {
  padding: 14px 16px 20px;
  overflow-y: auto;
}

/* 地址抽屉 */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.address-option-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.address-option-card.is-selected {
  border-color: var(--accent);
  background: #fffaf8;
}

.addr-check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: #ffffff;
}

.address-option-card.is-selected .addr-check-circle {
  border-color: var(--accent);
  background: var(--accent);
}

.btn-add-address-trigger {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

/* 新增地址表单 */
.form-field {
  margin-bottom: 11px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  outline: none;
}

.form-field input:focus {
  border-color: var(--ink-primary);
}

.region-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.region-chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-muted);
  font-size: 11px;
  color: var(--ink-secondary);
}

.region-chip:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.form-field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  font-size: 12px;
  font-weight: 600;
}

.tag-selector {
  display: flex;
  gap: 6px;
}

.addr-tag-btn {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  color: var(--ink-secondary);
}

.addr-tag-btn.is-selected {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #ffffff;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-error-msg {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #fdeceb;
  color: #c72c1e;
  font-size: 11px;
  margin-bottom: 10px;
}

.form-actions-row {
  display: flex;
  gap: 10px;
}

/* 尺码表抽屉 */
.size-chart-note {
  font-size: 12px;
  color: var(--ink-secondary);
  background: var(--bg-page);
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.size-table-wrap {
  overflow-x: auto;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
}

.size-table th,
.size-table td {
  padding: 8px 5px;
  border-bottom: 1px solid var(--border-light);
}

.size-table th {
  background: var(--bg-muted);
  font-weight: 700;
}

/* 规则说明抽屉 */
.rules-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-step-card {
  display: flex;
  gap: 11px;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
}

.rule-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-step-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

.rule-step-card p {
  font-size: 12px;
  color: var(--ink-secondary);
}

/* 收银台抽屉 */
.pay-amount-hero {
  text-align: center;
  padding: 12px 10px 16px;
}

.pay-amount-hero span {
  font-size: 12px;
  color: var(--ink-secondary);
}

.pay-amount-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 4px 0;
}

.pay-amount-num strong {
  font-size: 32px;
  font-weight: 800;
}

.pay-amount-hero p {
  font-size: 11px;
  color: var(--sage);
  font-weight: 600;
}

.pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.pay-method-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  cursor: pointer;
}

.pay-method-item.is-selected {
  border-color: var(--ink-primary);
  background: var(--bg-page);
}

.pay-method-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-icon.wechat { background: #07c160; }
.pay-icon.alipay { background: #1677ff; }

.pay-method-left strong {
  display: block;
  font-size: 13px;
}

.pay-method-left span {
  font-size: 11px;
  color: var(--ink-tertiary);
}

.btn-pay-confirm {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

/* AI + 搭配师寻款过场动画 */
.matching-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.matching-box {
  width: 100%;
  text-align: center;
}

.matching-pulse-ring {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent), #e6b8a2);
  animation: pulseRing 1.2s infinite ease-in-out;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.matching-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
}

.matching-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.matching-box h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.matching-sub {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.matching-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.match-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-tertiary);
  transition: color 0.2s ease;
}

.match-step i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
}

.match-step.is-done {
  color: var(--ink-primary);
  font-weight: 600;
}

.match-step.is-done i {
  background: var(--sage);
  border-color: var(--sage);
}

/* 轻提示 Toast */
.toast-banner {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow-md);
}

/* ==================== 移动端自适应全屏 ==================== */
@media (max-width: 860px) {
  .prototype-layout {
    padding: 0;
    background: var(--bg-page);
  }
  .desktop-guide {
    display: none;
  }
  .phone-stage {
    width: 100%;
    height: 100vh;
  }
  .phone-shell {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .phone-statusbar {
    display: none;
  }
}
.look-img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.look-card-media,.detail-artwork-wrap,.locked-look-thumb,.matching-thumb{background:#e9e5dc}
.prototype-layout{background:#e9e6df}
.unbox-swatch-box{background-size:cover;background-position:top center;position:relative;color:#fff;overflow:hidden}
.unbox-swatch-box span{background:rgba(0,0,0,.55);padding:1px 5px;border-radius:4px;font-size:10px}
.unbox-swatch-box span+span{margin-top:3px}

/* ===== v3: 极简线性流程 ===== */
.bottom-tab-bar{display:none !important}
.style-filter-wrap,.feed-section-meta{display:none !important}
.view-bottom-spacer{height:20px}
.feed-header{padding:10px 16px 8px}
.lookbook-grid{grid-template-columns:1fr;gap:14px;padding:0 12px}
.look-card{border:none;border-radius:18px;box-shadow:var(--shadow-md);background:#000}
.look-card-media{height:auto;aspect-ratio:3/4.1}
.look-sim-badge{top:12px;left:12px;font-size:11px;padding:4px 9px}
.look-overlay{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:46px 14px 14px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.72))}
.look-overlay .look-title{color:#fff;font-size:17px;margin-bottom:3px}
.look-overlay .look-items-summary{color:rgba(255,255,255,.85);font-size:12px;margin:0;-webkit-line-clamp:2}
.btn-pick-look{background:#fff;color:var(--ink-primary);padding:9px 18px;font-size:13px;flex-shrink:0}
.btn-pick-look:hover{background:var(--accent);color:#fff}
.detail-artwork-wrap{height:auto;aspect-ratio:3/4}

/* ===== v4: 首页双列网格 + 相似滚动推荐 ===== */
#view-feed .lookbook-grid{grid-template-columns:repeat(2,1fr);gap:10px;padding:0 12px}
.look-card.tile{background:transparent;box-shadow:none;border-radius:12px;overflow:visible}
.look-card.tile .look-card-media{aspect-ratio:3/4.2;border-radius:12px;overflow:hidden}
.tile-style{position:absolute;left:8px;bottom:8px;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.9);font-size:10px;font-weight:600}
.tile-title{padding:6px 2px 2px;font-size:12px;font-weight:600;color:var(--ink-primary);line-height:1.3}
.similar-intro{padding:10px 16px 8px;font-size:12px;color:var(--ink-secondary)}
#view-similar .lookbook-grid{grid-template-columns:1fr}

/* ===== v6: 详情页图示化 ===== */
.dsec{margin:0 14px 12px;padding:14px;border-radius:var(--radius-md);background:#fff;border:1px solid var(--border-light)}
.dsec-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;margin-bottom:12px}
.dsec-title b{width:20px;height:20px;border-radius:50%;background:var(--accent);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}
.dsec-note{font-size:12px;color:var(--ink-secondary);text-align:center;margin:10px 0 12px}
.dsec-note strong{color:var(--accent-dark)}
.crop-tile{position:relative;border-radius:10px;background-repeat:no-repeat;background-color:#e9e5dc;aspect-ratio:1/1;overflow:hidden}
.crop-tile span{position:absolute;left:5px;bottom:5px;padding:1px 6px;border-radius:999px;background:rgba(255,255,255,.92);font-size:10px;font-weight:700}
.crop-tile.sm{width:84px;flex-shrink:0}
.crop-tile.xs{width:100%}
.crop-tile.xs span{font-size:9px;padding:1px 5px;left:3px;bottom:3px}
.split-row{display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.split-row::-webkit-scrollbar{display:none}
.split-item{width:104px;flex-shrink:0}
.split-item strong{display:block;margin-top:6px;font-size:11px;font-weight:600;line-height:1.3;color:var(--ink-primary)}
.flow-diagram{display:flex;align-items:flex-start;justify-content:space-between;gap:2px}
.flow-node{flex:1;text-align:center;font-size:11px;font-weight:600;color:var(--ink-primary);line-height:1.3}
.flow-circle{width:58px;height:58px;border-radius:50%;margin:0 auto 6px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);background-size:cover;background-position:50% 12%}
.flow-circle.photo{border:2px solid var(--accent)}
.flow-arrow{margin-top:14px;font-size:22px;color:var(--ink-tertiary)}
.compare-list{display:flex;flex-direction:column;gap:9px}
.compare-row{display:flex;align-items:center;gap:8px}
.compare-mid{width:40px;text-align:center;flex-shrink:0}
.compare-mid i{display:block;font-style:normal;font-size:20px;line-height:1;color:var(--accent)}
.compare-mid span{font-size:10px;font-weight:700;color:var(--sage)}
.similar-tile{flex:1;height:84px;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);background-image:linear-gradient(135deg,rgba(255,255,255,.18),rgba(0,0,0,.12))}
.similar-tile em{font-style:normal;align-self:flex-start;font-size:10px;font-weight:700;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--ink-primary)}
.similar-tile span{font-size:12px;font-weight:600;line-height:1.3;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.pkg-visual-list{display:flex;flex-direction:column;gap:10px}
.pkg-visual{padding:10px;border-radius:12px;border:1.5px solid var(--border-light)}
.pkg-visual.is-hot{border-color:var(--accent);background:#fffaf8}
.pkg-visual-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;font-size:12px}
.pkg-visual-head strong{font-size:13px}
.pkg-visual-head b{color:var(--accent);font-size:14px}
.pkg-visual-items{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.promise-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
.promise-chips div{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;border-radius:12px;background:var(--bg-page);color:var(--accent)}
.promise-chips span{font-size:11px;font-weight:600;color:var(--ink-primary)}
.similar-tile.is-light{color:#171717;border:1px solid #ddd7cc}
.similar-tile.is-light span{text-shadow:none}
.dsec-note{text-wrap:balance}
.pkg-visual{cursor:pointer;transition:all .15s}
.pkg-visual-head strong{display:flex;align-items:center;gap:6px}
.pick-dot{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--border-strong);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.pkg-visual.is-hot .pick-dot{border-color:var(--accent)}
.pkg-visual.is-hot .pick-dot::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
.hot-tag{font-style:normal;font-size:10px;font-weight:700;padding:1px 6px;border-radius:999px;background:var(--accent);color:#fff}
.guarantee-steps{display:flex;flex-direction:column;gap:8px}
.guarantee-step{display:flex;gap:10px;padding:10px;border-radius:10px;background:var(--bg-page)}
.guarantee-step>span{width:24px;height:24px;border-radius:50%;background:var(--accent);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.guarantee-step strong{display:block;font-size:12px;margin-bottom:2px}
.guarantee-step p{font-size:11px;color:var(--ink-secondary)}

/* ===== v11: 确认订单页 ===== */
.customize-body{gap:12px;padding:12px 14px}
.locked-look-card{display:block;padding:12px;border:none;border-radius:16px;box-shadow:var(--shadow-md)}
.confirm-top{display:flex;align-items:center;gap:12px}
.locked-look-thumb{width:56px;height:72px;border-radius:10px}
.locked-look-info h4{font-size:16px;white-space:normal}
.locked-look-info p{font-size:12px;margin-top:3px}
.confirm-items{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:12px}
.confirm-items .crop-tile.xs{border-radius:8px}
.form-card{padding:14px 14px 12px;border-radius:16px;border:none;box-shadow:var(--shadow-sm)}
.card-title-row{align-items:center;margin-bottom:10px}
.card-title-row h3{font-size:15px}
.size-row{margin-bottom:10px}
.size-row:last-child{margin-bottom:0}
.size-row-label{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;font-weight:600;margin-bottom:6px}
.size-hint{font-size:11px;font-weight:500;color:var(--ink-tertiary)}
.size-btn{padding:10px 0}
.size-btn strong{font-size:14px}
.selected-address-card{background:transparent;border:none;padding:0}
.addr-user-line strong{font-size:14px}
.addr-detail-line{font-size:12px}
.price-summary-card{gap:8px}
.price-row{font-size:13px}
.price-row.is-total{font-size:14px}
.price-row .total-num{font-size:20px;font-weight:800;color:var(--accent)}
.pay-icon.cod{background:var(--accent)}
.cod-note{font-size:12px;color:var(--ink-secondary);text-align:center;margin:-6px 0 14px}

/* ===== v14: 訂單頁 ===== */
.order-body{padding:12px 14px 20px;gap:12px}
.ord-hero{text-align:center;padding:22px 16px 18px;border-radius:20px;background:linear-gradient(160deg,#1b3d33,#2c6454);color:#fff;box-shadow:var(--shadow-md)}
.ord-check{width:56px;height:56px;border-radius:50%;margin:0 auto 10px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;color:#9bf5d6}
.ord-hero h3{font-size:20px;margin-bottom:4px}
.ord-hero p{font-size:12px;opacity:.85;margin-bottom:14px}
.ord-amount{display:inline-flex;align-items:baseline;gap:8px;padding:8px 18px;border-radius:999px;background:rgba(255,255,255,.14);margin-bottom:10px}
.ord-amount span{font-size:12px;opacity:.9}
.ord-amount strong{font-size:22px;font-weight:800}
.ord-hero small{display:block;font-size:11px;opacity:.65}
.ord-steps{display:grid;grid-template-columns:repeat(4,1fr);padding:4px 6px 0}
.ord-step{position:relative;text-align:center;font-size:11px;color:var(--ink-tertiary);font-weight:600}
.ord-step i{display:block;width:12px;height:12px;border-radius:50%;margin:0 auto 6px;background:#d9d4c9;position:relative;z-index:1}
.ord-step::before{content:"";position:absolute;top:5px;left:-50%;width:100%;height:2px;background:#d9d4c9}
.ord-step:first-child::before{display:none}
.ord-step.is-done i,.ord-step.is-current i{background:var(--sage)}
.ord-step.is-done::before,.ord-step.is-current::before{background:var(--sage)}
.ord-step.is-current i{box-shadow:0 0 0 4px rgba(36,104,84,.18)}
.ord-step.is-done,.ord-step.is-current{color:var(--ink-primary)}
.ord-eta{text-align:center;font-size:11px;color:var(--ink-secondary);margin-top:-4px}
.ord-card{background:#fff;border-radius:16px;padding:14px;box-shadow:var(--shadow-sm)}
.ord-box-top{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.ord-box-photo{width:56px;height:72px;border-radius:10px;overflow:hidden;flex-shrink:0}
.ord-box-info h4{font-size:16px;margin-bottom:3px}
.ord-box-info p{font-size:12px;color:var(--ink-secondary)}
.ord-box-items{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:12px}
.ord-card .btn-unbox-spoiler{background:var(--accent-soft);color:var(--accent-dark);font-size:13px;padding:10px}
.ord-card .btn-unbox-spoiler:hover{background:var(--accent);color:#fff}
.ord-info{display:flex;flex-direction:column;gap:14px}
.ord-info-row{display:flex;gap:14px;align-items:flex-start}
.ord-info-row em{font-style:normal;font-size:12px;color:var(--ink-tertiary);width:32px;flex-shrink:0;padding-top:3px}
.ord-size-chips{display:flex;gap:8px}
.ord-size-chips span{padding:5px 12px;border-radius:999px;background:var(--bg-page);font-size:12px;color:var(--ink-secondary)}
.ord-size-chips b{color:var(--ink-primary);margin-left:2px}
.ord-addr strong{font-size:13px}
.ord-addr p{font-size:12px;color:var(--ink-secondary);margin-top:3px;line-height:1.5}
.ord-more{width:100%;flex:none;padding:13px}
.unbox-swatch-box{width:46px;height:56px;justify-content:flex-end;padding-bottom:3px}

/* ===== v15: 選購對象 ===== */
.who-bar{padding:0 14px 12px}
.who-seg{display:grid;grid-template-columns:1fr 1fr;background:#ebe7df;border-radius:999px;padding:3px;margin-bottom:10px}
.who-seg button{padding:8px 0;border-radius:999px;font-size:13px;font-weight:600;color:var(--ink-secondary);transition:all .15s}
.who-seg button.is-active{background:#fff;color:var(--ink-primary);box-shadow:var(--shadow-sm)}
.who-row{display:flex;align-items:center;gap:8px}
.who-label{font-size:12px;font-weight:600;color:var(--ink-secondary);flex-shrink:0}
.who-chips{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none}
.who-chips::-webkit-scrollbar{display:none}
.who-chip{padding:5px 11px;border-radius:999px;background:#fff;border:1px solid var(--border-light);font-size:12px;color:var(--ink-secondary);white-space:nowrap}
.who-chip.is-active{background:var(--ink-primary);border-color:var(--ink-primary);color:#fff;font-weight:600}
.who-sep{width:1px;height:16px;background:var(--border-strong);flex-shrink:0}
.who-tag{display:inline-block;margin-top:5px;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);font-size:11px;font-weight:600}

.who-row{align-items:flex-start}
.who-label{padding-top:6px}
.who-chips{flex-wrap:wrap;overflow:visible}
.who-sep{display:none}
.who-chip[data-who-gender="男"]{margin-right:100%}

.who-chip[data-who-gender="男"]{margin-right:0}
.who-row{margin-bottom:8px}
.who-label{width:32px}
.who-chips{flex:1}

.hub-link{display:inline-block;font-size:11px;color:var(--ink-tertiary);text-decoration:none;margin-bottom:2px}
.hub-link:hover{color:var(--accent)}
