@font-face {
  /* Quicksand 500（OFL，圆润几何无衬线）子集：ASCII */
  font-family: "Mahiru Round Latin";
  src: url("/site/mahiru-round-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
  font-style: normal;
}
@font-face {
  /* 霞鹜漫黑 LXGW Marker Gothic（OFL，圆润黑体）子集：页面用到的 392 字 */
  font-family: "Mahiru Round";
  src: url("/site/mahiru-round.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

body.access {
  min-height: 100svh;
  background: radial-gradient(ellipse 48rem 24rem at 78% 0, light-dark(#f1e3cb80, #392a1b70), transparent 78%), var(--page);
}

/* ── 登录 / 注册：照片上只有字，控件不占任何版面，也不区分明暗 ─────────── */
body.access.access-sky {
  --ui: "Mahiru Round Latin", "Mahiru Round", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Mahiru Serif", "Noto Serif SC", "Songti SC", SimSun, serif;
  --display: "Mahiru Display", "Snell Roundhand", "Zapfino", Georgia, serif;
  --sky-ink: #fffdf8;
  --sky-dim: #f7ece5c7;
  /* 整幅照片上的方向性压暗：左侧通透、右侧轻托一层；移动端由媒体查询改成上下 */
  --sky-scrim: linear-gradient(96deg, #0a112000 20%, #0a112036 44%, #0a1120b8 94%),
    linear-gradient(0deg, #0a112070 0%, #0a112000 46%);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #1b2434;
  color: var(--sky-ink);
  color-scheme: dark;
  font-family: var(--ui);
}
.access-sky::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-color: #1b2434;
  /* 第一层方向压暗，第二层是天空照片（缺图时不绘制），其余三层是 CSS 画的黄昏天空兜底 */
  background-image:
    var(--sky-scrim),
    url("/site/sky-dusk.jpg"),
    radial-gradient(58% 40% at 74% 74%, #ffd7abc4 0%, #ffd0a600 72%),
    radial-gradient(90% 62% at 16% 16%, #a8bcd652 0%, #a8bcd600 68%),
    linear-gradient(180deg, #1a2336 0%, #2b3d59 36%, #5c6a84 58%, #9c8275 74%, #6c6069 88%, #3f3a45 100%);
  background-size: cover;
  background-position: center 44%;
  background-repeat: no-repeat;
}
.access .access-header {
  width: 100%;
  max-width: none;
  min-height: 96px;
  margin: 0;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
}
.access .access-main {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(58px, 13vh, 152px) 24px 72px;
}
.access .access-content {
  width: 100%;
  max-width: 384px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.access-sky .access-header .brand { color: #fff; text-shadow: 0 2px 16px #1d244366; }
.access-sky .access-header .brand-mark { background: #ffffffd9; color: #403d4b; box-shadow: 0 1px 12px #1d24431a; }
.access.access-sky .access-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  max-width: 1440px;
  margin-inline: auto;
  padding: 20px clamp(32px, 6vw, 88px) 56px;
  /* 左下角一层极柔压暗，托住“Mahiru”那块字；画在 main 上，边界在视口外 */
  background: radial-gradient(42% 60% at 0% 100%, #0a112070 0%, #0a112000 74%) no-repeat;
}
.access.access-sky .access-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  font-family: var(--ui);
}
.access.access-sky .access-heading { margin: 0 0 38px; text-align: center; }
.access.access-sky .access-heading::before,
.access.access-sky .access-heading::after { display: none; }
.access.access-sky .access-heading h1 {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(26px, 1.9vw, 30px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: .16em;
  text-shadow: 0 2px 22px #101828b8;
}
.access.access-sky .access-heading p {
  margin: 10px 0 0;
  color: var(--sky-dim);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .06em;
  text-shadow: 0 1px 16px #101828a1;
}
.access.access-sky .access-form { gap: 26px; }
.access.access-sky .field { gap: 2px; }
.access.access-sky .field label {
  color: #f7ece5a8;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .12em;
  text-shadow: 0 1px 12px #10182899;
}
/* 输入框只是一行字：没有底框、没有填充、没有圆角，rest 状态只有文字 */
.access.access-sky .field input {
  min-height: 36px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid #fffaf324;
  border-radius: 0;
  background: transparent;
  color: var(--sky-ink);
  font-family: var(--ui);
  font-size: 22px;
  letter-spacing: .03em;
  caret-color: #ffd9a6;
  text-shadow: 0 2px 16px #101828b3;
  transition: border-color .18s ease;
}
.access.access-sky .field input:hover { border-bottom-color: #fffaf33d; }
.access.access-sky .field input:focus,
.access.access-sky .field input:focus-visible {
  outline: none;
  border-bottom-color: #fffaf3b3;
  box-shadow: none;
}
.access.access-sky .field input::placeholder { color: #f7ece58c; text-shadow: none; }
/* 密码框里的圆点会跟着字号放大，单独压小一档 */
.access.access-sky input[type="password"] { font-size: 15px; letter-spacing: .22em; }
.access.access-sky input:-webkit-autofill {
  -webkit-text-fill-color: var(--sky-ink);
  transition: background-color 9000s ease-in-out 0s;
}
.access.access-sky .password-field input { padding-inline-end: 38px; }
.access.access-sky .password-toggle {
  inset-block: 0;
  height: 36px;
  width: 34px;
  color: #f7ece5a8;
  background: none;
}
.access.access-sky .password-toggle:hover { color: #fff; background: none; }
.access.access-sky .field-help { color: #f7ece5a3; font-size: 13px; letter-spacing: .04em; text-shadow: 0 1px 12px #10182899; }
.access.access-sky .recover-link { color: #f7ece5c7; font-size: 14px; }
.access.access-sky .recover-link:hover { color: #fff; }
/* 主按钮也只是一行字，靠字重、字号和悬停下划线表达可点 */
.access.access-sky .button.primary,
.access.access-sky .button.primary:hover {
  min-height: 0;
  margin: 16px 0 0;
  padding: 4px 0 6px;
  border: 0;
  border-bottom: 1px solid #fffaf300;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  color: #ffeed2;
  font-family: var(--ui);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .08em;
  justify-content: flex-start;
  text-align: left;
  text-shadow: 0 2px 20px #101828b8;
  transition: border-color .18s ease, color .18s ease;
}
.access.access-sky .button.primary::after {
  content: "\2192";
  margin-left: .45em;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: .8em;
  letter-spacing: 0;
  opacity: .85;
  transition: transform .18s ease;
}
.access.access-sky .button.primary:hover { border-bottom-color: #ffe0b880; color: #fff3e2; }
.access.access-sky .button.primary:hover::after { transform: translateX(3px); }
.access.access-sky .button.primary:active { border-bottom-color: #ffe0b8; }
.access.access-sky .notice {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffd9c9;
  font-size: 14px;
  text-align: left;
  letter-spacing: .03em;
  text-shadow: 0 1px 14px #101828cc;
}
.access.access-sky .access-footer {
  margin: 26px 0 0;
  color: var(--sky-dim);
  font-size: 14px;
  text-align: left;
  letter-spacing: .04em;
  text-shadow: 0 1px 14px #10182899;
}
.access.access-sky .access-footer a {
  color: var(--sky-ink);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: #fffaf359;
}
.access.access-sky .access-footer a:hover { text-decoration-color: #fff; }
.access.access-sky .admin-entry { margin-top: 12px; }
.access-scene {
  align-self: end;
  min-width: 0;
  padding: 0 0 32px;
  color: #fffdf4;
  text-shadow: 0 2px 26px #171f35c4, 0 1px 3px #171f3594;
}
.access-scene-word {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(86px, 10.6vw, 158px);
  line-height: 1.24;
  letter-spacing: .005em;
}
.access-scene-mark {
  display: block;
  margin: 4px 0 0;
  font-family: "Mahiru Caps", "Trajan Pro", Georgia, serif;
  font-weight: 500;
  font-size: clamp(12px, .92vw, 15px);
  letter-spacing: .42em;
  text-transform: uppercase;
  opacity: .85;
}
.access-scene p { margin: 16px 0 26px 6px; font-size: 17px; font-weight: 400; letter-spacing: .3em; }
.access-scene-line { display: block; position: relative; width: 168px; height: 1px; margin: 30px 0 0 7px; background: linear-gradient(90deg, #fff7e6b3, #fff7e600); }
.access-scene-line::before { content: ""; position: absolute; left: -7px; top: -2px; width: 5px; height: 5px; rotate: 45deg; background: #fff3dc; }
@media (max-width: 900px) {
  body.access.access-sky {
    --sky-scrim: linear-gradient(180deg, #0a11200a 0%, #0a11205c 30%, #0a1120b3 74%);
  }
  .access.access-sky .access-main {
    grid-template-columns: 1fr;
    padding: 4px 24px 44px;
    background: none;
  }
  .access.access-sky .access-content { max-width: 440px; margin-inline: auto; }
  .access-scene { display: none; }
}
@media (max-width: 600px) {
  .access.access-sky .access-heading { margin-bottom: 28px; }
  .access.access-sky .access-heading h1 { font-size: 28px; }
  .access.access-sky .field input { font-size: 20px; }
  .access.access-sky .button.primary { font-size: 21px; }
  .access.access-sky .access-main { padding-inline: 20px; }
}

/* 找回密码：details 折叠块在天空皮肤下同样只留文字 */
.access.access-sky .recovery {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.access.access-sky .recovery summary {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--sky-line);
  border-radius: 0;
  color: var(--sky-dim);
  font-size: 15px;
}
.access.access-sky .recovery summary:hover { background: none; color: var(--sky-ink); }
.access.access-sky .recovery-content { padding: 18px 0 0; }
.access.access-sky .recovery-help { color: var(--sky-dim); margin: 0 0 18px; }

.access .access-heading { position: relative; margin: 0 0 36px; text-align: center; }
.access .access-heading::before {
  content: "";
  position: absolute;
  left: 50%;
  inset-block-start: -20px;
  width: 5px;
  height: 5px;
  translate: -50%;
  rotate: 45deg;
  border: 1px solid var(--gold);
}
.access .access-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  inset-block-start: -18px;
  width: 50px;
  height: 1px;
  translate: -50%;
  background:
    linear-gradient(to right, transparent, var(--gold)) left / 18px 1px no-repeat,
    linear-gradient(to left, transparent, var(--gold)) right / 18px 1px no-repeat;
  opacity: .55;
}
.access .access-heading h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.015em;
}
.access .access-heading p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.access .access-form { gap: 22px; }
.access .field { gap: 9px; }
.access .field label { font-size: 14px; font-weight: 550; }
.access .field input { min-height: 50px; padding: 12px 14px; }
.access .password-field input { padding-inline-end: 48px; }
.access .password-toggle { inset-block: 3px; }
.access .recover-link { margin: -3px 0; padding: 3px 0; font-size: 13px; text-decoration: none; }
.access a:not(.brand):not(.button):hover { text-decoration: underline; }
.access .button.full { min-height: 49px; border-radius: 12px; font-weight: 610; font-size: 15px; }
.access .access-footer {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.access .access-footer a { margin-left: 5px; font-weight: 580; text-decoration: none; }
.access .notice { margin: 0 0 24px; font-size: 13px; text-align: left; }
.access .recovery { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.access .recovery summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  font-size: 14px;
  font-weight: 550;
  list-style: none;
  border-radius: 10px;
}
.access .recovery summary:hover { background: var(--subtle); }
.access .recovery summary::-webkit-details-marker { display: none; }
.access .recovery-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 3px; }
.access .recovery[open] .recovery-chevron { transform: rotate(225deg); }
.access .recovery-content { padding: 12px 18px 20px; }
.access .recovery-help { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.access .access-message .access-heading { margin-bottom: 30px; }
@media (max-width: 600px) {
  .access .access-header { min-height: 80px; padding: 18px 22px; }
  .access .access-main { padding: 52px 24px 48px; }
  .access .access-heading h1 { font-size: 28px; }
  .access-sky::before { background-position: 62% center; }
  .access.access-sky .access-main { padding: 12px 20px 32px; }
  .access.access-sky .access-content { padding: 36px 24px 28px; border-radius: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .access .access-content { animation: access-arrive .48s cubic-bezier(.2,.7,.2,1) both; }
  .access :is(.button, .theme-toggle, .password-toggle) { transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
  .access .button:active { transform: translateY(1px); }
  @keyframes access-arrive {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-height: 700px) and (min-width: 601px) {
  .access .access-main { padding-top: 36px; }
}
@media (forced-colors: active) {
  .access .access-heading::before, .access .access-heading::after { display: none; }
}

/* ── 记住密码：勾选框只是一枚小方块，和整页一样不占任何版面 ─────────────── */
.access .remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .05em;
  cursor: pointer;
  user-select: none;
}
/* 输入框的皮肤（一行字 + 发丝下划线）不能套到勾选框上，这里按属性选择器压回来 */
.access .remember input[type="checkbox"] {
  appearance: none;
  flex: none;
  width: 12px;
  height: 12px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--input-line);
  border-radius: 2px;
  background: none;
  box-shadow: none;
  text-shadow: none;
  letter-spacing: 0;
  transition: border-color .18s ease, background-color .18s ease;
}
.access .remember input[type="checkbox"]:checked { border-color: var(--gold); background: var(--gold); }
.access .remember input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto;
  rotate: 45deg;
  background: var(--page);
}
.access .remember:hover input[type="checkbox"] { border-color: var(--gold); }
.access .remember input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.access.access-sky .remember { color: var(--sky-dim); text-shadow: 0 1px 12px #10182899; }
.access.access-sky .remember input[type="checkbox"] { border-color: #f7ece566; }
.access.access-sky .remember input[type="checkbox"]:checked { border-color: #ffeacb; background: #ffeacb; }
.access.access-sky .remember input[type="checkbox"]:checked::after { background: #232a36; }
.access.access-sky .remember:hover input[type="checkbox"] { border-color: #f7ece5b3; }
.access.access-sky .remember input[type="checkbox"]:focus-visible { outline-color: #ffeacb; }

/* 页头那行字必须和表单左边对齐：手机上表单是满宽的，两边 padding 取同一个值 */
@media (max-width: 600px) {
  .access .access-header { padding-inline: 20px; }
}
