@import url("draw.css");
@font-face { font-family:Vant; src:url(ui/vant.woff2) format("woff2"); font-display:swap; }
:root { color-scheme:light; font:13.33333vw/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; color:#333; }
@media (min-width:769px) { :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:46px 0 max(65px,1.2rem); background:#fff; }
.gallery-top { position:fixed; z-index:3; left:50%; top:0; transform:translateX(-50%); width:100%; height:46px; display:flex; justify-content:space-between; align-items:center; padding:0 16px; background:#fff; border-bottom:1px solid #ebedf0; }
@media (min-width:769px) { .gallery-shell,.gallery-top { width:480px; } }
.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; }
.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; }
.notice { display:flex; align-items:center; gap:.1rem; height:.68rem; margin:0 .2rem; overflow:hidden; font-size:.24rem; }
.notice i { color:#f44; font-size:16px; }
.notice span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#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; }
.category-icon img,.gallery-directory .site-nav img { display:block; width:.96rem; height:.96rem; }
.own-archive { position:relative; }
.own-archive select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.own-archive:focus-within { outline:2px solid #167fce; outline-offset:-2px; }
#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; }
.gallery-card-name { display:inline; font-size:.28rem; overflow-wrap:anywhere; }
.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; }
.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:min(100%,480px); 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; }
