/* ===== 极简模式 + 模式切换（2026-09-09 新增） ===== */

/* 顶栏模式切换 */
.topbar { padding-bottom: 10px; }
.topbar-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.topbar-row .brand { font-size: 14px; }
.mode-switch {
  margin-top: 12px; display: inline-flex; background: #eef4f0;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px;
  gap: 2px;
}
.mode-btn {
  border: none; background: transparent; color: var(--muted);
  padding: 8px 20px; border-radius: 999px; font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.mode-btn.active { background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(20,84,40,.25); }

/* 极简模式布局 */
.simple-pane { max-width: 620px; }
.simple-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.simple-title { font-size: 18px; font-weight: 800; color: var(--green-dark); }
.simple-title span { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.simple-reset { font-size: 14px; padding: 8px 14px; }

.simple-step { border-left: 4px solid var(--green); }
.simple-step-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--green);
  color: #fff; font-size: 14px; flex: 0 0 auto;
}
.step-tip { font-size: 12px; font-weight: 500; color: var(--muted); }

.simple-row { display: flex; gap: 8px; }
.simple-input {
  flex: 1; min-width: 0; padding: 14px 14px; font-size: 17px;
  border: 1.5px solid var(--border); border-radius: 10px;
}
.simple-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.simple-input.big { font-size: 18px; }
.simple-scan { white-space: nowrap; font-size: 15px; }

