:root {
  --ink: #16241e;
  --green: #2f6b4f;
  --green-soft: #e8f1ea;
  --gold: #b98a3c;
  --sand: #f5f2ea;
  --card: #ffffff;
  --line: #e6e1d6;
  --muted: #6b7a71;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(22, 36, 30, .08);
}

* { box-sizing: border-box; }

[v-cloak] { display: none; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1f4032 0%, #2f6b4f 55%, #3f8f68 100%);
  color: #fff;
  padding: 48px 20px 28px;
}
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .68);
}
.hero h1 { margin: 0 0 10px; font-size: 34px; font-weight: 700; letter-spacing: .01em; }
.sub { margin: 0 auto 24px; max-width: 640px; color: rgba(255, 255, 255, .85); font-size: 15px; }

.back-row { margin-bottom: 16px; }
.back-row .btn { padding: 8px 20px; font-size: 13.5px; }

/* ---------- Layout ---------- */
.wrap { max-width: 880px; margin: -12px auto 40px; padding: 0 20px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  border: 1px solid rgba(0, 0, 0, .03);
}
.card-title { margin: 0 0 6px; font-size: 20px; }
.card-desc { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

/* ---------- Steps ---------- */
.steps {
  display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px;
}
.steps li {
  flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 8px; font-size: 14px; border-radius: 12px;
  background: rgba(47, 107, 79, .08); color: var(--muted);
}
.steps li span {
  width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 12px;
  border-radius: 50%; background: #d8ded9; color: #6b7a71;
}
.steps li.active { background: var(--green); color: #fff; font-weight: 600; }
.steps li.active span { background: rgba(255, 255, 255, .25); color: #fff; }
.steps li.done span { background: var(--green); color: #fff; }

/* ---------- Form ---------- */
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input[type="text"], textarea {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fcfbf8; color: var(--ink);
  transition: .2s;
}
input[type="text"]:focus, textarea:focus {
  outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(47, 107, 79, .12);
}
textarea { resize: vertical; }
.counter { display: block; text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  padding: 8px 16px; font-size: 14px; font-family: inherit; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; transition: .18s;
}
.chip-btn:hover { border-color: var(--green); }
.chip-btn.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

/* ---------- Question list ---------- */
.group { margin-bottom: 24px; }
.group-title {
  margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; color: var(--green);
  text-transform: uppercase; font-weight: 700;
}
.q-item {
  display: flex; gap: 14px; padding: 16px 18px; margin-bottom: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .18s;
}
.q-item:hover { border-color: #c9d8cd; transform: translateY(-1px); }
.q-item.on { border-color: var(--green); background: var(--green-soft); }
.box {
  flex: 0 0 22px; height: 22px; margin-top: 3px; border: 2px solid #c9d2cb; border-radius: 6px;
  background: #fff; font-size: 13px; line-height: 18px; text-align: center; color: #fff;
}
.q-item.on .box { background: var(--green); border-color: var(--green); }
.q-body { flex: 1; min-width: 0; }
.q-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.q-en { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.tag {
  display: inline-block; padding: 3px 10px; font-size: 12px; border-radius: 999px;
  background: rgba(185, 138, 60, .12); color: var(--gold);
}
.stars { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.stars-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.star {
  border: 0; background: none; cursor: pointer; font-size: 19px; line-height: 1;
  color: #cfd8d1; padding: 0 1px; transition: .15s;
}
.star.on { color: var(--gold); }
.stars em { font-size: 12px; color: var(--muted); font-style: normal; margin-left: 4px; }

.sticky-bar {
  display: flex; justify-content: flex-end; padding: 10px 4px;
  font-size: 14px; color: var(--muted);
}
.sticky-bar b { color: var(--green); font-size: 17px; }

.summary { margin-top: 8px; padding: 16px 18px; background: var(--green-soft); border-radius: 12px; }
.summary h4 { margin: 0 0 10px; font-size: 14px; }
.summary ul { margin: 0; padding: 0; list-style: none; }
.summary li {
  display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px;
  border-bottom: 1px dashed rgba(47, 107, 79, .2);
}
.summary li:last-child { border-bottom: 0; }
.summary b { color: var(--green); }

/* ---------- Buttons ---------- */
.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 4px; }
.actions.center { justify-content: center; margin-top: 22px; }
.btn {
  padding: 12px 30px; font-size: 15px; font-family: inherit; cursor: pointer;
  border-radius: 999px; border: 1px solid transparent; transition: .18s;
}
.btn.primary { background: var(--green); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #265a42; }
.btn.primary:disabled { opacity: .6; cursor: not-allowed; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); }

.error { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #b3403c; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Success ---------- */
.success { text-align: center; padding-top: 36px; }
.tick {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 30px; line-height: 62px;
}
.wish-list { list-style: none; padding: 0; margin: 22px 0 8px; text-align: left; }
.wish-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wish-list li p { margin: 0; font-size: 14.5px; }
.wish-list li small { color: var(--muted); font-size: 12.5px; }
.dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--gold); }
.uuid { font-size: 12.5px; color: var(--muted); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric {
  background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.m-label { font-size: 12.5px; color: var(--muted); }
.m-value { font-size: 28px; color: var(--green); line-height: 1.2; }
.m-value.small { font-size: 16px; }

.bar-row { margin-bottom: 14px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; }
.bar-value { color: var(--muted); white-space: nowrap; }
.bar-track { height: 10px; background: #eef1ed; border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #3f8f68, #2f6b4f); border-radius: 999px; transition: width .5s ease; }
.bar-fill.gold { background: linear-gradient(90deg, #d5ab63, #b98a3c); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid-2 .card { margin-bottom: 0; }

.trend { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.trend-col i {
  width: 100%; max-width: 26px; background: linear-gradient(180deg, #3f8f68, #2f6b4f);
  border-radius: 6px 6px 0 0; min-height: 4px;
}
.trend-col span { font-size: 11px; color: var(--muted); margin-top: 6px; }
.trend-col b { font-size: 12px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.table tr:last-child td { border-bottom: 0; }

.export-row { display: flex; gap: 10px; }
.export-row input { flex: 1; }
.empty { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }


@media (max-width: 720px) {
  .hero h1 { font-size: 26px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
  .actions { flex-direction: column-reverse; }
  .btn { width: 100%; }
}
