/* ============================================
   一路畅行 - 底部弹出面板
   ============================================ */

/* 遮罩 */
.st-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.st-overlay.show { opacity: 1; pointer-events: auto; }

/* 面板 */
.st-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 501;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.st-panel.show { transform: translateY(0); }
@media (min-width: 768px) {
  .st-panel { left: 50%; transform: translate(-50%, 100%); width: 480px; border-radius: 20px 20px 0 0; }
  .st-panel.show { transform: translate(-50%, 0); }
}

/* 头部 */
.st-panel-header {
  display: flex; align-items: center; padding: 10px 16px 8px;
  border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
  cursor: default;
}
.st-panel-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: #ddd; margin: 0 auto;
  position: absolute; left: 50%; transform: translateX(-50%); top: 8px;
}
.st-panel-title {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 700; color: #333;
  margin-top: 4px;
}
.st-panel-close {
  width: 30px; height: 30px; border: none; background: #f5f5f5;
  border-radius: 50%; font-size: 14px; color: #999; cursor: pointer;
  margin-top: 4px;
}
.st-service-btn {
  background: #27ae60; color: #fff; border: none; border-radius: 14px;
  font-size: 12px; padding: 4px 12px; cursor: pointer; white-space: nowrap;
  margin-top: 4px;
  position: relative;
}
/* 客服按钮角标 */
.st-service-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; line-height: 18px;
  border-radius: 9px; background: #e74c3c; color: #fff;
  font-size: 10px; font-weight: 700; text-align: center;
  padding: 0 5px; box-shadow: 0 1px 3px rgba(231,76,60,0.4);
  pointer-events: none;
}

/* 内容区 */
.st-panel-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 0 20px;
}

/* ── Hero 标题 ── */
.st-hero {
  text-align: center; padding: 16px 16px 8px;
  font-size: 15px; font-weight: 600; color: #999;
}

