/* ============================================================
 * track.css - 物流追踪页样式
 * ============================================================ */
:root {
  --theme: #ff4500;
  --theme-dark: #cc3700;
  --theme-soft: #fff1ec;
  --safe-green: #06c755;     /* LINE 官方绿 */
  --safe-green-dark: #04a44a;
}
body {
  background: #f5f5f5;
  max-width: 640px;
  margin: 0 auto;
  /* 给底部 LINE 兜底按钮预留空间 */
  padding-bottom: 84px;
}

.tk-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  display: flex; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}
.tk-header h1 { font-size: 16px; margin: 0 auto; font-weight: 700; }
.tk-header .back { position: absolute; left: 12px; font-size: 24px; color: #555; }

.tk-search {
  background: #fff;
  padding: 16px 14px;
  margin-bottom: 8px;
}
.tk-form label { font-size: 13px; color: #444; font-weight: 700; }
.tk-input-row {
  display: flex; gap: 8px;
  margin-top: 6px;
}
.tk-input-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
}
.tk-input-row input:focus { border-color: var(--theme); outline: none; }
.btn-query {
  flex: 0 0 84px;
  background: var(--theme);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}
.btn-query:active { background: var(--theme-dark); }
.tk-err {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff0ee;
  border: 1px solid var(--theme);
  border-radius: 4px;
  color: var(--theme);
  font-size: 12px;
}

/* 卡片 */
.tk-card {
  background: #fff;
  padding: 16px 14px;
  margin-bottom: 8px;
}
.tk-h {
  font-size: 15px;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--theme);
  line-height: 1.2;
  font-weight: 700;
}
.tk-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed #f0f0f0;
}
.tk-row:last-child { border-bottom: 0; }
.tk-row span { color: #888; }
.tk-row b { color: #222; font-weight: 700; }
.tk-row .tk-total { color: var(--theme); font-size: 18px; font-weight: 800; }

/* 物流状态 */
.tk-status .stx-await {
  background: var(--theme-soft);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-top: 8px;
}
.tk-status .stx-await .stx-ic { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.tk-status .stx-await .stx-msg {
  font-size: 14px;
  color: var(--theme);
  font-weight: 800;
  line-height: 1.6;
}
.tk-status .stx-await .stx-day {
  display: inline-block;
  background: var(--theme);
  color: #fff;
  border-radius: 999px;
  padding: 1px 10px;
  margin: 0 4px;
  font-size: 14px;
  font-weight: 800;
}

.tk-status .stx-shipped {
  background: #e8f7ee;
  border: 1px solid #cfe9da;
  border-radius: 8px;
  padding: 14px;
  margin-top: 8px;
}
.tk-status .stx-shipped-h { font-size: 13px; color: #666; margin-bottom: 8px; }
.tk-status .stx-num-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
}
.tk-status .stx-num {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  color: #222;
  letter-spacing: .5px;
  word-break: break-all;
}
.tk-status .stx-copy {
  flex: 0 0 auto;
  background: var(--safe-green);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}
.tk-status .stx-copy:active { background: var(--safe-green-dark); }
.tk-status .stx-track-btn {
  display: block;
  margin-top: 12px;
  background: var(--theme);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
}
.tk-status .stx-track-btn:active { background: var(--theme-dark); }
.tk-status .stx-track-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

/* 底部 LINE 兜底按钮 */
.tk-line-fab {
  position: fixed;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 616px;
  background: var(--safe-green);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(6,199,85,.32);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  z-index: 100;
}
.tk-line-fab:active { background: var(--safe-green-dark); }
.tk-line-icon { width: 28px; height: 28px; flex: 0 0 28px; }
