:root {
  --pink-50: #fff7fa;
  --pink-75: #fff2f7;
  --pink-100: #ffe9f1;
  --pink-150: #ffdde9;
  --pink-200: #ffcfe0;
  --pink-300: #ffb3cb;
  --pink-400: #ff8fb2;
  --pink-500: #f2688f;
  --pink-600: #dd4f79;
  --pink-700: #b93b60;

  --ink: #33202a;
  --ink-2: #6d5563;
  --ink-3: #9d8794;
  --ink-4: #bfaab6;

  --line: #f8dfe9;
  --line-strong: #f2c9d9;
  --card: #ffffff;
  --bg: #fff7fa;

  --lilac: #7a63e0;
  --lilac-soft: #f0edff;
  --mint: #1e9c79;
  --mint-soft: #e4f7f0;
  --amber: #b97a12;
  --amber-soft: #fff3dc;

  --shadow-xs: 0 1px 2px rgba(190, 74, 112, 0.05);
  --shadow-sm: 0 12px 28px -24px rgba(190, 74, 112, 0.55);
  --shadow-md: 0 20px 40px -28px rgba(190, 74, 112, 0.62);
  --shadow-lg: 0 40px 90px -46px rgba(120, 40, 70, 0.55);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 999px;

  --tabbar-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg:not(.svg-sprite) {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: var(--pink-200);
  color: var(--pink-700);
}

:focus-visible {
  outline: 2px solid var(--pink-400);
  outline-offset: 2px;
}

/* ================================================================= */
/* 通用组件                                                           */
/* ================================================================= */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(140deg, #ffa6c2, #f2688f 55%, #e4537e);
  box-shadow: 0 10px 20px -12px rgba(226, 83, 126, 0.95);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.brand-name small {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--ink-4);
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, color 0.18s,
    border-color 0.18s;
}

.btn:active {
  transform: scale(0.975);
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff96b7, #f2688f 60%, #ea547f);
  box-shadow: 0 12px 22px -14px rgba(232, 84, 127, 0.95);
}

.btn-primary:hover {
  box-shadow: 0 16px 26px -14px rgba(232, 84, 127, 1);
  transform: translateY(-1px);
}

.btn-run {
  color: #fff;
  background: linear-gradient(135deg, #ff96b7, #f2688f 60%, #ea547f);
  box-shadow: 0 12px 22px -14px rgba(232, 84, 127, 0.95);
}

.btn-run:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px -14px rgba(232, 84, 127, 1);
}

.btn-soft {
  color: var(--pink-700);
  background: var(--pink-100);
}

.btn-soft:hover {
  background: var(--pink-150);
}

.btn-ghost {
  color: var(--ink-2);
  background: #fff;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--pink-300);
  background: var(--pink-50);
}

.btn-danger {
  color: #b3314f;
  background: #fff;
  border-color: #f7d3dc;
}

.btn-danger:hover {
  background: #fff2f5;
  border-color: #f0b6c6;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-md {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, transform 0.18s, background 0.18s;
}

.icon-btn:hover {
  color: var(--pink-600);
  border-color: var(--pink-300);
  background: #fff;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn.is-spinning svg {
  animation: spin 0.8s linear infinite;
}

.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffeaf2, #ffd7e4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 4px 10px -6px rgba(190, 74, 112, 0.6);
  font-size: 20px;
  line-height: 1;
  user-select: none;
}

.avatar-xs {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.avatar-md {
  width: 40px;
  height: 40px;
  font-size: 21px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 32px;
}

.avatar-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.18s var(--ease);
}

.avatar-btn:hover {
  transform: translateY(-1px) scale(1.03);
}

.avatar-btn .avatar {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--pink-200);
  font-size: 21px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge-pending {
  background: var(--lilac-soft);
  color: var(--lilac);
}

.badge-accepted {
  background: var(--pink-100);
  color: var(--pink-700);
}

