:root{color-scheme:light;--paper:#f7f6f2;--surface:#fffefa;--ink:#30352f;--muted:#7c8076;--line:#e5e5db;--green:#51654c;--green-light:#e9eee3;--accent:#ae7454;--cover:#e9e8df;--shadow:0 12px 32px #313e2b0d;font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
html[data-theme=dark]{color-scheme:dark;--paper:#1c211c;--surface:#262c25;--ink:#e7e9e0;--muted:#a2ab9a;--line:#3a4337;--green:#b4c8a5;--green-light:#354330;--accent:#d2a887;--cover:#333b30;--shadow:0 12px 32px #0002}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.6}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}button{border:0;background:none}input,select{color:var(--ink)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:4px}[hidden]{display:none!important}.icon-defs{width:0;height:0;position:absolute}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}.icon-button:hover{background:var(--green-light)}.primary-button{background:var(--green);color:var(--surface);display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 17px;border-radius:7px;font-weight:600;min-height:42px;transition:filter .15s,transform .15s}.primary-button:hover{filter:brightness(.94)}.primary-button:active{transform:translateY(1px)}.primary-button .icon{width:18px;height:18px}.text-button{font-size:13px;color:var(--green);padding:6px 0}.text-button:hover{text-decoration:underline;text-underline-offset:4px}
.site-header{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:var(--surface);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:650;letter-spacing:-.6px}.brand-mark{display:grid;place-items:center;width:34px;height:36px;color:var(--green)}.brand-mark .icon{width:30px;height:30px}.brand-sub{font-size:17px;font-weight:400;letter-spacing:1px;margin-left:5px}.header-actions{display:flex;align-items:center;gap:13px}.chat-link{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:13px}.chat-link:hover{color:var(--ink)}.chat-link .icon{width:19px;height:19px}.layout{display:grid;grid-template-columns:224px minmax(0,1fr);max-width:1560px;margin:auto}.sidebar{padding:36px 21px 30px 30px;position:sticky;top:76px;height:calc(100dvh - 76px);display:flex;flex-direction:column;border-right:1px solid var(--line)}.sidebar-label{font-size:11px;letter-spacing:2px;color:var(--muted);margin:0 12px 15px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:7px;margin:3px 0;text-align:left}.nav-item:hover{background:var(--green-light)}.nav-item.active{color:var(--green);background:var(--green-light);font-weight:600}.nav-item .icon{width:19px;height:19px}.nav-count{margin-left:auto;font-size:12px;font-weight:400;opacity:.75;font-variant-numeric:tabular-nums}.albums-label{margin-top:39px}.album-nav{min-height:0;overflow-y:auto}.album-nav button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:10px 12px;color:var(--muted);font-size:13px;border-radius:7px}.album-nav button.active,.album-nav button:hover{color:var(--green);background:var(--green-light)}.album-dot{width:7px;height:7px;background:var(--accent);border-radius:50%;flex:none}.album-nav button:nth-child(even) .album-dot{background:var(--green)}.album-nav .album-nav-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sidebar-bottom{margin-top:auto;padding:26px 12px 0;font-size:11px;color:var(--muted)}.sidebar-bottom p{font-size:11px;margin:7px 0;line-height:1.8}.sidebar-bottom .text-button{font-size:11px}.content{min-width:0;padding:42px 44px 70px;max-width:1336px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:1.7px;color:var(--accent);margin-bottom:6px}h1{font-size:32px;line-height:1.4;font-weight:600;letter-spacing:-.7px;margin:0}#page-description{color:var(--muted);font-size:13px;margin:8px 0 0}.page-heading>.icon-button{color:var(--muted)}.browse-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:26px}.search-field{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);max-width:465px;width:100%;height:44px;padding:0 13px}.search-field:focus-within{border-color:var(--green)}.search-field .icon{width:18px;height:18px;color:var(--muted)}.search-field input{min-width:0;width:100%;border:0;background:none;outline:none;font-size:13px}.search-field input::placeholder{color:var(--muted)}.sort-wrap{margin-left:auto;display:flex;align-items:center;gap:7px;color:var(--muted);white-space:nowrap;font-size:12px}.sort-wrap select{border:0;background:transparent;padding:8px 3px;max-width:130px}.notice{display:flex;gap:12px;justify-content:space-between;align-items:center;background:var(--green-light);padding:13px 17px;border-radius:7px;margin-bottom:20px}.notice .text-button{white-space:nowrap}
.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.album-card{display:block;padding:0;text-align:left;width:100%;min-width:0;transition:transform .18s}.album-card:hover{transform:translateY(-3px)}.album-cover{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;aspect-ratio:1.4;gap:3px;overflow:hidden;border-radius:9px;background:var(--cover);border:5px solid var(--surface);box-shadow:var(--shadow);position:relative}.album-cover img{width:100%;height:100%;object-fit:cover;min-height:0}.album-cover img:first-child{grid-row:1/3}.album-cover .empty-cover{grid-column:1/3;grid-row:1/3;display:grid;place-items:center;color:var(--muted)}.empty-cover .icon{width:38px;height:38px;stroke-width:1}.album-cover.missing-cover{grid-template-columns:1fr}.album-cover.missing-cover img:first-child{grid-column:1/-1}.album-card-name{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 1px 4px;font-size:16px;font-weight:600}.album-card-name .icon{width:16px;height:16px;color:var(--muted)}.album-card-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.album-card-info{color:var(--muted);font-size:12px;display:flex;gap:10px;margin:0 1px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.section-heading h2{font-size:17px;font-weight:500;margin:0}.section-heading>span{font-size:12px;color:var(--muted)}.recent-section{margin-top:45px}.recent-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.photo-card{position:relative;min-width:0}.photo-open{padding:0;display:block;width:100%;border-radius:7px;aspect-ratio:4/5;background:var(--cover);position:relative;overflow:hidden}.photo-open img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}.photo-open:hover img{transform:scale(1.035)}.recent-grid .photo-open{aspect-ratio:1}.photo-open.preview-failed::after{content:"暂时无法预览";position:absolute;inset:0;display:grid;place-items:center;font-size:11px;color:var(--muted);background:var(--cover)}.favorite-button{position:absolute;right:7px;top:7px;z-index:2;display:flex;align-items:center;justify-content:center;width:34px;height:34px;background:#181d188c;color:#fff;border-radius:6px;opacity:0;transition:opacity .15s}.favorite-button .icon{width:17px;height:17px}.photo-card:hover .favorite-button,.favorite-button:focus-visible,.favorite-button.saved{opacity:1}.favorite-button.saved .icon{fill:currentColor;stroke:currentColor}.photo-meta{display:flex;justify-content:space-between;gap:6px;color:var(--muted);font-size:11px;margin:8px 1px 0}.photo-meta>span:first-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 16px}.storage-section{margin-top:45px;padding-top:25px;border-top:1px solid var(--line);max-width:640px}.storage-row{display:grid;grid-template-columns:96px minmax(70px,1fr) 95px;align-items:center;gap:17px;margin:12px 0;font-size:12px;color:var(--muted)}.storage-track{height:5px;border-radius:3px;background:var(--line);overflow:hidden}.storage-track span{display:block;height:100%;background:var(--green);border-radius:3px}.storage-row:nth-child(even) .storage-track span{background:var(--accent)}.storage-row>span:last-child{text-align:right;font-variant-numeric:tabular-nums}.storage-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-state{text-align:center;padding:65px 20px;color:var(--muted)}.empty-state>.icon{width:38px;height:38px;stroke-width:1;margin:0 auto 12px}.empty-state h2{font-size:17px;font-weight:500;color:var(--ink)}.empty-state p{font-size:13px}.load-more{display:block;margin:34px auto 0;padding:11px 28px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--green)}.list-end{font-size:12px;text-align:center;color:var(--muted);margin:36px 0 0}.skeleton{background:var(--cover);border-radius:8px;min-height:180px;animation:breathe 1.5s ease-in-out infinite}.mobile-nav{display:none}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#303b2eed;color:#fff;z-index:100;padding:11px 20px;border-radius:8px;max-width:calc(100vw - 32px);font-size:13px;text-align:center;box-shadow:var(--shadow);pointer-events:none}
dialog{border:0;color:inherit}dialog::backdrop{background:#161c16a6;backdrop-filter:blur(3px)}.viewer{position:fixed;inset:0;margin:0;padding:0;width:100%;height:100dvh;max-width:none;max-height:none;background:#111511;color:#fff;overflow:hidden}.viewer[open]{display:grid;grid-template-rows:64px minmax(0,1fr) auto 35px;animation:appear .15s ease-out}.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;z-index:3;background:#111511e8}.viewer-toolbar>span{font-size:12px;color:#b9c4b4;font-variant-numeric:tabular-nums}.viewer-toolbar>div{display:flex;gap:8px}.viewer .icon-button{border-radius:0}.viewer .icon-button:hover{background:none;color:#b8ceac}.viewer .icon-button.saved .icon{fill:currentColor}.viewer-stage{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:6px 68px;position:relative}.viewer-stage img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;transition:opacity .13s,transform .15s;touch-action:pinch-zoom;user-select:none;-webkit-user-drag:none}.viewer-stage img.changing{opacity:0;transform:translateX(var(--slide,20px))}.viewer-stage p{position:absolute;left:20px;right:20px;text-align:center;color:#bbc2b6}.viewer-arrow{position:absolute;z-index:2;top:50%;color:#d9e1d4;width:48px;height:58px;background:none}.viewer-arrow:hover{color:#fff}.viewer-arrow.prev{left:8px}.viewer-arrow.next{right:8px}.viewer-caption{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 25px;color:#a8b4a0;font-size:12px;max-width:1200px;width:100%;margin:auto}.viewer-caption>div{min-width:0;display:flex;gap:14px;align-items:center}.viewer-caption #viewer-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d7ded1}.viewer-caption #viewer-album{white-space:nowrap}.viewer-caption>span{white-space:nowrap}.viewer-hint{text-align:center;font-size:10px;color:#697862;padding:2px 0 14px}.upload-dialog{max-width:calc(100vw - 30px);width:470px;padding:26px;border-radius:13px;background:var(--surface);box-shadow:0 24px 90px #0003}.upload-dialog[open]{animation:appear .16s ease-out}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.dialog-heading h2{font-size:23px;font-weight:600;margin:0}.field-label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}.field-label select{background:var(--paper);border:1px solid var(--line);border-radius:7px;padding:11px 9px;font-size:14px}.file-picker{margin-top:18px;border:1px dashed #87937c;padding:23px 12px;display:flex;align-items:center;flex-direction:column;gap:5px;border-radius:8px;background:var(--paper);cursor:pointer}.file-picker .icon{color:var(--green);margin-bottom:3px}.file-picker strong{font-size:14px;font-weight:500}.file-picker span{font-size:11px;color:var(--muted)}.file-picker input{width:1px;height:1px;position:absolute;opacity:0}.upload-pending{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:13px;max-height:205px;overflow-y:auto}.pending-image{position:relative;aspect-ratio:1}.pending-image img{width:100%;height:100%;object-fit:cover;border-radius:5px}.pending-image button{position:absolute;right:1px;top:1px;background:#273122b3;color:#fff;border-radius:4px;padding:3px;display:flex}.pending-image .icon{width:15px;height:15px}.upload-note{font-size:11px;color:var(--muted);margin:13px 0}.upload-submit{width:100%;margin-top:9px}.upload-progress-wrap>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:8px}.upload-progress-wrap progress{width:100%;height:6px;appearance:none;border:0;display:block;border-radius:5px;overflow:hidden;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--green);transition:width .18s}progress::-moz-progress-bar{background:var(--green)}.upload-result{font-size:13px;padding:12px 14px;background:var(--green-light);border-radius:7px;margin:14px 0 0}.upload-result.error{color:#b45c46}
@keyframes breathe{50%{opacity:.55}}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(min-width:1600px){.photo-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1150px){.content{padding:34px 30px 60px}.album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.recent-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.recent-grid .photo-card:nth-child(n+5){display:none}}@media(max-width:800px){.site-header{height:64px;padding:0 20px}.layout{grid-template-columns:185px minmax(0,1fr)}.sidebar{top:64px;height:calc(100dvh - 64px);padding-left:14px;padding-right:12px}.sidebar-label{letter-spacing:1px}.content{padding:30px 23px 65px}.header-actions{gap:6px}.chat-link span{display:none}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}.recent-grid{gap:8px}.favorite-button{opacity:1;width:30px;height:30px}.album-card-name{font-size:15px}}
@media(max-width:600px){.site-header{height:62px;padding:0 16px}.brand{gap:6px;font-size:20px}.brand-sub{font-size:15px;margin-left:3px}.brand-mark{width:27px}.brand-mark .icon{width:27px;height:27px}.header-actions{gap:1px}.header-actions>.icon-button{width:35px}.header-actions .upload-trigger{padding:9px 11px;min-height:37px;font-size:12px;margin-left:5px}.chat-link{padding:8px}.layout{display:block}.sidebar{display:none}.content{padding:28px 18px calc(94px + env(safe-area-inset-bottom));max-width:none}.page-heading{margin-bottom:23px}h1{font-size:28px}.eyebrow{font-size:10px;letter-spacing:1.3px}#page-description{font-size:12px}.browse-toolbar{gap:8px;margin-bottom:22px}.search-field{height:41px;border-radius:7px;padding:0 10px}.search-field input{font-size:12px}.sort-wrap>span{display:none}.sort-wrap select{font-size:11px;max-width:99px}.album-grid{gap:22px 15px}.album-cover{border-width:4px;aspect-ratio:1.22}.album-card-name{margin-top:10px;font-size:14px}.album-card-info{font-size:10px;gap:5px;flex-wrap:wrap}.recent-section{margin-top:33px}.section-heading h2{font-size:16px}.section-heading .text-button{font-size:11px}.recent-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.recent-grid .favorite-button{display:none}.recent-grid .photo-meta{display:none}.storage-section{margin-top:30px;padding-top:22px}.storage-row{grid-template-columns:72px minmax(45px,1fr) 77px;gap:12px;font-size:11px}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px}.photo-meta{font-size:9px;gap:3px}.photo-meta>span:last-child{display:none}.photo-open{border-radius:5px}.favorite-button{width:27px;height:29px;right:4px;top:4px;background:#141a1496;border-radius:4px}.favorite-button .icon{width:15px;height:15px}.mobile-nav{display:flex;align-items:center;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);padding:8px 5px calc(8px + env(safe-area-inset-bottom));z-index:25}.mobile-nav button{width:25%;display:flex;align-items:center;flex-direction:column;gap:4px;font-size:10px;color:var(--muted);padding:3px}.mobile-nav .icon{width:20px;height:20px}.mobile-nav button.active{color:var(--green);font-weight:600}.toast{bottom:calc(82px + env(safe-area-inset-bottom));font-size:12px}.viewer[open]{grid-template-rows:60px minmax(0,1fr) auto 33px}.viewer-toolbar{padding:10px 11px;padding-top:max(10px,env(safe-area-inset-top))}.viewer-toolbar>div{gap:4px}.viewer .icon-button{width:36px;height:38px}.viewer-stage{padding:0 0 5px}.viewer-arrow{width:29px;background:#11151130;height:46px}.viewer-arrow .icon{width:18px}.viewer-arrow.prev{left:0}.viewer-arrow.next{right:0}.viewer-caption{padding:15px 15px 10px;font-size:10px}.viewer-caption>div{display:block}.viewer-caption #viewer-album{display:block;color:#b6c4ad;margin-bottom:4px}.viewer-caption #viewer-name{display:block;max-width:70vw}.upload-dialog{padding:23px 19px;border-radius:12px}.empty-state{padding:55px 10px}.empty-state p{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.video-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111511cf;
  color: #fff;
  pointer-events: none;
}
.viewer-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.viewer-recovery {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.viewer-recovery p {
  position: static;
  padding-inline: 24px;
}
.viewer-recovery button {
  padding: 8px 12px;
  color: #fff;
  border: 1px solid #838e80;
  border-radius: 6px;
  pointer-events: auto;
}
