/* ===== 补充样式（API 版新增组件）===== */

/* 数量步进器 */
.qty-stepper { display:inline-flex; align-items:center; gap:0; border:2px solid var(--line); border-radius:10px; overflow:hidden; }
.qty-stepper button { width:36px; height:36px; border:none; background:var(--cream); font-size:18px; cursor:pointer; color:var(--ink); }
.qty-stepper span { padding:0 16px; font-size:16px; font-weight:700; min-width:30px; text-align:center; }

/* 订单进度条 */
.order-steps { display:flex; align-items:center; padding:16px 0; }
.order-steps .step { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.order-steps .step-dot { width:28px; height:28px; border-radius:50%; background:var(--line); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.order-steps .step.done .step-dot { background:var(--red); }
.order-steps .step-label { font-size:11px; color:var(--sub); margin-top:6px; white-space:nowrap; }
.order-steps .step.done .step-label { color:var(--red); font-weight:600; }
.order-steps .step-line { flex:1; height:2px; background:var(--line); margin:0 4px; margin-bottom:20px; }
.order-steps .step-line.done { background:var(--red); }

/* 小标题 */
.section-sub { font-size:14px; font-weight:700; color:var(--ink); margin:14px 0 8px; padding-left:2px; }

/* 地址卡片 */
.addr-card { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:10px; }

/* 聊天列表项 */
.chat-item { display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line); cursor:pointer; }
.chat-item:active { background:var(--cream); }
.chat-avatar { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; font-weight:700; flex-shrink:0; }
.chat-info { flex:1; min-width:0; }
.chat-name { font-size:15px; font-weight:600; }
.chat-last { font-size:13px; color:var(--sub); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-badge { display:inline-block; background:var(--red); color:#fff; font-size:11px; min-width:18px; height:18px; line-height:18px; border-radius:9px; text-align:center; padding:0 5px; margin-top:4px; }

/* 聊天消息 */
.msg { display:flex; flex-direction:column; margin:8px 18px; }
.msg.me { align-items:flex-end; }
.msg.other { align-items:flex-start; }
.msg-bubble { max-width:75%; padding:10px 14px; border-radius:14px; font-size:14px; line-height:1.5; word-break:break-word; }
.msg.me .msg-bubble { background:var(--red); color:#fff; border-bottom-right-radius:4px; }
.msg.other .msg-bubble { background:var(--paper); color:var(--ink); border:1px solid var(--line); border-bottom-left-radius:4px; }
.msg-time { font-size:11px; color:var(--sub); margin-top:4px; }

/* 快捷回复 */
.quick-chip { display:inline-block; padding:6px 12px; background:var(--gold-soft); color:var(--ink); border:1px solid var(--gold); border-radius:20px; font-size:12px; margin:4px 4px 0 0; cursor:pointer; }
.quick-chip:active { transform:scale(0.96); }

/* 需求卡片 */
.demand-card { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:10px; }
.demand-title { font-size:15px; font-weight:700; }
.demand-meta { font-size:13px; color:var(--sub); margin-top:6px; }
.demand-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.demand-tags .tag { font-size:11px; padding:3px 8px; background:var(--red-soft); color:var(--red); border-radius:10px; }
.demand-footer { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }

/* 迷你按钮 */
.btn-mini { padding:6px 14px; background:var(--red); color:#fff; border:none; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; }
.btn-mini:active { transform:scale(0.96); }
.btn-mini-danger { padding:6px 14px; background:transparent; color:var(--sub); border:1px solid var(--line); border-radius:8px; font-size:13px; cursor:pointer; }

/* 手艺人故事详情 hero */
.story-hero { border-radius:16px; padding:28px 20px; text-align:center; color:#fff; margin-bottom:14px; }
.story-hero-avatar { width:72px; height:72px; border-radius:50%; background:rgba(255,255,255,0.2); margin:0 auto 12px; display:flex; align-items:center; justify-content:center; font-size:32px; font-weight:800; }
.story-hero-name { font-family:var(--font-title); font-size:22px; font-weight:800; }
.story-hero-title { font-size:13px; opacity:0.9; margin-top:6px; }
.story-hero-meta { font-size:12px; opacity:0.7; margin-top:8px; }

/* 商品详情中的手艺人迷你卡片 */
.artisan-mini { display:flex; align-items:center; gap:10px; padding:12px; background:var(--cream); border-radius:12px; cursor:pointer; }
.story-avatar.small { width:40px; height:40px; font-size:18px; }

/* 商品详情 */
.detail-image { width:100%; aspect-ratio:4/3; border-radius:14px; margin-bottom:14px; }
.detail-info { background:var(--paper); border-radius:14px; padding:16px; }
.detail-price { font-size:28px; font-weight:800; color:var(--red); }
.detail-name { font-size:17px; font-weight:700; margin-top:6px; }
.detail-meta { font-size:13px; color:var(--sub); margin-top:6px; }
.detail-desc { font-size:14px; color:#5A5049; line-height:1.7; }

/* 原价划线 */
.price-original { font-size:13px; color:var(--sub); text-decoration:line-through; margin-left:6px; font-weight:400; }

/* 空状态 */
.empty { text-align:center; padding:40px 20px; }
.empty-icon { font-size:42px; margin-bottom:12px; }
.empty-title { font-size:16px; color:var(--sub); font-weight:600; }
.empty-desc { font-size:13px; color:var(--sub); margin-top:6px; }

/* 购买弹窗缩略图 */
.buy-modal-thumb { width:64px; height:64px; border-radius:10px; flex-shrink:0; }

/* 照片网格项 - 不覆盖原始 .photo-item 的尺寸 */
.photo-remove { position:absolute; top:-6px; right:-6px; width:22px; height:22px; border-radius:50%; background:var(--red); color:#fff; border:none; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:1; }

/* 缝线分割线 */
.stitch-divider { height:1px; background:repeating-linear-gradient(90deg, var(--line) 0, var(--line) 4px, transparent 4px, transparent 8px); margin:14px 0; }

/* 订单卡片 */
.order-card { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:10px; cursor:pointer; }
.order-header { display:flex; justify-content:space-between; align-items:center; }
