@import url("draw.css");
@font-face { font-family:Vant; src:url(ui/vant.woff2) format("woff2"); font-display:swap; }
:root { --gallery-header-height:46px; color-scheme:light; font:13.33333vw/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; color:#333; }
@media (min-width:481px) { :root { font-size:64px; } }
* { box-sizing:border-box; }
body { margin:0; font-size:.28rem; }
a { color:inherit; text-decoration:none; }
a:focus-visible, select:focus-visible, button:focus-visible { outline:2px solid #167fce; outline-offset:-2px; }
button, select { font:inherit; }
.ui-icon { font:normal 1em/1 Vant; }
.gallery-shell { width:100%; margin:auto; min-height:100vh; padding:var(--gallery-header-height) 0 max(65px,1.2rem); background:#fff; }
.gallery-top { position:fixed; z-index:3; left:50%; top:0; transform:translateX(-50%); width:100%; height:var(--gallery-header-height); display:flex; justify-content:space-between; align-items:center; padding:0 16px; background:#fff; border-bottom:1px solid #ebedf0; }
.home-label { display:grid; place-items:center; min-width:64px; height:30px; border-radius:3px; background:#07c160; color:#fff; font-size:14px; font-weight:700; }
.gallery-top .brand { position:absolute; left:50%; transform:translateX(-50%); font-size:20px; font-weight:600; }
.gallery-top nav { display:flex; gap:8px; align-self:stretch; align-items:center; }
.gallery-top nav a,.layout-nav a { display:grid; justify-items:center; }
.gallery-top nav a { font-size:12px; color:#111; }
.gallery-top nav i { font-size:18px; }
@media (max-width:380px) {
  .gallery-top { gap:8px; padding-inline:10px; }
  .gallery-top .brand { position:static; transform:none; font-size:clamp(14px,4.7vw,17px); white-space:nowrap; }
  .home-label { min-width:56px; font-size:12px; }
  .gallery-top nav { gap:6px; }
}
.gallery-shell > .site-addresses { --address-line:#c8dbd0; --address-heading:#087d43; --address-heading-ink:#fff; --address-paper:#f5fbf7; --address-ink:#146242; margin-inline:.16rem; }
.gallery-directory { margin:0 .16rem .12rem; border:1px solid #dce7df; border-radius:6px; overflow:hidden; }
.gallery-directory .site-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-bottom:1px solid #dce7df; background:#f9fcfa url(/artwork/template-1/site-nav.webp) center/100% 100% no-repeat; text-align:center; }
.gallery-directory .site-nav a { display:grid; align-content:start; justify-items:center; gap:.18rem; min-height:44px; padding:.3rem 1px .24rem; color:#146242; font-size:clamp(11px,3.4vw,15px); font-weight:700; }
.gallery-directory .site-nav img { border-radius:50%; }
.gallery-directory .site-nav a:hover { background:#eaf8ef; }
.gallery-hero { position:relative; isolation:isolate; display:flex; align-items:center; height:2.8rem; overflow:hidden; background:#8c180e; }
.gallery-hero img { display:block; position:absolute; z-index:-1; inset:0; width:100%; height:100%; object-fit:cover; }
.gallery-hero h1 { position:absolute; left:7%; top:17%; margin:0; font:900 .83rem/1.16 "Songti SC",STSong,serif; color:#ffe699; letter-spacing:.04em; text-shadow:0 .035rem .025rem #9b4b17,0 .05rem .08rem #6c1608; }
.hero-plaque { position:absolute; left:7.5%; top:59.5%; width:48%; height:18%; display:grid; place-items:center; color:#8b260c; font:800 .33rem/1 "Songti SC",STSong,serif; letter-spacing:.12em; }
[data-new-hk][data-gallery="own"] .app-banner { height:auto; aspect-ratio:1300/275; container-type:inline-size; }
.app-banner img { transform:scaleX(-1); object-position:50% 70%; }
.app-banner h1 { position:static; font:800 clamp(13px,4cqw,33px)/1.1 system-ui,sans-serif; letter-spacing:0; color:#642508; text-shadow:none; }
.app-banner a { position:absolute; inset:0; }
.app-banner a span { position:absolute; top:68%; right:7.5%; width:48%; text-align:center; white-space:nowrap; transform:translateY(-50%); }
.app-banner a:hover span { text-decoration:underline; }
.app-banner a:focus-visible { outline:3px solid #fff; outline-offset:-4px; }
.hero-installed,.installed-portal .hero-download { display:none; }
.installed-portal .hero-installed { display:block; }
@media (display-mode:standalone) { .hero-download { display:none; } .hero-installed { display:block; } }
#own-draw,#archive,#own-gallery,#nextLotteryTime { scroll-margin-top:48px; }
.category-icon { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.16rem 0; padding:.4rem 0 .3rem; margin:.1rem 0 0; border-top:.1rem solid #eee; border-bottom:.1rem solid #eee; text-align:center; }
.gallery-directory .category-icon { margin:0; border:0; }
.category-icon a,.category-icon label { display:grid; justify-items:center; gap:.18rem; font-size:.28rem; color:#555; white-space:nowrap; cursor:pointer; }
.gallery-shell:has(#gallery-prints[hidden]) a[href="#gallery-prints"] { display:none; }
.category-icon img,.gallery-directory .site-nav img { display:block; width:.96rem; height:.96rem; }
#own-gallery { padding:.12rem .2rem; }
.waterfall { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.image-item { overflow:hidden; margin-bottom:.2rem; border-top:1px solid #bbb; border-radius:4px; box-shadow:0 .02rem .08rem #a0a0a080; }
.image-item img { display:block; width:100%; height:auto; }
.waterfall .van-image img { aspect-ratio:1; object-fit:contain; background:#f7f8f2; }
.gallery-card-name { display:inline; font-size:.28rem; overflow-wrap:anywhere; }
[data-card^="print-"] .gallery-card-name { display:none; }
.gallery-hits { margin:.04rem 0 0; padding:.04rem .08rem; background:#eff9f2; color:#176735; font-size:max(13px,.21rem); line-height:1.5; overflow-wrap:anywhere; }
.gallery-review { margin:.12rem .16rem; color:#444; font-size:max(14px,.23rem); }
.gallery-review:empty { display:none; }
.artwork-pending { display:inline-block; margin:0 .04rem; color:#75531a; font-size:.18rem; vertical-align:baseline; }
.own-gallery-empty,.back-gallery { padding:.25rem; color:#555; text-align:center; }
.back-gallery a { color:#079a50; }
.layout-nav { position:fixed; bottom:0; left:50%; transform:translateX(-50%); z-index:2; display:grid; grid-template-columns:repeat(5,1fr); width:100%; height:50px; background:white; box-shadow:0 .02rem .08rem #a0a0a080; }
.layout-nav a { position:relative; align-content:end; gap:2px; padding-bottom:4px; font-size:12px; line-height:1.2; color:#646566; }
.layout-nav a:first-child,.layout-nav i { color:#07c160; }
.layout-nav i { font-size:20px; }
.layout-nav a:nth-child(3) i { position:absolute; left:50%; bottom:23px; transform:translateX(-50%); display:grid; place-items:center; border:4px solid white; width:.8rem; min-width:44px; height:.8rem; min-height:44px; border-radius:50%; background:linear-gradient(#9cddba,#17c860); color:#fff; font-size:.36rem; }
@media (min-width:769px) {
  .gallery-shell,.gallery-top,.layout-nav { width:min(calc(100% - 48px),960px); }
  [data-gallery="own"] .gallery-hero { height:auto; aspect-ratio:1300/486; }
  .gallery-shell .category-icon { grid-template-columns:repeat(10,minmax(0,1fr)); }
  .gallery-top,.layout-nav { border-inline:1px solid #ebedf0; }
}
.gallery-prints { margin:24px 8px 14px; scroll-margin-top:calc(var(--gallery-header-height) + 6px); }
.gallery-prints h2 { margin:0 0 10px; color:#244d36; font-size:20px; }
.gallery-prints h3,.gallery-edition { margin:14px 0 10px; text-align:center; color:#375841; font-size:16px; }
.gallery-prints h3 { padding-block:7px; border-block:1px solid #d3ddcf; }
.print-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr)); gap:8px; }
.print-grid .image-item { min-width:0; overflow-wrap:anywhere; text-align:center; }
.print-grid .van-image img { display:block; width:100%; height:clamp(105px,22vw,165px); object-fit:contain; background:#f7f8f2; }
.print-grid .gallery-card-name { font-size:14px; }
