/* ABOUTME: Product Feedback Memo stylesheet — paper-memo aesthetic, no external deps */

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

:root {
  --paper: #f5f0e4;
  --card: #fffdf7;
  --ink: #211b14;
  --ink-soft: #6f6558;
  --line: #e3d9c6;
  --line-strong: #cfc2a9;
  --accent: #b3392b;
  --accent-deep: #8f2c21;
  --accent-soft: #f9ece7;
  --shadow-sheet: 0 18px 40px -24px rgba(33, 27, 20, 0.35), 0 2px 6px rgba(33, 27, 20, 0.06);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Noto Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(33, 27, 20, 0.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
  line-height: 1.6;
}

[hidden] { display: none !important; }

/* ============ 笺纸容器 ============ */
.sheet {
  background: var(--card);
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sheet);
  padding: 1.75rem 1.6rem 1.4rem;
  align-self: flex-start;
}

/* ============ 笺头 ============ */
.memo-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.seal-chip {
  width: 14px; height: 14px; flex: none;
  background: var(--accent);
  border-radius: 4px;
  transform: rotate(45deg);
}
.memo-kicker {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.memo-title {
  font-family: "Noto Serif", "Noto Serif SC", serif;
  font-size: 1.5rem; font-weight: 900;
  letter-spacing: 0.06em; line-height: 1.25;
}
.memo-meta {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; color: var(--ink-soft);
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
  padding: 0.45rem 0.1rem;
}
.memo-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.memo-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.7rem; }

/* ============ 真实进度 ============ */
.progress-row { margin: 1.4rem 0 1.2rem; }
.progress-label {
  display: block;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 0.45rem;
}
.progress-track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0;
  background: var(--accent); border-radius: 999px;
  transition: width 0.35s ease;
}

/* ============ 问题与选项 ============ */
.step { display: none; }
.step.is-active { display: block; animation: rise 0.28s ease-out; }
.q-title {
  font-family: "Noto Serif", "Noto Serif SC", serif;
  font-size: 1.28rem; font-weight: 700; letter-spacing: 0.02em;
}
.q-hint { font-size: 0.84rem; color: var(--ink-soft); margin: 0.35rem 0 1.15rem; }
.options { display: grid; gap: 0.6rem; }
.option {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%; text-align: left;
  font: inherit; font-weight: 500; font-size: 0.98rem; color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.option:hover { border-color: var(--line-strong); background: #fbf7ee; transform: translateY(-1px); }
.option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.option.is-selected .option-index {
  border-color: var(--accent);
  color: var(--card);
  background: var(--accent);
}
.option-index {
  font-style: normal;
  font-family: "Noto Serif", "Noto Serif SC", serif; font-weight: 700;
  width: 1.75em; height: 1.75em; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 7px;
  font-size: 0.8rem; color: var(--ink-soft); background: #faf6ec;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* ============ 补充建议与提交 ============ */
.extra-label {
  display: block;
  font-size: 0.8rem; font-weight: 700;
  color: var(--ink-soft);
  margin: 1.2rem 0 0.4rem;
}
.extra-input {
  width: 100%;
  font: inherit; font-size: 0.92rem; color: var(--ink);
  background: #fbf7ee;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.85rem;
  resize: vertical; min-height: 76px;
}
.extra-input:focus { outline: none; border-color: var(--line-strong); }
.btn-submit { margin-top: 1.2rem; }
.submit-hint { font-size: 0.76rem; color: var(--ink-soft); text-align: center; margin-top: 0.55rem; }

/* ============ 按钮 ============ */
.btn-solid {
  display: block; width: 100%;
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: 0.12em;
  color: var(--card); background: var(--ink);
  border: none; border-radius: 10px;
  padding: 0.85rem 1rem; cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.btn-solid:hover:not(:disabled) { background: #352c21; transform: translateY(-1px); }
.btn-solid:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-solid:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ghost {
  font: inherit; font-weight: 500; font-size: 0.9rem; color: var(--ink-soft);
  background: transparent;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.6rem 1rem; cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-ghost:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ 底部翻页区 ============ */
.step-nav { display: flex; align-items: center; margin-top: 1.4rem; min-height: 2.4rem; }
.nav-spacer { flex: 1; }

/* ============ 回执结果 ============ */
.result { text-align: center; }
.result-art {
  margin: 0 auto 1rem; width: 150px;
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #fbf7ee;
}
.result-art img { display: block; width: 100%; height: auto; }
.stamp-wrap { display: flex; justify-content: center; margin: -8px 0 0.9rem; }
.stamp {
  font-family: "Noto Serif", "Noto Serif SC", serif; font-weight: 900;
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px solid var(--accent);
  outline: 1.5px solid var(--accent); outline-offset: 3px;
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 0.62rem; letter-spacing: 0.1em; text-indent: 0.1em;
  transform: rotate(-8deg);
  opacity: 0.92;
}
.stamp-in { animation: stamp-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.15s both; }
@keyframes stamp-in {
  from { transform: rotate(-8deg) scale(1.9); opacity: 0; }
  60% { transform: rotate(-8deg) scale(0.94); opacity: 1; }
  to { transform: rotate(-8deg) scale(1); opacity: 0.92; }
}
.result-title { font-family: "Noto Serif", "Noto Serif SC", serif; font-size: 1.3rem; font-weight: 700; }
.result-sub { font-size: 0.84rem; color: var(--ink-soft); margin: 0.4rem 0 1.2rem; }
.receipt {
  text-align: left;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  padding: 0.35rem 1rem; background: #fdfaf2;
}
.receipt dt {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-top: 0.55rem;
}
.receipt dd {
  font-size: 0.95rem; font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}
.receipt dd:last-child { border-bottom: none; }
.result-meta {
  display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap;
  font-size: 0.76rem; color: var(--ink-soft);
  margin: 0.9rem 0 1.2rem;
}
.result-actions { display: grid; gap: 0.6rem; }

/* ============ 页脚 ============ */
.sheet-foot {
  margin-top: 1.5rem; padding-top: 0.9rem;
  border-top: 1px dashed var(--line-strong);
  text-align: center;
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ============ 动效 ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .sheet { padding: 1.4rem 1.1rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
