/* Hallmark · macrostructure: Workbench · tone: editorial · anchor hue: amber */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
  --paper: #f6f3ee;
  --paper-deep: #eee8de;
  --ink: #7b5332;
  --ink-soft: #94745b;
  --gold: #d29426;
  --gold-deep: #b87d1a;
  --olive: #717a5c;
  --brick: #9e5154;
  --line: #d9d0c2;
  --line-soft: #e6ded1;
  --white: #fffdf9;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --display: "Fraunces", "Noto Serif SC", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  background-image: radial-gradient(rgba(123, 83, 50, .04) .7px, transparent .7px);
  background-size: 7px 7px;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.app { max-width: 760px; margin: 0 auto; padding: 0 24px 48px; }

/* ===== 水印 ===== */
.watermark { position: fixed; right: 20px; bottom: 20px; z-index: 0; width: 110px; height: auto; opacity: .045; pointer-events: none; filter: sepia(.25); }

/* ===== 顶栏 / 进度 ===== */
.topbar {
  position: sticky; top: 0; z-index: 10; margin: 0 -24px; padding: 16px 24px 12px;
  background: rgba(246, 243, 238, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 12px; letter-spacing: .2px; }
.brand::after { content: "FIELD NOTE / CAT BEHAVIOR"; color: var(--olive); font: 600 9px/1 var(--sans); letter-spacing: 1.5px; }
.progress-wrap { height: 2px; background: var(--line); overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--gold); transition: width .35s var(--ease-out); }
.progress-text { font: 600 9px/1.2 var(--sans); letter-spacing: 1.2px; color: var(--ink-soft); margin-top: 7px; text-align: right; }

/* ===== 问卷主记录页 ===== */
.card {
  position: relative; z-index: 1; background: rgba(255, 253, 249, .84); border: 1px solid var(--line);
  border-radius: 0; padding: 40px 42px; margin-top: 22px; box-shadow: 8px 10px 0 rgba(123, 83, 50, .035);
  animation: fadeUp .32s var(--ease-out);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.part-badge {
  display: inline-flex; align-items: center; color: var(--gold); border: 1px solid var(--gold);
  font: 600 10px/1.2 var(--sans); padding: 6px 9px; border-radius: 0; margin-bottom: 22px; letter-spacing: 1px;
}
h1.hero-title { font-family: var(--display); font-size: 33px; line-height: 1.35; margin-bottom: 14px; font-weight: 600; letter-spacing: 0; }
h2.question-title { font-family: var(--display); font-size: 25px; line-height: 1.45; margin-bottom: 10px; font-weight: 600; letter-spacing: 0; }
.desc { color: var(--ink-soft); font-size: 13px; line-height: 1.9; margin-bottom: 22px; }
.desc strong { color: var(--gold-deep); }
.hero-emoji { font-size: 34px; text-align: left; margin-bottom: 16px; filter: grayscale(.2); }

/* ===== 选项记录条 ===== */
.options { margin-top: 10px; }
.option {
  display: flex; align-items: center; width: 100%; min-height: 52px; text-align: left; background: transparent;
  border: 1px solid var(--line-soft); border-radius: 0; padding: 12px 14px; font-size: 14px; color: var(--ink);
  cursor: pointer; margin-bottom: 8px; transition: border-color .15s, background .15s, color .15s; font-family: inherit; line-height: 1.55;
}
.option:hover { border-color: var(--gold); background: rgba(246, 243, 238, .7); }
.option.selected { border-color: var(--gold); background: var(--gold); color: var(--white); font-weight: 600; }
.option .letter { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-soft); font: 600 11px/1 var(--sans); display: flex; align-items: center; justify-content: center; margin-right: 12px; transition: border-color .15s, background .15s, color .15s; }
.option.selected .letter { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.16); }
.option .box { flex: none; width: 21px; height: 21px; border-radius: 0; border: 1px solid var(--line); margin-right: 12px; position: relative; transition: border-color .15s, background .15s; }
.option.selected .box { border-color: var(--white); background: rgba(255,255,255,.16); }
.option.selected .box::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 13px; font-weight: 700; }
.multi-hint { font: 600 10px/1.5 var(--sans); letter-spacing: .4px; color: var(--olive); margin: 0 0 12px; }

/* ===== 数字输入 ===== */
.num-wrap { display: flex; align-items: center; gap: 12px; background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; }
.num-wrap input { flex: 1; border: none; background: transparent; font-size: 20px; font-weight: 600; color: var(--ink); outline: none; min-width: 0; }
.num-wrap span { color: var(--ink-soft); font-size: 13px; }
.num-note { font-size: 12px; color: var(--ink-soft); margin-top: 8px; line-height: 1.7; }

