:root {
  --paper: #f7f2e8;
  --card: #fffdf7;
  --line: #e5d8c3;
  --ink: #3c332b;
  --dim: #8a7a66;
  --brand: #a35138;
  --brand-d: #8a3f2a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(180, 160, 130, .10) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 14px 40px;
}

.top {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 14px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.top h1 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif;
  font-size: 30px;
  letter-spacing: 3px;
  font-weight: 600;
  color: #33291f;
}

.top h1 a { color: inherit; text-decoration: none; }

.sub {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 1px;
}

.nav {
  position: absolute;
  right: 14px;
  bottom: 16px;
  font-size: 13px;
}

.nav a {
  color: var(--dim);
  text-decoration: none;
  margin-left: 14px;
  border-bottom: 1px solid transparent;
}

.nav a:hover { border-bottom-color: var(--line); }

.write {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 18px 0 22px;
}

.lbl {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin: 10px 0 5px;
  letter-spacing: 1px;
}

.in {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  padding: 9px 11px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
}

.in:focus { border-color: #c9b79c; }

.ta {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}

.file {
  padding: 7px;
  background: #fffefa;
  font-size: 13px;
}

.tip {
  color: var(--dim);
  font-size: 12px;
  margin: 8px 0 0;
  line-height: 1.6;
}

.btn {
  margin-top: 14px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff8f0;
  padding: 11px 22px;
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { background: var(--brand-d); }
.btn.wide { width: 100%; margin-top: 16px; }

.note {
  background: #f2ead9;
  border-left: 3px solid #c7ab83;
  padding: 8px 12px;
  font-size: 13px;
  color: #6b5b45;
  border-radius: 3px;
  margin: 12px 0;
}

.note.bad {
  background: #faece7;
  border-left-color: #c06a4f;
  color: #8a4530;
}

.feed { display: block; }

.empty {
  text-align: center;
  color: var(--dim);
  padding: 40px 0;
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 10px;
  margin-bottom: 16px;
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.who {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 17px;
  letter-spacing: 1px;
  color: #4a3a29;
  font-weight: 600;
}

.time { color: #a2937e; font-size: 12px; }

.text {
  font-size: 15.5px;
  line-height: 1.85;
  word-break: break-word;
  white-space: normal;
  margin: 2px 0 10px;
}

.text.big { font-size: 17px; line-height: 1.95; }

.pics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 8px 0 4px;
}

.pics.one { grid-template-columns: 1fr; }

.pic {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #efe7d6;
  aspect-ratio: 1 / 1;
}

.pics.one .pic { aspect-ratio: auto; }

.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pics.one .pic img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.vwrap {
  position: relative;
  margin: 10px 0 6px;
  border-radius: 8px;
  overflow: hidden;
  background: #2b2620;
}

.vwrap video {
  width: 100%;
  max-height: 560px;
  display: block;
  background: #000;
}

.vmeta {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  color: #f4ece0;
  background: rgba(40, 32, 24, .62);
  padding: 2px 7px;
  border-radius: 10px;
}

.bigpic {
  margin: 10px 0 4px;
  text-align: center;
}

.bigpic img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.bigpic figcaption {
  font-size: 12px;
  color: #a2937e;
  margin-top: 6px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  margin-top: 10px;
  padding-top: 8px;
  font-size: 12.5px;
}

.foot a {
  text-decoration: none;
  color: var(--dim);
  letter-spacing: 1px;
}

.foot a:hover { color: var(--brand); }
.foot .del { color: #b8806c; }

.pager {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: var(--dim);
  padding: 10px 0 26px;
}

.pager a { color: var(--brand); text-decoration: none; }

.foot2 {
  text-align: center;
  color: #a2937e;
  font-size: 12px;
  padding: 22px 0 34px;
  letter-spacing: 1px;
}

.gate main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gatebox {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 24px 24px;
  text-align: center;
}

.gatebox h1 {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 26px;
  letter-spacing: 3px;
  margin: 0;
  color: #33291f;
}

.gatebox .sub { margin: 6px 0 18px; }
.gatebox form { margin-top: 6px; }
.gatebox .in { text-align: center; letter-spacing: 2px; }

@media (max-width: 480px) {
  .top { padding-top: 20px; }
  .top h1 { font-size: 25px; letter-spacing: 2px; }
  .nav { position: static; margin-top: 8px; }
  .nav a { margin: 0 14px 0 0; }
  .pics { grid-template-columns: repeat(2, 1fr); }
  .pics.one { grid-template-columns: 1fr; }
  .card { padding: 12px 12px 8px; }
  .text { font-size: 15px; }
}