.badge-submitted {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-completed {
  background: var(--mint-soft);
  color: var(--mint);
}

.badge-cancelled {
  background: #f4edf1;
  color: #9a8592;
}

.prio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.prio i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.prio-urgent i {
  background: #f0567f;
  box-shadow: 0 0 0 3px rgba(240, 86, 127, 0.14);
}

.prio-normal i {
  background: #f2a0b8;
}

.prio-relaxed i {
  background: #7fd3bc;
}

/* ================================================================= */
/* 登录                                                               */
/* ================================================================= */

.login {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(165deg, #fff8fb 0%, #fff0f6 46%, #faf0ff 100%);
}

.login-aura {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
}

.blob-1 {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -80px;
  background: radial-gradient(circle, #ffc9dc, rgba(255, 201, 220, 0));
}

.blob-2 {
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -180px;
  background: radial-gradient(circle, #ffd9e6, rgba(255, 217, 230, 0));
}

.blob-3 {
  width: 340px;
  height: 340px;
  right: 24%;
  top: -120px;
  background: radial-gradient(circle, #e8dcff, rgba(232, 220, 255, 0));
  opacity: 0.6;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.login-intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 8px;
}

.login-headline {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-headline em {
  font-style: normal;
  background: linear-gradient(100deg, #f2688f, #d94e78 55%, #b061c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-sub {
  max-width: 380px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}

.preview-stack {
  position: relative;
  margin-top: 8px;
  width: min(348px, 100%);
  height: 236px;
}

.preview-card {
  position: absolute;
  width: 100%;
  padding: 15px 17px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 50px -32px rgba(150, 60, 95, 0.6);
  backdrop-filter: blur(8px);
}

.preview-card-back {
  top: 0;
  left: 32px;
  transform: rotate(-4.5deg) scale(0.95);
  opacity: 0.62;
}

.preview-card-front {
  bottom: 0;
  left: 0;
  transform: rotate(-1.2deg);
}

.preview-title {
  margin: 10px 0 12px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
}

.preview-route {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.preview-route svg {
  width: 12px;
  height: 12px;
  color: var(--pink-400);
}

.preview-heart {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--pink-600);
  font-weight: 600;
}

.preview-heart svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
}

.preview-stars {
  color: #f2b64e;
  letter-spacing: 2px;
  font-size: 10px;
}

.login-panel {
  width: 100%;
  padding: 34px 32px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 50px 90px -60px rgba(120, 40, 70, 0.55), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(14px);
}

.login-panel-head h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.login-panel-head p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.account-picker {
  display: flex;
  gap: 10px;
  margin: 22px 0 18px;
}

.account-option {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.account-option:hover {
  border-color: var(--pink-300);
  background: var(--pink-50);
}

.account-option[aria-checked="true"] {
  border-color: var(--pink-400);
  background: linear-gradient(150deg, #fff6f9, #ffeaf2);
  box-shadow: 0 14px 26px -22px rgba(226, 83, 126, 0.9);
}

.account-option .avatar {
  width: 36px;
  height: 36px;
  font-size: 18px;
  flex: none;
}

.account-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.account-info b {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-info span {
  font-size: 11px;
  color: var(--ink-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-check {
  margin-left: auto;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.18s;
}

.account-check svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.6;
}

.account-option[aria-checked="true"] .account-check {
  background: var(--pink-500);
  border-color: var(--pink-500);
  color: #fff;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.3px;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-4);
  pointer-events: none;
}

.field input,
.input-wrap input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: #fffdfe;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.input-wrap input {
  padding-left: 40px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-4);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--pink-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 143, 178, 0.16);
}

.field textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.7;
}

.field-hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-4);
}

.form-error {
  min-height: 18px;
  margin: 2px 0 10px;
  font-size: 12.5px;
  color: #c02b4c;
  line-height: 1.4;
}

.login-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.login-hint code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--pink-100);
  color: var(--pink-700);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.login-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.2px;
}

/* ================================================================= */
/* 应用骨架                                                           */
/* ================================================================= */

.app {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 8% -6%, rgba(255, 226, 237, 0.9), rgba(255, 247, 250, 0) 62%),
    radial-gradient(760px 420px at 96% 2%, rgba(240, 231, 255, 0.7), rgba(255, 247, 250, 0) 58%),
    var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid rgba(248, 223, 233, 0.85);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(16px);
}

.brand-side {
  padding: 0 8px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: none;
  border-radius: 13px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--ink-4);
  transition: color 0.16s;
}

