/* 后台信息层级 */
body { background: radial-gradient(circle at 18% 0%, #fff6f7, transparent 32%), linear-gradient(135deg, #f8edf0, #ead9e0); }
.admin, .admin.layout-workspace { max-width: min(1500px, calc(100vw - 36px)); padding: 30px 22px 72px; }
.admin-layout, .admin.layout-workspace .admin-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
.admin.layout-workspace .layout-tools { padding: 26px 28px 30px; }
#editor > header { position: sticky; z-index: 10; top: 12px; margin: 18px -8px 20px; padding: 16px 18px; border: 1px solid #ffffffc7; border-radius: 16px; background: #fffcfdeb; backdrop-filter: blur(12px); box-shadow: 0 8px 22px #8c39561a; }
#editor > header h1 { font-size: 25px; }
#editor > header > div:first-child { margin-right: auto; }
#logout { margin-left: 0; background: transparent; color: #8d5268; box-shadow: inset 0 0 0 1px #e5c8d3; }
.hint { margin: -8px 5px 18px; }
.basics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 26px; }
.basics h2, .background-panel h2 { color: #852c50; font-size: 19px; }
.background-panel { padding: 24px 26px; }
.editor-section-title { margin: 32px 4px 4px; font-size: 20px; color: #852c50; }
.editor-section-copy { margin: 0 4px 12px; color: #886876; font-size: 13px; }
.category { padding: 0; overflow: hidden; margin-top: 10px; border-color: #fff; }
.category > summary { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 20px; cursor: pointer; list-style: none; background: linear-gradient(90deg, #fffafd, #fffdfd); }
.category > summary::-webkit-details-marker { display: none; }
.category > summary::after { content: '⌄'; margin-left: 8px; color: #a14668; font-size: 18px; transition: transform .2s; }
.category[open] > summary { border-bottom: 1px solid #efd7e0; background: linear-gradient(90deg, #fcecf2, #fffafa); }
.category[open] > summary::after { transform: rotate(180deg); }
.summary-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #a93a63; color: #fff; font-size: 14px; }
.summary-count { margin-left: auto; padding: 4px 9px; border-radius: 99px; background: #f8e7ed; color: #936276; font-size: 12px; }
.category-body { padding: 18px 20px 20px; }
.category-head { padding-bottom: 15px; border-bottom: 1px solid #f0dce3; }
.items { margin-top: 10px; }
.item-row { padding: 8px 0; }
.category-actions button { min-width: 38px; }
.admin-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-nav { position: sticky; top: 100px; display: grid; gap: 7px; padding: 9px; border: 1px solid #fff; border-radius: 16px; background: #fffafbd9; box-shadow: 0 8px 24px #8d405418; }
.admin-nav button { width: 100%; padding: 12px 13px; text-align: left; background: transparent; color: #785262; }
.admin-nav button.active { color: #fff; background: linear-gradient(135deg, #ae3f68, #8f2d54); box-shadow: 0 5px 12px #9b345837; }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.admin-content .hint { margin: 0 5px 16px; }
.admin-content .basics { margin-top: 0; }
.admin-content .background-panel { margin-top: 0; }
.admin-content .editor-section-title { margin-top: 0; }
#status { margin-left: 212px; }
.hero-settings { padding: 24px 26px; }
.hero-settings h2 { margin-bottom: 5px; color: #852c50; font-size: 19px; }
.hero-settings > p { margin-bottom: 16px; color: #886876; font-size: 13px; }
.hero-setting-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f0dce3; }
.hero-setting-row label { display: flex; align-items: center; gap: 7px; color: #805767; font-size: 13px; font-weight: 600; }
.hero-setting-row input { width: 70px; padding: 7px; text-align: center; }
.hero-setting-row > div { display: flex; gap: 5px; }
.hero-setting-row button { min-width: 35px; padding: 7px 9px; }
.account-security { padding: 24px 26px; }
.account-security h2 { margin-bottom: 5px; color: #852c50; font-size: 19px; }
.account-security > p { color: #886876; font-size: 13px; }
#change-password { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
#change-password button { height: 42px; color: #fff; background: #a43b61; }
.color-picker-row { display: flex; align-items: center; gap: 10px; }
.color-picker-row input[type="color"] { width: 46px; min-width: 46px; height: 37px; padding: 3px; cursor: pointer; }
.color-presets { display: flex; gap: 7px; }
.color-presets button { width: 25px; height: 25px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #dfc2ce; }
.background-library { margin-top: 18px; padding: 22px 24px; border: 1px solid #fff; border-radius: 18px; background: #fffafbd6; box-shadow: 0 8px 24px #8d405415; }
.library-title { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.library-title h2 { margin-bottom: 4px; color: #852c50; font-size: 19px; }
.library-title p { margin-bottom: 16px; color: #886876; font-size: 13px; }
#library-count { padding: 5px 10px; border-radius: 99px; background: #f5e1e9; color: #8d3c5d; font-size: 12px; font-weight: 700; }
.background-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.background-tile { overflow: hidden; border: 1px solid #eed9e0; border-radius: 12px; background: #fff; }
.background-tile.current { border: 2px solid #a73b63; box-shadow: 0 0 0 3px #f8e4ec; }
.background-tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f3e6e9; }
.tile-meta { display: grid; gap: 7px; padding: 9px; color: #815768; font-size: 12px; }
.tile-meta > div { display: flex; flex-wrap: wrap; gap: 5px; }
.tile-meta button { padding: 5px 8px; font-size: 12px; }
.gallery-empty { grid-column: 1 / -1; margin: 0; padding: 24px 12px; color: #8d6b78; text-align: center; }
.background-preview { width: min(1000px, calc(100vw - 40px)); max-height: calc(100vh - 40px); padding: 12px; overflow: hidden; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px #38142366; }
.background-preview::backdrop { background: #31152291; backdrop-filter: blur(5px); }
.preview-stage { height: min(62.5vw, 625px); max-height: calc(100vh - 170px); overflow: hidden; border-radius: 10px; background: #f5e8eb; }
.background-preview iframe { display: block; width: 1600px; height: 1000px; border: 0; transform: scale(.625); transform-origin: top left; background: #f5e8eb; }
.preview-actions { display: flex; justify-content: center; padding: 12px 0 0; }
.preview-close { position: absolute; z-index: 1; top: 20px; right: 20px; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: #fffdfdeb; font-size: 23px; }
.layout-tools { padding: 25px 26px; }
.layout-tools h2 { margin-bottom: 12px; color: #852c50; font-size: 20px; }
.layout-mode-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid #ead4dd; border-radius: 13px; background: #fffafc; }
.layout-mode-tabs { position: relative; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); isolation: isolate; overflow: hidden; padding: 4px; border: 1px solid #ebd4dd; border-radius: 11px; background: #f8e8ee; }
.layout-mode-tabs button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 8px; background: transparent; color: #92546a; font-size: 13px; transition: color .2s ease; }
.layout-mode-tabs button.active { color: #fff; }
.mode-slider { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 8px; background: linear-gradient(135deg, #b5416b, #8f2e55); box-shadow: 0 4px 10px #9a345742; transition: transform .22s ease; }
.layout-mode-tabs[data-mode="custom"] .mode-slider { transform: translateX(100%); }
#layout-mode-label { padding: 5px 9px; border-radius: 99px; background: #f6e2ea; color: #933655; font-size: 12px; white-space: nowrap; }
.layout-tools > p { margin: 14px 0; color: #80606e; font-size: 13px; line-height: 1.7; }
.layout-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.layout-actions button, .layout-actions a { padding: 8px 11px; border: 1px solid #e3c8d3; border-radius: 9px; background: #fff; color: #85405b; font-size: 13px; text-decoration: none; cursor: pointer; }
.layout-actions a { background: #a43b61; border-color: #a43b61; color: #fff; }
.layout-live-preview { margin: 18px 0 12px; overflow: hidden; border: 1px solid #ead0da; border-radius: 15px; background: #fff; box-shadow: 0 7px 18px #853b5012; }
.layout-live-preview > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f0dde4; background: #fff9fb; color: #803b56; }
.layout-live-preview span { color: #a37080; font-size: 12px; }
.layout-live-frame { position: relative; height: 625px; min-height: 0; overflow: hidden; background: #f5e8eb; }
.layout-live-frame iframe { position: absolute; left: 50%; display: block; width: 1600px; height: 1000px; border: 0; transform: translateX(-50%) scale(var(--preview-scale, .625)); transform-origin: center top; }
.layout-live-frame::after { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(172, 69, 105, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(172, 69, 105, .18) 1px, transparent 1px); background-size: var(--preview-grid, 12.5px) var(--preview-grid, 12.5px); box-shadow: inset 0 0 0 1px rgba(172, 69, 105, .2); }
.layout-live-frame::before { content: '20px 定位网格'; position: absolute; z-index: 3; top: 10px; left: 10px; padding: 4px 8px; border-radius: 99px; background: rgba(255, 251, 252, .88); color: #94435f; font-size: 11px; font-weight: 700; pointer-events: none; }
@media (max-width: 640px) { .admin { padding: 18px 13px 52px; } #editor > header { top: 8px; margin: 14px 0 17px; padding: 13px; } .basics { grid-template-columns: 1fr; padding: 20px; } .category > summary { min-height: 56px; padding: 0 15px; } .category-body { padding: 15px; } .summary-count { font-size: 11px; } }
@media (max-width: 720px) { .admin-layout, .admin.layout-workspace .admin-layout { grid-template-columns: 1fr; gap: 14px; } .admin-nav { position: static; grid-template-columns: repeat(3, 1fr); padding: 6px; border-radius: 12px; } .admin-nav button { padding: 10px 7px; text-align: center; font-size: 13px; } #status { margin-left: 0; } }
@media (max-width: 640px) { .background-library { padding: 18px 15px; } .background-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hero-settings { padding: 20px 15px; } .hero-setting-row { grid-template-columns: 1fr auto; } .hero-setting-row > div { grid-column: 1 / -1; } }
@media (max-width: 720px) { #change-password { grid-template-columns: 1fr; } #change-password button { width: fit-content; } }
@media (max-width: 640px) { .layout-tools { padding: 20px 15px; } .layout-mode-choice { align-items: flex-start; flex-direction: column; gap: 8px; } .layout-live-frame { height: 320px; } .layout-live-preview > div:first-child { align-items: flex-start; flex-direction: column; } }

/* 控制台视觉升级 */
:root { --admin-accent: #a83b63; --admin-deep: #752342; --admin-soft: #fbf0f4; --admin-surface: rgba(255, 253, 253, .88); }
body { min-height: 100vh; background: radial-gradient(circle at 8% 8%, #fff 0, #fff7f9 18%, transparent 39%), radial-gradient(circle at 92% 15%, #ead4df 0, transparent 34%), linear-gradient(135deg, #f9eff2, #eadbe2); }
.admin, .admin.layout-workspace { max-width: min(1540px, calc(100vw - 44px)); padding: 24px 22px 80px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px 4px; padding: 7px 10px; border-radius: 99px; color: #8d4762; font-size: 13px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.back:hover { background: #fff9fb; transform: translateX(-2px); }
#editor > header { min-height: 88px; margin: 0 0 22px; padding: 17px 22px; border: 1px solid rgba(255,255,255,.92); border-radius: 20px; background: linear-gradient(115deg, rgba(255,255,255,.94), rgba(255,250,252,.78)); box-shadow: 0 14px 38px rgba(112,38,66,.12); }
#editor > header::after { content: 'PRICELIST STUDIO'; align-self: flex-end; margin: 0 20px 3px 0; color: #c29aa9; font-size: 10px; letter-spacing: .16em; }
#editor > header h1 { margin-bottom: 0; color: #55263a; letter-spacing: -.03em; }
#editor > header .label { margin-bottom: 4px; color: #b1607d; font-weight: 800; }
#editor > header .primary { order: 2; min-height: 40px; border-radius: 11px; background: linear-gradient(135deg, #b8426c, #8f2d53); box-shadow: 0 7px 15px rgba(154,45,83,.24); }
#logout { order: 3; min-height: 40px; border-radius: 11px; }
/* 顶部主操作：统一尺寸，并与退出操作保留明确间距。 */
#editor > header { column-gap: 14px; }
#editor > header #save,
#editor > header #logout { display: inline-grid; width: 148px; min-width: 148px; height: 44px; min-height: 44px; padding: 0 16px; place-items: center; white-space: nowrap; }
.admin-layout, .admin.layout-workspace .admin-layout { grid-template-columns: 226px minmax(0, 1fr); gap: 24px; }
.admin-nav { top: 112px; gap: 5px; padding: 12px; border: 1px solid rgba(255,255,255,.9); border-radius: 19px; background: rgba(255,252,253,.76); box-shadow: 0 12px 30px rgba(107,41,63,.1); backdrop-filter: blur(16px); }
.admin-nav::before { content: '控制台导航'; padding: 2px 7px 8px; color: #b08191; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.admin-nav button { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 10px 11px; border-radius: 11px; font-size: 14px; transition: transform .18s ease, background .18s ease, color .18s ease; }
.admin-nav button::before { width: 18px; color: #b0758b; font-size: 15px; text-align: center; }
.admin-nav button:nth-of-type(1)::before { content: '◌'; }.admin-nav button:nth-of-type(2)::before { content: '▧'; }.admin-nav button:nth-of-type(3)::before { content: '≡'; }.admin-nav button:nth-of-type(4)::before { content: '⌘'; }
.admin-nav button:hover:not(.active) { background: #f9e9ef; transform: translateX(2px); }.admin-nav button.active { background: linear-gradient(135deg, #b8426c, #8c2c52); box-shadow: 0 7px 16px rgba(142,42,78,.27); }.admin-nav button.active::before { color: #fff; }
.admin-pane.active { animation: admin-pane-in .28s ease both; } @keyframes admin-pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.panel, .background-library { border: 1px solid rgba(255,255,255,.94); border-radius: 20px; background: var(--admin-surface); box-shadow: 0 12px 28px rgba(112,43,66,.09); backdrop-filter: blur(12px); }
.basics, .hero-settings, .account-security, .background-panel { padding: 27px 28px; }
.basics h2, .hero-settings h2, .account-security h2, .background-panel h2, .library-title h2 { display: flex; align-items: center; gap: 8px; color: #7c294d; }
.basics h2::before, .hero-settings h2::before, .account-security h2::before, .background-panel h2::before, .library-title h2::before { width: 7px; height: 21px; border-radius: 99px; background: linear-gradient(#d66b91, #9a3159); content: ''; }
.basics label, .category-head label, #change-password label { color: #765061; font-size: 13px; }
.basics input, .category input, .category select, #change-password input { min-height: 42px; border-color: #efd7e0; border-radius: 10px; background: rgba(255,255,255,.75); transition: border-color .2s ease, box-shadow .2s ease; }
.basics input:focus, .category input:focus, .category select:focus, #change-password input:focus { border-color: #c35b80; outline: 0; box-shadow: 0 0 0 3px rgba(195,91,128,.13); }
.color-picker-row { min-height: 42px; padding: 4px 8px; border: 1px solid #efd7e0; border-radius: 10px; background: rgba(255,255,255,.75); }.color-presets button { transition: transform .16s ease; }.color-presets button:hover { transform: scale(1.18); }
.hero-settings, .account-security, .background-library { margin-top: 16px; }.hero-setting-row { min-height: 54px; padding: 11px 0; }.hero-setting-row:first-of-type { border-top: 0; }
#change-password { padding-top: 4px; }#change-password button { min-width: 105px; border-radius: 10px; box-shadow: 0 6px 13px rgba(151,48,82,.22); }
.category { margin-top: 12px; border-radius: 17px; box-shadow: 0 8px 20px rgba(111,42,66,.07); }.category > summary { min-height: 68px; padding: 0 21px; }.category > summary:hover { background: #fff7fa; }.summary-icon { width: 31px; height: 31px; background: linear-gradient(135deg, #c8527a, #96315a); box-shadow: 0 4px 9px rgba(163,51,89,.23); }.category-body { padding: 19px 21px 22px; background: rgba(255,253,253,.45); }.item-row { border-bottom: 1px dashed #f0dce3; }.item-row:last-child { border-bottom: 0; }
.background-tile { transition: transform .2s ease, box-shadow .2s ease; }.background-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgba(117,42,69,.14); }
.admin-nav button[data-tab="backups"]::before { content: '◷'; }.admin-nav button[data-tab="layout"]::before { content: '⌘'; }
.backup-panel { padding: 27px 28px; }.backup-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }.backup-title h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: #7c294d; }.backup-title h2::before { width: 7px; height: 21px; border-radius: 99px; background: linear-gradient(#d66b91, #9a3159); content: ''; }.backup-title p { margin: 0; color: #886876; font-size: 13px; }.backup-title button { min-width: 90px; background: #f7e5ec; color: #8d3558; }.backup-list { display: grid; gap: 9px; }.backup-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 15px; border: 1px solid #efdae2; border-radius: 13px; background: rgba(255,255,255,.62); }.backup-row strong, .backup-row span { display: block; }.backup-row strong { color: #6f3048; font-size: 14px; }.backup-row span { margin-top: 4px; color: #987080; font-size: 12px; }.backup-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }.backup-actions button { padding: 7px 10px; border: 1px solid #e6cad4; background: #fffafd; color: #87435c; font-size: 12px; }.backup-actions .danger { border-color: #efc3cc; background: #fff0f2; color: #a13b55; }.backup-loading { margin: 0; padding: 25px 10px; color: #92707d; text-align: center; }.backup-preview { width: min(860px, calc(100vw - 34px)); max-height: min(760px, calc(100vh - 34px)); padding: 25px; border: 0; border-radius: 18px; background: #fffafb; box-shadow: 0 24px 70px #38142366; }.backup-preview::backdrop { background: #31152291; backdrop-filter: blur(5px); }.backup-preview h2 { margin-bottom: 5px; color: #762a4a; }.backup-preview p { margin-bottom: 14px; color: #936a79; font-size: 12px; }.backup-preview pre { max-height: min(560px, calc(100vh - 190px)); margin: 0; overflow: auto; padding: 15px; border: 1px solid #efdae2; border-radius: 11px; background: #fff; color: #583445; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }.backup-preview-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: #f5e1e9; color: #823650; font-size: 20px; }
.layout-tools { border-radius: 20px; }.layout-live-preview { border-radius: 16px; }.layout-actions button, .layout-actions a { transition: transform .18s ease, box-shadow .18s ease; }.layout-actions button:hover, .layout-actions a:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(126,43,71,.14); }
#status { margin-top: 18px; padding: 9px 13px; border-radius: 10px; background: rgba(255,255,255,.5); }
#status:empty { display: none; }
@media (max-width: 720px) { .admin, .admin.layout-workspace { max-width: 100%; padding: 14px 13px 54px; } #editor > header { min-height: 0; margin-bottom: 15px; padding: 14px; } #editor > header::after { display: none; } .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-nav::before { grid-column: 1 / -1; } .admin-nav button { justify-content: center; } .basics, .hero-settings, .account-security, .background-panel { padding: 21px 17px; } }
@media (max-width: 640px) { .backup-panel { padding: 21px 17px; }.backup-title, .backup-row { align-items: flex-start; flex-direction: column; }.backup-actions { justify-content: flex-start; } }
@media (max-width: 520px) { #editor > header { flex-wrap: wrap; } #editor > header > div:first-child { width: 100%; } #editor > header #save, #editor > header #logout { width: calc(50% - 7px); min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .admin-pane.active { animation: none; } .admin-nav button, .background-tile, .layout-actions button, .layout-actions a, .color-presets button { transition: none; } }
.visitor-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; }
.visitor-entry h2 { margin-bottom: 5px; color: #852c50; font-size: 19px; }.visitor-entry p { margin-bottom: 12px; color: #886876; font-size: 13px; }.visitor-entry code { display: block; max-width: 560px; overflow: hidden; color: #9a6175; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.visitor-entry button { margin-bottom: 10px; color: #fff; background: #a43b61; }.visitor-entry img { width: 126px; height: 126px; padding: 7px; border: 1px solid #efd7e0; border-radius: 13px; background: #fff; }
@media (max-width: 720px) { .visitor-entry { align-items: flex-start; flex-direction: column; padding: 21px 17px; }.visitor-entry img { width: 110px; height: 110px; } }

/* 备份预览使用和价目表一致的可读结构，而不是暴露原始 JSON。 */
.backup-preview #backup-preview-content { max-height: min(560px, calc(100vh - 190px)); overflow: auto; padding-right: 4px; }
.backup-preview-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.backup-preview-summary > div { padding: 11px 12px; border: 1px solid #efdae2; border-radius: 10px; background: #fff; }
.backup-preview-summary span, .backup-preview-summary strong { display: block; }.backup-preview-summary span { margin-bottom: 4px; color: #a27483; font-size: 11px; }.backup-preview-summary strong { overflow: hidden; color: #703048; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.backup-preview-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }.backup-preview-categories section { overflow: hidden; border: 1px solid #efd9e1; border-radius: 12px; background: #fff; }.backup-preview-categories h3 { display: flex; align-items: center; gap: 7px; margin: 0; padding: 10px 12px; border-bottom: 1px solid #f0dce4; background: #fff6f8; color: #7c2e4c; font-size: 14px; }.backup-preview-categories h3 i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #a94368; color: #fff; font-size: 11px; font-style: normal; }.backup-preview-categories h3 small { margin-left: auto; color: #a36d80; font-size: 11px; font-weight: 500; }.backup-preview-categories ul { margin: 0; padding: 0; list-style: none; }.backup-preview-categories li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px dashed #efdce3; color: #694050; font-size: 12px; }.backup-preview-categories li:last-child { border-bottom: 0; }.backup-preview-categories li span { min-width: 0; }.backup-preview-categories li small { display: block; margin-top: 2px; color: #a17987; font-size: 10px; }.backup-preview-categories li strong { flex: 0 0 auto; color: #dc4563; font-size: 12px; }.backup-preview-categories li em { color: #ad8793; font-size: 11px; font-style: normal; }.backup-preview-categories .backup-empty { display: block; padding: 18px 12px; color: #a17b88; text-align: center; }
@media (max-width: 640px) { .backup-preview-summary, .backup-preview-categories { grid-template-columns: 1fr; }.backup-preview { padding: 20px 15px; } }

/* 图库上传：以自定义选择卡片替代浏览器原生文件控件。 */
.upload-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
#background-file.file-input-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.background-file-picker { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 11px 13px; border: 1px dashed #dcaebe; border-radius: 13px; background: linear-gradient(90deg, #fffafc, #fffdfd); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.background-file-picker:hover, .background-file-picker:focus-within { border-color: #b9486e; background: #fff4f7; box-shadow: 0 6px 15px rgba(150,48,83,.11); transform: translateY(-1px); }
.file-picker-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #f5dce6, #efd0dd); color: #9a345b; font-size: 22px; font-weight: 400; }
.file-picker-copy { min-width: 0; display: grid; gap: 2px; }.file-picker-copy strong { color: #78344e; font-size: 14px; }.file-picker-copy small { overflow: hidden; color: #9b7481; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.file-picker-action { margin-left: auto; padding: 6px 9px; border-radius: 8px; background: #f5e3e9; color: #94405f; font-size: 12px; font-weight: 700; white-space: nowrap; }.background-file-picker.has-file { border-style: solid; border-color: #b95072; background: #fff3f7; }.background-file-picker.has-file .file-picker-icon { background: linear-gradient(135deg, #c7547b, #96315a); color: #fff; }
.upload-library-button { min-width: 132px; padding: 0 18px !important; border: 1px solid #9c345b !important; border-radius: 13px !important; background: linear-gradient(135deg, #c64e78, #922c54) !important; color: #fff !important; box-shadow: 0 8px 17px rgba(150,44,80,.24); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }.upload-library-button::before { content: '↑'; margin-right: 7px; font-size: 15px; }.upload-library-button:hover { filter: brightness(1.04); transform: translateY(-2px); box-shadow: 0 11px 21px rgba(150,44,80,.3); }
@media (max-width: 640px) { .upload-row { grid-template-columns: 1fr; }.background-file-picker { min-height: 62px; }.upload-library-button { min-height: 46px; } }

/* 登录入口：独立于编辑器的轻量控制台欢迎页。 */
.login-screen { min-height: 100vh; background: radial-gradient(circle at 16% 14%, rgba(255,255,255,.96), transparent 28%), radial-gradient(circle at 86% 76%, rgba(213,145,171,.25), transparent 33%), linear-gradient(135deg, #f9f1f3 0%, #f0dce4 100%); }.login-screen .admin { display: grid; min-height: 100vh; max-width: none; place-items: center; padding: 72px 22px; }.login-screen .back { position: fixed; z-index: 2; top: 22px; left: 30px; margin: 0; background: rgba(255,255,255,.42); }.login-screen .login { position: relative; width: min(440px, 100%); margin: 0; padding: 38px; overflow: hidden; border: 1px solid rgba(255,255,255,.94); border-radius: 26px; background: rgba(255,253,253,.82); box-shadow: 0 24px 60px rgba(109,39,65,.16); backdrop-filter: blur(16px); }.login-screen .login::before { position: absolute; top: -110px; right: -75px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(224,133,163,.24), transparent 68%); content: ''; pointer-events: none; }.login-mark { display: grid; width: 46px; height: 46px; margin-bottom: 17px; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #c7527a, #8f2c54); box-shadow: 0 8px 18px rgba(151,42,80,.28); color: #fff; font-size: 22px; }.login-kicker { margin: 0 0 7px; color: #b26d86; font-size: 11px; font-weight: 800; letter-spacing: .16em; }.login-screen .login h1 { margin-bottom: 5px; color: #54263b; font-size: clamp(27px, 6vw, 34px); letter-spacing: -.04em; }.login-copy { margin-bottom: 27px; color: #926b7a; font-size: 14px; }.login-screen .login form { display: grid; gap: 15px; }.login-screen .login form label { display: grid; gap: 7px; color: #765061; font-size: 13px; font-weight: 700; }.login-screen .login input { height: 49px; border: 1px solid #e7ced8; border-radius: 12px; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 1px rgba(103,42,64,.03); }.login-screen .login input:focus { border-color: #c35479; outline: 0; box-shadow: 0 0 0 4px rgba(194,83,121,.13); }.login-screen .login button { display: flex; min-height: 49px; align-items: center; justify-content: center; gap: 12px; border-radius: 12px; background: linear-gradient(135deg, #c45179, #8e2c53); color: #fff; box-shadow: 0 9px 18px rgba(151,42,80,.24); transition: transform .18s ease, box-shadow .18s ease; }.login-screen .login button span { font-size: 19px; transition: transform .18s ease; }.login-screen .login button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(151,42,80,.3); }.login-screen .login button:hover span { transform: translateX(3px); }.login-screen .login .error { min-height: 18px; margin: 4px 0 0; font-size: 13px; }.login-return { display: inline-block; margin-top: 14px; color: #986077; font-size: 13px; text-decoration: none; }.login-return:hover { color: #7c2e4d; text-decoration: underline; }
@media (max-width: 560px) { .login-screen .admin { padding: 70px 16px 30px; }.login-screen .back { top: 15px; left: 14px; }.login-screen .login { padding: 29px 23px; border-radius: 21px; } }
