:root {
  --yellow: #fdda04;
  --yellow-2: #ffe671;
  --yellow-soft: #fff3b3;
  --black: #1b1a17;
  --ink: #27251f;
  --muted: #817d73;
  --paper: #fffefa;
  --canvas: #f5f2ea;
  --line: #e6e1d6;
  --blue: #3b82f6;
  --blue-soft: #eef5ff;
  --green: #16a36a;
  --green-soft: #eaf8f2;
  --red: #e25d50;
  --red-soft: #fff0ee;
  --shadow: 0 12px 34px rgba(59, 48, 12, .09);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
  font-size: 14px;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 9px;
  color: #9a7800;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.unofficial-badge {
  display: inline-flex;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 20px;
  align-items: center;
  color: #5e5000;
  background: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 800;
}

/* 登录 */
.login-screen.booting { visibility: hidden; }
.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1.08fr .92fr;
}
.login-art {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(34px, 5vh, 54px) clamp(42px, 6vw, 74px);
  overflow: hidden;
  grid-template-rows: auto 1fr;
  background: var(--yellow);
}
.login-art::before {
  position: absolute;
  right: -160px;
  bottom: -210px;
  width: 570px;
  height: 570px;
  border: 70px solid rgba(255,255,255,.3);
  border-radius: 50%;
  content: "";
}
.login-brand {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 13px;
  align-items: center;
  align-self: start;
}
.login-brand img {
  width: 238px;
  height: auto;
}
.art-copy {
  position: relative;
  z-index: 2;
  width: min(570px, 72%);
  margin: 0;
  align-self: center;
  transform: translateY(-1.5vh);
}
.art-copy h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -.06em;
}
.art-copy > p:last-child {
  margin: 22px 0 0;
  color: #5e5208;
  font-size: 15px;
}
.free-badge {
  position: absolute;
  z-index: 3;
  top: clamp(48px, 7vh, 76px);
  right: clamp(42px, 7vw, 92px);
  display: flex;
  min-width: 190px;
  padding: 10px 14px 10px 10px;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  align-items: center;
  color: var(--yellow);
  background: rgba(27,26,23,.94);
  box-shadow: 7px 7px 0 rgba(255,255,255,.25);
  transform: rotate(2deg);
}
.free-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  place-items: center;
  color: var(--black);
  background: var(--yellow);
  font-size: 17px;
  font-weight: 950;
}
.free-badge > span:last-child strong,
.free-badge > span:last-child small { display: block; }
.free-badge > span:last-child strong { font-size: 15px; letter-spacing: .03em; }
.free-badge > span:last-child small { margin-top: 3px; color: #e8dfbc; font-size: 8px; font-weight: 700; }
.mobile-free {
  display: inline-flex;
  margin: 13px 0 3px;
  padding: 7px 11px;
  gap: 6px;
  border-radius: 20px;
  align-items: center;
  color: var(--yellow);
  background: var(--black);
  box-shadow: 0 7px 16px rgba(27,26,23,.12);
  font-size: 10px;
  font-weight: 850;
}
.mobile-free span {
  display: grid;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  place-items: center;
  color: var(--black);
  background: var(--yellow);
  font-size: 9px;
}
.login-panel {
  display: grid;
  min-height: 100vh;
  padding: 35px;
  place-items: center;
  background:
    radial-gradient(circle at 86% 15%, rgba(255,213,31,.12), transparent 24%),
    var(--canvas);
}
.mobile-brand-header { display: none; }
.mobile-brand-lockup { display: none; }
.login-card {
  width: min(400px, 100%);
  padding: 38px 36px;
  border: 1px solid rgba(217,209,190,.75);
  border-radius: 26px;
  background: rgba(255,254,250,.94);
  box-shadow: 0 24px 65px rgba(64,52,16,.11);
}
.mobile-login-logo { display: none; }
.login-card h2 { margin: 0; color: var(--black); font-size: 32px; letter-spacing: -.04em; }
.login-card label {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  color: #555;
  font-size: 11px;
  font-weight: 800;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #ded9cc;
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: #fffdf8;
}
input, select { height: 48px; padding: 0 14px; }
textarea { min-height: 118px; padding: 14px; resize: vertical; line-height: 1.65; }
input:focus, textarea:focus, select:focus {
  border-color: #e4bf00;
  box-shadow: 0 0 0 4px rgba(255,218,0,.2);
}
.button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button.primary {
  color: var(--black);
  background: linear-gradient(135deg, var(--yellow) 0%, #ffe34f 100%);
  box-shadow: 0 9px 22px rgba(181,145,0,.2);
}
.button.primary:hover { background: linear-gradient(135deg, #ffcf08, #ffe770); box-shadow: 0 11px 25px rgba(181,145,0,.27); }
.button.secondary { color: #08734a; background: var(--green-soft); }
.button.outline { border: 1px solid var(--line); background: white; }
.button.danger { color: var(--red); background: var(--red-soft); }
.button.full { width: 100%; height: 50px; margin-top: 8px; }
.login-card .button.full { font-size: 13px; letter-spacing: .04em; }
.button.small { min-height: 38px; border-radius: 12px; font-size: 11px; }
.demo-tip { margin: 20px 0 0; color: #9a9a9a; font-size: 10px; text-align: center; }
.auth-switch {
  display: grid;
  margin: 18px 0 6px;
  padding: 5px;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  background: #f2eee4;
}
.auth-switch button {
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}
.auth-switch button.active {
  background: var(--yellow);
  box-shadow: 0 6px 14px rgba(181,145,0,.16);
}
.auth-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.verify-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 112px;
}
.verify-row .button {
  min-height: 48px;
  height: 48px;
  padding: 0 10px;
  justify-content: center;
  white-space: nowrap;
  font-size: 11px;
}
code { padding: 3px 7px; border-radius: 7px; color: #6b665c; background: #efebe2; }
.form-error { min-height: 18px; color: var(--red); font-size: 11px; text-align: center; }

/* 框架 */
.app { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 236px;
  padding: 22px 16px 18px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: white;
}
.brand { display: flex; min-height: 92px; padding: 0 0 18px; align-items: center; }
.brand img {
  width: 140px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 4%;
  box-shadow: 0 5px 14px rgba(161,135,0,.12);
}
.brand .unofficial-badge { height: 19px; padding: 0 6px; background: #f4f4f4; font-size: 8px; }
.brand-logo-b {
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  border: 1.8px solid var(--black);
  border-radius: 18px;
  align-items: center;
  background: #fff;
  box-shadow: 6px 6px 0 var(--yellow);
}
.brand-logo-b i {
  display: block;
  width: 9px;
  height: 38px;
  margin-right: 10px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--yellow);
}
.brand-logo-b strong,
.brand-logo-b span {
  display: block;
  color: var(--black);
  line-height: 1;
  white-space: nowrap;
}
.brand-logo-b strong {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.08em;
}
.brand-logo-b span {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button {
  position: relative;
  display: flex;
  width: 100%;
  height: 45px;
  padding: 0 14px;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  align-items: center;
  color: #777;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}
.sidebar nav button > span { width: 22px; color: #555; font-size: 17px; text-align: center; }
.sidebar nav button:hover { color: var(--black); background: #f7f7f7; }
.sidebar nav button.active { color: var(--black); background: var(--yellow); font-weight: 900; }
.sidebar nav button.active > span { color: var(--black); }
.sidebar nav i {
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 10px;
  color: white;
  background: var(--black);
  font-size: 9px;
  font-style: normal;
  line-height: 19px;
  text-align: center;
}
.sidebar nav i.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile {
  display: grid;
  margin-top: auto;
  padding: 16px 7px 0;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--black);
  background: var(--yellow);
  font-weight: 900;
}
.profile strong, .profile small { display: block; }
.profile strong { font-size: 10px; }
.profile small { margin-top: 3px; color: #999; font-size: 8px; }
.profile button { border: 0; color: #999; background: none; cursor: pointer; font-size: 18px; }
.sidebar-mask { display: none; }
.app > main { min-height: 100vh; margin-left: 236px; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 74px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(230,230,230,.85);
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.91);
  backdrop-filter: blur(15px);
}
.topbar p { margin: 0 0 3px; color: #aaa; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.topbar h2 { margin: 0; color: var(--black); font-size: 17px; }
.top-actions { display: flex; gap: 14px; align-items: center; }
.status-dot {
  padding: 6px 9px;
  border: 1px solid #efd33f;
  border-radius: 20px;
  color: #5f4f00;
  background: var(--yellow-soft);
  font-size: 9px;
  font-weight: 900;
}
.menu-button { display: none; border: 0; background: none; font-size: 20px; }
.content { max-width: 1380px; min-height: calc(100vh - 74px); margin: 0 auto; padding: 30px 34px 50px; }
.page-heading { display: flex; gap: 20px; margin-bottom: 23px; align-items: flex-end; justify-content: space-between; }
.page-heading h1 { margin: 0; color: var(--black); font-size: 28px; letter-spacing: -.04em; }
.page-heading > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; }

/* 工作台 */
.hero {
  position: relative;
  display: grid;
  min-height: 188px;
  margin-bottom: 16px;
  padding: 30px 34px;
  overflow: hidden;
  border-radius: 25px;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--black);
  background: var(--yellow);
  box-shadow: 0 14px 35px rgba(188,157,0,.13);
}
.hero::before {
  position: absolute;
  right: -45px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 50px solid rgba(255,255,255,.35);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.hero::after {
  position: absolute;
  top: 26px;
  right: 28%;
  width: 15px;
  height: 15px;
  border: 5px solid var(--black);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.dispatch-button {
  z-index: 3;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid rgba(24,24,24,.08);
  font-size: 15px;
}
.hero h1 { position: relative; z-index: 1; margin: 6px 0 0; font-size: 31px; letter-spacing: -.04em; }
.hero p { position: relative; z-index: 1; margin-bottom: 0; color: #6a5a00; }
.hero-subline {
  max-width: 540px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 850;
}
.hero-subline b {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  color: #006d46;
  background: rgba(255,255,255,.55);
  font-size: 16px;
}
.hero .eyebrow { color: #6a5800; }
.hero-badge {
  position: relative;
  z-index: 2;
  display: grid;
  width: 104px;
  height: 104px;
  border: 2px solid var(--black);
  border-radius: 50%;
  place-items: center;
  align-content: center;
  background: rgba(255,255,255,.4);
}
.hero-badge strong, .hero-badge small { display: block; text-align: center; }
.hero-badge strong { font-size: 29px; }
.hero-badge small { margin-top: 1px; font-size: 8px; }
.hero-badge.today-badge {
  background: rgba(255,255,255,.48);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.18);
}
.hero-badge.today-badge strong {
  color: #006d46;
}
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-grid.warm-stats { grid-template-columns: repeat(3, 1fr); }
.stat-card, .panel, .task-card, .product-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.stat-card { min-height: 128px; padding: 20px; }
.stat-card span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--black);
  background: var(--yellow-soft);
  font-weight: 900;
}
.stat-card strong { display: block; margin: 16px 0 7px; font-size: 28px; }
.stat-card small {
  color: #5f5a50;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}
.dashboard-wallet {
  display: grid;
  margin-bottom: 16px;
  grid-template-columns: minmax(330px, .92fr) 1fr;
  gap: 14px;
}
.wallet-primary,
.focus-list,
.overview-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.wallet-primary {
  position: relative;
  min-height: 214px;
  padding: 25px;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% -20%, rgba(255, 212, 0, .38), transparent 40%),
    #fff;
}
.wallet-primary::after {
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 176px;
  height: 176px;
  border: 30px solid rgba(255, 212, 0, .22);
  border-radius: 50%;
  content: "";
}
.wallet-primary > * {
  position: relative;
  z-index: 1;
}
.wallet-primary h3 {
  margin: 7px 0 0;
  color: var(--black);
  font-size: 18px;
}
.wallet-number {
  display: flex;
  margin: 15px 0 8px;
  align-items: baseline;
  gap: 8px;
}
.wallet-number strong {
  color: var(--black);
  font-size: 58px;
  line-height: .95;
  letter-spacing: -.04em;
}
.wallet-number span {
  color: #7b7200;
  font-size: 13px;
  font-weight: 900;
}
.wallet-primary p:not(.eyebrow) {
  width: min(330px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.wallet-mini-row {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wallet-mini-row div {
  padding: 12px;
  border-radius: 14px;
  background: #faf8f1;
}
.wallet-mini-row b,
.wallet-mini-row small {
  display: block;
}
.wallet-mini-row b {
  color: var(--black);
  font-size: 20px;
}
.wallet-mini-row small {
  margin-top: 4px;
  color: #6f6b5f;
  font-size: 11px;
  font-weight: 800;
}
.focus-list {
  display: grid;
  padding: 16px;
  gap: 10px;
}
.focus-item {
  display: grid;
  min-height: 60px;
  padding: 13px 14px;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  border-radius: 16px;
  align-items: center;
  background: #fafafa;
}
.focus-item i {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  place-items: center;
  color: var(--black);
  background: var(--yellow-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}
.focus-item strong,
.focus-item small {
  display: block;
}
.focus-item strong {
  color: var(--black);
  font-size: 14px;
}
.focus-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.focus-item b {
  min-width: 44px;
  color: var(--black);
  font-size: 24px;
  text-align: right;
}
.focus-item.today {
  background: linear-gradient(135deg, #fff8c5, #f5fff9);
}
.focus-item.today i {
  color: #006d46;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(0,166,106,.12);
}
.focus-item b.warm-plus {
  color: #00965f;
  font-size: 28px;
}
.focus-item.danger {
  background: var(--red-soft);
}
.focus-item.danger i {
  color: var(--red);
  background: white;
}
.wallet-strip {
  display: grid;
  margin-bottom: 16px;
  padding: 14px;
  grid-template-columns: minmax(220px, .85fr) repeat(3, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.wallet-strip-main,
.wallet-strip-item {
  border-radius: 16px;
  background: #faf8f1;
}
.wallet-strip-main {
  padding: 14px 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, .30), transparent 42%),
    #faf8f1;
}
.wallet-strip-main span,
.wallet-strip-main p,
.wallet-strip-item small {
  color: #6f6b5f;
  font-size: 10px;
  font-weight: 850;
}
.wallet-strip-main strong {
  display: block;
  margin: 4px 0;
  color: var(--black);
  font-size: 32px;
  line-height: 1;
}
.wallet-strip-main strong small {
  margin-left: 4px;
  color: #7b7200;
  font-size: 12px;
}
.wallet-strip-main p {
  margin: 0;
}
.wallet-strip-item {
  display: grid;
  min-height: 76px;
  padding: 12px;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}
.wallet-strip-item i {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  place-items: center;
  color: var(--black);
  background: var(--yellow-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.wallet-strip-item strong,
.wallet-strip-item small {
  display: block;
}
.wallet-strip-item strong {
  color: var(--black);
  font-size: 22px;
}
.wallet-strip-item.danger {
  background: var(--red-soft);
}
.wallet-strip-item.danger i {
  color: var(--red);
  background: white;
}
.action-panel,
.summary-band,
.mini-status,
.plain-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.action-panel {
  display: flex;
  margin-bottom: 16px;
  padding: 20px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.action-panel h3 {
  margin: 5px 0 6px;
  color: var(--black);
  font-size: 18px;
}
.action-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.plugin-hero {
  display: flex;
  min-height: 178px;
  margin-bottom: 16px;
  padding: 28px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdf3, #fff);
}
.plugin-hero h2 {
  margin: 6px 0 10px;
  color: var(--black);
  font-size: 34px;
  line-height: 1.12;
}
.plugin-hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.plugin-steps {
  display: grid;
  margin-bottom: 16px;
  gap: 16px;
}
.plugin-step {
  display: grid;
  padding: 18px;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 20px;
  align-items: center;
}
.plugin-step img {
  width: 100%;
  border: 1px solid #ece3cf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24,24,24,.08);
}
.plugin-step span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  place-items: center;
  color: var(--black);
  background: var(--yellow);
  font-weight: 950;
}
.plugin-step h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 24px;
}
.plugin-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.plugin-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.plugin-notes div {
  padding: 18px;
  border-radius: 8px;
  background: #faf8f1;
}
.plugin-notes h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 17px;
}
.plugin-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}
.summary-band {
  display: grid;
  margin-bottom: 16px;
  padding: 16px;
  grid-template-columns: minmax(320px, .9fr) 1fr;
  gap: 12px;
}
.summary-primary {
  position: relative;
  min-height: 154px;
  padding: 20px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 104% 10%, rgba(255, 212, 0, .34), transparent 42%),
    #faf8f1;
}
.summary-primary h3 {
  margin: 7px 0 8px;
  color: var(--black);
  font-size: 17px;
}
.summary-primary > strong {
  display: block;
  color: var(--green);
  font-size: 48px;
  line-height: 1;
}
.summary-primary > strong small {
  margin-left: 5px;
  color: #6f6b5f;
  font-size: 13px;
}
.summary-primary p:not(.eyebrow) {
  max-width: 430px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.summary-list {
  display: grid;
  gap: 10px;
}
.summary-line {
  display: grid;
  min-height: 72px;
  padding: 13px 14px;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border-radius: 16px;
  align-items: center;
  background: #fafafa;
}
.summary-line i {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  place-items: center;
  color: var(--black);
  background: var(--yellow-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.summary-line strong,
.summary-line small {
  display: block;
}
.summary-line strong {
  color: var(--black);
  font-size: 24px;
}
.summary-line small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}
.mini-status {
  display: flex;
  margin-bottom: 16px;
  padding: 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.mini-status span {
  display: inline-flex;
  min-height: 42px;
  padding: 0 14px;
  gap: 7px;
  border-radius: 999px;
  align-items: center;
  color: #5f5a50;
  background: #faf8f1;
  font-size: 11px;
  font-weight: 850;
}
.mini-status b {
  color: var(--black);
  font-size: 18px;
}
.plain-note {
  margin-top: 16px;
  padding: 14px 16px;
  color: #6e5b00;
  background: var(--yellow-soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.7;
  box-shadow: none;
}
.overview-strip {
  display: grid;
  margin-bottom: 16px;
  padding: 14px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.overview-chip {
  display: flex;
  min-height: 66px;
  padding: 12px 14px;
  border-radius: 16px;
  align-items: center;
  justify-content: space-between;
  background: #faf8f1;
}
.overview-chip span {
  color: #6a6255;
  font-size: 11px;
  font-weight: 850;
}
.overview-chip strong {
  color: var(--black);
  font-size: 28px;
}
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 21px; }
.panel-head { display: flex; gap: 15px; margin-bottom: 16px; align-items: center; justify-content: space-between; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.link-button { padding: 0; border: 0; color: #8d7300; background: none; cursor: pointer; font-size: 10px; font-weight: 850; }
.steps { display: grid; gap: 9px; }
.step {
  display: grid;
  min-height: 58px;
  padding: 12px;
  grid-template-columns: auto 1fr;
  gap: 11px;
  border-radius: 13px;
  align-items: center;
  background: #f7f7f7;
}
.step span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: var(--black); background: var(--yellow); font-size: 10px; font-weight: 900; }
.step strong, .step small { display: block; }
.step strong { font-size: 11px; }
.step small { margin-top: 3px; color: #999; font-size: 8px; }

/* 列表与卡片 */
.toolbar { display: flex; gap: 10px; margin-bottom: 17px; align-items: center; }
.search { position: relative; width: min(340px, 100%); }
.search input { padding-left: 39px; background: white; }
.search::before { position: absolute; z-index: 1; top: 13px; left: 14px; color: #999; content: "⌕"; font-size: 18px; }
.tabs { display: flex; gap: 5px; padding: 4px; border-radius: 12px; background: #eaeaea; }
.tabs button { min-height: 35px; padding: 0 13px; border: 0; border-radius: 9px; color: #777; background: none; cursor: pointer; font-size: 10px; }
.tabs button.active { color: var(--black); background: var(--yellow); box-shadow: 0 3px 10px rgba(135,113,0,.12); font-weight: 900; }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.task-card { display: flex; min-height: 260px; padding: 19px; flex-direction: column; transition: .2s ease; }
.task-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(24,24,24,.1); }
.task-top { display: flex; gap: 10px; align-items: flex-start; }
.task-type { padding: 6px 9px; border-radius: 8px; color: #765f00; background: var(--yellow-soft); font-size: 9px; font-weight: 900; white-space: nowrap; }
.task-type.price { color: #775d00; background: #fff0a1; }
.task-type.image { color: var(--blue); background: var(--blue-soft); }
.task-status { margin-left: auto; padding: 5px 8px; border-radius: 12px; color: #777; background: #f0f0f0; font-size: 8px; }
.task-status.open { color: #08734a; background: var(--green-soft); }
.task-status.draft { color: #7c6200; background: var(--yellow-soft); }
.task-status.rejected { color: var(--red); background: var(--red-soft); }
.task-status.pending { color: #7c6200; background: var(--yellow-soft); }
.task-status.running { color: #0b5cab; background: #e8f1ff; }
.task-status.success { color: #08734a; background: var(--green-soft); }
.task-status.failed { color: var(--red); background: var(--red-soft); }
.task-status.cancelled { color: #777; background: #f0f0f0; }
.task-card h3 { margin: 17px 0 6px; color: var(--black); font-size: 15px; }
.task-card .item-name { color: #888; font-size: 10px; }
.task-card .description {
  display: -webkit-box;
  margin: 15px 0;
  overflow: hidden;
  color: #666;
  font-size: 10px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.task-meta { display: flex; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid #f0f0f0; color: #999; font-size: 8px; }
.task-meta b { color: #806900; }
.task-actions { display: flex; gap: 8px; margin-top: 13px; }
.task-actions .button { flex: 1; min-height: 36px; font-size: 10px; }
.empty { padding: 65px 20px; border: 1px dashed #ddd; border-radius: 20px; color: #999; background: rgba(255,255,255,.55); text-align: center; }
.empty span { font-size: 34px; }
.empty h3 { margin: 12px 0 5px; color: var(--black); }
.empty p { margin: 0; font-size: 10px; }

/* 商品库 */
.import-panel { margin-bottom: 18px; }
.full-import { width: 100%; min-height: 48px; }
.import-panel textarea { min-height: 150px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 11px; }
.product-section { margin-top: 18px; }
.page-actions { display: flex; gap: 10px; align-items: center; }
.total-pill {
  display: inline-flex;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #efd33f;
  border-radius: 999px;
  align-items: center;
  color: #5f4f00;
  background: var(--yellow-soft);
  font-size: 11px;
  font-weight: 900;
}
.product-toolbar { justify-content: space-between; }
.product-toolbar .muted { font-size: 10px; }
.product-list { display: grid; gap: 10px; }
.product-row {
  display: grid;
  min-height: 112px;
  padding: 14px;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  transition: .2s ease;
}
.product-row:has(.product-check) { grid-template-columns: auto 84px 1fr auto; }
.product-row:hover { box-shadow: 0 16px 38px rgba(24,24,24,.08); }
.product-check {
  display: grid;
  width: 26px;
  place-items: center;
}
.product-thumb {
  display: grid;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 16px;
  place-items: center;
  color: #7a6400;
  background: var(--yellow-soft);
  font-size: 22px;
  font-weight: 900;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-main { min-width: 0; }
.product-row-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.product-row h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 15px;
  line-height: 1.45;
}
.product-row-head span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #08734a;
  background: var(--green-soft);
  font-size: 9px;
  font-family: Consolas, monospace;
}
.product-row p {
  margin: 0;
  overflow: hidden;
  color: #777;
  font-size: 10px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-row .task-meta {
  margin-top: 12px;
  padding-top: 9px;
}
.product-row-actions {
  display: grid;
  min-width: 128px;
  gap: 8px;
}
.product-row-actions .button { min-height: 34px; font-size: 10px; }
.delete-toolbar {
  display: flex;
  margin-bottom: 12px;
  padding: 12px 14px;
  gap: 14px;
  border: 1px solid #f1d8d2;
  border-radius: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--red-soft);
}
.delete-toolbar label { display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 850; }
.delete-toolbar > div { display: flex; gap: 8px; }

/* 表单、审核、表格 */
.form-panel { max-width: 800px; margin: 0 auto; }
.form-panel .panel { padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #555; font-size: 10px; font-weight: 850; }
.form-field small { color: #999; font-size: 8px; }
.warming-create { max-width: 740px; }
.warming-form { padding: 34px !important; }
.warming-form-grid { grid-template-columns: 1fr; gap: 22px; }
.task-type-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.type-option {
  display: grid;
  min-height: 84px;
  padding: 17px;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  align-items: center;
  background: #fffdf8;
  cursor: pointer;
}
.type-option.active {
  border-color: #e4bf00;
  background: var(--yellow-soft);
  box-shadow: 0 0 0 4px rgba(255,218,0,.18);
}
.type-option.disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(.35);
}
.type-option input { width: 18px; height: 18px; }
.type-option strong,
.type-option small { display: block; }
.type-option strong { color: var(--black); font-size: 17px; }
.type-option small { margin-top: 4px; font-size: 11px; }
.warming-slogan {
  display: grid;
  min-height: 96px;
  margin: 24px 0 18px;
  border-radius: 22px;
  place-items: center;
  color: var(--black);
  background:
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.4), transparent 24%),
    var(--yellow);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 950;
  letter-spacing: .08em;
  box-shadow: 0 16px 35px rgba(181,145,0,.16);
}
.item-parse-status {
  display: flex;
  min-height: 18px;
  margin-top: 7px;
  align-items: center;
  font-size: 10px !important;
  font-weight: 750;
}
.item-parse-status.success { color: var(--green); }
.item-parse-status.error { color: var(--red); }
.form-note { margin: 19px 0; padding: 13px 15px; border-radius: 12px; color: #6e5b00; background: var(--yellow-soft); font-size: 9px; line-height: 1.7; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.review-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-list { display: grid; gap: 10px; }
.review-row { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.review-row-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.review-row h4 { margin: 0; font-size: 12px; }
.review-row p { margin: 7px 0; color: #777; font-size: 10px; line-height: 1.6; }
.review-row small { color: #999; font-size: 8px; }
.review-row .task-actions { margin-top: 11px; }
.table-wrap { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; }
.audit-table th, .audit-table td { padding: 13px 10px; border-bottom: 1px solid #efefef; font-size: 10px; text-align: left; }
.audit-table th { color: #999; font-size: 8px; text-transform: uppercase; }
.audit-table td code { font-size: 8px; }
.role-badge { display: inline-block; padding: 5px 8px; border-radius: 9px; color: #725d00; background: var(--yellow-soft); font-size: 8px; font-weight: 900; }
.warm-product-cell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}
.warm-product-cell strong,
.warm-product-cell small { display: block; }
.warm-product-cell strong { font-size: 11px; }
.warm-product-cell small { margin-top: 3px; color: #999; font-family: Consolas, monospace; font-size: 8px; }
.mini-thumb {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 10px;
  place-items: center;
  color: #7a6400;
  background: var(--yellow-soft);
  font-size: 12px;
  font-weight: 900;
}
.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.green-number { color: var(--green); font-size: 13px; font-weight: 950; }
.warm-progress-cell {
  min-width: 180px;
}
.warm-progress-cell strong,
.warm-progress-cell small {
  display: block;
}
.warm-progress-cell strong {
  color: var(--black);
  font-size: 12px;
}
.warm-progress-cell strong b {
  color: var(--green);
  font-size: 18px;
}
.warm-progress-cell small {
  margin-top: 4px;
  color: #8a8374;
  font-size: 9px;
  font-weight: 850;
}
.warm-progress-bar {
  display: block;
  width: min(210px, 100%);
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1eee1;
}
.warm-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00a66a, #ffd400);
  box-shadow: 0 5px 14px rgba(0,166,106,.18);
}
.danger-text { color: var(--red); font-weight: 950; }
.account-strip { margin-bottom: 16px; }
.progress {
  width: 100%;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1eee1;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #ffb300);
  box-shadow: 0 6px 18px rgba(255, 211, 0, .35);
}

/* 浮层 */
.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-width: 270px;
  padding: 13px 15px;
  gap: 10px;
  border: 1px solid #f1d74d;
  border-radius: 14px;
  align-items: center;
  background: white;
  box-shadow: 0 16px 40px rgba(24,24,24,.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: .24s;
}
.toast.show { opacity: 1; transform: none; }
.toast > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--black); background: var(--yellow); font-weight: 900; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 11px; }
.toast small { margin-top: 2px; color: #999; font-size: 8px; }
dialog {
  width: min(590px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 27px;
  overflow-y: auto;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  box-shadow: 0 25px 80px rgba(20,20,20,.28);
}
dialog::backdrop { background: rgba(12,12,12,.55); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 31px; height: 31px; border: 0; border-radius: 10px; color: #777; background: #f0f0f0; cursor: pointer; font-size: 20px; }
.dialog-content h2 { margin: 0 35px 5px 0; font-size: 20px; }
.dialog-content > p { color: #777; font-size: 10px; line-height: 1.7; }
.dialog-content blockquote { margin: 15px 0; padding: 14px; border-left: 4px solid var(--yellow); border-radius: 0 10px 10px 0; color: #666; background: #f7f7f7; font-size: 10px; line-height: 1.7; }

@media (max-width: 1120px) {
  .free-badge { top: 220px; right: auto; left: clamp(42px, 6vw, 74px); }
  .art-copy { width: 88%; transform: translateY(4vh); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-wallet { grid-template-columns: 1fr; }
  .wallet-strip { grid-template-columns: repeat(2, 1fr); }
  .wallet-strip-main { grid-column: 1 / -1; }
  .summary-band { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel {
    display: flex;
    min-height: 100vh;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--canvas);
  }
  .mobile-brand-header {
    display: flex;
    min-height: 176px;
    padding: 36px clamp(34px, 9vw, 68px);
    align-items: flex-start;
    background: var(--yellow);
  }
  .mobile-brand-lockup {
    position: relative;
    display: block;
    width: 185px;
    aspect-ratio: 1.582 / 1;
    overflow: hidden;
  }
  .mobile-brand-lockup img {
    position: absolute;
    top: -5.7%;
    left: -13.6%;
    width: 119.7%;
    max-width: none;
    height: auto;
  }
  .login-card {
    width: min(420px, calc(100% - 40px));
    margin: -22px auto 30px;
  }
  .mobile-free {
    color: #5b4b00;
    background: var(--yellow-soft);
    box-shadow: none;
  }
  .sidebar { transform: translateX(-102%); transition: .23s; }
  .sidebar.open { transform: none; }
  .sidebar-mask { position: fixed; z-index: 25; inset: 0; background: rgba(0,0,0,.36); }
  .sidebar-mask.show { display: block; }
  .app > main { margin-left: 0; }
  .menu-button { display: block; }
  .dashboard-grid, .review-layout { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .login-screen {
    --login-gutter: clamp(24px, 7.2vw, 34px);
  }
  .login-panel {
    padding: 0;
    background: var(--paper);
  }
  .mobile-brand-header {
    min-height: clamp(142px, 38vw, 162px);
    padding: clamp(24px, 6.8vw, 31px) var(--login-gutter) 20px;
    align-items: flex-start;
  }
  .mobile-brand-lockup {
    width: clamp(150px, 42vw, 176px);
  }
  .login-card {
    width: 100%;
    min-height: calc(100vh - clamp(142px, 38vw, 162px));
    margin: 0;
    padding: clamp(22px, 6vw, 30px) var(--login-gutter) 32px;
    border: 0;
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
  }
  .login-card h2 {
    font-size: clamp(30px, 8.8vw, 38px);
    line-height: 1.16;
  }
  .login-card label {
    margin: clamp(18px, 5.3vw, 24px) 0;
  }
  .topbar { height: 66px; padding: 0 16px; }
  .top-actions .status-dot, .top-actions .button { display: none; }
  .content { padding: 22px 15px 38px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 24px; }
  .hero { min-height: 168px; padding: 23px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .hero-badge { display: none; }
  .dashboard-wallet { grid-template-columns: 1fr; }
  .wallet-primary { min-height: auto; padding: 21px; }
  .wallet-number strong { font-size: 48px; }
  .wallet-mini-row { grid-template-columns: 1fr; }
  .wallet-strip { grid-template-columns: 1fr; }
  .action-panel { align-items: stretch; flex-direction: column; }
  .action-panel .button { width: 100%; }
  .plugin-hero { align-items: stretch; flex-direction: column; }
  .plugin-hero .button { width: 100%; }
  .plugin-step { grid-template-columns: 1fr; }
  .plugin-notes { grid-template-columns: 1fr; }
  .summary-primary > strong { font-size: 40px; }
  .mini-status { display: grid; grid-template-columns: 1fr; }
  .mini-status span { justify-content: space-between; }
  .overview-strip { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat-card { min-height: 110px; padding: 15px; }
  .task-grid { grid-template-columns: 1fr; }
  .page-actions { width: 100%; justify-content: space-between; }
  .product-row,
  .product-row:has(.product-check) {
    grid-template-columns: auto 1fr;
  }
  .product-check { grid-row: span 2; }
  .product-thumb {
    width: 74px;
    height: 74px;
  }
  .product-row-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .delete-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .delete-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .tabs { overflow-x: auto; }
  .tabs button { flex: 0 0 auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .form-panel .panel { padding: 20px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .verify-row { grid-template-columns: 1fr; }
  .toast { right: 14px; bottom: 14px; left: 14px; min-width: 0; }
  dialog { padding: 23px 19px; }
}
@media (max-width: 370px) {
  .login-screen { --login-gutter: 22px; }
  .mobile-brand-lockup { width: 146px; }
  .mobile-free { padding-right: 9px; padding-left: 9px; }
  .demo-tip { font-size: 9px; }
}
