:root {
  --bg: #F4F0EA;
  --orange: #E85D2C;
  --orange-deep: #D24C1E;
  --text: #2A2420;
  --muted: #8B837C;
  --line: #EFE8E0;
  --card: #fff;
  --shadow: 0 10px 28px rgba(90, 46, 20, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh; background: #1a1a1a; display: flex; justify-content: center;
  padding: 16px 8px 40px; font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text); -webkit-font-smoothing: antialiased;
}
.phone {
  width: 375px; max-width: 100%; min-height: 720px; background: var(--bg);
  border-radius: 28px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45);
  position: relative; padding-bottom: 92px;
}
.phone.plain { padding-bottom: 32px; }
@media (max-width: 767px) {
  html, body { background: var(--bg) !important; padding: 0 !important; }
  body { display: block !important; }
  .phone {
    width: 100% !important; max-width: 100% !important; min-height: 100vh;
    border-radius: 0 !important; box-shadow: none !important;
  }
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 8px; background: transparent;
}
.nav a { color: var(--text); text-decoration: none; font-size: 22px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 12px; }
.nav a:active { background: rgba(255,255,255,.6); }
.nav h1 { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.nav .sub { font-size: 13px; color: var(--orange); text-decoration: none; font-weight: 650; width: 72px; text-align: right; padding-right: 6px; }

.mine-top {
  position: relative; padding: 20px 16px 8px; overflow: hidden;
}
.mine-glow {
  position: absolute; right: -48px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(248,176,120,.55) 0%, rgba(244,240,234,0) 70%);
  pointer-events: none;
}
.mine-kicker {
  position: relative; font-size: 12px; color: #A08A7A; letter-spacing: .12em; font-weight: 600;
  margin-bottom: 14px; padding-left: 2px;
}
.id-card {
  position: relative; background: #fff; border-radius: 22px; padding: 18px 16px 6px;
  box-shadow: var(--shadow);
}
.id-main { display: flex; align-items: center; gap: 14px; padding: 2px 4px 16px; }
.avatar {
  width: 68px; height: 68px; border-radius: 22px;
  background: linear-gradient(160deg, #F7C39A, #E85D2C);
  color: #fff; display: grid; place-items: center;
  font-size: 28px; font-weight: 750; flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(232,93,44,.28);
}
.id-text { min-width: 0; flex: 1; }
.name-row { display: flex; align-items: center; gap: 8px; }
.hero .name, .id-text .name { font-size: 20px; font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.tag {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; flex-shrink: 0;
}
.tag.wait { background: #FFF1E8; color: var(--orange); }
.tag.ok { background: #E8F6EE; color: #2F9B67; }
.no-chip {
  display: inline-flex; align-items: center; margin-top: 8px;
  background: #F7F2EC; color: #7A6C62; font-size: 12px; font-weight: 650;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}
.stats a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 4px 16px; text-decoration: none; color: inherit;
  position: relative;
}
.stats a + a::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line);
}
.stats em { font-style: normal; font-size: 11px; color: var(--muted); }
.stats b { font-size: 20px; font-weight: 800; color: var(--text); }

.sec { padding: 18px 16px 0; }
.sec-h {
  font-size: 13px; font-weight: 700; color: #9A8F86;
  margin: 0 4px 10px; letter-spacing: .08em;
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  background: #fff; border-radius: 18px; padding: 16px 12px 14px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.tile span:last-child { font-size: 14px; font-weight: 700; }
.tile-ico, .cell-ico {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
}
.c-coral { background: #FFE7DC; color: #E85D2C; }
.c-blue { background: #E4F0FF; color: #3B7CC4; }
.c-gold { background: #FFF3D6; color: #C98412; }
.c-green { background: #E5F6EC; color: #2F9B67; }
.c-purple { background: #F1E9FF; color: #7A5CC8; }
.c-gray { background: #F1ECE7; color: #7A6C62; }

.cells {
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.cells a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
}
.cells a:last-child { border-bottom: 0; }
.cell-txt { flex: 1; min-width: 0; }
.cell-txt b { display: block; font-size: 15px; font-weight: 700; }
.cell-txt em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: var(--muted); }
.chev { color: #D2C7BD; font-size: 20px; line-height: 1; font-weight: 300; }
.pill {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #E85D2C; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}

.hero {
  background: linear-gradient(160deg, #F7C39A, #E85D2C);
  padding: 22px 18px 28px; color: #fff;
}
.hero-row { display: flex; align-items: center; gap: 14px; }
.hero .no { margin-top: 6px; font-size: 12px; opacity: .92; }
.menu {
  margin: -12px 16px 16px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow);
}
.menu a, .menu button.row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 16px; border: 0; background: #fff; text-align: left;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); font-size: 15px;
}
.menu a:last-child, .menu button.row:last-child { border-bottom: 0; }
.menu .mi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.menu .ttl { flex: 1; font-weight: 600; }
.menu .arrow { color: #C9C4BE; font-size: 16px; }
.menu .pill { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E85D2C; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }

.card {
  margin: 12px 16px; background: #fff; border-radius: 18px; padding: 18px 16px;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 15px; margin-bottom: 8px; }
.note { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
label { display: block; font-size: 12px; color: #6F675F; margin: 12px 0 6px; font-weight: 650; }
label em { color: var(--orange); font-style: normal; }
input, select, textarea {
  width: 100%; border: 1px solid #EDE6DE; border-radius: 12px;
  padding: 0 12px; font-size: 14px; background: #FBF8F4; outline: 0; font-family: inherit; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: #F3C2A8; background: #fff; }
input, select { height: 44px; }
textarea { padding: 10px 12px; resize: vertical; min-height: 96px; }
.gender, .roles { display: flex; gap: 8px; }
.gender button, .roles button {
  flex: 1; height: 44px; border: 1px solid #EDE6DE; border-radius: 12px; background: #fff; font-size: 14px; color: var(--text);
}
.gender button.on, .roles button.on { border-color: var(--orange); background: #FFF4EE; color: var(--orange); font-weight: 700; }
.sms-row { display: flex; gap: 8px; align-items: center; }
.sms-row input { flex: 1; }
.sms-row button {
  flex: none; width: 118px; height: 44px; border: 0; border-radius: 12px;
  background: #FFF4EE; color: var(--orange); font-size: 13px; font-weight: 700;
}
.sms-row button:disabled { color: #aaa; background: #F3EEE9; }
.auth-hero {
  margin: 4px 16px 14px; padding: 22px 18px 20px;
  border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #F0A36A 0%, #E85D2C 58%, #D24C1E 100%);
  box-shadow: 0 12px 24px rgba(232,93,44,.22);
}
.auth-hero .mark {
  width: 48px; height: 48px; border-radius: 16px; margin-bottom: 12px;
  background: rgba(255,255,255,.2); display: grid; place-items: center;
  font-size: 22px; font-weight: 800; letter-spacing: .04em;
}
.auth-hero h2 { font-size: 22px; font-weight: 800; letter-spacing: .03em; }
.auth-hero p { margin-top: 6px; font-size: 13px; line-height: 1.55; opacity: .95; }
.auth-card {
  margin: 0 16px 16px; background: #fff; border-radius: 20px;
  padding: 16px 16px 18px; box-shadow: var(--shadow);
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #F7F2EC; border-radius: 14px; padding: 4px; margin-bottom: 14px;
}
.auth-tabs button {
  height: 40px; border: 0; border-radius: 11px; background: transparent;
  font-size: 14px; font-weight: 700; color: #8B837C; font-family: inherit;
}
.auth-tabs button.on {
  background: #fff; color: var(--orange);
  box-shadow: 0 4px 12px rgba(90,46,20,.08);
}
.auth-panel { display: none; }
.auth-panel.on { display: block; }
.pwd-row { position: relative; }
.pwd-row input { padding-right: 52px; }
.pwd-row .eye {
  position: absolute; right: 4px; top: 0; height: 44px; width: 48px;
  border: 0; background: transparent; color: #A09086; font-size: 12px; font-weight: 700;
  font-family: inherit;
}
.auth-hint { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.auth-split { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: #B5AAA2; font-size: 12px; }
.auth-split i { flex: 1; height: 1px; background: #EDE6DE; }
.wx-btn {
  margin: 0; width: 100%; height: 46px; border: 0; border-radius: 14px;
  background: #07C160; color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 16px rgba(7,193,96,.22);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit;
}
.wx-btn svg { display: block; }
.wx-btn:disabled { opacity: .65; }
a.wx-btn { text-decoration: none; color: #fff; }
.wx-mask {
  position: absolute; inset: 0; background: rgba(20,16,12,.45); z-index: 20;
  display: none; align-items: flex-end;
}
.wx-mask.show { display: flex; }
.wx-sheet {
  width: 100%; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 18px 22px;
}
.wx-sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: #E5E0DA; margin: 0 auto 12px; }
.wx-sheet h2 { font-size: 16px; margin-bottom: 6px; }
.wx-sheet p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.wx-sheet .actions { display: flex; gap: 10px; margin-top: 14px; }
.wx-sheet .actions button { flex: 1; height: 44px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; font-family: inherit; }
.wx-sheet .cancel { background: #F3F0EC; color: #555; }
.wx-sheet .ok { background: #07C160; color: #fff; }
.save, .btn-main {
  margin: 8px 16px 0; width: calc(100% - 32px); height: 46px; border: 0; border-radius: 14px;
  background: var(--orange); color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 16px rgba(232,93,44,.22);
}
.btn-ghost {
  margin: 14px 16px 0; width: calc(100% - 32px); height: 46px; border: 0;
  border-radius: 14px; background: #fff; color: var(--orange); font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow);
}
.item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item:first-child { padding-top: 0; }
.item .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item h3 { font-size: 14px; font-weight: 700; }
.st { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
.st.PENDING, .st.SIGNED, .st.PENDING_PAY, .st.UNUSED, .st.REVIEWING, .st.PENDING_APPROVE, .st.WAIT_USER_CONFIRM, .st.FROZEN, .st.REFUNDING, .st.PAID, .st.ELIGIBLE, .st.UNREAD { background: #FFF1E8; color: var(--orange); }
.st.APPROVED, .st.ACCEPTED, .st.REPLIED, .st.COMPLETED, .st.SERVING, .st.ACTIVE, .st.ENROLLED, .st.USED { background: #E8F6EE; color: #2F9B67; }
.st.REJECTED, .st.CANCELLED { background: #FDECEC; color: #D14B4B; }
.st.CLOSED, .st.CHECKED_IN, .st.DISABLED, .st.EXPIRED, .st.REFUNDED, .st.READ { background: #EEF3F8; color: #4A6A88; }
.meta { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.reason { margin-top: 6px; font-size: 12px; color: #D14B4B; line-height: 1.5; }
.reply { margin-top: 6px; font-size: 12px; color: #2F9B67; line-height: 1.5; }
.empty { font-size: 13px; color: var(--muted); padding: 28px 0; text-align: center; }
.points {
  margin: 8px 16px 12px; border-radius: 22px; padding: 22px 20px; color: #fff;
  background: linear-gradient(145deg, #F0A36A 0%, #E85D2C 58%, #D24C1E 100%);
  box-shadow: 0 12px 24px rgba(232,93,44,.24);
}
.points b { font-size: 40px; font-weight: 800; display: block; line-height: 1.1; margin-top: 6px; }
.points span { font-size: 13px; opacity: .92; }
.points .sub { margin-top: 12px; font-size: 12px; opacity: .9; }
.auth-logo { padding: 8px 8px 4px; text-align: left; }
.auth-logo h2 { font-size: 18px; font-weight: 800; }
.auth-logo p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.auth-form { padding: 0; }
.auth-form .save { margin: 18px 0 0; width: 100%; }
.auth-links { margin-top: 16px; text-align: center; font-size: 13px; color: #666; }
.auth-links a { color: var(--orange); text-decoration: none; font-weight: 700; }
.demo { margin: 4px 16px 0; font-size: 12px; color: var(--muted); line-height: 1.6; text-align: center; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; gap: 12px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 700; }
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78px;
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
  align-items: end; padding: 8px 4px 10px; text-align: center;
  font-size: 10px; color: #9a9a9a;
}
.tabbar .on { color: var(--orange); font-weight: 700; }
.tabbar a {
  color: inherit; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.tabbar .ico { font-size: 18px; line-height: 1; margin-bottom: 2px; }
.tabbar .msg { position: relative; display: block; }
.tabbar .dot {
  position: absolute; top: -4px; right: -10px; min-width: 14px; height: 14px;
  background: #E84B4B; color: #fff; border-radius: 8px; font-size: 9px;
  line-height: 14px; padding: 0 3px; font-weight: 700;
}
.sos-wrap { display: flex; flex-direction: column; align-items: center; }
.sos {
  width: 58px; height: 58px; margin: -30px auto 2px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffe7c2 0%, #f3b56a 45%, #e07a3a 100%);
  box-shadow: 0 8px 18px rgba(241,90,41,.38);
  display: grid; place-items: center; overflow: hidden; border: 3px solid #fff;
  text-decoration: none; color: inherit;
}
.sos-label { font-size: 10px; font-weight: 700; color: var(--orange); }
.msg-list { padding: 8px 16px 16px; }
.msg-item {
  background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow); position: relative;
}
.msg-item.unread { box-shadow: 0 10px 28px rgba(232,93,44,.10); }
.msg-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; padding-right: 18px; }
.msg-item p { font-size: 13px; color: #555; line-height: 1.55; }
.msg-item .time { margin-top: 8px; font-size: 11px; color: var(--muted); }
.msg-item .dot {
  position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
