:root { color-scheme: light; font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; color: #17191c; background: #f4f5f6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.muted { color: #6e737a; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #e9ecef; }
.login-panel { width: min(100%, 380px); padding: 36px; background: #fff; border: 1px solid #dfe2e5; border-radius: 8px; box-shadow: 0 12px 36px rgba(20, 24, 28, .08); }
.login-panel h1 { margin: 18px 0 4px; font-size: 26px; letter-spacing: 0; }
.login-panel p { margin: 0 0 26px; font-size: 14px; }
.login-panel label { display: block; margin: 16px 0; color: #41464c; font-size: 14px; font-weight: 600; }
.login-panel input { width: 100%; height: 44px; margin-top: 7px; padding: 0 12px; border: 1px solid #c8cdd2; border-radius: 5px; outline: none; }
.login-panel input:focus { border-color: #26664e; box-shadow: 0 0 0 3px rgba(38, 102, 78, .13); }
.login-panel button { width: 100%; height: 44px; margin-top: 8px; border: 0; border-radius: 5px; color: #fff; background: #26664e; cursor: pointer; font-weight: 700; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: #26664e; border-radius: 6px; font: 800 20px/1 Georgia, serif; }
.brand-mark.small { width: 30px; height: 30px; font-size: 15px; }
.error { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid #b42318; background: #fff2f0; color: #8f1f16; font-size: 14px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1280px) / 2)); background: #fff; border-bottom: 1px solid #dfe2e5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.quiet { border: 1px solid #cfd3d7; border-radius: 5px; padding: 7px 12px; background: #fff; color: #40454a; cursor: pointer; }
.content { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 64px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.page-heading h1, .detail h1 { margin: 0; font-size: 30px; letter-spacing: 0; }
.page-heading p { margin: 6px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.item-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe2e5; border-radius: 7px; transition: transform .16s ease, box-shadow .16s ease; }
.item-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(25, 30, 35, .1); }
.thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #dfe3e1; color: #717875; font-weight: 800; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge, .status { background: #fff0cc; color: #795500; border: 1px solid #efcf7d; border-radius: 4px; padding: 4px 7px; font-size: 12px; font-weight: 700; }
.badge { position: absolute; top: 10px; right: 10px; }
.card-copy { padding: 15px 16px 17px; }
.card-copy h2 { margin: 0; min-height: 42px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.35; letter-spacing: 0; }
.card-copy p { margin: 8px 0 0; color: #777d83; font-size: 13px; }
.empty { padding: 72px 24px; text-align: center; color: #6e737a; border: 1px dashed #c8cdd2; }
.empty h2 { color: #363a3e; }
.detail { max-width: 1080px; }
.back { display: inline-block; margin-bottom: 24px; color: #376c59; }
.title-row { display: flex; gap: 12px; align-items: center; margin-bottom: 38px; }
.detail section { margin-top: 38px; }
.detail section > h2 { margin: 0 0 16px; font-size: 20px; letter-spacing: 0; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; }
.image-grid a { min-width: 0; background: #e4e7e6; border: 1px solid #d5d9dc; }
.image-grid img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; }
.file-list { border: 1px solid #d8dcdf; border-radius: 6px; overflow: hidden; background: #fff; }
.file-row { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid #e5e7e9; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #f7faf8; }
.file-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e2eee9; color: #26664e; font-weight: 800; }
.file-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.file-size { color: #72787e; font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .content { width: calc(100% - 32px); padding-top: 28px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-copy { padding: 12px; }
  .card-copy h2 { font-size: 14px; }
  .login-panel { padding: 28px 24px; }
  .file-row { padding: 8px 10px; }
}
