:root { color-scheme: light; --ink: #1c2520; --muted: #6a756e; --line: #d8ded9; --paper: #f7f8f5; --accent: #1d5e4d; --accent-dark: #15493c; --white: #fff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 Inter, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
.landing-shell, .page-shell, .admin-shell { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.landing-shell { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; }
.landing-copy h1, .verify-hero h1, .admin-header h1 { margin: 10px 0 14px; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: 0; }
.landing-copy > p:not(.eyebrow) { max-width: 520px; color: var(--muted); font-size: 1.1rem; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; min-height: 42px; padding: 9px 16px; border-radius: 5px; font-weight: 700; cursor: pointer; }
.button-primary { color: var(--white); background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-quiet { color: var(--accent); border-color: var(--line); background: var(--white); }
.landing-panel { display: grid; justify-items: center; gap: 12px; padding: 34px; border-left: 1px solid var(--line); }
.landing-panel img { width: min(100%, 300px); aspect-ratio: 1; border: 16px solid var(--white); box-shadow: 0 16px 40px #1c25201a; }
.landing-panel small, .muted { color: var(--muted); }
.page-shell { max-width: 820px; }
.notice { border: 1px solid #cfded7; background: #eaf3ee; color: var(--accent-dark); padding: 10px 14px; border-radius: 4px; font-size: 13px; }
.verify-hero { padding: 72px 0 44px; border-bottom: 1px solid var(--line); }
.verify-hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); max-width: 700px; }
.record-section, .gallery-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.record-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 18px; font-weight: 800; }
.record-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.record-grid div { background: var(--white); padding: 16px; min-height: 92px; }
dt { color: var(--muted); font-size: 13px; } dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.empty { color: var(--muted); margin: 0; }
footer, .admin-warning { color: var(--muted); font-size: 12px; margin-top: 24px; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.admin-header h1 { font-size: 3rem; margin-bottom: 0; }
.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.editor-panel, .media-panel { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 700; }
.field span { font-size: 13px; }
input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; color: var(--ink); background: #fcfdfb; font: inherit; }
input:focus { outline: 2px solid #9fc8b6; border-color: var(--accent); }
.button:disabled { cursor: default; opacity: .45; }
.button-danger { color: #a23a33; border-color: #e8c8c5; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-body { min-height: 100vh; background: #f3f5f3; }
.multi-admin-shell { width: min(100%, 1540px); margin: 0 auto; padding: 24px; }
.multi-admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.multi-admin-header h1 { margin: 4px 0 0; font-size: 30px; line-height: 1.2; }
.admin-auth { display: grid; grid-template-columns: auto minmax(220px, 320px) auto; gap: 10px; align-items: center; }
.admin-auth label { color: var(--muted); font-size: 13px; }
.admin-global-status { margin: 0 0 12px; }
.multi-admin-workspace { display: grid; grid-template-columns: 280px minmax(480px, 1fr) 330px; min-height: calc(100vh - 142px); border: 1px solid var(--line); background: var(--white); }
.record-sidebar { min-width: 0; border-right: 1px solid var(--line); background: #f8faf8; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; }
.sidebar-heading > div { display: flex; align-items: center; gap: 8px; }
.count-badge { min-width: 24px; padding: 1px 7px; border-radius: 12px; background: #e5ebe7; color: var(--muted); text-align: center; font-size: 12px; }
.compact-button { min-height: 36px; padding: 6px 11px; font-size: 13px; }
.record-search { display: block; padding: 0 16px 12px; }
.record-search input { background: #fff; }
.record-list { display: grid; align-content: start; max-height: calc(100vh - 238px); overflow: auto; border-top: 1px solid var(--line); }
.record-list-item { display: grid; gap: 3px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid #e7ebe8; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.record-list-item:hover { background: #eef4f0; }
.record-list-item.is-active { background: #e3efe8; box-shadow: inset 3px 0 var(--accent); }
.record-list-item strong { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-list-item strong i { flex: 0 0 auto; border-radius: 3px; padding: 0 5px; background: #cfe5d8; color: var(--accent-dark); font-size: 10px; font-style: normal; }
.record-list-item span, .record-list-item small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.record-list-item span { font-size: 13px; }
.record-list-item small { font-size: 11px; }
.record-list-empty { padding: 20px 16px; color: var(--muted); }
.record-editor { min-width: 0; padding: 22px 24px 32px; }
.editor-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.editor-toolbar h2 { margin: 4px 0 0; font-size: 22px; }
.editor-toolbar code { color: var(--muted); font-size: 11px; }
.default-badge { display: inline-block; padding: 2px 7px; border-radius: 3px; background: #dcece3; color: var(--accent-dark); font-size: 11px; }
.toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.record-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding-top: 20px; }
.record-form .field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 6px; }
.record-media { min-width: 0; border-left: 1px solid var(--line); background: #fbfcfb; }
.media-section { padding: 20px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.section-heading span { color: var(--muted); font-size: 11px; text-align: right; }
.public-url-label { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 5px; }
.copy-row input { min-width: 0; font-size: 12px; }
.verify-error { margin: 0; padding: 44px 12px; color: #7d8588; text-align: center; }
.status { min-height: 24px; color: var(--accent); margin: 12px 0 0; }
.status[data-error="true"] { color: #a23a33; }
.admin-qr { display: block; width: min(100%, 260px); margin: 6px auto 16px; border: 12px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.download-link { width: 100%; }
.upload-heading { margin-top: 32px; }
.upload-form { display: grid; gap: 10px; }
.admin-image-list { display: grid; gap: 10px; margin-top: 16px; }
.admin-image { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; min-width: 0; }
.admin-image img { width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--line); }
.admin-image span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.icon-button { border: 0; background: transparent; color: #a23a33; cursor: pointer; padding: 4px; }
.license-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 16%, rgba(255, 241, 183, .7), transparent 27rem),
    radial-gradient(circle at 94% 28%, rgba(140, 215, 190, .58), transparent 24rem),
    linear-gradient(180deg, #eef5e6 0%, #dff6fb 37%, #eef4ff 100%);
  color: #262b2d;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.license-page {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 20px 58px;
}
.license-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: max(18px, env(safe-area-inset-top)) 6px 14px;
}
.license-mark {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: #558f91;
  border: 1px solid rgba(83, 145, 148, .22);
  font-size: 14px;
  font-weight: 700;
}
.license-title-wrap { min-width: 0; }
.license-header h1 {
  margin: 0;
  overflow: hidden;
  color: #171b1d;
  font-size: clamp(20px, 4.5vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.license-header p { margin: 3px 0 0; color: #769092; font-size: 14px; }
.license-disclaimer {
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid rgba(73, 137, 142, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  color: #46787b;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.license-card {
  border: 1px solid rgba(214, 224, 228, .9);
  border-radius: 21px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 34px rgba(82, 116, 132, .13);
  padding: 19px 26px 21px;
}
.license-list { margin: 0; }
.license-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 37%) minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  min-height: 72px;
  padding: 12px 0;
}
.license-list dt {
  color: #9a9fa2;
  font-size: clamp(15px, 3.5vw, 20px);
  font-weight: 400;
  line-height: 1.65;
}
.license-list dd {
  min-width: 0;
  min-height: 1.65em;
  margin: 0;
  color: #292d2f;
  font-size: clamp(15px, 3.5vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-line;
}
.license-actions {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  padding-top: 4px;
}
.license-button {
  display: inline-flex;
  min-width: 100px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #75afb2;
  border-radius: 24px;
  background: #fff;
  color: #75a9ac;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.license-button:disabled, .license-button.is-disabled { cursor: default; opacity: .42; pointer-events: none; }
.license-gallery {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
}
.license-gallery h2 { margin: 0 0 14px; font-size: 16px; }
.preview-dialog {
  max-width: min(92vw, 780px);
  max-height: 90vh;
  border: 0;
  border-radius: 14px;
  padding: 40px 14px 14px;
  background: #fff;
}
.preview-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.preview-dialog img { display: block; max-width: 100%; max-height: calc(90vh - 58px); object-fit: contain; }
.preview-close { position: absolute; top: 4px; right: 10px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
@media (max-width: 720px) { .landing-shell, .admin-grid { grid-template-columns: 1fr; gap: 32px; } .landing-shell { padding-top: 12vh; } .landing-panel { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 0; } .record-grid { grid-template-columns: 1fr; } .gallery { grid-template-columns: repeat(2, 1fr); } .admin-header { align-items: start; flex-direction: column; } }
@media (max-width: 1180px) {
  .multi-admin-workspace { grid-template-columns: 250px minmax(470px, 1fr); }
  .record-media { grid-column: 2; border-top: 1px solid var(--line); border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-section { border-right: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .multi-admin-shell { padding: 16px; }
  .multi-admin-header { align-items: stretch; flex-direction: column; }
  .admin-auth { grid-template-columns: 1fr auto; }
  .admin-auth label { grid-column: 1 / -1; }
  .multi-admin-workspace { grid-template-columns: 1fr; }
  .record-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .record-list { grid-auto-flow: column; grid-auto-columns: minmax(220px, 70vw); overflow: auto hidden; max-height: none; }
  .record-list-item { border-right: 1px solid #e7ebe8; }
  .record-media { grid-column: 1; grid-template-columns: 1fr; }
  .editor-toolbar { flex-direction: column; }
  .toolbar-actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .multi-admin-shell { padding: 10px; }
  .multi-admin-header h1 { font-size: 24px; }
  .record-editor { padding: 18px 14px 24px; }
  .record-form { grid-template-columns: 1fr; }
  .record-form .field-wide { grid-column: auto; }
  .toolbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .license-page { padding: 29px 12px 42px; }
  .license-card { border-radius: 17px; padding: 12px 18px 18px; }
  .license-list > div { grid-template-columns: minmax(125px, 46%) minmax(0, 1fr); column-gap: 10px; min-height: 43px; padding: 9px 0; }
  .license-list > div:first-child { min-height: 66px; }
  .license-list > div:nth-child(5) { min-height: 116px; }
  .license-list > div:nth-child(8) { min-height: 66px; }
  .license-list dt, .license-list dd { font-size: 15px; }
  .license-actions { gap: 16px; }
  .license-button { min-width: 86px; min-height: 40px; font-size: 15px; }
}
