:root {
  --bg: #f6f4ef;
  --card: #fffdf8;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --brand: #0f766e;
  --brand-ink: #ecfdf5;
  --warn: #b45309;
  --danger: #b91c1c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 400px at 10% -10%, #d1fae5 0%, transparent 50%),
    radial-gradient(900px 360px at 100% 0%, #fde68a 0%, transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  min-height: 100%;
}
a { color: var(--brand); text-decoration: none; }
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 16px 96px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.points {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}
.points b { color: var(--brand); font-size: 15px; }
.hero {
  background: linear-gradient(145deg, #134e4a, #0f766e 55%, #115e59);
  color: #ecfdf5;
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}
.hero p {
  margin: 0;
  opacity: 0.88;
  font-size: 14px;
  line-height: 1.5;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 6px;
}
input[type="text"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand);
  color: var(--brand-ink);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(15, 118, 110, 0.35);
}
.btn.warn { background: #c2410c; color: #fff7ed; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }
.nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.nav a {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}
.nav a.on { color: var(--brand); font-weight: 700; }
.variant {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.variant.on {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.variant .meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.variant .rate.bad { color: var(--danger); font-weight: 700; }
.variant ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}
.assets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.assets img, .preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: block;
}
.progress {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0f766e, #34d399);
  transition: width .4s ease;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  background: rgba(28,25,23,.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 50;
  max-width: 80%;
}
.toast.show { opacity: 1; }
.pkg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pkg:last-child { border-bottom: 0; }
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.file-btn {
  position: relative;
  overflow: hidden;
}
.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}