/* FrameCurator Album 站点样式(28 节:object-fit: contain) */
:root { --ink: #1f2937; --paper: #f6f4ef; --accent: #b45309; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: var(--paper); color: var(--ink); }
#app { max-width: 1180px; margin: 0 auto; padding: 16px; }
.album-title { text-align: center; font-size: 22px; margin: 10px 0 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 12px; }
.tool-btn { padding: 8px 14px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; }
.tool-btn:hover { border-color: var(--accent); }
.zip-status { font-size: 12px; color: #555; }

.flipbook-container { display: flex; justify-content: center; padding-bottom: 24px; }
.flipbook { width: 1100px; max-width: 100%; }
.album-page { padding: 10px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.08); display: grid; gap: 8px; height: 100%; }
.layout-cover-full { grid-template-columns: 1fr; }
.layout-single-landscape, .layout-single-portrait { grid-template-columns: 1fr; }
.layout-two-landscape, .layout-two-portrait { grid-template-rows: 1fr 1fr; }
.layout-large-left-two-right { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.layout-large-right-two-left { grid-template-columns: 1fr 2fr; grid-template-rows: 1fr 1fr; }
.layout-three-story { grid-template-columns: 1fr 1fr 1fr; }
.layout-four-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.photo-wrap { position: relative; overflow: hidden; border-radius: 4px; background: #eee; }
.layout-large-left-two-right .photo-wrap:first-child,
.layout-large-right-two-left .photo-wrap:last-child { grid-row: span 2; }
.photo-wrap img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; display: block; }
.fav-btn { position: absolute; top: 6px; right: 6px; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 16px; background: rgba(255,255,255,.85); cursor: pointer; color: #999; }
.fav-btn.active { color: #e11d48; }

.fav-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: #fff;
  border: 1px solid #ddd; border-radius: 8px; margin-bottom: 12px; }
.fav-bar.hidden { display: none; }
.fav-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.fav-thumb:hover { border-color: var(--accent); }
.fav-empty { color: #888; font-size: 13px; }

.degraded { text-align: center; font-size: 18px; margin-top: 80px; color: #7f1d1d; }
.degraded-detail { text-align: center; color: #999; font-size: 12px; }
.debug-note { text-align: center; color: #999; font-size: 12px; }