/* ── 国家Chip网格 ── */
.st-chip-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px 16px 12px;
}
.st-chip {
  padding: 8px 14px; border-radius: 20px;
  background: #f5f5f5; font-size: 13px; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.15s;
  display: flex; align-items: center; gap: 4px;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.st-chip:hover { background: #fff0eb; }
.st-chip.selected {
  background: #FFF5F0; border-color: #FF6B35; color: #FF6B35; font-weight: 600;
}
.st-chip-flag { font-size: 16px; }

/* ── 分区 ── */
.st-section { padding: 0 16px; border-top: 1px solid #f0f0f0; }
.st-section-title {
  padding: 12px 0 8px;
  font-size: 14px; font-weight: 700; color: #333;
}

/* ── 产品列表 ── */
.st-product-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; }
.st-product-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px; border-radius: 12px;
  cursor: pointer; transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.st-product-item:hover { background: #fafafa; }
.st-product-item:active { background: #f0f0f0; }
.st-product-icon { font-size: 28px; flex-shrink: 0; width: 40px; text-align: center; }
.st-product-info { flex: 1; min-width: 0; }
.st-product-name { display: block; font-size: 15px; font-weight: 500; color: #333; }
.st-product-price { display: block; font-size: 12px; color: #999; margin-top: 2px; }
.st-product-arrow { font-size: 20px; color: #ccc; }

/* ── 返回行 ── */
.st-back-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid #f0f0f0;
}
.st-back-btn {
  border: 1px solid #ddd; background: #fff; color: #666;
  padding: 6px 12px; border-radius: 18px; font-size: 13px; cursor: pointer;
}
.st-step-label { font-size: 14px; font-weight: 500; color: #333; }

/* ── 卡片 ── */
.st-card {
  background: #fff; margin: 10px 16px;
  border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.st-card-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 10px; }
.st-upload-hint { font-size: 12px; font-weight: 400; color: #999; margin-left: 4px; }

/* ── 上传区 ── */
.st-upload {
  border: 2px dashed #e0e0e0; border-radius: 12px;
  padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.st-upload:hover { border-color: #FF6B35; background: #FFF5F0; }
.st-upload-icon { font-size: 28px; }
.st-upload-text { font-size: 13px; color: #999; margin-top: 4px; }
.st-upload-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.st-upload-preview img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.st-upload-status { font-size: 12px; margin-top: 4px; min-height: 14px; }

/* ── AI状态 ── */
.st-ai-status {
  margin: 4px 16px; padding: 8px; text-align: center;
  font-size: 13px; color: #FF6B35; display: none;
}

/* ── 表单 ── */
.st-form-group { margin-bottom: 10px; }
.st-form-label { display: block; font-size: 12px; color: #888; margin-bottom: 3px; }
.st-req { color: #f44336; }
.st-form-input {
  width: 100%; padding: 10px 12px; border: 1.5px solid #e8e8e8;
  border-radius: 10px; font-size: 15px; background: #fafafa;
  transition: border 0.2s; box-sizing: border-box;
}
.st-form-input:focus { outline: none; border-color: #FF6B35; background: #fff; }

/* ── 提交按钮 ── */
.st-submit-btn {
  display: block; width: calc(100% - 32px); margin: 16px 16px;
  padding: 14px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  text-align: center;
}
.st-submit-btn:active { opacity: 0.85; }
.st-ghost-btn {
  display: block; width: calc(100% - 32px); margin: 8px 16px;
  padding: 12px; border: none; border-radius: 12px;
  background: #f5f5f5; color: #999; font-size: 15px; cursor: pointer;
  text-align: center;
}

/* ── 底部按钮 ── */
.st-bottom-btn {
  padding: 14px 16px; text-align: center; font-size: 14px;
  color: #999; cursor: pointer; border-top: 1px solid #f0f0f0;
}

/* ── 成功页 ── */
.st-success { text-align: center; padding: 30px 20px 20px; }
.st-success-icon { font-size: 52px; margin-bottom: 10px; }
.st-success-title { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 4px; }
.st-success-desc { font-size: 14px; color: #999; margin-bottom: 12px; }
.st-success-detail { font-size: 14px; color: #666; margin-bottom: 20px; }

/* ── 订单历史 ── */
.st-order-item {
  padding: 12px 16px; border-bottom: 1px solid #f5f5f5;
}
.st-order-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.st-order-id { font-size: 11px; color: #bbb; font-family: monospace; }
.st-order-st {
  font-size: 10px; padding: 2px 7px; border-radius: 8px; font-weight: 600;
}
.st-order-st-0 { background: #FFF8E1; color: #F57F17; }
.st-order-st-1 { background: #E3F2FD; color: #1976D2; }
.st-order-st-2 { background: #E8F5E9; color: #2E7D32; }
.st-order-st-3 { background: #f0f0f0; color: #999; }
.st-order-info { font-size: 14px; color: #555; }
.st-order-time { font-size: 11px; color: #bbb; margin-top: 2px; }

/* ── 同行人 ── */
.st-fellow-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid #f5f5f5;
}
.st-fellow-info { flex: 1; font-size: 12px; color: #888; line-height: 1.6; }
.st-fellow-del {
  width: 24px; height: 24px; border: none; background: #f5f5f5;
  border-radius: 50%; font-size: 12px; color: #999; cursor: pointer;
  flex-shrink: 0;
}
.st-add-fellow {
  display: block; width: 100%; padding: 10px; margin-top: 8px;
  border: 1.5px dashed #ddd; border-radius: 10px; background: transparent;
  font-size: 14px; color: var(--primary); cursor: pointer;
  text-align: center;
}
.st-add-fellow:hover { border-color: var(--primary); background: #FFF5F0; }

/* ── 加载/空 ── */
.st-centered { text-align: center; padding: 28px; color: #999; font-size: 14px; }
.st-empty { text-align: center; padding: 40px 20px; color: #bbb; font-size: 14px; }
