:root {
  --paper: #f7f3ea;
  --ink: #2a241c;
  --muted: #8b7f6d;
  --line: #e3dacb;
  --card: #fffdf8;
  --accent: #7a5230;
  --accent-soft: #efe3d2;
  --shadow: 0 10px 30px rgba(60, 45, 25, 0.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 15% -10%, #fdf8ec 0%, rgba(253,248,236,0) 60%),
    radial-gradient(900px 500px at 100% 0%, #f3ece0 0%, rgba(243,236,224,0) 55%),
    var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px 72px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 19px; letter-spacing: 0.06em; display: flex; align-items: center; gap: 9px; }
.brand .seal {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; letter-spacing: 0; box-shadow: 0 4px 10px rgba(122, 82, 48, 0.25);
}
.brand span { color: var(--accent); }
nav a { margin-left: 20px; font-size: 14px; color: var(--muted); position: relative; }
nav a:hover { color: var(--ink); }
nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: var(--accent); opacity: 0.6;
}

.hero { padding: 64px 0 34px; }
.hero h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 40px; line-height: 1.35; font-weight: 600; margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.hero p { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.card h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 20px; margin: 0 0 16px; font-weight: 600;
}
.hint { color: var(--muted); font-size: 13px; }

form .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
form .grid.two { grid-template-columns: repeat(2, 1fr); }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; letter-spacing: 0.04em; }
input, select {
  width: 100%; padding: 10px 11px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px;
  font-family: inherit;
}
input:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; padding: 12px 26px;
  border-radius: 999px; font-size: 15px; font-family: inherit;
  letter-spacing: 0.04em;
}
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 8px 16px; font-size: 13px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 12px; text-align: center;
}
.pillar .pos { font-size: 12px; color: var(--muted); letter-spacing: 0.2em; }
.pillar .gz {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 34px; line-height: 1.3; margin: 6px 0 2px; letter-spacing: 0.08em;
}
.pillar .ss { font-size: 13px; color: var(--accent); }
.pillar .nayin { font-size: 11px; color: var(--muted); margin-top: 6px; }
.hidden { margin-top: 8px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.hidden span {
  font-size: 11px; color: var(--muted); background: var(--paper);
  border-radius: 6px; padding: 1px 5px;
}

.bars { margin-top: 4px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 56px; align-items: center; gap: 10px; margin: 7px 0; }
.bar-row .wx { font-size: 14px; }
.bar { height: 9px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.bar-row .num { font-size: 12px; color: var(--muted); text-align: right; }

.kv { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tag {
  font-size: 13px; background: var(--accent-soft); color: var(--accent);
  padding: 3px 10px; border-radius: 999px;
}
.note { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 14px; }

.people { display: flex; flex-direction: column; gap: 2px; }
.person {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.person:last-child { border-bottom: 0; }
.pname { font-size: 15px; }
.pmeta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.pet-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 0 12px;
}
.pet-orb {
  width: 178px; height: 178px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(122, 82, 48, 0.12);
  box-shadow: inset 0 -10px 30px rgba(255,255,255,0.55), 0 18px 40px rgba(60,45,25,0.12);
  animation: breathe 5s ease-in-out infinite;
}
.pet-orb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}
.pet-name { font-family: "Songti SC", serif; font-size: 24px; margin: 14px 0 2px; }
.pet-sub { color: var(--muted); font-size: 13px; }
.pet-quote {
  margin: 18px auto 0; max-width: 520px; text-align: center;
  font-size: 15px; color: #5b4c3a;
}
.stats { margin-top: 22px; }
.stat { display: grid; grid-template-columns: 56px 1fr 44px; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.stat .bar { height: 8px; }
.chat { margin-top: 6px; }
.chat .line { margin: 8px 0; display: flex; gap: 8px; }
.chat .who { font-size: 11px; color: var(--muted); width: 42px; flex: none; padding-top: 3px; }
.chat .bubble { background: var(--paper); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.chat .me .bubble { background: #eef2ea; }
.talkbox { display: flex; gap: 8px; margin-top: 14px; }
.talkbox input { flex: 1; }
.memory { font-size: 12px; color: var(--muted); margin-top: 10px; }

.pet-line { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pet-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px 4px 4px; font-size: 12px; color: #5b4c3a;
}
.pet-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; background: #fef4df; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; }
.plan.feature { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .name { font-size: 14px; color: var(--muted); }
.plan .price { font-family: "Songti SC", serif; font-size: 32px; margin: 8px 0 2px; }
.plan .price small { font-size: 13px; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 14px 0 18px; font-size: 13px; color: #5b4c3a; }
.plan li { margin: 5px 0; }
.badge { display: inline-block; font-size: 11px; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

footer { margin-top: 46px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 15px; font-family: inherit;
  line-height: 1.7; resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.quote-card { background: #fbf3e4; border-color: #eadcc4; position: relative; padding: 30px 26px; }
.quote-mark { font-family: "Songti SC", serif; font-size: 54px; line-height: 0.6; color: #c9a97a; }
.quote-text { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 22px; line-height: 1.6; margin-top: 10px; }

.mood-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.mood-chip {
  font-size: 13px; color: #6b5b48; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px;
}
.mood-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.same-line { font-size: 13px; color: var(--accent); margin: 0 0 12px 2px; }

.mood-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 2px; }
.mood-radio input { position: absolute; opacity: 0; pointer-events: none; }
.mood-radio span {
  display: inline-block; font-size: 13px; color: #6b5b48; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff;
}
.mood-radio input:checked + span { background: #e9d6bd; border-color: #c9a97a; color: #6b4423; font-weight: 600; }

.whisper-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.whisper { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.w-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.w-name { color: #5b4c3a; font-size: 13px; }
.w-mood { background: #f3ece0; border-radius: 999px; padding: 1px 9px; }
.w-time { margin-left: auto; }
.w-text { font-size: 16px; line-height: 1.8; margin: 10px 0 12px; }
.hug {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 12px; border-radius: 999px; padding: 5px 12px; cursor: pointer; font-family: inherit;
}
.hug:hover { color: var(--accent); border-color: #d8bfa0; }
.hug.done { color: #b0603a; border-color: #e3c4b4; background: #fdf1ea; }

.write-box summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.write-box { margin-bottom: 18px; }

.note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 6px; }
.note-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.note-cover { height: 132px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.note-body { padding: 16px 18px 14px; }
.note-body h3 { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.note-body p { font-size: 14px; line-height: 1.8; color: #5b4c3a; margin: 0 0 10px; }
.note-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.note-tags span { font-size: 11px; color: #8a6a43; background: #f6efe3; border-radius: 6px; padding: 2px 7px; }
.note-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.like { border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; font-family: inherit; }
.like.done { color: #c0563a; }

.notice {
  background: #fbf3e4; border: 1px solid #eadcc4; color: #6b4f2a;
  border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 12px 0 4px; line-height: 1.8;
}
.notice.bad { background: #fbeee9; border-color: #e8c8b8; color: #8a4a2a; }
.notice.ok { background: #eef4ea; border-color: #cddcc4; color: #3f5a34; }
.notice.crisis { background: #fff1e6; border-color: #e6b98f; color: #6b3a12; }

.report { font-size: 11px; color: #a09380; }
.report:hover { color: #b0603a; }
.w-foot { margin-top: 8px; text-align: right; }
.note-foot { gap: 12px; }

.admin-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-item:last-child { border-bottom: 0; }
.admin-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.admin-text { font-size: 14px; line-height: 1.8; margin: 8px 0 10px; color: #4a3c2c; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 30px; }
  form .grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  nav a { margin-left: 11px; font-size: 12px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand .seal { width: 24px; height: 24px; font-size: 13px; }
  .note-grid { grid-template-columns: 1fr; }
  .quote-text { font-size: 19px; }
}
