:root {
  --primary: #07c160;     /* 微信绿 */
  --primary-d: #06ad56;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #8a8f99;
  --line: #ebedf0;
  --danger: #fa5151;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
}
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); }

/* 顶部 */
.header {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff; padding: 22px 18px 18px; text-align: center;
}
.header h1 { margin: 0; font-size: 19px; font-weight: 600; }
.header p { margin: 6px 0 0; font-size: 13px; opacity: .9; }

/* 卡片 */
.card { background: var(--card); border-radius: 12px; margin: 12px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.section-title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 4px 12px 0; }

/* 输入 */
.phone-box { display: flex; gap: 10px; margin-top: 4px; }
input[type=text], input[type=tel], input[type=password], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  font-size: 16px; background: #fafafa; outline: none;
}
input:focus, textarea:focus { border-color: var(--primary); background: #fff; }
textarea { min-height: 130px; resize: vertical; font-size: 14px; }

button {
  border: none; border-radius: 10px; padding: 12px 16px; font-size: 16px;
  background: var(--primary); color: #fff; cursor: pointer; font-weight: 500;
}
button.primary { width: 100%; }
button.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
button.danger { background: var(--danger); }
button:disabled { opacity: .6; }

/* 结果 */
.result-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.order {
  background: var(--card); border-radius: 12px; margin: 12px; padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.order .top { display: flex; justify-content: space-between; align-items: center; }
.order .who { font-weight: 600; font-size: 16px; }
.order .company { color: var(--primary); font-size: 13px; }
.order .row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.order .label { color: var(--muted); width: 56px; flex: none; }
.order .no { font-family: monospace; letter-spacing: .5px; word-break: break-all; }
.copy { font-size: 12px; color: var(--primary); border: 1px solid var(--primary); border-radius: 6px; padding: 2px 8px; background: #fff; cursor: pointer; flex: none; }

/* 轨迹时间线 */
.timeline { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.tl-item { display: flex; gap: 10px; position: relative; padding-bottom: 14px; }
.tl-item::before {
  content: ''; position: absolute; left: 4px; top: 18px; bottom: -4px; width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex: none; z-index: 1; box-shadow: 0 0 0 3px rgba(7,193,96,.15); }
.tl-body { flex: 1; }
.tl-time { font-size: 12px; color: var(--muted); }
.tl-text { font-size: 14px; }
.tl-latest .tl-text { font-weight: 600; color: var(--text); }
.official-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--primary); }

.toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 99; font-size: 14px;
}

/* 表 */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
th { color: var(--muted); font-weight: 500; }
.tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.tab { flex: 1; text-align: center; padding: 14px; color: var(--muted); cursor: pointer; }
.tab.active { color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.flex { display: flex; gap: 10px; }
.flex > * { flex: 1; }
.pwd-mask { -webkit-text-security: disc; }

/* 公告 */
.notice { margin-top: -8px; }
.notice-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.notice-title { font-size: 15px; font-weight: 600; }
.notice-more { font-size: 13px; color: var(--primary); cursor: pointer; }
.notice-body { padding-top: 10px; }
.notice-strong { margin: 0; font-size: 15px; font-weight: 600; }
.notice-text { margin: 4px 0 0; font-size: 14px; color: #666; }
.hint { text-align: center; font-size: 12px; color: #aaa; margin-top: 10px; }

/* 查询记录 */
.section-title { display: flex; align-items: center; justify-content: space-between; }
.h-clear { color: var(--muted); font-weight: 400; cursor: pointer; font-size: 12px; }
.rec { padding: 0; overflow: hidden; cursor: pointer; }
.rec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--line);
}
.rec-phone { font-weight: 600; letter-spacing: .5px; }
.rec-time { font-size: 12px; color: var(--muted); }
.rec-order {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid #f5f6f8;
}
.rec-order:first-of-type { border-top: none; }
.rec-order-left { min-width: 0; padding-right: 10px; }
.rec-company { font-size: 14px; }
.rec-no { font-family: monospace; font-size: 14px; color: #555; word-break: break-all; }
.rec-badge {
  flex: none; font-size: 12px; color: #e6a23c;
  border: 1px solid #f0c987; border-radius: 6px; padding: 1px 8px;
}
.rec-foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.rec-link { font-size: 13px; color: var(--primary); }
