:root {
  --bg: #f5f6f8; --card: #fff; --ink: #1f2329; --muted: #646a73; --line: #e4e6eb;
  --brand: #1f6f5c; --brand-ink: #fff; --danger: #c9353f; --soft: #eef5f3;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
header.bar { background: var(--brand); color: var(--brand-ink); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
header.bar h1 { font-size: 17px; margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
header.bar h1 img { height: 26px; border-radius: 6px; background: #fff; }
header.bar small { opacity: .85; font-size: 12px; }
/* 手机上标题和账号信息分两行，不挤在一起 */
@media (max-width: 600px) { header.bar { flex-direction: column; align-items: flex-start; gap: 4px; } }
/* 电脑上和手机一样居中成一列，不铺满整个屏幕 */
@media (min-width: 800px) {
  header.bar, nav.tabs { padding-left: calc((100% - 760px) / 2 + 16px); padding-right: calc((100% - 760px) / 2 + 16px); }
}
nav.tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
nav.tabs button { flex: 1; border: 0; background: none; padding: 12px 4px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
nav.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
main { padding: 12px 16px 40px; max-width: 760px; margin: 0 auto; }
.card { background: var(--card); border-radius: 10px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); }
.card h2 { font-size: 15px; margin: 0 0 10px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, textarea, select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
button.primary, a.primary { display: inline-block; width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: 16px; text-align: center; text-decoration: none; }
button.ghost { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
button.danger { color: var(--danger); }
.hint { font-size: 13px; color: var(--muted); }
.ok { background: var(--soft); color: var(--brand); padding: 10px 12px; border-radius: 8px; margin-top: 10px; font-weight: 600; }
.error { background: #fdecee; color: var(--danger); padding: 10px 12px; border-radius: 8px; margin-top: 10px; }
pre.result { white-space: pre-wrap; background: var(--soft); padding: 12px; border-radius: 8px; font-family: inherit; margin: 10px 0 0; }
.plan { border-top: 1px solid var(--line); padding: 10px 0; }
.plan:first-child { border-top: 0; }
.plan b { font-size: 15px; }
.plan .price { display: flex; gap: 16px; margin-top: 4px; }
.plan .price span { font-size: 13px; color: var(--muted); }
.plan .price strong { font-size: 18px; color: var(--ink); }
.order { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 10px 0; }
.order:first-child { border-top: 0; }
img.waybill { width: 100%; border: 1px solid var(--line); border-radius: 6px; margin-top: 10px; }
.hidden { display: none; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--soft); color: var(--brand); }
.tag.off { background: #f1f1f1; color: var(--muted); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login .card { width: 100%; max-width: 380px; padding: 28px 24px; }
.login img { max-height: 72px; max-width: 220px; display: block; margin: 0 auto 12px; }
.login h1 { text-align: center; font-size: 20px; margin: 0 0 16px; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-main { min-width: 0; }
button.go { flex: none; border: 0; border-radius: 8px; background: #1aad19; color: #fff; font-size: 15px; font-weight: 600; padding: 10px 16px; }
button.go:active { background: #129611; }
textarea.paste { min-height: 60px; }
button[data-parse] { margin-top: 6px; }
nav.subtabs { display: flex; gap: 8px; padding: 0 0 12px; overflow-x: auto; }
nav.subtabs button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 16px; padding: 6px 14px; font-size: 14px; }
nav.subtabs button.on { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chips button.on { border-color: var(--brand); color: var(--brand); }
h3.date { font-size: 13px; color: var(--muted); margin: 14px 0 4px; font-weight: 600; }
h3.date:first-child { margin-top: 0; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.detail { margin-top: 8px; padding: 8px 10px; background: var(--soft); border-radius: 6px; font-size: 14px; }
.detail h4 { margin: 6px 0 4px; font-size: 13px; }
ul.routes { margin: 0; padding-left: 18px; }
details.notes { margin-top: 6px; }
details.notes textarea { min-height: 0; margin: 6px 0 4px; }
details.notes input[type=file] { font-size: 13px; margin-bottom: 4px; }
.note { border-left: 2px solid var(--line); padding: 2px 0 2px 8px; margin: 6px 0; font-size: 14px; white-space: normal; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
input.search { margin: 0 0 10px; }
.seg { display: flex; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: var(--card); padding: 8px; color: var(--muted); font-size: 14px; }
.seg button.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.st-red { --st: #d93a3a; } .st-yellow { --st: #d99a00; } .st-blue { --st: #2f6fd6; } .st-green { --st: #2e9b55; }
.tag.st-red, .tag.st-yellow, .tag.st-blue, .tag.st-green { background: var(--st); color: #fff; }
.order.st-line-red { border-left: 4px solid #d93a3a; padding-left: 8px; }
.order.st-line-yellow { border-left: 4px solid #d99a00; padding-left: 8px; }
.order.st-line-blue { border-left: 4px solid #2f6fd6; padding-left: 8px; }
.order.st-line-green { border-left: 4px solid #2e9b55; padding-left: 8px; }
button.dot { border: 1px solid var(--st); color: var(--st); background: none; border-radius: 12px; padding: 2px 8px; font-size: 12px; margin: 2px 2px 2px 0; }
button.dot.on { background: var(--st); color: #fff; font-weight: 600; }
button.link { border: 0; background: none; padding: 0 4px; font-size: 12px; color: var(--muted); }
button.link.danger { color: var(--danger); }
.warn { margin-top: 6px; padding: 6px 8px; background: #fff4e5; border-radius: 6px; font-size: 13px; white-space: normal; }
.warn button { margin: 4px 6px 0 0; padding: 3px 10px; font-size: 13px; }
.panel { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); white-space: normal; }
.panel .primary { margin-top: 8px; }
.panel .ghost { width: 100%; margin-top: 6px; }
.svc { margin-top: 4px; }

/* 登录页：左侧深绿品牌区，右侧米白底 + 白色登录卡片；手机上品牌区收成顶部横幅 */
.lg-body { background: #f4f3ee; }
.lg { min-height: 100vh; display: flex; }
.lg-side { flex: 0 0 56%; background: #1b3d32; color: #e9efe9; padding: 72px 8% 40px; display: flex; flex-direction: column; }
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-brand img { max-height: 40px; max-width: 160px; border-radius: 8px; }
.lg-brand b { font-size: 19px; letter-spacing: 2px; display: block; }
.lg-brand small { font-size: 12px; color: #9fb8a9; letter-spacing: 1px; }
.lg-mark { width: 38px; height: 38px; border-radius: 9px; background: #c9b27c; color: #1b3d32; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.lg-eyebrow { font-size: 11px; letter-spacing: 3px; color: #c9b27c; margin: 56px 0 18px; }
.lg-eyebrow.dark { color: #8a8f87; margin: 0 0 14px; }
.lg-title { font-size: 44px; line-height: 1.45; font-weight: 400; margin: 0 0 18px; color: #f3f1e8; }
.lg-title em { font-style: normal; color: #c9b27c; }
.lg-desc { font-size: 14px; line-height: 1.9; color: #b7c8bd; margin: 0; }
.lg-art { width: 100%; max-width: 460px; margin: 36px 0 28px; }
.lg-feats { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; gap: 26px; font-size: 13px; color: #b7c8bd; }
.lg-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.lg-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid #ecebe4; border-radius: 16px; padding: 44px 36px 28px; box-shadow: 0 20px 50px rgba(27,61,50,.08); }
.lg-card h1 { font-size: 26px; margin: 0 0 8px; color: #1f2a24; }
.lg-sub { font-size: 13px; color: #7a8079; margin: 0 0 26px; }
.lg-card label { font-size: 13px; color: #4a524c; margin-top: 16px; }
.lg-card input { background: #eef3fb; border: 1px solid #dfe5ee; padding: 13px 12px; border-radius: 8px; }
.lg-btn { width: 100%; margin-top: 26px; background: #23624d; color: #fff; border: 0; border-radius: 8px; padding: 14px; font-size: 15px; letter-spacing: 2px; cursor: pointer; }
.lg-btn:hover { background: #1d523f; }
.lg-foot { text-align: center; font-size: 12px; color: #8a8f87; border-top: 1px solid #f0efe9; margin: 24px 0 0; padding-top: 18px; }
.lg-card .error { margin-top: 12px; }
@media (max-width: 860px) {
  .lg { flex-direction: column; }
  .lg-side { flex: none; padding: 28px 20px 26px; }
  .lg-eyebrow { margin: 22px 0 10px; }
  .lg-title { font-size: 26px; margin-bottom: 8px; }
  .lg-desc br, .lg-art, .lg-feats { display: none; }
  .lg-desc { font-size: 13px; line-height: 1.7; }
  .lg-main { align-items: flex-start; padding: 20px 16px 32px; }
  .lg-card { padding: 28px 22px 20px; }
}

/* 后台经营概览 */
.ov { margin-bottom: 16px; }
.ov-head h2 { font-size: 20px; margin: 4px 0 2px; }
.ov-bar { background: #1b3d32; color: #e9efe9; border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; font-size: 13px; }
.ov-bar input { width: auto; padding: 6px 8px; font-size: 13px; border: 0; }
.ov-bar button { background: #c9b27c; color: #1b3d32; border: 0; border-radius: 6px; padding: 7px 14px; font-weight: 600; cursor: pointer; }
.ov-bar a { color: #cfe0d6; text-decoration: none; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); }
.ov-bar a.on { background: rgba(255,255,255,.14); color: #fff; }
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.ov-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ov-kpi span { font-size: 12px; color: var(--muted); }
.ov-kpi b { font-size: 22px; color: #1f2a24; }
.ov-kpi small { font-size: 12px; color: #8a8f87; }
.ov-hero { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ov-big, .ov-card { border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ov-big { background: #2c5a46; color: #fff; align-items: center; justify-content: center; text-align: center; }
.ov-big span { font-size: 13px; color: #cfe0d6; }
.ov-big b { font-size: 34px; }
.ov-card span { font-size: 13px; }
.ov-card b { font-size: 26px; }
.ov-card small { font-size: 12px; opacity: .8; }
.ov-card.green { background: #2c5a46; color: #fff; }
.ov-card.cream { background: #f3ecdb; color: #7a5a22; border: 1px solid #ebe1c8; }
@media (max-width: 760px) { .ov-grid, .ov-hero { grid-template-columns: 1fr 1fr; } .ov-big { grid-column: span 2; } }

/* 整体换成经营概况的风格：深绿 + 金色点缀，米白底，卡片带阴影 */
:root { --bg: #f4f3ee; --brand: #23624d; --soft: #eef4f0; --line: #e7e6df; --gold: #c9b27c; --deep: #1b3d32; }
header.bar { background: var(--deep); }
header.bar h1 { letter-spacing: 1px; }
header.bar small a { color: var(--gold) !important; }
nav.tabs { box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
nav.tabs button { font-size: 15px; padding: 13px 4px 11px; border-bottom-width: 3px; }
nav.tabs button.on { color: var(--deep); border-bottom-color: var(--gold); }
.card { border-radius: 12px; border-color: #ecebe4; box-shadow: 0 4px 16px rgba(27,61,50,.05); padding: 16px; }
.card h2 { font-size: 16px; padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.2; margin-bottom: 12px; }
input, textarea, select { background: #f8f9f6; border-color: #e3e5df; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); background: #fff; }
button.primary, a.primary { background: var(--brand); border-radius: 10px; letter-spacing: 2px; font-weight: 600; box-shadow: 0 6px 14px rgba(35,98,77,.18); }
button.primary:active { background: #1d523f; }
button.ghost { border-color: #dfe3dc; border-radius: 8px; color: var(--deep); background: #fff; }
button.ghost:active { background: var(--soft); }
button.ghost.danger { color: var(--danger); border-color: #f1d5d8; }
nav.subtabs button { border-radius: 18px; padding: 7px 16px; border-color: #e0e2db; }
nav.subtabs button.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chips button { padding: 16px 6px; border-radius: 10px; background: linear-gradient(180deg, #f8faf7, #eef3ef); border: 1px solid #e0e6df; color: var(--deep); font-weight: 600; font-size: 14px; }
.chips button.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.tag { background: #e8f1ec; color: var(--brand); }
.seg { border-color: #e0e2db; }
.seg button.on { background: var(--deep) !important; color: #fff !important; }
.ok { background: #e8f1ec; border-left: 3px solid var(--brand); }
.order { padding: 12px 0; }
.detail { background: #f6f8f4; border: 1px solid #edf0ea; }
h3.date { color: var(--deep); }
#tab-home .ov-head h2 { margin-top: 2px; }
.ov-quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ov-quick a { cursor: pointer; }
@media (max-width: 600px) {
  .ov-bar { padding: 10px; }
  .ov-bar input { flex: 1; min-width: 0; }
  .ov-kpi b { font-size: 19px; }
  .ov-card b { font-size: 22px; }
}
.suggest-box { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 280px; overflow-y: auto; }
.suggest li { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.suggest li:last-child { border-bottom: 0; }
.suggest li b { display: block; font-weight: 600; }
.suggest li small { display: block; color: #888; font-size: 12px; }
.suggest li:active, .suggest li:hover { background: #f4f8f5; }
.tiers-table { width: auto; margin: 4px 0 8px; }
.tiers-table td { padding: 3px 6px; white-space: nowrap; }
.tiers-table input { width: 90px; }

.plan-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.carrier-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 7px; font-size: 13px; font-weight: 700; letter-spacing: -.3px; flex: none; }
.carrier-badge.long { font-size: 10px; }