/* ===== 反馈条 ===== */
.feedback { border-radius: 0; padding: 14px 16px; margin-top: 18px; font-size: 13px; line-height: 1.85; animation: fadeUp .25s var(--ease-out); border-left: 1px solid; }
.feedback.warn { background: rgba(238, 232, 222, .65); border-color: var(--gold); color: var(--ink-soft); }
.feedback.good { background: rgba(232, 236, 223, .7); border-color: var(--olive); color: #5a6348; }
.feedback.medical { background: rgba(245, 236, 236, .75); border-color: var(--brick); color: #8a4a4a; }
.feedback h4 { font-size: 14px; margin-bottom: 5px; font-weight: 600; }
.feedback ul { margin: 6px 0 0 16px; }

/* ===== 按钮 ===== */
.btn-row { display: flex; gap: 12px; margin-top: 28px; }
.btn { flex: 1; min-height: 48px; padding: 12px 14px; border: 1px solid transparent; border-radius: 0; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease-out); font-family: inherit; text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--gold-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover:not(:disabled) { background: var(--paper-deep); border-color: var(--ink-soft); }
.btn-green { background: var(--olive); color: var(--white); }
.btn-green:hover { background: #5e664d; }
.btn-red { background: var(--brick); color: var(--white); }
.btn-red:hover { background: #7f4143; }

/* ===== 结果页 ===== */
.result-badge { width: 52px; height: 52px; border-radius: 50%; margin: 0 0 16px; display: flex; align-items: center; justify-content: center; font-size: 23px; }
.result-badge.green { background: #e8ecdf; }
.result-badge.yellow { background: var(--paper-deep); }
.result-badge.red { background: #f5e4e4; }
.result-badge.blue { background: #e8ecdf; }
.result-title { font-family: var(--display); font-size: 28px; text-align: left; line-height: 1.45; margin-bottom: 10px; font-weight: 600; }
.result-sub { text-align: left; color: var(--ink-soft); font-size: 13px; margin-bottom: 22px; }
.result-body { font-size: 14px; line-height: 1.9; color: var(--ink); }
.result-body h4 { margin: 20px 0 8px; font-size: 14px; color: var(--ink); font-weight: 600; }
.result-body h4:first-child { margin-top: 0; }
.result-body ul, .result-body ol { padding-left: 20px; }
.result-body li { margin-bottom: 6px; }
.todo-list { list-style: none; padding-left: 0 !important; }
.todo-list li { background: transparent; border-bottom: 1px solid var(--line-soft); padding: 10px 10px 10px 32px; margin-bottom: 0; position: relative; }
.todo-list li::before { content: "☐"; position: absolute; left: 5px; top: 10px; font-size: 14px; color: var(--gold); }
.highlight-box { background: rgba(238, 232, 222, .65); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; margin: 16px 0; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.cta-box { background: transparent; border: 1px solid var(--gold); border-radius: 0; padding: 20px; margin-top: 22px; }
.cta-box h4 { color: var(--ink); margin-bottom: 6px; font-size: 15px; }
.cta-box p { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }
.qrcode-wrap { text-align: center; margin-top: 12px; }
.qrcode-wrap img { max-width: 180px; border-radius: 0; border: 1px solid var(--line); box-shadow: none; }
.qrcode-caption { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.record-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 12px 0; }
.record-item { background: transparent; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 10px 0; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.record-item b { color: var(--ink); }

/* ===== 开场 ===== */
.intro-lead { font-size: 15px; line-height: 1.95; color: var(--ink); margin-bottom: 22px; }
.intro-box { background: transparent; border: 1px solid var(--line); border-left: 1px solid var(--olive); border-radius: 0; padding: 16px 18px; margin-bottom: 12px; }
.intro-box h4 { font-size: 13px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.intro-box p { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.quote { border-left: 1px solid var(--gold); background: rgba(238, 232, 222, .55); border-radius: 0; padding: 16px 18px; margin: 18px 0; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.time-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--paper-deep); color: var(--olive); font: 600 10px/1.2 var(--sans); letter-spacing: .5px; padding: 7px 10px; border-radius: 0; margin-bottom: 18px; }
.footnote { position: relative; z-index: 1; text-align: center; color: var(--ink-soft); font-size: 11px; margin-top: 20px; line-height: 1.8; }

/* ===== 隐私声明 ===== */
.privacy-notice { background: rgba(245, 236, 236, .7); border: 1px dashed #e5d0d0; border-radius: 0; padding: 13px 15px; margin-top: 20px; font-size: 12px; line-height: 1.8; color: var(--brick); }
.privacy-notice b { color: var(--ink); }

@media (max-width: 560px) {
  .app { padding: 0 16px 36px; }
  .topbar { margin: 0 -16px; padding: 14px 16px 10px; }
  .brand { align-items: flex-start; font-size: 14px; }
  .brand::after { max-width: 112px; text-align: right; line-height: 1.35; }
  .card { padding: 28px 20px; margin-top: 16px; }
  h1.hero-title { font-size: 26px; }
  h2.question-title { font-size: 22px; }
  .hero-emoji { font-size: 30px; }
  .btn-row { flex-direction: column-reverse; }
  .btn { width: 100%; }
  .watermark { width: 76px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.beian-simple { margin-top: 12px; font-size: 11px; color: #8a8577; text-align: center; }
.beian-simple a { color: #8a8577; text-decoration: none; }
.beian-simple a:hover { color: #d29426; }
