@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap");

:root {
  --bg: #e8f0e6;
  --bg-2: #f4f7f2;
  --ink: #1a2e1c;
  --muted: #5a6b5c;
  --line: #c5d4c2;
  --card: #ffffff;
  --refund: #c45c26;
  --exchange: #2a6b4a;
  --accent: #2a6b4a;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(26, 46, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, #d4e8ce 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, #cfe0d8 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.wrap {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.brand {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
}

.nav a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(197, 212, 194, 0.7);
  padding: 18px 16px 20px;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.field {
  margin-bottom: 16px;
}

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

.kind-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kind-row label {
  margin: 0;
  text-align: center;
  padding: 16px 10px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #f7faf6;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  transition: 0.15s ease;
}

#kind-refund:checked + label {
  border-color: var(--refund);
  background: #fff4ee;
  color: var(--refund);
}

#kind-exchange:checked + label {
  border-color: var(--exchange);
  background: #eef7f1;
  color: var(--exchange);
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fbfcfb;
  color: var(--ink);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(42, 107, 74, 0.35);
  border-color: var(--accent);
}

.hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.photo-box {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #f7faf6;
}

.photo-box input[type="file"] {
  width: 100%;
  font-size: 0.92rem;
}

.preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

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

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-top: 10px;
}

.flash {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecea;
  color: var(--danger);
  font-size: 0.92rem;
}

.flash-ok {
  background: #eef7f1;
  color: var(--exchange);
}

.btn-danger {
  background: #b42318;
  margin-top: 10px;
}

.photo-keep {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.keep-item {
  display: block;
  margin: 0;
  position: relative;
}

.keep-item input {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  width: 18px;
  height: 18px;
}

.keep-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: none;
}

.list-main {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 14px 2px;
  color: inherit;
  text-decoration: none;
}

.list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.list-actions form {
  margin: 0;
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.mini-btn.danger {
  color: #b42318;
  border-color: #f3c4c0;
}


.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag.refund {
  background: #fff4ee;
  color: var(--refund);
}

.tag.exchange {
  background: #eef7f1;
  color: var(--exchange);
}

.tag.time {
  background: #eef1ee;
  color: var(--muted);
  font-weight: 500;
}

.kv {
  margin: 0 0 10px;
  line-height: 1.55;
}

.kv strong {
  display: inline-block;
  min-width: 3.2em;
  color: var(--muted);
  font-weight: 500;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 18px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.share-box {
  background: #f4f7f2;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  border-bottom: 1px solid var(--line);
}

.list li:last-child {
  border-bottom: none;
}

.list a {
  display: block;
  padding: 14px 2px;
  color: inherit;
}

.list .title {
  font-weight: 700;
  margin-bottom: 4px;
}

.list .desc {
  color: var(--muted);
  font-size: 0.88rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 28, 0.55);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.share-overlay.show {
  display: flex;
}

.share-sheet {
  background: #fff;
  border-radius: 16px;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 14px;
  box-shadow: var(--shadow);
}

.share-sheet img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  pointer-events: auto;
}


.share-sheet .hint {
  text-align: center;
  margin: 10px 0 12px;
}

