:root{--bg:#f5f5f1;--paper:#fff;--ink:#252d28;--muted:#8b9089;--line:#e4e7e0;--green:#3c5746;--green-dark:#2c4335;--green-light:#eaf0e8;--sidebar:#202c25;--danger:#a8473a;--radius:10px;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--serif:"Songti SC","STSong",serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 var(--sans);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button{border:0;background:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{display:block;max-width:100%}[hidden]{display:none!important}.symbols{position:absolute;width:0;height:0;overflow:hidden}h1,h2,p{margin:0}button:focus-visible,a:focus-visible{outline:2px solid #7f9b76;outline-offset:4px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 18px;border-radius:7px;font-weight:500;font-size:13px;white-space:nowrap;transition:background .2s,box-shadow .2s}.primary{background:var(--green);color:white}.primary:hover{background:var(--green-dark);box-shadow:0 3px 12px #29423216}.secondary{background:white;border:1px solid var(--line)}.secondary:hover{background:#f2f3ef}.destructive{background:var(--danger);color:#fff}.wide{width:100%}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.12em;color:var(--muted)}.brand-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #ffffff40;border-radius:9px}.brand-icon svg{width:22px;height:22px}.login-view{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px;background:radial-gradient(ellipse at 45% 20%,#e9eee6,transparent 65%)}.login-brand{display:flex;gap:12px;align-items:center;font-weight:600;font-size:19px;letter-spacing:.06em;margin-bottom:34px}.login-brand .brand-icon{background:var(--green);color:white}.login-card{width:min(100%,420px);padding:36px 36px 40px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 70px #24322708}.login-card h1{font-size:32px;font-weight:500;font-family:var(--serif);margin:10px 0 8px}.login-card form{margin-top:28px}.login-card .wide{margin-top:12px}.login-foot{font-size:12px;color:var(--muted);margin-top:30px;letter-spacing:.05em}.app{min-height:100dvh;display:grid;grid-template-columns:226px minmax(0,1fr)}.sidebar{position:fixed;left:0;top:0;bottom:0;width:226px;background:var(--sidebar);color:#e9eee8;padding:32px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;margin:0 9px 46px;font-size:18px;letter-spacing:.02em;font-weight:600}.brand small{display:block;color:#87988b;font-size:9px;font-weight:400;letter-spacing:.08em;margin-top:2px}.nav-label{font-size:10px;letter-spacing:.08em;color:#829284;padding:0 17px;margin-bottom:12px}.nav-item{min-height:47px;display:flex;align-items:center;gap:13px;padding:12px 16px;color:#a8b5aa;border-radius:7px;font-size:13px;text-align:left}.nav-item.active{color:#f5f8ef;background:#35493a}.nav-item>span{margin-left:auto;color:#c4d2c1;font-size:11px}.nav-item.preview-link{margin-top:12px}.nav-item.preview-link svg{margin-left:auto;width:17px}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff12;padding:22px 7px 0;display:flex;align-items:center;gap:10px}.avatar{width:32px;height:32px;background:#4d604d;border-radius:50%;display:grid;place-items:center;font-size:12px}.sidebar-bottom b{font-size:12px;font-weight:500}.sidebar-bottom small{display:block;font-size:10px;color:#829284}.sidebar-bottom button{margin-left:auto;color:#a2afa4;font-size:11px;padding:8px 0}.workspace{grid-column:2;min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:#ffffff70;font-size:11px;color:var(--muted)}.topbar i{font-style:normal;margin:0 14px;color:#c5cac3}.topbar b{font-weight:400;color:var(--ink)}.storage-badge{display:flex;align-items:center;gap:8px}.storage-badge>i,.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#719361;margin:0}.content{padding:38px 42px 28px;max-width:1770px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;gap:20px}.page-heading h1{font-size:32px;font-weight:600;letter-spacing:-.04em;line-height:1.3}.heading-dot{color:#7e9a70;margin-left:5px}.page-heading p{font-size:12px;color:var(--muted);margin-top:9px}.heading-actions{display:flex;gap:10px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px 0;margin-bottom:35px}.stats>div{padding:0 28px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stats>div>span{font-size:11px;color:#7d847c;display:flex;align-items:center;gap:6px}.stats strong{display:block;font-size:32px;line-height:1.3;font-weight:500;letter-spacing:-.04em;margin:8px 0 5px;font-variant-numeric:tabular-nums}.stats strong em{font-size:15px;font-style:normal;font-weight:400;color:var(--muted)}.stats small{font-size:10px;color:#a0a69e}.collection-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.filters{display:flex;align-items:center;gap:6px}.filters button{padding:8px 15px;border-radius:6px;color:#818880;font-size:12px;white-space:nowrap}.filters button.selected{background:#e6ebe2;color:var(--green);font-weight:500}.search{display:flex;align-items:center;gap:8px;width:260px!important;margin:0!important;background:white;border:1px solid var(--line);border-radius:7px;padding:9px 12px;color:#9aa195}.search svg{width:16px;height:16px}.search input{border:0!important;padding:0!important;min-width:0;background:none!important;font-size:11px;outline:none!important;box-shadow:none!important}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.photo-card{min-width:0;background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:box-shadow .2s}.photo-card:hover{box-shadow:0 5px 22px #2336220b}.photo-image{position:relative;display:block;padding:0;width:100%;aspect-ratio:1.5;overflow:hidden;text-align:left;background:#e7e9e2}.photo-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.photo-image:hover img{transform:scale(1.035)}.photo-status{position:absolute;top:12px;left:12px;padding:3px 9px;background:#f8faf3e6;backdrop-filter:blur(8px);color:#3b6144;font-size:10px;border-radius:4px;display:flex;align-items:center;gap:5px}.photo-status::before{content:"";width:4px;height:4px;background:#66945b;border-radius:50%}.photo-status.draft{color:#777966;background:#f9f6e8e6}.photo-status.draft::before{background:#b4a674}.photo-info{padding:16px 17px 13px}.photo-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.photo-title h2{font-size:14px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.photo-order{font-size:10px;color:#a5aaa3;flex-shrink:0}.photo-place{font-size:11px;color:#949c91;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:18px}.photo-bottom{border-top:1px solid #f0f1ec;margin-top:14px;padding-top:11px;display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:10px;color:#a0a69e}.photo-bottom>div{display:flex;gap:10px}.text-button{padding:3px 0;font-size:11px;color:#5f7761}.danger{color:#ad766a}.text-button:hover{text-decoration:underline}.empty-state{padding:72px 20px 82px;text-align:center;border:1px dashed #d7ded1;border-radius:10px;background:#ffffff60}.empty-icon{display:inline-flex;width:62px;height:62px;align-items:center;justify-content:center;background:#e9eee5;border-radius:17px;color:#739064;margin-bottom:20px}.empty-icon svg{width:28px;height:28px}.empty-state h2{font-size:20px;font-family:var(--serif);font-weight:500}.empty-state p{font-size:12px;color:var(--muted);margin:10px 0 24px}.list-footer{display:flex;align-items:center;justify-content:space-between;margin-top:28px;font-size:11px;color:var(--muted);gap:16px}.pagination{display:flex;align-items:center;gap:14px}.pagination .button{font-size:11px;min-height:32px;padding:6px 13px}.list-loading{padding:50px;text-align:center;color:var(--muted);font-size:12px}.error-banner{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 18px;background:#fff0ed;border:1px solid #e9c8c1;border-radius:7px;color:#a64a3d;margin-bottom:18px}.error-banner button{text-decoration:underline;font-size:12px}.modal{width:min(570px,calc(100vw - 28px));border:1px solid var(--line);border-radius:14px;padding:28px;background:var(--paper);color:var(--ink);max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 30px 100px #10201530}.modal::backdrop{background:#13221c88;backdrop-filter:blur(5px)}.upload-modal{width:min(660px,calc(100vw - 28px))}.modal-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;gap:20px}.modal-heading h2{font-size:23px;font-weight:500;letter-spacing:-.02em;margin-top:4px}.icon-button{display:grid;place-items:center;width:34px;height:34px;background:#f3f5f0;border-radius:50%;color:#7a8578}.icon-button svg{width:16px;height:16px}.modal label,.login-card label{display:block;font-size:12px;font-weight:500;margin-bottom:18px}.modal input:not([type=checkbox],[type=file]),.modal textarea,.modal select,.login-card input{display:block;width:100%;padding:10px 12px;background:#fcfcfa;border:1px solid #e0e4da;border-radius:6px;font-size:13px;margin-top:7px;outline:none;transition:border-color .2s,box-shadow .2s}.modal input:focus,.modal textarea:focus,.modal select:focus,.login-card input:focus{border-color:#829b77;box-shadow:0 0 0 3px #78916e13}.modal textarea{resize:vertical;min-height:84px}.modal input::placeholder,.modal textarea::placeholder,.login-card input::placeholder{color:#b0b5aa;font-weight:400}.modal small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:5px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.drop-zone{position:relative;padding:28px 16px;text-align:center;background:#f6f8f2;border:1px dashed #b9c7af;border-radius:9px;cursor:pointer}.drop-zone>svg{display:block;width:28px;height:28px;margin:0 auto 12px;color:#6c8960}.drop-zone b{display:block;font-size:13px;font-weight:500}.drop-zone>span{display:block;font-size:10px;color:#99a28f;margin-top:7px}.drop-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.drop-zone.dragover{background:#e9efdf;border-color:var(--green)}.drop-zone:focus-within{outline:2px solid #78916e;outline-offset:3px}.checkbox{display:flex!important;align-items:flex-start;gap:10px;font-size:12px!important}.checkbox input{accent-color:var(--green);width:15px;height:15px;flex-shrink:0;margin:3px 0 0}.upload-queue{display:grid;gap:10px;max-height:260px;overflow:auto;margin-bottom:22px}.queue-item{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:10px;background:#f7f8f4;border-radius:7px}.queue-item img{width:52px;height:46px;object-fit:cover;border-radius:4px}.queue-item input{margin:0!important;padding:6px 8px!important;font-size:12px!important}.queue-item small{font-size:10px}.queue-item .queue-error{color:var(--danger)}.queue-item button{font-size:11px;color:var(--muted)}.form-error{background:#fff1ee;padding:10px 12px;border-radius:6px;color:#a84c3c;font-size:12px;margin:14px 0}.edit-preview{width:100%;height:180px;object-fit:cover;background:#f2f3ef;border-radius:8px;margin-bottom:22px}.delete-modal{max-width:450px}.delete-modal>p{font-size:13px;line-height:1.8;margin-bottom:12px}.delete-modal #deleteDescription{font-weight:500}progress{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:4px;overflow:hidden;margin-top:18px}progress::-webkit-progress-bar{background:#e9eee3}progress::-webkit-progress-value{background:var(--green)}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#24382bf2;color:white;border-radius:8px;font-size:12px;max-width:calc(100vw - 32px);z-index:100;box-shadow:0 5px 30px #12271a25;text-align:center}
@media(min-width:1700px){.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.app{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding-inline:12px}.brand{font-size:16px}.topbar{padding:0 28px}.content{padding:30px 28px}.stats>div{padding:0 18px}.stats small{display:none}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.app{display:block}.sidebar{position:static;width:100%;padding:16px 20px;flex-direction:row;align-items:center;gap:15px}.brand{margin:0;font-size:16px}.brand small,.nav-label,.sidebar .nav-item{display:none}.sidebar-bottom{margin:0 0 0 auto;padding:0;border:0}.sidebar-bottom .avatar,.sidebar-bottom>div{display:none}.sidebar-bottom button{padding:9px;color:#c4d0c2}.workspace{width:100%}.topbar{height:48px;padding:0 20px;font-size:10px}.content{padding:26px 20px}.page-heading{align-items:flex-start;gap:16px}.page-heading h1{font-size:27px}.page-heading p{font-size:11px;max-width:170px}.heading-actions .secondary{display:none}.heading-actions .button{font-size:11px;padding:9px 12px;min-height:38px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;margin-bottom:25px}.stats>div{padding:17px 20px;border-bottom:1px solid var(--line)}.stats>div:nth-child(2){border-right:0}.stats>div:nth-child(3),.stats>div:nth-child(4){border-bottom:0}.stats strong{font-size:27px}.collection-toolbar{flex-direction:column;align-items:stretch;gap:15px}.search{width:100%!important}.filters{justify-content:flex-start}.filters button{padding:8px 13px}.photo-grid{gap:14px}.photo-info{padding:12px}.photo-title h2{font-size:12px}.photo-order{display:none}.photo-bottom{flex-direction:column;align-items:flex-start;gap:7px}.photo-bottom>div{width:100%;justify-content:space-between}.list-footer{align-items:flex-start;flex-direction:column}.pagination{align-self:flex-end}.empty-state{padding:48px 14px}.empty-state h2{font-size:18px}.modal{padding:22px;max-height:calc(100dvh - 24px)}.modal-heading h2{font-size:21px}.form-row{grid-template-columns:1fr}.form-row label:first-child{margin-bottom:0}.login-card{padding:30px 26px}.queue-item{grid-template-columns:42px 1fr auto;gap:8px}.queue-item img{width:42px;height:42px}}
@media(max-width:380px){.photo-grid{grid-template-columns:1fr}.content{padding-inline:16px}.storage-badge{font-size:9px}.topbar{padding-inline:16px}.filters button{padding-inline:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