.nav-item:hover {
  background: rgba(255, 233, 241, 0.7);
  color: var(--ink);
}

.nav-item:hover svg {
  color: var(--pink-500);
}

.nav-item.is-active {
  background: linear-gradient(120deg, #ffe7ef, #ffdcea);
  color: var(--pink-700);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.nav-item.is-active svg {
  color: var(--pink-600);
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--pink-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-item:not(.is-active) .nav-badge {
  background: var(--pink-150);
  color: var(--pink-700);
}

.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-progress {
  padding: 14px 14px 12px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #fff6f9, #ffe8f1);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.side-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.side-progress-head b {
  font-size: 15px;
  color: var(--pink-700);
  font-variant-numeric: tabular-nums;
}

.side-progress-bar {
  margin-top: 9px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.side-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffa9c3, #f2688f);
  transition: width 0.5s var(--ease);
}

.side-progress-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--pink-700);
}

.side-progress-foot svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
}

.side-me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 15px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s, border-color 0.16s;
}

.side-me:hover {
  background: #fff;
  border-color: var(--line);
}

.side-me-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.side-me-info b {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-me-info span {
  font-size: 11px;
  color: var(--ink-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-me svg {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: var(--ink-4);
}

.main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3.2vw, 44px) 96px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.6px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--pink-300);
}

.hello h1 {
  margin-top: 4px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.hello h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #f2688f, #cf5b9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--ink-4);
  pointer-events: none;
}

.search-box input {
  width: 168px;
  padding: 9px 12px 9px 34px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  outline: none;
  transition: width 0.22s var(--ease), border-color 0.18s, box-shadow 0.18s;
}

.search-box input:focus {
  width: 210px;
  border-color: var(--pink-300);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 143, 178, 0.13);
}

.publish-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}

/* ================================================================= */
/* 概览卡片                                                           */
/* ================================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 26px;
}

.stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 15px 14px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(248, 223, 233, 0.9);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--pink-75);
  color: var(--pink-600);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-card[data-tone="lilac"] .stat-icon {
  background: var(--lilac-soft);
  color: var(--lilac);
}

.stat-card[data-tone="amber"] .stat-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.stat-card[data-tone="mint"] .stat-icon {
  background: var(--mint-soft);
  color: var(--mint);
}

.stat-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.stat-value {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.stat-note {
  margin-left: auto;
  align-self: flex-start;
  font-size: 10.5px;
  color: var(--ink-4);
  background: #fff8fb;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* ================================================================= */
/* 任务面板                                                           */
/* ================================================================= */

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.board-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.board-title h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.count-pill {
  min-width: 22px;
  height: 21px;
  padding: 0 7px;
  border-radius: var(--r-full);
  background: var(--pink-100);
  color: var(--pink-700);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  max-width: 100%;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 6px 13px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
}

.chip:hover {
  color: var(--pink-700);
  border-color: var(--pink-200);
}

.chip.is-active {
  background: linear-gradient(135deg, #ff9ab9, #f2688f);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 18px -14px rgba(232, 84, 127, 0.95);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
  align-items: start;
}

.task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 17px 18px 14px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
  animation: cardIn 0.34s var(--ease) both;
}

.task-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink-200);
  box-shadow: var(--shadow-md);
}

.task-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--pink-150);
  transition: background 0.2s;
}