.simple-tree-info, .simple-addr-parsed {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; line-height: 1.6;
}
.simple-tree-info { background: var(--green-light); color: var(--green-dark); }
.simple-tree-info.empty, .simple-addr-parsed.empty { background: #f6f9f7; color: var(--muted); font-size: 13px; }
.simple-tree-info .ti-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.simple-tree-info .ti-name { font-weight: 800; font-size: 15px; }
.simple-tree-info .ti-price { font-size: 15px; font-weight: 800; color: var(--red); }
.simple-addr-parsed { background: var(--green-light); color: var(--green-dark); }
.simple-addr-parsed .ap-region { font-weight: 800; }

.simple-addr-manual { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.simple-addr-manual select, .simple-addr-manual input {
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
  min-width: 0; flex: 1 1 auto;
}
.simple-addr-manual select { max-width: 150px; }

/* 物流方式选择卡片 */
.simple-modes { display: flex; gap: 10px; flex-direction: column; }
.simple-mode-card {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; background: #fff; position: relative;
}
.simple-mode-card:hover { border-color: var(--green); }
.simple-mode-card input { width: 20px; height: 20px; accent-color: var(--green); flex: 0 0 auto; }
.simple-mode-card .mode-name { font-weight: 800; font-size: 17px; color: var(--text); }
.simple-mode-card .mode-desc { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.simple-mode-card .wood-tag {
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--amber);
  border: 1px solid var(--amber); padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: 2px;
}
.simple-mode-card.on { border-color: var(--green); background: var(--green-light); box-shadow: 0 0 0 2px rgba(31,122,61,.12); }
.simple-mode-card.off { opacity: .45; pointer-events: none; }
.simple-warn {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px;
  background: #fdf3e7; border: 1px solid #f1d3b0; color: var(--amber); font-size: 13px; font-weight: 600;
}

/* 大字结果 */
.simple-result { border-color: #cfe4d6; }
.simple-result-empty { text-align: center; color: var(--muted); font-size: 15px; padding: 26px 10px; }
.big-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 10px; }
.big-item {
  background: #f6f9f7; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 10px; text-align: center;
}
.big-item.accent { background: linear-gradient(160deg, #145428, #1f7a3d 70%); border-color: var(--green-dark); }
.big-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.big-item.accent .big-label { color: #cfe4d6; }
.big-sub { display: block; font-size: 11px; color: #9fc3ad; margin-top: 2px; }
.big-item.accent .big-sub { color: #bcdcc8; }
.big-value { font-size: 22px; font-weight: 900; word-break: break-all; }
.big-value.green { color: var(--green); }
.big-item.accent .big-value { color: #fff; }
.big-value.gold { color: #ffe3a3; font-size: 24px; }
.big-sub-line { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.6; text-align: center; }
.simple-result-actions { margin-top: 14px; display: flex; justify-content: center; }
.simple-result-actions button { font-size: 17px; padding: 13px 34px; }
.copy-tip { text-align: center; }

/* 历史记录 */
.simple-history-title { font-size: 15px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }
.simple-history-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; margin-bottom: 8px;
}
.simple-history-item:hover { border-color: var(--green); background: var(--green-light); }
.simple-history-item .h-main { min-width: 0; }
.simple-history-item .h-sku { font-weight: 800; font-size: 14px; }
.simple-history-item .h-info { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.simple-history-item .h-price { font-weight: 800; color: var(--green); font-size: 14px; flex: 0 0 auto; }

@media (max-width: 640px) {
  .big-grid { grid-template-columns: 1fr 1fr; }
  .big-item.accent { grid-column: 1 / -1; }
  .big-value { font-size: 20px; }
  .big-value.gold { font-size: 26px; }
  .mode-btn { padding: 8px 14px; font-size: 14px; }
  .simple-row { flex-wrap: wrap; }
  .simple-row .simple-input { flex: 1 1 100%; }
  .simple-scan { flex: 0 0 auto; }
}

/* 悬浮窗小提示 */
.simple-tip {
  text-align: center; font-size: 12px; color: var(--muted);
  padding: 2px 0 12px; line-height: 1.6;
}


/* ===== 2026-09-09 手机端适配增强（顶栏单行 + 物流卡片上下结构完整显示） ===== */
.topbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.topbar-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar-title .brand { font-size: 15px; white-space: nowrap; }
.topbar-title h1 { font-size: 20px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.mode-switch { margin: 0 0 0 auto; flex: 0 0 auto; }
.sub { margin-top: 6px; }
.topbar-row + .sub { display: block; }

.simple-mode-card { align-items: center; }
.simple-mode-card input { width: 22px; height: 22px; flex: 0 0 auto; }
.simple-mode-card .mode-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.simple-mode-card .mode-name { font-size: 16px; line-height: 1.4; white-space: normal; }
.simple-mode-card .mode-desc { display: block; font-size: 13px; line-height: 1.5; white-space: normal; word-break: break-word; }
.simple-mode-card .wood-tag { white-space: nowrap; vertical-align: 1px; }

@media (max-width: 640px) {
  .topbar { padding: 8px 10px; }
  .topbar-title .brand { font-size: 13px; }
  .topbar-title h1 { font-size: 17px; }
  .mode-btn { min-height: 44px; padding: 10px 12px; font-size: 13.5px; }
  .mode-switch { gap: 2px; padding: 3px; }
  .simple-head { margin-bottom: 10px; }
  .simple-title { font-size: 17px; }
  .simple-title span { font-size: 12px; margin-left: 4px; }
  .simple-reset { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .simple-input { min-height: 48px; font-size: 16px; padding: 12px 12px; }
  .simple-scan { min-height: 44px; font-size: 14px; }
  .simple-mode-card { padding: 12px 12px; }
  .simple-mode-card .mode-name { font-size: 15.5px; }
  .simple-mode-card .mode-desc { font-size: 12.5px; }
  .big-value { font-size: 20px; }
  .big-value.gold { font-size: 24px; }
  .simple-addr-manual select, .simple-addr-manual input { min-height: 44px; font-size: 14px; }
  .simple-step-title { font-size: 15px; }
  .step-tip { font-size: 11.5px; }
  .simple-result-empty { font-size: 14px; }
  .big-label { font-size: 12px; }
  .simple-result-actions button { min-height: 48px; }
}


/* ===== 2026-09-09 第二轮适配（顶栏垂直居中+标题竖条+极简SKU下拉） ===== */
.topbar-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-left { min-width: 0; flex: 1 1 auto; }
.topbar-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-tree { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand-tree svg { display: block; width: 22px; height: 22px; }
.topbar-title .brand { font-size: 16px; white-space: nowrap; }
.topbar-title h1 { font-size: 20px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { display: block; margin-top: 3px; font-size: 13px; }
.mode-switch { flex: 0 0 auto; margin: 0; }

/* 极简选树组合框：输入框+▾+下拉 */
.simple-row { align-items: stretch; }
.simple-sku-combo { position: relative; flex: 1; min-width: 0; }
.simple-sku-combo .simple-input { border-radius: 10px 0 0 10px; border-right: none; }
.simple-sku-combo .combo-arrow { border-radius: 0 10px 10px 0; }
.simple-sku-combo .suggest { top: calc(100% + 6px); }
.simple-scan { align-self: flex-start; }

@media (max-width: 640px) {
  .topbar { padding: 12px 12px 10px; }
  .topbar-title .brand { font-size: 14px; }
  .topbar-title h1 { font-size: 17px; }
  .brand-tree svg { width: 20px; height: 20px; }
  .sub { font-size: 11.5px; margin-top: 2px; }
  .mode-switch { gap: 2px; padding: 3px; }
  .simple-row { flex-wrap: wrap; }
  .simple-sku-combo { flex: 1 1 100%; }
  .simple-sku-combo .simple-input { flex: 1 1 auto; width: auto; }
  .simple-scan { flex: 0 0 auto; margin-left: auto; margin-top: 8px; }
}
