/* 虎爪时光胶囊打开页：纸色底、中国红配金，和 App 里的时光胶囊一个配色（Claude 11-25）。 */
:root {
  --red: #B91C1C;
  --gold: #C9971C;
  --ink: #2B2620;
  --paper: #F7F3EA;
  --card: #FFFDF8;
  --line: #EFE7D8;
  --muted: #7A7064;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}
.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(70, 45, 10, 0.10);
  padding: 24px 22px 18px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.paw { width: 46px; height: 46px; flex: none; }
h1 { font-size: 22px; margin: 0; letter-spacing: 0.5px; }
.sub { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.3px; }

.lead { font-size: 19px; font-weight: 600; margin: 4px 0 10px; }
.hint { color: var(--muted); margin: 0 0 14px; }
.wait { text-align: center; padding: 18px 0 6px; }
.big { font-size: 26px; font-weight: 700; color: var(--red); margin: 0 0 4px; }

form { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 4px; }
input {
  font: inherit;
  padding: 14px;
  border: 1.5px solid #E2D9C8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 151, 28, 0.18); }
button, .appButton {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: var(--red);
  color: #fff;
  text-align: center;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
button:disabled { opacity: 0.6; }
.error { color: var(--red); margin: 10px 0 0; }

article { margin-top: 4px; }
#title { font-size: 22px; margin: 4px 0 8px; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 18px; margin: 0 0 16px; }
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); white-space: nowrap; }
dd { margin: 0; overflow-wrap: anywhere; }
.coords { font-variant-numeric: tabular-nums; color: var(--muted); margin: 8px 0 2px; font-size: 14px; }
.links { margin: 0; }
.links a { color: var(--red); text-decoration: none; font-weight: 600; }
.dot { color: var(--muted); margin: 0 8px; }
.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.app { margin-top: 22px; padding-top: 16px; border-top: 1px dashed #E2D9C8; }
.appButton { background: #fff; color: var(--red); border: 1.5px solid var(--red); }

footer { margin-top: 20px; color: var(--muted); font-size: 13px; text-align: center; }
footer p { margin: 0; }