.task-card[data-priority="urgent"]::before {
  background: linear-gradient(#ff8fae, #ef547e);
}

.task-card[data-priority="normal"]::before {
  background: linear-gradient(#ffc4d7, #f5a3bd);
}

.task-card[data-priority="relaxed"]::before {
  background: linear-gradient(#b9ebdd, #7fd3bc);
}

.task-card.is-completed {
  background: linear-gradient(180deg, #ffffff, #fffafc);
}

.task-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.task-due {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.task-due svg {
  width: 12px;
  height: 12px;
}

.task-due.is-overdue {
  color: #cf3f68;
}

.task-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-desc {
  margin-top: -3px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-route {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  flex-wrap: wrap;
}

.route-user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.route-arrow {
  width: 13px;
  height: 13px;
  color: var(--pink-400);
}

.route-tag {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 600;
  background: #fff5f8;
  color: var(--pink-600);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.route-tag.is-in {
  background: #f7f4ff;
  color: var(--lilac);
}

.task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.task-points {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pink-600);
  font-variant-numeric: tabular-nums;
}

.task-points svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
}

.task-points.is-muted {
  color: var(--ink-4);
  font-weight: 500;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.task-actions .btn {
  padding: 6px 13px;
  font-size: 12.5px;
}

.task-actions .btn svg {
  width: 13px;
  height: 13px;
}

.task-actions .btn-run {
  background: linear-gradient(135deg, #ff96b7, #f2688f);
  color: #fff;
  box-shadow: 0 10px 18px -14px rgba(232, 84, 127, 0.95);
}

.task-actions .btn-run:hover {
  transform: translateY(-1px);
}

/* 空态 / 骨架屏 */

.empty {
  grid-column: 1 / -1;
  padding: 54px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border-radius: var(--r-xl);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
}

.empty-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffeaf2);
  color: var(--pink-400);
  box-shadow: 0 16px 30px -22px rgba(200, 80, 120, 0.8);
  margin-bottom: 4px;
}

.empty-mark svg {
  width: 27px;
  height: 27px;
}

.empty h3 {
  font-size: 15px;
  font-weight: 600;
}

.empty p {
  max-width: 300px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.empty .btn {
  margin-top: 8px;
}

.skeleton {
  height: 186px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #fff 30%, #fff6f9 50%, #fff 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
}

/* ================================================================= */
/* 我的                                                               */
/* ================================================================= */

.me-section {
  animation: cardIn 0.34s var(--ease) both;
}

.me-hero {
  position: relative;
  padding: 26px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #fff3f8, #ffe6ef 55%, #f8ecff);
  border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.me-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.me-hero-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.me-hero-info h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.me-hero-info p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.me-hero-stats {
  position: relative;
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.me-stat {
  flex: 1;
  min-width: 96px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.me-stat b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.me-stat span {
  font-size: 11.5px;
  color: var(--ink-3);
}

.me-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.panel {
  padding: 22px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.panel-head h3 {
  font-size: 14.5px;
  font-weight: 700;
}

.panel-head svg {
  width: 17px;
  height: 17px;
  color: var(--pink-500);
}

.panel-desc {
  margin-top: -8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--ink-3);
}

.panel-version {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.3px;
}

.avatar-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.avatar-option {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 19px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all 0.16s;
}

.avatar-option:hover {
  border-color: var(--pink-300);
  background: var(--pink-50);
}

.avatar-option.is-active {
  border-color: var(--pink-400);
  background: var(--pink-100);
  box-shadow: 0 8px 16px -12px rgba(226, 83, 126, 0.9);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inline-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff8fb;
  border: 1px dashed var(--line-strong);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.inline-note svg {
  width: 14px;
  height: 14px;
  color: var(--pink-400);
  flex: none;
}

.me-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ================================================================= */
/* 爱意值商城                                                          */
/* ================================================================= */

.mall-section {
  animation: cardIn 0.34s var(--ease) both;
}

.mall-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.mall-wallet {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: var(--r-xl);
  color: #fff;
  background: linear-gradient(135deg, #ffa6c2, #f2688f 58%, #e2537e);
  box-shadow: 0 26px 44px -32px rgba(226, 83, 126, 0.95);
}

.mall-wallet::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -56px;
  top: -78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mall-wallet::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: 30px;
  bottom: -66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.mall-wallet-label {
  position: relative;
  font-size: 12px;
  letter-spacing: 1.4px;
  opacity: 0.86;
}

.mall-wallet-value {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.mall-wallet-value svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
  opacity: 0.9;
}

.mall-wallet-note {
  position: relative;
  font-size: 11.5px;
  opacity: 0.78;
}

.mall-wallet-btn {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 1;
  padding: 7px 13px;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}

.mall-wallet-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.mall-wallet-btn svg {
  width: 13px;
  height: 13px;
}

.mall-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mall-kpi {
  padding: 13px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mall-kpi b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.mall-kpi span {
  font-size: 11.5px;
  color: var(--ink-3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
  animation: cardIn 0.34s var(--ease) both;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-200);
}

.product-cover {
  position: relative;
  height: 104px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #fff, #ffeaf2 55%, #f8ecff);
}

.product-emoji {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 8px 12px rgba(190, 74, 112, 0.18));
}

.product-card[data-status="off"] .product-cover {
  filter: grayscale(0.65);
  opacity: 0.72;
}

.product-price {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.94);
  color: var(--pink-700);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 18px -12px rgba(190, 74, 112, 0.85);
}

.product-price svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
}

.product-body {
  padding: 13px 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 158px;
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-stock {
  font-size: 11px;
  color: var(--ink-4);
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.product-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
  word-break: break-word;
}

.product-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.product-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.product-foot .btn {
  padding: 7px 14px;
  font-size: 12.5px;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
}

.order-card {
  padding: 15px 17px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  animation: cardIn 0.3s var(--ease) both;
}

.order-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-head time {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.order-role {
  font-size: 11px;
  color: var(--ink-4);
}

.order-main {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 9px;
}

.order-emoji {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 22px;
  background: linear-gradient(145deg, #fff2f7, #ffe4ee);
}

.order-info {
  min-width: 0;
  flex: 1;
}

.order-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.order-route {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.order-price {
  flex: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--pink-700);
  font-variant-numeric: tabular-nums;
}

.order-note {
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #fffafc;
  border: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
  word-break: break-word;
}

.order-foot {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.order-foot .btn {
  padding: 7px 14px;
  font-size: 12.5px;
}

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.emoji-option {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 19px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all 0.16s;
}

.emoji-option:hover {
  border-color: var(--pink-300);
  background: var(--pink-50);
}

.emoji-option.is-active {
  border-color: var(--pink-400);
  background: var(--pink-100);
  box-shadow: 0 8px 16px -12px rgba(226, 83, 126, 0.9);
}

.redeem-product {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 14px;
  background: #fffafc;
  border: 1px solid var(--line);
}

.redeem-product .order-info b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.redeem-product .order-info span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.redeem-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 6px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff6f9, #ffeef5);
  border: 1px solid #fff;
}

.redeem-balance div {
  text-align: center;
}

.redeem-balance span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
}

.redeem-balance b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.redeem-balance b.is-short {
  color: #cf3f68;
}

.redeem-arrow {
  color: var(--pink-300);
}

.redeem-arrow svg {
  width: 18px;
  height: 18px;
}


/* ================================================================= */
/* 弹窗                                                               */
/* ================================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(58, 28, 43, 0.34);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.18s var(--ease);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.24s var(--ease);
  overflow: hidden;
}

.modal-head {
  padding: 20px 22px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal-head-text {
  min-width: 0;
  flex: 1;
}

.modal-eyebrow {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-4);
  text-transform: uppercase;
}

.modal-head h3 {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.2px;
  word-break: break-word;
}

.modal-close {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: var(--pink-75);
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.16s;
}

.modal-close:hover {
  background: var(--pink-150);
  color: var(--pink-700);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-body {
  padding: 0 22px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-foot {
  padding: 14px 22px 18px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 250, 252, 0.4), #fff);
}

.modal-foot .btn {
  flex: 0 0 auto;
}

.modal-block {
  margin-bottom: 16px;
}

.modal-block-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--ink-4);
  text-transform: uppercase;
}

.detail-desc {
  padding: 13px 15px;
  border-radius: 13px;
  background: #fffafc;
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-desc.is-empty {
  color: var(--ink-4);
  font-style: normal;
}

.detail-tags {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modal-foot .btn-danger {
  margin-right: auto;
}

.inline-note code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--pink-700);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.meta-cell {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffafc;
  border: 1px solid var(--line);
}

.meta-cell span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.4px;
}

.meta-cell b {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.flow {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 15px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff6f9, #ffeef5);
  border: 1px solid #fff;
}

.flow-user {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.flow-user b {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.flow-user span.role {
  display: block;
  font-size: 10px;
  color: var(--ink-4);
}

.flow-arrow {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-300);
  min-width: 30px;
}

.flow-arrow::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--pink-300) 0 5px, transparent 5px 9px);
}

.flow-arrow svg {
  position: relative;
  width: 14px;
  height: 14px;
  background: #ffeef5;
  border-radius: 50%;
}

.steps {
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
}

.step {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
  border-top: 3px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-4);
  text-align: center;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step.is-done {
  border-color: var(--pink-400);
  color: var(--pink-600);
  font-weight: 600;
}

.step.is-now {
  border-color: var(--pink-500);
  color: var(--pink-700);
  font-weight: 700;
}

.step.is-now::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: var(--pink-500);
}

.step.is-dead {
  border-color: #f2edf0;
  color: var(--ink-4);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 14px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line));
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item:last-child::before {
  display: none;
}

.tl-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff6f9;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1;
}

.tl-content {
  padding-top: 2px;
  min-width: 0;
}

.tl-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  word-break: break-word;
}

.tl-time {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
}

.comment-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 13px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: #fffdfe;
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.comment-form input:focus {
  border-color: var(--pink-300);
  box-shadow: 0 0 0 3px rgba(255, 143, 178, 0.14);
}

.comment-form .btn {
  flex: none;
  padding: 8px 16px;
  font-size: 13px;
}

.rating {
  display: flex;
  gap: 4px;
}

.rating button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--line-strong);
  cursor: pointer;
  transition: color 0.14s, transform 0.14s;
}

.rating button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.rating button:hover {
  transform: scale(1.1);
}

.rating button.is-on {
  color: #f4b544;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--pink-50);
  border: 1px solid var(--line);
}

.segmented button {
  flex: 1;
  padding: 7px 10px;
  border: none;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
}

.segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--pink-700);
  font-weight: 600;
  box-shadow: 0 6px 14px -10px rgba(190, 74, 112, 0.75);
}

.assignee-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.assignee-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.16s;
}

.assignee-chip .avatar {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.assignee-chip[aria-pressed="true"] {
  border-color: var(--pink-400);
  background: var(--pink-50);
  box-shadow: 0 10px 20px -18px rgba(226, 83, 126, 0.9);
}

.points-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-input input {
  width: 92px;
  text-align: center;
}

.points-input span {
  font-size: 12px;
  color: var(--ink-3);
}

/* 确认弹窗 */

.confirm-card {
  width: min(400px, 100%);
  padding: 24px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.22s var(--ease);
}

.confirm-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--pink-100);
  color: var(--pink-600);
  margin-bottom: 14px;
}

.confirm-icon svg {
  width: 21px;
  height: 21px;
}

.confirm-card h3 {
  font-size: 16.5px;
  font-weight: 700;
}

.confirm-card p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
}

.confirm-actions {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ================================================================= */
/* 提示                                                               */
/* ================================================================= */

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: rgba(51, 32, 42, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 18px 34px -22px rgba(40, 15, 28, 0.9);
  animation: toastIn 0.24s var(--ease);
  backdrop-filter: blur(8px);
  max-width: 100%;
  text-align: center;
}

.toast.is-error {
  background: rgba(179, 49, 79, 0.96);
}

.toast.is-leaving {
  animation: toastOut 0.2s var(--ease) forwards;
}

/* ================================================================= */
/* 悬浮按钮 / 底部导航                                                */
/* ================================================================= */

.fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  width: 54px;
  height: 54px;
  place-items: center;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #ff9dbd, #f2688f 60%, #e95380);
  box-shadow: 0 18px 32px -12px rgba(226, 83, 126, 0.75), 0 0 0 5px rgba(255, 240, 246, 0.85);
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}

.fab:active {
  transform: scale(0.94);
}

.app.is-me-view .fab,
.app.is-mall-view .fab {
  display: none;
}

.app.is-me-view .search-box {
  display: none;
}

.fab svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 8px env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 -12px 30px -26px rgba(150, 60, 95, 0.7);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: none;
  color: var(--ink-4);
  font-size: 10.5px;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.16s;
  position: relative;
}

.tab svg {
  width: 21px;
  height: 21px;
}

.tab.is-active {
  color: var(--pink-600);
  font-weight: 600;
}

.tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 18px;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: var(--pink-500);
}

.tab-badge {
  position: absolute;
  top: 3px;
  left: 50%;
  margin-left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--pink-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #fff;
}

/* ================================================================= */
/* 动画                                                               */
/* ================================================================= */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================= */
/* 响应式                                                             */
/* ================================================================= */

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 228px minmax(0, 1fr);
  }
  .search-box input {
    width: 140px;
  }
}

@media (max-width: 1024px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
  .tabbar {
    display: flex;
  }
  .fab {
    display: grid;
  }
  .main {
    padding: 22px clamp(16px, 4vw, 32px) calc(var(--tabbar-h) + 86px + env(safe-area-inset-bottom, 0px));
  }
  .publish-btn,
  .avatar-btn {
    display: none;
  }
  .search-box input {
    width: 132px;
    background: #fff;
  }
  .search-box input:focus {
    width: 160px;
  }
  .toast-root {
    bottom: calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom, 0px));
  }
  .me-hero {
    padding: 22px;
  }
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 34px 22px 44px;
    max-width: 520px;
    align-items: start;
  }
  .login-intro {
    gap: 14px;
    text-align: left;
  }
  .login-headline {
    font-size: clamp(26px, 7vw, 34px);
  }
  .login-sub {
    font-size: 13.5px;
    line-height: 1.75;
    max-width: 100%;
  }
  .preview-stack {
    display: none;
  }
  .login-panel {
    padding: 26px 22px 22px;
    border-radius: 24px;
  }
  .login-foot {
    display: none;
  }
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat-card {
    padding: 13px 13px 12px;
    gap: 9px;
    border-radius: 16px;
  }
  .stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .stat-value {
    font-size: 20px;
  }
  .stat-note {
    display: none;
  }
  .task-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .mall-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }
  .mall-wallet {
    padding: 18px 20px;
    border-radius: 20px;
  }
  .mall-wallet-value {
    font-size: 34px;
  }
  .mall-kpis {
    gap: 8px;
  }
  .mall-kpi {
    padding: 11px 13px;
    border-radius: 15px;
  }
  .mall-kpi b {
    font-size: 19px;
  }
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .product-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .product-cover {
    height: 100%;
    min-height: 136px;
  }
  .product-emoji {
    font-size: 36px;
  }
  .product-price {
    right: auto;
    left: 8px;
    bottom: 8px;
    padding: 3px 8px;
    font-size: 11.5px;
  }
  .product-body {
    padding: 11px 13px;
    min-height: 0;
    gap: 5px;
  }
  .product-title {
    font-size: 14px;
  }
  .product-desc {
    font-size: 11.5px;
    min-height: 0;
  }
  .product-owner {
    font-size: 10.5px;
  }
  .product-foot {
    padding-top: 8px;
  }
  .product-foot .btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .order-card {
    padding: 13px 14px;
  }
  .order-foot .btn {
    padding: 7px 12px;
  }
  .board-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .board-title {
    width: 100%;
  }
  .chips {
    width: 100%;
    margin: 0 -2px;
  }
  .topbar {
    gap: 12px;
    margin-bottom: 18px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .hello h1 {
    font-size: 21px;
  }
  .eyebrow {
    font-size: 11px;
  }
  .eyebrow::before {
    width: 14px;
  }
  .search-box input {
    width: 120px;
  }
  .task-card {
    padding: 15px 15px 12px;
    border-radius: 18px;
  }
  .task-title {
    font-size: 15px;
  }
  .task-actions .btn {
    padding: 9px 15px;
    font-size: 13px;
  }
  .chip {
    padding: 8px 14px;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    animation: sheetIn 0.26s var(--ease);
  }
  .modal-head {
    padding: 18px 18px 12px;
    position: relative;
  }
  .modal-head::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: var(--pink-150);
  }
  .modal-body {
    padding: 0 18px 12px;
  }
  .modal-foot {
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .modal-foot .btn {
    flex: 1;
  }
  .detail-meta {
    grid-template-columns: 1fr 1fr;
  }
  .modal-block {
    margin-bottom: 14px;
  }
  .confirm-card {
    width: 100%;
    border-radius: 22px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .me-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .me-hero-stats .me-stat {
    min-width: calc(50% - 5px);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@keyframes sheetIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .search-box {
    display: none;
  }
  .task-card {
    padding: 14px 13px 11px;
  }
}
