/* Gallery presentation is isolated from the administrator's forms. */
.gallery-page{--paper:#f4f6fa;--ink:#172440;--muted:#68758b;--line:#dfe5ef;background:var(--paper)}
.gallery-page .brand-bar{background:#132345;border-bottom:3px solid #0867ff;position:relative}
.gallery-page .brand-bar::after{content:'';position:absolute;bottom:-3px;right:8%;width:72px;height:3px;background:var(--red)}
.gallery-page .site-header,.gallery-page main,.gallery-page .site-footer{width:min(1280px,calc(100% - 96px))}
.gallery-page .site-header{height:102px;border:0;gap:17px;color:white}
.gallery-page .brand{width:62px;height:62px;border-radius:16px;background:#f0f0f0;transform:rotate(-5deg);border:3px solid #ffffff24;box-shadow:0 6px 16px #0002}
.gallery-page .brand:hover{transform:rotate(0)}
.gallery-page .brand img{width:58px}
.gallery-page .shop-name{font-size:23px;letter-spacing:3px;font-weight:750}
.gallery-page .shop-descriptor{color:#a7bbdc;font-size:9px;letter-spacing:1.4px}
.gallery-page .gallery-link{font-size:12px;border:1px solid #ffffff29;border-radius:30px;padding:10px 16px;color:#dae6fa}
.catalog-intro{display:flex;justify-content:space-between;align-items:center;gap:36px;padding:42px 0 32px}
.catalog-kicker{font-size:9px;font-weight:700;letter-spacing:2px;color:#637699}
.catalog-intro h1{margin:10px 0 12px;font-size:43px;font-weight:800;letter-spacing:1px;line-height:1.1}
.catalog-intro h1>span{color:var(--blue);padding-left:3px}
.catalog-intro p{font-size:12px;color:#6a778c;line-height:1.8;margin:0}
.gallery-page .search-form{width:410px;min-height:56px;background:white;border:1px solid #dae2ee;border-radius:12px;padding:0 19px;box-shadow:0 5px 18px #233d6a04;flex-shrink:0}
.gallery-page .search-icon{color:#0867ff}
.gallery-page .search-form input{font-size:13px;line-height:54px}
.gallery-page .search-form input::placeholder{font-size:12px;color:#8a96a9}
.gallery-page .search-form:focus-within{border-color:var(--blue);box-shadow:0 0 0 4px #0867ff0b}
.gallery-page .tag-section{padding:19px 22px;background:#eaf0fa;border:1px solid #dce6f6;border-radius:13px;margin-bottom:28px}
.gallery-page .tag-section-head{margin-bottom:12px}
.gallery-page .tag-section h2{margin:0;display:flex;gap:8px;align-items:center;font-size:11px;font-weight:650;letter-spacing:1px;color:#536686}
.gallery-page .tag-section h2>span{font-size:17px;color:var(--blue)}
.gallery-page .tag-controls>span{color:#788aa6;font-size:10px}
.gallery-page .tag-motion-button{color:#5b759e;border-color:#cedaf0;width:25px;height:25px}
.gallery-page .scrolling-tag{min-height:37px;font-size:12px;background:#ffffffba;border-color:#d7e1f1;color:#455b7e;border-radius:7px;padding:0 15px;gap:8px;letter-spacing:0}
.gallery-page .tag-marker{color:#9aaccc;font-size:11px}
.gallery-page .type-tag{color:#0867ff;border-color:#bdd4fb;background:#fff}
.gallery-page .scrolling-tag:hover,.gallery-page .scrolling-tag[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:white}
.gallery-page .tag-set{gap:8px;padding-right:8px}
.gallery-page .gallery-toolbar{padding:0 0 19px;border-top:0;border-bottom:1px solid var(--line);gap:16px;flex-direction:row;align-items:center}
.type-filters{display:flex;gap:6px;flex-wrap:wrap}
.type-filters button{font-size:12px;font-weight:600;min-height:40px;padding:0 20px;border:1px solid transparent;background:transparent;color:#738096;cursor:pointer;border-radius:7px;transition:background .2s,color .2s}
.type-filters button:hover{color:var(--blue);background:#e8effb}
.type-filters button[aria-pressed=true]{background:#172c50;color:white;box-shadow:0 3px 8px #13234513}
.gallery-page .collection-total{color:#7b879c;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.gallery-page .gallery-context{padding:18px 0;color:#8190a5;letter-spacing:1px;font-size:9px;line-height:1.6}
.gallery-context i{font-style:normal;padding:0 7px;color:#bcc7d7}
.gallery-page .mockup-note{color:#8190a5;font-size:10px;letter-spacing:0}
.gallery-page .gallery-grid{gap:26px 22px;align-items:start}
.gallery-page .gallery-card{background:#fff;border:1px solid #e1e7f0;border-radius:13px;overflow:hidden;padding:10px;transition:box-shadow .25s,transform .25s,border-color .25s}
.gallery-page .gallery-card:hover{box-shadow:0 12px 28px #1a376b0d;transform:translateY(-3px);border-color:#c1d5f5}
.gallery-page .image-button{background:#f0f2f6;border-radius:8px;aspect-ratio:3/4}
.gallery-page .image-button img{object-fit:contain}
.gallery-page .image-button:hover img{transform:scale(1.025)}
.gallery-page .image-number{top:12px;left:12px;color:#233e6c;background:#fffffff0;border:1px solid #dce4f0;border-radius:4px;padding:6px 9px;font-size:10px;letter-spacing:.8px;box-shadow:0 2px 8px #11234704}
.gallery-page .expand-hint{opacity:1;transform:none;border-radius:7px;background:#fff;color:#0867ff;right:12px;bottom:12px;width:32px;height:32px;border:1px solid #dce4f0}
.gallery-page .product-caption{padding:17px 8px 10px;gap:10px}
.gallery-page .product-name{color:#213352;font-size:16px;font-weight:700;line-height:1.6;letter-spacing:0}
.gallery-page .product-meta{gap:7px;align-items:flex-start;flex-direction:column}
.gallery-page .product-meta .product-type{color:#5479b4;font-size:10px;letter-spacing:0}
.gallery-page .product-size{font-size:10px;color:#8b96a8;letter-spacing:0;line-height:1.7;overflow-wrap:anywhere;max-width:100%}
.gallery-page .keyword-list{gap:5px}
.gallery-page .keyword-tag{color:#697d9a;background:#f4f7fc;border-color:transparent;font-size:10px;border-radius:4px;line-height:1.6;padding:4px 7px;max-width:100%;overflow-wrap:anywhere;text-align:left}
.gallery-page .keyword-tag:hover{background:#e8f0ff;color:var(--blue);border-color:#c6dafe}
.gallery-page .collection-end{margin:40px 0 44px}
.gallery-page .collection-end p{color:#94a0b3;font-size:10px}
.gallery-page .site-footer{height:90px;color:#8b98ac;letter-spacing:1px}
.gallery-page .site-footer>span:first-child{color:#344d74}
.gallery-page .site-footer a{color:#718099}
.gallery-page .empty-state h2{color:#213352}
.gallery-page .lightbox{background:#f4f6fa}
.gallery-page .lightbox-top{border-bottom:1px solid #e0e7f1;height:76px;color:#26416a}
.gallery-page .lightbox-stage{padding-top:18px;padding-bottom:18px}
.gallery-page .lightbox-bottom{border-top:1px solid #e0e7f1;background:#fff}
.gallery-page #image-caption{color:#213352;font-weight:650}
.gallery-page #image-size,.gallery-page #image-keywords{color:#76869e;line-height:1.7;overflow-wrap:anywhere}
.gallery-page .lightbox-details{min-width:0}
.gallery-page .catalog-error{border-radius:8px}
@media(min-width:1500px){.gallery-page .site-header,.gallery-page main,.gallery-page .site-footer{width:min(1360px,calc(100% - 112px))}.gallery-page .gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:950px){.gallery-page .site-header,.gallery-page main,.gallery-page .site-footer{width:calc(100% - 48px)}.catalog-intro{gap:20px}.gallery-page .search-form{width:340px}.catalog-intro h1{font-size:36px}.gallery-page .gallery-grid{gap:18px 15px}.gallery-page .product-name{font-size:14px}}
@media(max-width:700px){.catalog-intro{align-items:stretch;flex-direction:column;padding:28px 0 22px;gap:21px}.gallery-page .search-form{width:100%}.gallery-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-page .gallery-link{padding:8px 11px;font-size:10px}.gallery-page .shop-name{font-size:20px}}
@media(max-width:480px){.gallery-page .site-header,.gallery-page main,.gallery-page .site-footer{width:calc(100% - 28px)}.gallery-page .site-header{height:86px;gap:12px}.gallery-page .brand{width:49px;height:49px;border-radius:12px}.gallery-page .brand img{width:47px}.gallery-page .shop-name{font-size:18px;letter-spacing:2px}.gallery-page .shop-descriptor{font-size:7px;letter-spacing:.6px}.gallery-page .gallery-link{font-size:0;gap:0;padding:6px 10px}.gallery-page .gallery-link>span:last-child{font-size:20px;margin:0}.catalog-kicker{font-size:8px;letter-spacing:1.6px}.catalog-intro h1{font-size:34px;margin-top:9px;margin-bottom:11px}.catalog-intro p{font-size:11px}.gallery-page .search-form{min-height:50px;border-radius:9px;padding:0 15px}.gallery-page .search-form input{line-height:48px;font-size:12px}.gallery-page .search-form input::placeholder{font-size:11px}.gallery-page .tag-section{padding:13px 12px;margin-bottom:22px;border-radius:10px}.gallery-page .tag-section-head{margin-bottom:8px}.gallery-page .tag-controls>span{font-size:8px}.gallery-page .scrolling-tag{font-size:11px;min-height:34px;padding:0 12px}.gallery-page .gallery-toolbar{gap:5px;padding-bottom:15px}.type-filters{gap:2px}.type-filters button{font-size:10px;padding:0 11px;min-height:36px}.gallery-page .collection-total{font-size:9px}.gallery-page .gallery-context{font-size:8px;letter-spacing:.3px;padding:14px 0;gap:8px}.gallery-context i{padding:0 3px}.gallery-page .mockup-note{font-size:8px;white-space:nowrap}.gallery-page .gallery-grid{gap:14px 10px}.gallery-page .gallery-card{padding:6px;border-radius:9px}.gallery-page .image-button{border-radius:5px}.gallery-page .image-number{top:7px;left:7px;padding:4px 6px;font-size:8px;letter-spacing:.3px}.gallery-page .expand-hint{right:7px;bottom:7px;width:25px;height:25px;font-size:14px;border-radius:5px}.gallery-page .product-caption{padding:12px 3px 7px;gap:7px}.gallery-page .product-name{font-size:12px;line-height:1.65}.gallery-page .product-meta .product-type{font-size:9px}.gallery-page .product-size{font-size:8px;line-height:1.8}.gallery-page .keyword-tag{font-size:8px;padding:3px 5px}.gallery-page .keyword-list{gap:4px}.gallery-page .site-footer{font-size:8px;gap:10px;height:80px;letter-spacing:0}.gallery-page .footer-actions{gap:12px}.gallery-page .site-footer a{font-size:8px}.gallery-page .lightbox-top{height:64px}.gallery-page .lightbox-bottom{height:auto;min-height:158px;padding-top:57px;padding-bottom:18px}.gallery-page .image-nav{bottom:-45px}.gallery-page #image-caption{font-size:11px}.gallery-page #image-size,.gallery-page #image-keywords{font-size:9px}}
@media(prefers-reduced-motion:reduce){.gallery-page .gallery-card:hover{transform:none}}
/* ---------- 手机端顶部压缩（2026-10 改版）---------- */
@media(max-width:700px){
  .gallery-page .site-header{height:64px;gap:10px}
  .gallery-page .brand{width:44px;height:44px;border-radius:11px}
  .gallery-page .brand img{width:42px}
  .gallery-page .shop-name{font-size:17px;letter-spacing:1.5px}
  .gallery-page .shop-descriptor{display:none}
  .gallery-page .gallery-link{padding:6px 10px}

  .catalog-intro{padding:14px 0 12px;gap:11px}
  .catalog-kicker{display:none}
  .catalog-intro h1{font-size:26px;margin:0 0 6px;letter-spacing:.5px;line-height:1.15}
  .catalog-intro p{font-size:10.5px;line-height:1.6;margin:0}
  .gallery-page .search-form{min-height:44px;border-radius:10px;padding:0 13px}
  .gallery-page .search-form input{line-height:42px;font-size:12.5px}
  .gallery-page .search-icon{width:17px;height:17px}

  /* 标签区：单行横向滑动，取消跑马灯与大盒子的留白 */
  .gallery-page .tag-section{padding:9px 11px;margin:0 0 10px;border-radius:10px}
  .gallery-page .tag-section-head{margin-bottom:6px}
  .gallery-page .tag-section h2{font-size:10.5px}
  .gallery-page .tag-section h2>span{font-size:13px}
  .gallery-page .tag-controls>span{display:none}
  .gallery-page .tag-motion-button{display:none}
  .gallery-page .tag-viewport{overflow-x:auto;-webkit-overflow-scrolling:touch;mask-image:none;padding:1px 0 3px}
  .gallery-page .tag-track{animation:none!important;transform:none!important;display:flex}
  .gallery-page .tag-set[aria-hidden="true"]{display:none}
  .gallery-page .tag-set{gap:7px;padding-right:7px}
  .gallery-page .scrolling-tag{min-height:28px;font-size:11px;padding:0 10px;white-space:nowrap}

  .gallery-page .gallery-toolbar{padding-bottom:9px;gap:4px}
  .gallery-page .gallery-context{display:none}
  .type-filters button{min-height:32px;font-size:11px;padding:0 12px}
  .gallery-page .collection-total{font-size:10px}
  .gallery-page .gallery-grid{gap:12px 9px}
}
