/* Paper, ink and binding colors shared with the notebook. */
:root {
  --journal-page: #f5f1e9;
  --journal-paper: #fffdf7;
  --journal-blush: #f5e5e5;
  --journal-ink: #303f43;
  --journal-muted: #58686b;
  --journal-line: #d7d7cb;
  --journal-accent: #994c5b;
  --journal-button: #994c5b;
  --journal-button-hover: #82404e;
  --journal-button-edge: #854451;
  --journal-button-text: #fffdf7;
  --journal-ribbon: #a35e69;
  --journal-gold: #b18751;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--journal-ink); font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.entry {
  --paper: var(--journal-paper);
  --page: var(--journal-page);
  --text: var(--journal-ink);
  --muted: var(--journal-muted);
  --rule: var(--journal-line);
  --accent: var(--journal-accent);
  --input: #fffefb;
  --edge: #bfc6c2;
  --cloth: #d8e3e3;
  --cloth-edge: #a6b9b8;
  --glass: #f6f5efdb;
  --gold: var(--journal-gold);
  --focus: #526f79;
  --focus-halo: #87a3ad32;
  --round: 6px;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: radial-gradient(ellipse at 5% 0%, #dce6e580, transparent 56%), var(--page);
}
.entry[data-theme="dark"] {
  color-scheme: dark;
  --paper: #273134;
  --page: #1b2327;
  --text: #f4eee2;
  --muted: #bdc8c7;
  --rule: #505c5b;
  --accent: #e9acb6;
  --input: #212b2e;
  --edge: #58635f;
  --cloth: #334546;
  --cloth-edge: #647a78;
  --glass: #252f30db;
  --gold: #c6a475;
  --focus: #a7c8cb;
  --focus-halo: #b5d3d22d;
  --journal-button: #dba6b0;
  --journal-button-hover: #e6b8c1;
  --journal-button-edge: #dba6b0;
  --journal-button-text: #322127;
  background: radial-gradient(ellipse at 5% 0%, #37505260, transparent 56%), var(--page);
}
.entry .mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 75px;
  padding: 0 clamp(20px, 5vw, 90px);
  background: var(--glass);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 31px; height: 31px; }
.brand > span { font: 700 21px/1.2 var(--serif); letter-spacing: .1em; }
.brand i { height: 15px; width: 1px; background: var(--edge); margin: 0 3px; }
.brand small { font: 14px/1 Georgia, serif; letter-spacing: .04em; color: var(--muted); }
.entry .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.theme, .reveal { display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; }
.theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); }
.theme:hover, .reveal:hover { color: var(--accent); }
.entry-main { flex: 1; width: 100%; display: grid; place-items: center; padding: clamp(26px, 6vh, 76px) 5vw; }
.book {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  width: min(1060px, 100%);
  min-height: clamp(482px, 64vh, 650px);
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 7px var(--round) var(--round) 7px;
  box-shadow: 0 3px var(--paper), 0 4px var(--edge), 0 6px 0 -1px var(--paper), 0 7px 0 -1px var(--cloth-edge), 0 19px 45px -17px #39383045;
}
.cover {
  position: relative;
  display: flex;
  padding: clamp(12px, 1.7vw, 22px);
  min-width: 0;
  border-radius: 6px 0 0 6px;
  border-right: 1px solid var(--cloth-edge);
  background: var(--cloth);
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 7px;
  width: 1px;
  background: var(--cloth-edge);
  opacity: .7;
}
.cover-frame { position: relative; flex: 1; overflow: hidden; background: var(--cloth-edge); }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% 45%; }
.cover-title {
  position: absolute;
  left: clamp(12px, 2vw, 27px);
  bottom: clamp(12px, 2vw, 27px);
  padding: 12px 18px 11px;
  color: #303a39;
  background: #fffaf0e3;
  border: 1px solid #fff7e6d9;
  box-shadow: inset 3px 0 #994c5b, 0 2px 11px #31231b20;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.cover-title strong { display: block; font: 600 clamp(23px, 2.25vw, 34px)/1.25 var(--serif); letter-spacing: .14em; }
.cover-title small { display: block; margin-top: 5px; color: #714954; font: 11px/1.25 Georgia, serif; letter-spacing: .13em; }
.form-page { position: relative; display: grid; align-items: center; padding: 52px clamp(28px, 4vw, 58px) 45px; }
.form-inner { width: 100%; max-width: 342px; justify-self: center; }
.ribbon {
  position: absolute;
  top: -1px;
  right: clamp(30px, 4vw, 55px);
  width: 16px;
  height: 36px;
  background: var(--journal-ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 81%, 0 100%);
}
.entry h1 {
  color: var(--text);
  font: 600 clamp(32px, 3.5vw, 46px)/1.22 var(--serif);
  letter-spacing: .045em;
  margin: 0;
}
.subtitle { color: var(--muted); font-size: .93rem; line-height: 1.7; margin: 10px 0 26px; }
.entry .field { display: block; font-size: .89rem; font-weight: 650; margin: 17px 0 8px; }
.input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 13px; min-height: 47px; border: 1px solid var(--edge); border-radius: 5px; background: var(--input); color: var(--muted); }
.input-wrap:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
.entry .input-wrap > .ico, .reveal .ico { width: 17px; height: 17px; }
.input-wrap input { min-width: 0; flex: 1; height: 45px; border: 0; padding: 0; background: transparent; outline: 0; color: var(--text); font-size: .94rem; }
.input-wrap input::placeholder { color: var(--muted); }
.reveal { align-self: stretch; width: 34px; margin-right: -6px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); width: fit-content; margin: 16px 0 21px; cursor: pointer; }
.remember input { height: 15px; width: 15px; accent-color: var(--accent); margin: 0; }
.entry .primary { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--journal-button-edge); border-radius: 5px; background: var(--journal-button); color: var(--journal-button-text); font-size: 1rem; font-weight: 600; letter-spacing: .07em; }
.entry .primary:hover { background: var(--journal-button-hover); }
.entry .primary:active { transform: translateY(1px); }
.entry .primary:disabled { opacity: .66; }
.primary .ico { width: 18px; height: 18px; }
.private-mark { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .75rem; color: var(--muted); margin-top: 21px; }
.private-mark .ico { width: 13px; height: 13px; }
.entry .error { color: var(--accent); font-size: .9rem; line-height: 1.5; }
.entry :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.entry .input-wrap input:focus-visible { outline: none; }
.captcha-panel[hidden], .captcha-challenge img[hidden], .captcha-status:empty { display: none; }
.captcha-challenge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 9px; }
.captcha-challenge img { max-width: 100%; width: 158px; height: auto; max-height: 60px; border: 1px solid var(--rule); border-radius: 4px; background: #fffdf7; }
.captcha-refresh { color: var(--accent); background: transparent; border: 0; padding: 6px 2px; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.captcha-refresh:disabled { opacity: .6; cursor: wait; }
.captcha-status { font-size: .87rem; color: var(--muted); line-height: 1.5; margin: 4px 0 10px; }
@media (max-width: 800px) {
  .entry .mast { min-height: 63px; }
  .entry-main { padding: 29px 4vw 38px; }
  .form-page { padding: 46px 25px 34px; }
  .book { grid-template-columns: .9fr 1fr; }
  .cover-title { left: 12px; bottom: 12px; }
}
@media (max-width: 640px) {
  .entry .mast { min-height: 56px; }
  .brand img { width: 26px; height: 26px; }
  .brand > span { font-size: 19px; }
  .theme { width: 36px; height: 36px; }
  .entry-main { padding: 16px 4.5vw 26px; }
  .book { grid-template-columns: minmax(0, 1fr); max-width: 448px; min-height: 0; }
  .cover { height: clamp(150px, 26svh, 214px); padding: 9px; border-right: 0; border-radius: 6px 6px 0 0; border-bottom: 1px solid var(--cloth-edge); }
  .cover::before { display: none; }
  .cover-art { object-position: 50% 32%; }
  .cover-title { left: 9px; bottom: 9px; padding: 6px 10px; }
  .cover-title strong { font-size: 19px; }
  .cover-title small { font-size: 9px; margin-top: 2px; }
  .form-page { padding: 26px clamp(18px, 6vw, 32px) 22px; }
  .ribbon { height: 22px; width: 13px; right: 24px; }
  .entry h1 { font-size: 30px; }
  .subtitle { margin: 5px 0 16px; }
  .entry .field { margin: 11px 0 6px; }
  .input-wrap input { font-size: 16px; }
  .remember { margin: 12px 0 15px; }
  .private-mark { margin-top: 14px; }
}
