/* ABYSS · 白底衬线 */

:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --quiet: #6b6b6b;
  --line: #e8e8e8;
  --ok: #1f6b45;
  --err: #9b1c2c;
  --font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .wrap,
body.is-loading .login-wrap {
  opacity: 0;
  visibility: hidden;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: opacity .45s ease, visibility .45s ease;
}

body.is-ready .boot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  text-align: center;
  letter-spacing: .18em;
  font-size: 13px;
  color: var(--quiet);
}

.boot-bar {
  width: 120px;
  height: 1px;
  margin: 0 auto 16px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.boot-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--ink);
  animation: boot-slide 1s ease-in-out infinite;
}

@keyframes boot-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

.wrap,
.login-wrap {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s ease, transform .55s ease;
}

body.is-ready .wrap,
body.is-ready .login-wrap {
  opacity: 1;
  visibility: visible;
  transform: none;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { opacity: .7; }

.wrap {
  width: min(680px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 36px;
}

.brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 0;
}

.top-links {
  display: flex;
  gap: 14px;
  font-size: 14px;
  flex-shrink: 0;
  align-items: center;
}

.top-links .status { color: var(--quiet); text-decoration: none; }

.contact {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.contact-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
}

.contact-qq {
  font-size: 14px;
  color: var(--quiet);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
}

.contact-btn:hover { opacity: .88; }

.hitokoto {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--quiet);
  min-height: 1.8em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hitokoto cite {
  display: inline;
  font-style: normal;
  margin-left: 8px;
  opacity: .75;
}

.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
}

.section .meta {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--quiet);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.meta-table th,
.meta-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.meta-table th {
  width: 28%;
  font-weight: 500;
  color: var(--quiet);
}

.meta-table td { font-weight: 500; }

.mono { font-family: var(--mono); font-size: 0.92em; }

.label {
  display: block;
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.label .opt {
  margin-left: 8px;
  font-weight: 400;
  color: var(--quiet);
  font-size: 12px;
}

.textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  outline: none;
  resize: vertical;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
}

.textarea::placeholder { color: #b0b0b0; }

.submit-form .field { margin-bottom: 0; }

.field {
  display: flex;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
}

.field input[type="text"],
.field input[type="password"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  padding: 0 4px;
}

.field input::placeholder { color: #b0b0b0; }

.field button,
.btn {
  height: 48px;
  padding: 0 22px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  white-space: nowrap;
}

.field button:hover,
.btn:hover { opacity: .85; }

.upload-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 320px;
  padding: 48px 28px;
  border: 1px dashed var(--ink);
  background: #fafafa;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
  background: #f3f3f3;
  outline: none;
}

.dropzone.is-drag {
  background: #f0f0f0;
  border-style: solid;
}

.dropzone.has-file {
  border-style: solid;
  background: #fff;
}

.dz-mark {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 8px 16px;
  margin-bottom: 6px;
}

.dz-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
}

.dz-hint {
  font-size: 14px;
  color: var(--quiet);
}

.dz-file {
  margin-top: 8px;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dz-file[hidden] { display: none !important; }

.dz-submit {
  width: 100%;
  height: 48px;
}

.dz-submit:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.dz-submit.is-busy {
  opacity: .6;
  pointer-events: none;
}

.alert {
  margin: 0 0 28px;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
}

.alert.ok { color: var(--ok); }
.alert.error { color: var(--err); }
.alert.info { color: var(--ink); }

.list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.list th,
.list td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.list th {
  font-weight: 500;
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: .08em;
}

.list .empty {
  text-align: center;
  color: var(--quiet);
  padding: 36px 0;
}

.status-ok { color: var(--ok); }
.status-bad { color: var(--err); }
.status-wait { color: #8a6d3b; }

.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
  color: var(--quiet);
}

.login-wrap {
  width: min(420px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

.login-wrap .brand { margin-bottom: 36px; }

.login-wrap .field {
  border-bottom: 1px solid var(--line);
}

.login-wrap .field:focus-within { border-bottom-color: var(--ink); }

.login-wrap .btn {
  width: 100%;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.stat .k {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--quiet);
}

.stat .v {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
}

@media (max-width: 560px) {
  .wrap, .login-wrap { width: calc(100% - 32px); padding-top: 36px; }
  .top { flex-direction: column; align-items: flex-start; }
  .field { flex-direction: column; border-bottom: 0; }
  .field input[type="text"],
  .field input[type="password"] { border-bottom: 1px solid var(--ink); }
  .field button { width: 100%; margin-top: 12px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; }
}
