:root { --ink: #14241f; --muted: #66736d; --line: #d5e0d8; --paper: #f3f6f2; --surface: #ffffff; --green: #146c57; --green-dark: #0b4537; --mint: #e1f1e9; --yellow: #e9bd45; --red: #bd4838; --shadow: 0 18px 40px rgba(12, 40, 32, .10); --display: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif; --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; font-family: var(--sans); color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { width: 100%; border: 1px solid #c8d2cb; border-radius: 5px; background: #fff; color: var(--ink); padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 108, 87, .12); }
textarea { min-height: 98px; resize: vertical; }
label { display: grid; gap: 7px; color: #38453f; font-size: 14px; font-weight: 650; }
label em { color: var(--red); font-style: normal; }
label small { color: var(--muted); font-weight: 400; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.25; margin-bottom: 8px; letter-spacing: 0; }
h2 { font-size: 18px; margin-bottom: 5px; }
h3 { font-size: 16px; margin-bottom: 3px; }
p { color: var(--muted); line-height: 1.55; }
.primary, .secondary, .outline, .text-button { border-radius: 5px; font-weight: 700; min-height: 40px; padding: 0 15px; border: 1px solid transparent; }
.primary { background: var(--green); color: #fff; border-color: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { background: #fff; border-color: #b8c7be; color: var(--green-dark); }
.secondary:hover, .outline:hover { background: #f0f6f2; }
.outline { background: transparent; border-color: #a6b8ad; color: var(--green-dark); white-space: nowrap; }
.text-button { background: transparent; color: var(--green); padding: 0; min-height: auto; }
.wide { width: 100%; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1.15fr) minmax(380px, 520px); background:
  radial-gradient(ellipse 80% 60% at 100% 0%, rgba(20,108,87,.06), transparent 55%),
  linear-gradient(180deg, #f8faf7 0%, var(--paper) 100%); }
.login-brand { background:
  linear-gradient(155deg, #0f5a48 0%, var(--green-dark) 48%, #08362c 100%);
  color: #eff7f2; padding: max(64px, 14vh) clamp(40px, 9vw, 120px);
  display: flex; flex-direction: column; justify-content: center; min-height: 100vh;
  position: relative; overflow: hidden; isolation: isolate; }
.login-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.05) 40.5%, transparent 41%),
    repeating-linear-gradient(-18deg, rgba(255,255,255,.035) 0 1px, transparent 1px 18px); }
.login-brand::after { content: ""; position: absolute; width: min(70vw, 620px); height: min(70vw, 620px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%; right: -28%; bottom: -34%;
  box-shadow: inset 0 0 0 48px rgba(255,255,255,.03); animation: brand-orbit 18s linear infinite; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.72); color: #fff; font-family: var(--display);
  font-size: 28px; margin-bottom: 36px; animation: brand-in .7s ease both; }
.brand-eyebrow { color: #c8e3d5; margin: 0 0 14px; font-weight: 700; letter-spacing: .08em; font-size: 13px; text-transform: none; animation: brand-in .7s .08s ease both; }
.login-brand h1 { color: #fff; font-family: var(--display); font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.18; margin: 0 0 18px; font-weight: 700; letter-spacing: .02em; animation: brand-in .7s .14s ease both; }
.brand-tagline { color: #b8dacc; letter-spacing: .18em; font-size: 13px; font-weight: 600; animation: brand-in .7s .2s ease both; }
.brand-points { list-style: none; margin: 42px 0 0; padding: 0; display: grid; gap: 12px; max-width: 360px; animation: brand-in .7s .28s ease both; }
.brand-points li { position: relative; padding-left: 18px; color: #d5ebe1; font-size: 14px; line-height: 1.5; }
.brand-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #8fd0b4; }
.login-form { margin: auto; width: min(100%, 400px); padding: clamp(36px, 6vh, 56px) clamp(28px, 5vw, 44px);
  display: grid; gap: 16px; animation: form-in .55s ease both; }
.login-eyebrow { margin: 0; color: var(--green); font-size: 13px; font-weight: 750; letter-spacing: .12em; }
.login-form h2 { font-family: var(--display); font-size: 30px; margin: 0; letter-spacing: .02em; color: var(--ink); }
.login-lead { margin: -4px 0 6px; font-size: 14px; color: var(--muted); }
.login-form label { gap: 8px; }
.login-form input { min-height: 46px; border-radius: 8px; border-color: #c5d2c9; background: #fcfdfb; padding: 12px 14px; }
.login-form .primary.wide { min-height: 48px; border-radius: 8px; margin-top: 6px; letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(20, 108, 87, .22); transition: background .15s, transform .15s, box-shadow .15s; }
.login-form .primary.wide:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(20, 108, 87, .28); }
.login-form .outline { min-height: 46px; border-radius: 8px; }
.code-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.password-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.password-field input { min-height: 46px; }
.password-toggle { appearance: none; border: 1px solid #b8c7be; background: #fff; color: var(--green-dark);
  border-radius: 8px; min-height: 46px; padding: 0 14px; font-weight: 650; font-size: 13px; white-space: nowrap; }
.password-toggle:hover { background: #f0f6f2; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 4px; margin-top: 4px; padding-top: 4px; }
.auth-link { appearance: none; border: 0; background: transparent; color: var(--green-dark);
  font-weight: 650; font-size: 13px; min-height: 34px; padding: 0 10px; border-radius: 999px;
  position: relative; transition: background .15s, color .15s; }
.auth-link:hover { background: var(--mint); color: var(--green); }
.auth-link:not(:last-child)::after { content: ""; position: absolute; right: -2px; top: 50%;
  width: 1px; height: 12px; margin-top: -6px; background: #c7d4cc; pointer-events: none; }
.login-note, .dev-code { font-size: 12px; margin: 0; line-height: 1.55; }
.login-note { color: #7a8780; padding-top: 4px; border-top: 1px dashed var(--line); }
.dev-code { color: var(--green-dark); background: var(--mint); padding: 10px 12px; border-radius: 8px; }
@keyframes brand-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes form-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes brand-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .login-brand::after, .brand-mark, .brand-eyebrow, .login-brand h1, .brand-tagline, .brand-points, .login-form { animation: none; }
}
.guest-intro { min-height: 100vh; background: var(--paper); }
.guest-intro-header { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.guest-intro-header > div { display: flex; gap: 9px; }
.guest-intro-header .primary, .guest-intro-header .secondary { min-height: 34px; padding: 0 11px; font-size: 13px; }
.intro-hero, .intro-section { max-width: 1080px; margin: 0 auto; }
.intro-hero { min-height: 410px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 70px; align-items: center; padding: 70px 32px 48px; }
.intro-hero h1 { font-size: 48px; line-height: 1.12; margin-bottom: 20px; }
.intro-hero > div > p:last-child { max-width: 540px; font-size: 16px; }
.intro-book-mark { align-self: stretch; min-height: 260px; display: flex; flex-direction: column; justify-content: end; padding: 25px; color: #fff; background: var(--green-dark); position: relative; overflow: hidden; }
.intro-book-mark::before { content: ""; position: absolute; inset: 25px; border: 1px solid rgba(255,255,255,.38); }
.intro-book-mark span, .intro-book-mark small { position: relative; }
.intro-book-mark span { font-size: 44px; font-weight: 800; }
.intro-book-mark small { margin-top: 10px; color: #c8e3d5; }
.intro-section { padding: 38px 32px; border-top: 1px solid var(--line); }
.intro-section .section-heading { margin: 0 0 20px; }
.intro-steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.intro-steps article { min-height: 170px; padding: 16px 20px 8px 0; border-right: 1px solid var(--line); margin-right: 20px; }
.intro-steps article:last-child { border-right: 0; margin-right: 0; }
.intro-steps b { display: block; color: var(--green); font-size: 13px; margin-bottom: 26px; }
.intro-steps h3 { margin-bottom: 7px; }
.intro-steps p { font-size: 13px; }
.intro-rules { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 52px; padding-bottom: 64px; }
.intro-rules h2 { font-size: 24px; }
.intro-rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.intro-rule-list p { border-bottom: 1px solid var(--line); padding: 0 0 16px; margin: 0 0 16px; font-size: 14px; }
.intro-rule-list strong { color: var(--ink); }
.layout { min-height: 100vh; padding-left: 240px; }
.topbar { height: 68px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; position: fixed; top: 0; right: 0; left: 240px; z-index: 4; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand span { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--green); font-size: 17px; }
.brand i { font-style: normal; }
.top-actions { display: flex; gap: 11px; align-items: center; }
.top-actions button { border: 0; background: none; color: #435149; font-weight: 650; padding: 8px; }
.notice-button { position: relative; }
.notice-button b, .nav-item b { background: var(--red); color: #fff; border-radius: 10px; min-width: 17px; height: 17px; font-size: 11px; display: inline-grid; place-items: center; margin-left: 4px; }
.profile-button { border-left: 1px solid var(--line) !important; padding-left: 18px !important; }
.sidebar { position: fixed; z-index: 5; width: 240px; left: 0; top: 0; bottom: 0; padding: 20px 15px; border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.sidebar .user-summary { margin-top: 4px; padding: 11px 10px 28px; display: flex; gap: 10px; align-items: center; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-weight: 800; }
.user-summary strong, .user-summary small { display: block; }
.user-summary small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { min-height: 42px; text-align: left; border: 0; border-radius: 5px; padding: 0 12px; background: transparent; color: #46544d; font-weight: 650; display: flex; align-items: center; justify-content: space-between; }
.nav-item:hover { background: #f3f7f4; }
.nav-item.active { background: var(--mint); color: var(--green-dark); }
.signout { margin-top: auto; border: 0; background: transparent; color: #718078; padding: 10px; text-align: left; }
.content { max-width: 1280px; margin: 0 auto; padding: 110px 40px 56px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 27px; }
.page-head p { margin-bottom: 0; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; margin-bottom: 40px; }
.metrics div { padding: 19px 22px; border-right: 1px solid var(--line); min-height: 100px; }
.metrics div:last-child { border: 0; }
.metrics span, .metrics small { display: block; color: var(--muted); font-size: 13px; }
.metrics strong { display: inline-block; color: var(--green-dark); font-size: 29px; padding: 5px 6px 5px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 32px 0 15px; }
.section-heading h2 { margin: 0 0 3px; }
.section-heading p { margin: 0; font-size: 13px; }
.owned-head { margin-top: 48px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.book-card { background: #fff; border: 1px solid var(--line); padding: 14px; display: grid; grid-template-columns: 88px 1fr; gap: 14px; min-height: 220px; }
.book-cover { width: 88px; height: 126px; overflow: hidden; background: #edf1ed; }
.cover-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder { height: 100%; display: grid; place-items: center; background: #d8e9df; color: var(--green-dark); position: relative; overflow: hidden; }
.cover-placeholder::before { content: ""; position: absolute; width: 130px; height: 130px; border: 1px solid rgba(20,108,87,.25); transform: rotate(45deg); }
.cover-placeholder span { position: relative; font-size: 24px; font-weight: 800; }
.cover-placeholder.small span { font-size: 14px; }
.book-title-row { display: flex; gap: 7px; align-items: start; justify-content: space-between; }
.book-title-row h3 { line-height: 1.3; padding-top: 1px; }
.book-title-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 750; text-align: left; }
.book-title-button:hover { color: var(--green); text-decoration: underline; }
.status { font-size: 11px; padding: 3px 6px; border-radius: 3px; white-space: nowrap; color: var(--green-dark); background: var(--mint); }
.status.pending_receipt { color: #825800; background: #fbefcc; }
.status.lost, .status.disputed { color: #92352b; background: #f9dedb; }
.status.archived { color: #56625d; background: #e9edeb; }
.author { font-size: 13px; margin-bottom: 10px; }
.book-meta { display: flex; gap: 15px; margin: 0 0 9px; }
.book-meta div { min-width: 0; }
.book-meta dt { font-size: 11px; color: #8a9690; }
.book-meta dd { font-size: 12px; margin: 2px 0 0; max-width: 90px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.stay { display: flex; align-items: baseline; gap: 7px; color: #68766e; font-size: 12px; }
.stay strong { color: var(--green-dark); font-size: 14px; }
.stay.overdue strong { color: var(--red); }
.holder-state { display: flex; align-items: center; gap: 6px; color: #718078; font-size: 12px; font-weight: 500; margin-top: 6px; }
.holder-state select { width: auto; min-height: 27px; padding: 2px 21px 2px 6px; font-size: 12px; border-radius: 3px; color: var(--green-dark); }
.holder-state.static { min-height: 27px; }
.subscription-count { display: inline-block; margin-top: 5px; color: #68766e; font-size: 12px; }
.queue-progress { margin: 7px 0 0; color: var(--green-dark); font-size: 12px; line-height: 1.45; }
.card-actions { margin-top: 12px; }
.card-actions .secondary { min-height: 32px; padding: 0 10px; font-size: 12px; }
.request-state { display: inline-block; color: var(--green-dark); background: var(--mint); padding: 7px 9px; font-size: 12px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 45px 20px; border: 1px dashed #c3d0c8; background: #fbfcfa; }
.empty h3 { margin-bottom: 7px; }
.empty p { margin-bottom: 17px; font-size: 14px; }
.search-bar { display: flex; max-width: 640px; gap: 9px; margin-bottom: 18px; }
.book-detail { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 28px; max-width: 940px; border-top: 1px solid var(--line); padding-top: 25px; }
.detail-cover { width: 220px; height: 310px; background: #edf1ed; overflow: hidden; }
.detail-content { min-width: 0; }
.detail-status { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.detail-meta div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-meta dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.detail-meta dd { margin: 0; font-size: 14px; word-break: break-word; }
.detail-description { margin: 19px 0; white-space: pre-wrap; }
.detail-subscription { border-top: 1px solid var(--line); padding-top: 17px; }
.detail-subscription .card-actions { margin-top: 12px; }
.search-bar input { min-height: 43px; }
.results-label { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.form-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(350px, 1.3fr); gap: 26px; max-width: 940px; }
.photo-panel, .fields-panel, .flow-form, .settings-form { background: #fff; border: 1px solid var(--line); padding: 23px; }
.photo-panel small { display: block; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 11px; }
.photo-input { display: block; height: 360px; border: 1px dashed #a7b9ae; cursor: pointer; overflow: hidden; }
.photo-input input { display: none; }
.camera-mark { height: 100%; display: grid; place-items: center; background: #f3f7f4; color: var(--green-dark); font-weight: 700; }
.preview-image { height: 100%; width: 100%; display: block; object-fit: cover; }
.fields-panel, .flow-form, .settings-form { display: grid; gap: 17px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-actions { display: flex; justify-content: end; gap: 10px; padding-top: 4px; }
.flow-form { max-width: 680px; }
.flow-note { border-left: 3px solid var(--yellow); background: #fff8e5; padding: 11px 13px; color: #6e581f; font-size: 13px; line-height: 1.55; }
.task-list, .notice-list { display: grid; gap: 9px; }
.task { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; border: 1px solid var(--line); background: #fff; padding: 11px; }
.task-cover { width: 48px; height: 62px; overflow: hidden; }
.task h3 { margin: 0 0 3px; font-size: 15px; }
.task p, .task small { margin: 0; font-size: 13px; }
.task small { color: #89948e; }
.task-actions { display: flex; gap: 8px; }
.task-actions button { min-height: 34px; padding: 0 10px; font-size: 12px; }
.proof-task { grid-template-columns: 48px minmax(160px, 1fr) 155px auto; }
.proof-upload { font-size: 12px; gap: 3px; }
.proof-upload input { padding: 5px; min-height: 34px; font-size: 11px; }
.proof-upload small { color: var(--muted); font-size: 11px; font-weight: 400; }
.notice { width: 100%; border: 1px solid var(--line); background: #fff; text-align: left; padding: 13px; display: grid; grid-template-columns: 8px 1fr; gap: 12px; }
.notice > span { display: block; width: 7px; height: 7px; margin-top: 6px; background: var(--green); border-radius: 50%; }
.notice.read { background: #fbfcfa; }
.notice.read > span { background: #c7d1cb; }
.notice strong { font-size: 14px; }
.notice p { margin: 4px 0; font-size: 13px; }
.notice small { color: #839088; font-size: 12px; }
.settings-form { max-width: 620px; }
.invite-panel { max-width: 620px; margin: 0 0 18px; padding: 19px 22px; border: 1px solid #b8d4c5; background: #f4faf6; }
.invite-panel h2 { color: var(--green-dark); margin-bottom: 7px; }
.invite-panel p { margin-bottom: 0; font-size: 13px; }
.invite-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.invite-list code, .invite-code { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #b8c7be; background: #fff; color: var(--green-dark); font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .5px; border-radius: 6px; }
.invite-code.unused { border-color: #8fbfa6; background: #eef8f2; color: var(--green-dark); }
.invite-code.used { border-color: #d5d9d6; background: #eef0ee; color: #8a9490; text-decoration: line-through; text-decoration-color: #b7c0bb; }
.invite-status { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0; padding: 2px 6px; border-radius: 999px; text-decoration: none; }
.invite-code.unused .invite-status { background: #146c57; color: #fff; }
.invite-code.used .invite-status { background: #c5ccc8; color: #555e59; text-decoration: none; }
.invite-legend { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.invite-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.invite-legend .dot.unused { background: #146c57; }
.invite-legend .dot.used { background: #c5ccc8; }
.muted-note { color: var(--muted); font-size: 13px; }
.verified, .unverified { display: inline-block; width: max-content; padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.verified { color: var(--green-dark); background: var(--mint); }
.unverified { color: #825800; background: #fbefcc; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin: 3px 0 0; }
legend { font-weight: 750; padding: 0 0 11px; }
.switch-row { display: flex; min-height: 46px; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0ee; font-size: 14px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { width: 38px; height: 21px; border-radius: 15px; background: #bdc7c1; position: relative; transition: .15s; }
.switch-row i::after { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .15s; }
.switch-row input:checked + i { background: var(--green); }
.switch-row input:checked + i::after { left: 19px; }
.admin-note { max-width: 720px; border-top: 1px solid var(--line); padding-top: 25px; }
.admin-note h2 { font-size: 17px; }
.admin-metrics { grid-template-columns: repeat(4, 1fr); }
.admin-list { margin-top: 14px; display: grid; gap: 8px; }
.admin-list > p { margin: 0; font-size: 14px; }
.admin-book-row, .admin-user-row, .admin-inline-form { display: grid; grid-template-columns: minmax(150px, 1fr) 110px minmax(140px, 1fr) auto auto; gap: 8px; align-items: center; border: 1px solid var(--line); padding: 9px; background: #fff; }
.admin-book-row strong, .admin-book-row small { display: block; }
.admin-book-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.admin-resolution { color: var(--green-dark) !important; }
.admin-book-row input, .admin-book-row select, .admin-inline-form input, .admin-inline-form select { min-height: 34px; padding: 6px 8px; font-size: 12px; }
.admin-inline-form { grid-template-columns: repeat(3, minmax(110px, 1fr)) auto; }
.admin-inline-form label { font-size: 12px; gap: 3px; }
.admin-user-row strong, .admin-user-row small { display: block; }
.admin-user-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.admin-user-row input, .admin-user-row select { min-height: 34px; padding: 6px 8px; font-size: 12px; }
.pagination { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.pagination .secondary { min-height: 32px; padding: 0 10px; font-size: 12px; }
.loading { display: block; padding: 25px; color: var(--muted); }
.mobile-nav { display: none; }
#toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; background: #193d31; color: #fff; padding: 11px 15px; border-radius: 5px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; font-size: 14px; }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.error { background: #9d3f33; }
@media (max-width: 800px) { .login-shell { grid-template-columns: 1fr; } .login-brand { min-height: auto; padding: 36px 24px 32px; } .login-brand h1 { font-size: 32px; } .brand-mark { width: 44px; height: 44px; font-size: 22px; margin-bottom: 18px; } .brand-points { display: none; } .login-form { padding: 28px 22px 48px; width: min(100%, 440px); } .login-form h2 { font-size: 26px; } .auth-links { gap: 6px 2px; } .guest-intro-header { height: 58px; padding: 0 16px; } .guest-intro-header .brand { font-size: 17px; } .guest-intro-header .primary { display: none; } .intro-hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 48px 20px 34px; } .intro-hero h1 { font-size: 34px; } .intro-hero > div > p:last-child { font-size: 15px; } .intro-book-mark { min-height: 190px; } .intro-section { padding: 30px 20px; } .intro-steps { grid-template-columns: 1fr 1fr; gap: 12px 0; } .intro-steps article { min-height: 150px; padding: 14px 13px 5px 0; margin-right: 13px; } .intro-steps article:nth-child(2) { border-right: 0; margin-right: 0; } .intro-steps article:nth-child(3) { border-bottom: 0; } .intro-steps b { margin-bottom: 18px; } .intro-rules { grid-template-columns: 1fr; gap: 20px; } .intro-rule-list { grid-template-columns: 1fr; } .layout { padding-left: 0; padding-bottom: 65px; } .sidebar { display: none; } .topbar { left: 0; height: 58px; padding: 0 16px; } .content { padding: 83px 16px 25px; } .page-head { align-items: start; flex-direction: column; margin-bottom: 22px; } .page-head h1 { font-size: 24px; } .metrics { margin: 0 -1px 30px; } .metrics div { padding: 14px 11px; min-height: 87px; } .metrics strong { font-size: 23px; } .metrics small { font-size: 11px; } .book-grid { grid-template-columns: 1fr; } .book-card { min-height: 205px; } .form-layout { grid-template-columns: 1fr; gap: 15px; } .photo-input { height: 300px; } .two-cols { grid-template-columns: 1fr; gap: 15px; } .flow-form, .settings-form, .photo-panel, .fields-panel { padding: 16px; } .book-detail { grid-template-columns: 1fr; gap: 18px; } .detail-cover { width: min(220px, 100%); height: 290px; } .detail-meta { grid-template-columns: 1fr; } .mobile-nav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; z-index: 7; bottom: 0; left: 0; right: 0; height: 64px; background: #fff; border-top: 1px solid var(--line); } .mobile-nav .nav-item { border-radius: 0; font-size: 11px; padding: 6px 2px; justify-content: center; text-align: center; } .mobile-nav .nav-item b { position: absolute; margin-left: 25px; margin-top: -22px; } .top-actions .notice-button { font-size: 0; } .top-actions .notice-button::before { content: "通知"; font-size: 13px; } .profile-button { padding-left: 10px !important; } .task { grid-template-columns: 44px 1fr; } .proof-task { grid-template-columns: 44px 1fr; } .proof-upload { grid-column: 1 / -1; } .task-actions { grid-column: 1 / -1; justify-content: end; } .admin-book-row, .admin-user-row, .admin-inline-form { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .book-card { grid-template-columns: 74px 1fr; padding: 11px; } .book-cover { width: 74px; height: 112px; } .book-meta { gap: 10px; } .top-actions { gap: 1px; } .top-actions button { padding: 6px; } .metrics strong { font-size: 20px; } }
