@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
  --bg:#0A0A0B;
  --bg-2:#101012;
  --surface:#151517;
  --surface-2:#1C1C1F;
  --line:rgba(255,255,255,.085);
  --line-2:rgba(255,255,255,.17);
  --text:#F3F1ED;
  --text-2:#A5A29C;
  --text-3:#6B6864;
  --accent:#D8A65E;
  --accent-2:#EDC98C;
  --accent-rgb:216,166,94;
  --accent-dim:rgba(var(--accent-rgb),.13);
  --danger:#E37765;
  --radius:14px;
  --topbar-bg:rgba(10,10,11,.78);
  --lb-bg:rgba(6,6,7,.965);
  --lb-shadow:0 30px 100px rgba(0,0,0,.75);
  --modal-bg:rgba(5,5,6,.78);
  --hero-grad:linear-gradient(180deg,#FBF9F5 25%,#9A958D 130%);
  --font-display:'Space Grotesk','Archivo','PingFang SC','Microsoft YaHei',sans-serif;
  --font-body:'Archivo','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  color-scheme:dark;
}
/* 浅色主题：由后台设置或前台切换按钮写入 data-theme */
:root[data-theme="light"]{
  --bg:#F7F6F3;
  --bg-2:#EDEBE6;
  --surface:#FFFFFF;
  --surface-2:#F0EEE9;
  --line:rgba(24,22,18,.11);
  --line-2:rgba(24,22,18,.22);
  --text:#1A1917;
  --text-2:#56524B;
  --text-3:#8A857C;
  --accent:#A9742A;
  --accent-2:#C08F42;
  --accent-rgb:169,116,42;
  --topbar-bg:rgba(247,246,243,.84);
  --lb-bg:rgba(244,242,237,.97);
  --lb-shadow:0 30px 90px rgba(30,26,20,.25);
  --modal-bg:rgba(30,28,24,.42);
  --hero-grad:linear-gradient(180deg,#1A1917 25%,#716C63 130%);
  color-scheme:light;
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:14px;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse 70% 45% at 50% -8%,rgba(var(--accent-rgb),.075),transparent 70%);
}
img{display:block}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
button:disabled{opacity:.35;cursor:not-allowed}
a{color:inherit;text-decoration:none}
svg{display:block;width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
::selection{background:var(--accent);color:#111}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:#2A2A2D;border-radius:10px;border:3px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#3D3D41}

.app-shell{position:relative;z-index:1}
.container{max-width:1560px;margin:0 auto;padding:0 clamp(20px,4vw,64px)}

/* ---------- Topbar ---------- */
.topbar{
  position:sticky;top:0;z-index:40;
  background:var(--topbar-bg);
  backdrop-filter:blur(20px) saturate(140%);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:1560px;margin:0 auto;padding:14px clamp(20px,4vw,64px);
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand-mark{
  width:36px;height:36px;padding:8px;color:var(--accent);
  border:1px solid var(--line-2);border-radius:10px;
  background:linear-gradient(145deg,rgba(var(--accent-rgb),.13),rgba(var(--accent-rgb),.02));
}
.brand-text{display:flex;flex-direction:column;gap:1px}
.brand-name{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.22em;line-height:1.2}
.brand-sub{font-size:11px;color:var(--text-3);letter-spacing:.08em}
.topbar-tools{display:flex;align-items:center;gap:10px}
.search{
  display:flex;align-items:center;gap:9px;
  height:38px;width:clamp(180px,20vw,270px);padding:0 11px;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  transition:border-color .2s,background .2s;
}
.search:focus-within{border-color:rgba(var(--accent-rgb),.5);background:var(--surface-2)}
.search-icon{width:16px;height:16px;color:var(--text-3);flex-shrink:0}
.search input{
  flex:1;min-width:0;background:none;border:0;outline:none;
  font-size:13px;color:var(--text);
}
.search input::placeholder{color:var(--text-3)}
.search input::-webkit-search-cancel-button{filter:invert(.6)}
.search kbd{
  font-family:var(--font-display);font-size:11px;color:var(--text-3);
  border:1px solid var(--line-2);border-radius:5px;padding:1px 6px;line-height:1.4;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:38px;padding:0 16px;border-radius:10px;
  font-size:13px;font-weight:600;white-space:nowrap;
  transition:background .2s,border-color .2s,color .2s,transform .15s;
}
.btn span[data-icon]{width:16px;height:16px;display:block}
.btn-primary{background:var(--accent);color:#17130C}
.btn-primary:hover{background:var(--accent-2)}
.btn-primary:active{transform:translateY(1px)}
.btn-ghost{border:1px solid var(--line-2);color:var(--text-2);background:var(--surface)}
.btn-ghost:hover{background:var(--surface-2);color:var(--text);border-color:rgba(255,255,255,.28)}
.icon-btn{
  width:38px;height:38px;padding:10px;flex-shrink:0;
  border:1px solid var(--line);border-radius:10px;color:var(--text-2);background:var(--surface);
  transition:background .2s,color .2s;
}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}

/* ---------- Hero ---------- */
.hero{padding:clamp(56px,8vw,104px) 0 clamp(44px,5vw,64px)}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.eyebrow{
  display:flex;align-items:center;gap:10px;margin:0;
  font-family:var(--font-display);font-size:11px;letter-spacing:.19em;color:var(--text-3);font-weight:500;
}
.dot{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px rgba(var(--accent-rgb),.7)}
.slash{color:rgba(255,255,255,.2)}
.hero-meta{margin:0;font-size:12px;color:var(--text-3);letter-spacing:.04em}
.hero-title{
  font-family:var(--font-display);font-weight:300;
  font-size:clamp(2.8rem,6.6vw,5.6rem);line-height:1.06;letter-spacing:-.045em;
  margin:0 0 22px;
  background:var(--hero-grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-desc{margin:0;max-width:620px;color:var(--text-2);font-size:14px;line-height:1.85;font-weight:300}
.hero-stats{display:flex;flex-wrap:wrap;gap:clamp(28px,5vw,72px);margin-top:clamp(40px,5vw,64px)}
.stat{display:flex;flex-direction:column;gap:6px}
.stat-value{font-family:var(--font-display);font-size:clamp(1.5rem,2.4vw,2.1rem);font-weight:500;letter-spacing:-.03em;line-height:1}
.stat-label{font-size:11px;color:var(--text-3);letter-spacing:.1em}

/* ---------- Toolbar ---------- */
.toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  padding:18px 0 22px;border-top:1px solid var(--line);
}
.chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chip{
  display:inline-flex;align-items:center;gap:7px;
  height:32px;padding:0 13px;border-radius:100px;
  border:1px solid var(--line);background:var(--surface);
  font-size:12.5px;color:var(--text-2);white-space:nowrap;
  transition:background .2s,color .2s,border-color .2s;
}
.chip:hover{background:var(--surface-2);color:var(--text)}
.chip.active{background:var(--accent-dim);border-color:rgba(var(--accent-rgb),.42);color:var(--accent-2)}
.chip .count{font-family:var(--font-display);font-size:11px;opacity:.6}
.chip .chip-icon{width:14px;height:14px;display:block}
.chip-add{border-style:dashed;color:var(--text-3)}
.toolbar-right{display:flex;align-items:center;gap:10px}
.segmented{display:flex;gap:2px;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.segmented button{width:32px;height:28px;padding:6px;border-radius:7px;color:var(--text-3);transition:background .2s,color .2s}
.segmented button:hover{color:var(--text)}
.segmented button.active{background:var(--surface-2);color:var(--accent)}
.select-wrap{position:relative}
.select-wrap select{
  appearance:none;height:36px;padding:0 32px 0 13px;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  font-size:12.5px;color:var(--text-2);cursor:pointer;
}
.select-wrap select:hover{border-color:var(--line-2);color:var(--text)}
.select-chevron{position:absolute;right:10px;top:10px;width:15px;height:15px;color:var(--text-3);pointer-events:none}

/* ---------- Demo note ---------- */
.demo-note{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:12px 16px;margin-bottom:22px;
  background:linear-gradient(90deg,rgba(var(--accent-rgb),.09),rgba(var(--accent-rgb),.02));
  border:1px solid rgba(var(--accent-rgb),.22);border-radius:12px;
}
.demo-badge{
  font-size:10px;font-weight:700;letter-spacing:.12em;padding:4px 8px;border-radius:5px;
  background:rgba(var(--accent-rgb),.18);color:var(--accent-2);
}
.demo-note p{margin:0;flex:1;font-size:12.5px;color:var(--text-2);line-height:1.6}
.text-btn{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12.5px;font-weight:600;color:var(--accent);white-space:nowrap;
  transition:color .2s;
}
.text-btn:hover{color:var(--accent-2)}
.text-btn span[data-icon]{width:14px;height:14px;display:block}

/* ---------- Gallery ---------- */
.gallery{padding-bottom:40px;min-height:200px}
.gallery.masonry{columns:4;column-gap:18px}
.gallery.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;align-items:start}
.card{
  position:relative;break-inside:avoid;margin:0 0 18px;
  border-radius:var(--radius);overflow:hidden;background:var(--surface);
  border:1px solid var(--line);cursor:pointer;
  opacity:0;transform:translateY(14px);
  transition:opacity .5s ease,transform .5s ease,border-color .25s;
}
.gallery.grid .card{margin:0}
.card.revealed{opacity:1;transform:none}
.card:hover{border-color:var(--line-2)}
.card-media{position:relative;overflow:hidden;background:var(--surface-2)}
.card-media img{
  width:100%;height:auto;display:block;
  transition:filter .35s ease,transform .5s cubic-bezier(.2,.7,.3,1);
}
.gallery.grid .card-media{aspect-ratio:4/3}
.gallery.grid .card-media img{width:100%;height:100%;object-fit:cover;aspect-ratio:auto !important}
.card:hover .card-media img{filter:brightness(1.07)}
.card-overlay{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;
  padding:14px;opacity:0;transition:opacity .28s ease;
  background:linear-gradient(180deg,rgba(0,0,0,.42) 0%,transparent 34%,transparent 52%,rgba(0,0,0,.78) 100%);
}
.card:hover .card-overlay,.card:focus-within .card-overlay{opacity:1}
.card-overlay-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.badge{
  font-size:10px;font-weight:600;letter-spacing:.08em;padding:4px 8px;border-radius:5px;
  background:rgba(10,10,11,.6);border:1px solid rgba(255,255,255,.2);color:var(--text-2);
  backdrop-filter:blur(8px);
}
.badge.demo{color:var(--accent-2);border-color:rgba(var(--accent-rgb),.42);background:rgba(var(--accent-rgb),.14)}
.card-fav{
  width:30px;height:30px;padding:7px;border-radius:8px;flex-shrink:0;
  background:rgba(10,10,11,.6);border:1px solid rgba(255,255,255,.18);color:var(--text-2);
  backdrop-filter:blur(8px);transition:color .2s,background .2s;
}
.card-fav:hover{background:rgba(10,10,11,.85);color:var(--accent-2)}
.card-fav.on{color:#E37765;border-color:rgba(227,119,101,.5)}
.card-fav.on svg{fill:currentColor}
.card-overlay-bottom h3{
  margin:0 0 5px;font-family:var(--font-display);font-size:14px;font-weight:500;
  letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.card-overlay-bottom p{margin:0;font-size:11px;color:rgba(255,255,255,.68);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- Empty ---------- */
.empty{
  text-align:center;padding:clamp(50px,8vw,96px) 24px;margin-bottom:40px;
  border:1px dashed var(--line-2);border-radius:20px;
  background:radial-gradient(ellipse at 50% 0%,rgba(var(--accent-rgb),.05),transparent 65%);
}
.empty-icon{
  width:56px;height:56px;padding:14px;margin:0 auto 22px;
  color:var(--accent);border:1px solid rgba(var(--accent-rgb),.28);border-radius:16px;background:var(--accent-dim);
}
.empty h2{font-family:var(--font-display);font-weight:400;font-size:1.5rem;margin:0 0 12px;letter-spacing:-.02em}
.empty p{margin:0;color:var(--text-3);font-size:13px;line-height:1.9}
.empty-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:26px}
.empty-actions .btn span[data-icon]{width:16px;height:16px}

/* ---------- Footer ---------- */
.footer{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:26px 0 40px;margin-top:20px;border-top:1px solid var(--line);
  font-size:11.5px;color:var(--text-3);letter-spacing:.05em;
}
.footer-right{display:flex;align-items:center;gap:18px}
.footer-link{display:inline-flex;align-items:center;gap:6px;color:var(--text-3);transition:color .2s}
.footer-link:hover{color:var(--accent)}
.footer-link span[data-icon]{width:13px;height:13px}

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;
  background:var(--lb-bg);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  animation:lb-in .22s ease both;
}
@keyframes lb-in{from{opacity:0}to{opacity:1}}
.lb-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px clamp(16px,3vw,30px);border-bottom:1px solid var(--line);flex-shrink:0;
}
.lb-head-left,.lb-head-right{display:flex;align-items:center;gap:10px}
.lb-index{font-family:var(--font-display);font-size:12px;letter-spacing:.12em;color:var(--text-2)}
.lb-album{font-size:12px;color:var(--text-3)}
.lb-sep{width:1px;height:16px;background:var(--line-2)}
.lb-btn{
  width:38px;height:38px;padding:9px;border-radius:9px;color:var(--text-2);
  border:1px solid transparent;transition:background .2s,color .2s,border-color .2s;
}
.lb-btn:hover{background:var(--surface-2);color:var(--text);border-color:var(--line)}
.lb-btn.on{color:#E37765}
.lb-btn.on svg{fill:currentColor}
.lb-btn.danger:hover{color:var(--danger);border-color:rgba(227,119,101,.35)}
.lb-body{flex:1;min-height:0;display:flex;align-items:stretch;position:relative}
.lb-stage{
  flex:1;min-width:0;display:flex;align-items:center;justify-content:center;
  padding:clamp(18px,3vw,40px);position:relative;
}
.lb-stage img{
  max-width:100%;max-height:calc(100vh - 160px);object-fit:contain;
  border-radius:4px;box-shadow:var(--lb-shadow);
  animation:img-in .3s ease both;
}
@keyframes img-in{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}
.lb-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  width:44px;height:44px;padding:11px;border-radius:50%;
  background:rgba(24,24,27,.82);border:1px solid var(--line-2);color:var(--text-2);
  backdrop-filter:blur(10px);transition:background .2s,color .2s;
}
.lb-nav:hover{background:var(--surface-2);color:var(--text)}
.lb-prev{left:clamp(12px,2vw,26px)}
.lb-next{right:calc(320px + clamp(12px,2vw,26px))}
.lb-info{
  width:320px;flex-shrink:0;padding:28px 24px;overflow-y:auto;
  border-left:1px solid var(--line);background:var(--surface);
}
.info-label{
  margin:0 0 24px;font-family:var(--font-display);font-size:10px;letter-spacing:.18em;
  color:var(--accent);font-weight:600;
}
.info-label span{display:block;margin-top:5px;color:var(--text-3);letter-spacing:.08em;font-weight:400}
.field{display:block;margin-bottom:18px}
.field>span{display:block;font-size:11px;color:var(--text-3);margin-bottom:8px;letter-spacing:.06em}
.field input,.field select{
  width:100%;height:38px;padding:0 12px;
  background:var(--surface);border:1px solid var(--line);border-radius:9px;
  font-size:13px;outline:none;transition:border-color .2s;
}
.field select{appearance:none;cursor:pointer}
.field input:focus,.field select:focus{border-color:rgba(var(--accent-rgb),.55)}
.field input::placeholder{color:var(--text-3)}
.info-meta{
  padding:16px 0;margin:6px 0 18px;border-top:1px solid var(--line);
  display:grid;grid-template-columns:1fr 1fr;gap:14px 10px;
}
.info-meta div span{display:block;font-size:10px;color:var(--text-3);margin-bottom:4px;letter-spacing:.05em}
.info-meta div strong{font-family:var(--font-display);font-size:12px;font-weight:500;color:var(--text-2)}
.info-create{
  display:flex;align-items:center;gap:7px;font-size:12px;color:var(--accent);
  padding:0;transition:color .2s;
}
.info-create:hover{color:var(--accent-2)}
.info-create span[data-icon]{width:15px;height:15px}
.info-hint{margin:22px 0 0;font-size:11px;color:var(--text-3);line-height:1.6}

/* ---------- Modal ---------- */
.modal-backdrop{
  position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;
  padding:20px;background:var(--modal-bg);backdrop-filter:blur(10px);
  animation:lb-in .18s ease both;
}
.modal{
  width:min(100%,470px);max-height:min(90vh,760px);display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--line-2);border-radius:18px;
  box-shadow:0 40px 120px rgba(0,0,0,.7);overflow:hidden;
  animation:modal-in .25s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes modal-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:20px 22px;border-bottom:1px solid var(--line);
}
.modal-head h2{margin:0;font-family:var(--font-display);font-size:16px;font-weight:600;letter-spacing:-.01em}
.modal-body{padding:22px;overflow-y:auto}
.modal-foot{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;
  padding:16px 22px;border-top:1px solid var(--line);background:rgba(0,0,0,.16);
}
.modal p.note{margin:0 0 20px;font-size:12.5px;color:var(--text-2);line-height:1.8}
.modal .field{margin-bottom:18px}
.modal .field:last-child{margin-bottom:0}
.setting-block{padding:16px 0;border-top:1px solid var(--line)}
.setting-block:first-child{border-top:0;padding-top:0}
.setting-block h3{margin:0 0 6px;font-size:13px;font-weight:600}
.setting-block p{margin:0 0 12px;font-size:11.5px;color:var(--text-3);line-height:1.7}
.setting-block .btn{height:34px;font-size:12px}
.btn-danger{border:1px solid rgba(227,119,101,.4);color:var(--danger);background:rgba(227,119,101,.08)}
.btn-danger:hover{background:rgba(227,119,101,.17)}
.confirm-text{margin:0;font-size:13px;color:var(--text-2);line-height:1.85}
.confirm-text strong{color:var(--text)}

/* ---------- Drop overlay ---------- */
.drop-overlay{
  position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;
  padding:24px;background:rgba(8,8,9,.9);backdrop-filter:blur(12px);pointer-events:none;
}
.drop-inner{
  width:min(100%,640px);padding:clamp(40px,8vw,80px) 24px;text-align:center;
  border:2px dashed rgba(var(--accent-rgb),.55);border-radius:24px;background:var(--accent-dim);
}
.drop-icon{display:block;width:52px;height:52px;margin:0 auto 22px;color:var(--accent)}
.drop-inner h2{margin:0 0 10px;font-family:var(--font-display);font-size:clamp(1.3rem,3vw,1.8rem);font-weight:400;letter-spacing:-.02em}
.drop-inner p{margin:0;font-size:13px;color:var(--text-2)}

/* ---------- Toast ---------- */
.toast{
  position:fixed;right:24px;bottom:24px;z-index:160;
  display:flex;align-items:center;gap:10px;
  max-width:min(90vw,360px);padding:13px 17px;
  background:var(--surface-2);border:1px solid var(--line-2);border-radius:11px;
  box-shadow:0 18px 50px rgba(0,0,0,.55);
  font-size:12.5px;color:var(--text);line-height:1.5;
  animation:toast-in .25s ease both;
}
.toast::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- Responsive ---------- */
@media (max-width:1280px){
  .gallery.masonry{columns:3}
  .lb-info{width:280px}
  .lb-next{right:calc(280px + 20px)}
}
@media (max-width:960px){
  .gallery.masonry{columns:2}
  .lb-body{flex-direction:column}
  .lb-stage{flex:1;min-height:0;padding:16px}
  .lb-stage img{max-height:calc(100vh - 300px)}
  .lb-info{width:100%;max-height:230px;border-left:0;border-top:1px solid var(--line);padding:18px 22px}
  .info-meta{grid-template-columns:repeat(4,1fr)}
  .lb-next{right:16px}
  .lb-prev{left:12px}
  .lb-nav{width:38px;height:38px;padding:9px}
}
@media (max-width:720px){
  .topbar-inner{padding:12px 18px;gap:12px}
  .brand-sub{display:none}
  .search{width:38px;padding:0 10px;overflow:hidden;transition:width .25s}
  .search:focus-within{width:min(52vw,240px)}
  .search kbd{display:none}
  .search input{min-width:120px}
  .topbar .btn-primary span:last-child{display:none}
  .btn-primary{width:38px;padding:0}
  .hero-top{flex-direction:column;align-items:flex-start;gap:8px}
  .hero-stats{gap:24px 32px}
  .toolbar{align-items:flex-start;gap:14px}
  .chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;max-width:100%;scrollbar-width:none}
  .chips::-webkit-scrollbar{display:none}
  .toolbar-right{width:100%;justify-content:space-between}
  .container{padding:0 18px}
  .demo-note{padding:12px;gap:10px}
  .demo-note p{flex-basis:100%;order:3}
  .info-meta{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .gallery.masonry{columns:2;column-gap:10px}
  .gallery.grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
  .card{margin-bottom:10px;border-radius:10px}
  .card-overlay{padding:9px}
  .card-overlay-bottom h3{font-size:12px}
  .card-overlay-bottom p{font-size:10px}
  .card-fav{width:26px;height:26px;padding:6px}
  .hero-title{font-size:2.5rem}
  .footer{flex-direction:column;align-items:flex-start;gap:8px}
  .lb-head{padding:12px 14px}
  .lb-album{display:none}
  .toast{right:14px;left:14px;bottom:14px;max-width:none}
}
/* ---------- 只读访客站：自由拼贴 / 只读信息 / 关于 ---------- */
.free-hint{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:11px 16px;margin-bottom:22px;
  border:1px solid var(--line);border-radius:12px;background:var(--surface);
  font-size:12.5px;color:var(--text-2);
}
.free-hint-ico{width:18px;height:18px;color:var(--accent);flex-shrink:0}
.free-hint p{margin:0;flex:1;line-height:1.6}
.free-hint strong{color:var(--text);font-weight:600;margin-right:6px}

.gallery.free{
  position:relative;display:block;width:100%;overflow:hidden;
  border:1px solid var(--line);border-radius:18px;
  background:radial-gradient(ellipse at 50% 0%,rgba(var(--accent-rgb),.045),transparent 70%),var(--bg-2);
}
.gallery.free .card{position:absolute;margin:0;border-color:var(--line-2);box-shadow:0 16px 44px rgba(0,0,0,.32)}
.gallery.free .card:hover{transform:translateY(-3px);border-color:var(--accent)}
.gallery.free .card-media img{width:100%;height:auto}
:root[data-theme="light"] .gallery.free .card{box-shadow:0 16px 40px rgba(30,26,20,.14)}

.badge.fav-badge{color:var(--accent-2);border-color:rgba(var(--accent-rgb),.45);background:rgba(var(--accent-rgb),.16)}

.readonly-info{padding-bottom:6px}
.ro-title{font-family:var(--font-display);font-size:18px;font-weight:500;letter-spacing:-.02em;line-height:1.4;margin-bottom:20px}
.ro-list{margin:0;display:flex;flex-direction:column}
.ro-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.ro-list dt{font-size:11px;color:var(--text-3);letter-spacing:.05em;flex-shrink:0}
.ro-list dd{margin:0;font-size:12.5px;color:var(--text-2);text-align:right;word-break:break-all}
.ro-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}
.ro-tag{padding:4px 9px;border:1px solid var(--line);border-radius:100px;font-size:11px;color:var(--text-2);background:var(--surface)}

.about-block h3{margin:0 0 4px;font-family:var(--font-display);font-size:18px;font-weight:600;letter-spacing:-.02em}
.about-block .about-sub{margin:0 0 18px;font-size:12px;color:var(--accent)}
.about-block p{font-size:12.5px;color:var(--text-2);line-height:1.85;margin:0 0 12px}
.about-block .about-meta{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:11px;color:var(--text-3)}

@media (max-width:720px){
  .gallery.free{border-radius:12px}
  .gallery.free .card{box-shadow:0 8px 22px rgba(0,0,0,.3)}
  .lb-info .ro-title{font-size:16px;margin-bottom:12px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  .card{opacity:1;transform:none}
  .gallery.free .card:hover{transform:none}
}
