:root {
  --bg: #F7F4EF;
  --card: rgba(255, 255, 255, 0.88);
  --text: #1A2A5E;
  --muted: #5A6A8E;
  --line: rgba(26, 42, 94, 0.1);
  --primary: #1A2A5E;
  --cyan: #00D4FF;
  --orange: #FF6B35;
  --danger: #b71c1c;
  --warn: #e65100;
  --ok: #1b5e20;
  --demo: #8a4b00;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(26, 42, 94, 0.07);
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }

.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(0, 212, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 30% at 100% 8%, rgba(255, 107, 53, 0.1), transparent 50%),
    var(--bg);
  position: relative;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.demo-bar {
  background: linear-gradient(90deg, #8a4b00, var(--orange));
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 7px 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
}
.nav h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.nav .sub { color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 500; }
.link-btn {
  border: none;
  background: rgba(255,255,255,.7);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.module { padding: 0 14px; margin-top: 12px; }
.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.75);
}
.card + .card { margin-top: 10px; }
.card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.muted { color: var(--muted); font-size: 12px; line-height: 1.55; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
  align-items: flex-start;
}
.row .k { color: var(--muted); flex-shrink: 0; }
.row .v { font-weight: 600; text-align: right; }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.b-assigned { background: #e8f0f7; color: #1A2A5E; }
.b-viewed { background: #e0f7fa; color: #0e7490; }
.b-accepted { background: #e8f5e9; color: #1b5e20; }
.b-arrived { background: #fff3e0; color: #e65100; }
.b-repairing { background: #fff8e1; color: #b45309; }
.b-completed { background: #e8f5e9; color: #1b5e20; }
.b-critical { background: #fdecea; color: #b71c1c; }
.b-high { background: #fff3e0; color: #e65100; }
.b-medium { background: #e0f7fa; color: #0e7490; }
.b-low { background: #e8f5e9; color: #1b5e20; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat {
  text-align: center;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
}
.stat .n { font-size: 22px; font-weight: 800; line-height: 1.1; }
.stat .l { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.tab.active { background: var(--primary); color: #fff; }

.task {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  padding: 14px 14px 14px 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.task + .task { margin-top: 10px; }
.task::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--cyan);
}
.task.is-critical::before { background: var(--danger); }
.task.is-high::before { background: var(--orange); }
.task:active { transform: scale(0.99); }
.task .title { font-weight: 700; font-size: 15px; margin-bottom: 8px; line-height: 1.35; }
.task .meta { color: var(--muted); font-size: 12px; line-height: 1.55; }
.task .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.28);
}
.btn.secondary {
  background: rgba(26, 42, 94, 0.06);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn.warn { background: var(--warn); }
.btn:disabled { opacity: 0.5; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-row .btn { margin-top: 0; }

.form label { display: block; margin: 10px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
}

.login-wrap { padding: 28px 16px 12px; }
.login-brand {
  text-align: center;
  margin-bottom: 18px;
}
.login-brand .mark {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px;
  display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 800;
  background: linear-gradient(145deg, #1A2A5E, #243670);
  position: relative;
  box-shadow: 0 8px 20px rgba(26,42,94,.2);
}
.login-brand .mark::after {
  content: "";
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
}
.login-brand h2 { margin: 0 0 4px; font-size: 22px; }
.hint-box {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
}

.list { margin: 0; padding-left: 18px; }
.list li { margin: 8px 0; font-size: 13px; line-height: 1.5; }
.source {
  color: var(--muted);
  font-size: 11px;
  margin-left: 6px;
  background: rgba(26,42,94,.06);
  padding: 1px 6px;
  border-radius: 999px;
}

.bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.bottom a {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  justify-items: center;
}
.bottom a .ico { font-size: 18px; line-height: 1; }
.bottom a.active { color: var(--primary); font-weight: 800; }

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px; flex-shrink: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: rgba(26,42,94,.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}

.empty { text-align: center; color: var(--muted); padding: 36px 12px; font-size: 14px; }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }

.timeline {
  display: grid;
  gap: 0;
  margin: 4px 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  position: relative;
  padding-bottom: 12px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  margin-top: 4px;
  box-shadow: 0 0 0 3px rgba(0,212,255,.18);
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-t { font-size: 13px; font-weight: 700; }
.tl-s { font-size: 12px; color: var(--muted); }
