:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --green: #16824b;
  --green-soft: #e9f6ef;
  --ink: #17231c;
  --muted: #718076;
  --line: #e7ece8;
  --bg: #f5f7f4;
  --price: #c96b1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.title {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}

.icon-btn,
.text-btn,
.primary-btn,
.ghost-btn {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  white-space: nowrap;
}

.icon-btn {
  width: 38px;
  padding: 0;
  background: var(--green-soft);
  color: var(--green);
  font-size: 20px;
}

.text-btn,
.primary-btn {
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.ghost-btn {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}

.content {
  padding: 14px 16px 90px;
}

.search {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #f9fbf9;
  outline: none;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
}

.tab {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  background: #f2f5f2;
  color: var(--muted);
}

.tab.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 750;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.row,
.card,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.thumb {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #dfe8df;
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-title {
  display: block;
  font-size: 16px;
  font-weight: 750;
}

.meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--price);
  font-weight: 800;
}

.empty {
  margin-top: 24px;
  padding: 22px;
  border: 1px dashed #cfd9d1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.hero img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 8px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px;
}

.record img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}

.record dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.record div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.record dt {
  color: var(--muted);
}

.record dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(460px, 100%);
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.bottom-nav button {
  height: 58px;
  background: transparent;
  color: var(--muted);
}

.bottom-nav button.active {
  color: var(--green);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, 0.34);
  padding: 16px;
}

.modal {
  width: min(430px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.modal h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
}

.upload {
  min-height: 120px;
  border: 1px dashed #b8c8bc;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f8fbf8;
  overflow: hidden;
}

.upload img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.actions button {
  flex: 1;
}

.profile-card {
  padding: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 750;
}

.login {
  display: grid;
  min-height: 100vh;
  align-content: center;
  padding: 28px;
}

.login h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login p {
  margin: 0 0 24px;
  color: var(--muted);
}

@media (max-width: 360px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .content {
    padding-left: 12px;
    padding-right: 12px;
  }
}

