/* Measurements from the 118 reference page, using its 1rem = --unit scale.
   The verified 768/769px content breakpoint stays in styles.css. */
.home-page{font-family:PingFangSC-Regular,"Microsoft YaHei",Helvetica;line-height:1.15;font-synthesis:auto;padding-top:calc(var(--unit)*.92)}
.home-page .home-header{position:fixed;left:50%;transform:translateX(-50%);width:100%;height:calc(var(--unit)*.92);min-height:0;padding:0 16px;gap:calc(var(--unit)*.16);line-height:22px}
.home-page .brand{flex:0 0 calc(var(--unit)*1.428);min-width:0}
.home-page .brand img{height:calc(var(--unit)*.84);max-width:100%}
.home-page .header-lotteries{gap:calc(var(--unit)*.16);align-items:center}
.home-page .header-lotteries button{height:auto;padding:0 0 calc(var(--unit)*.16);font-size:calc(var(--unit)*.32);font-weight:700;line-height:normal}
.home-page .header-lotteries button.active{font-size:calc(var(--unit)*.4);font-weight:900}
.home-page .header-lotteries button.active:after{width:calc(var(--unit)*.4);height:calc(var(--unit)*.08);left:50%;transform:translateX(-50%);bottom:0}
.home-page .header-actions{gap:12px}
.home-page .header-actions button{gap:0;line-height:calc(var(--unit)*.3)}
.home-action-icon{display:block;width:20px;height:21px;object-fit:contain}
.home-page .header-actions small{font-size:calc(var(--unit)*.24);line-height:calc(var(--unit)*.3)}
.home-page .banner-section{padding:calc(var(--unit)*.2) calc(var(--unit)*.16);margin-top:calc(var(--unit)*-.06)}
.home-page .banner{border-radius:calc(var(--unit)*.16);background:transparent;touch-action:pan-y;user-select:none;cursor:grab}
.home-page .banner.is-dragging{cursor:grabbing}
.home-page .banner-track{display:flex;width:100%;height:100%;transform:translate3d(-100%,0,0);will-change:transform}
.home-page .banner-slide{display:block;flex:0 0 100%;min-width:0;height:100%}
.home-page .banner-slide>img{display:block;width:100%;height:100%;object-fit:fill;border-radius:0;-webkit-user-drag:none}
.home-page .banner-dots{z-index:2;cursor:default}
.home-page .banner-dots button{width:calc(var(--unit)*.16);height:calc(var(--unit)*.16);background:rgba(0,0,0,.2)}
.home-page .banner-dots button.active{background:var(--blue)}
.home-page .notice-strip{height:calc(var(--unit)*.8);margin:0 calc(var(--unit)*.16) calc(var(--unit)*.06);padding:0 16px;gap:10px;border-radius:calc(var(--unit)*.08);font-size:calc(var(--unit)*.24);line-height:24px;color:#000}
.home-page .notice-mark{display:block;flex:0 0 49px;width:49px;height:12px}
.home-page .notice-strip>span{min-width:0;flex:1;white-space:nowrap;overflow:hidden}
.home-page .lottery-tabs{gap:0;padding:calc(var(--unit)*.1) calc(var(--unit)*.16) 0;margin:0;overflow:visible}
.home-page .lottery-tabs button{position:relative;padding:calc(var(--unit)*.16) 0;margin-right:calc(var(--unit)*.04);height:auto;min-height:0;border-radius:calc(var(--unit)*.16);font-size:calc(var(--unit)*.24);font-weight:700;line-height:1.15;overflow:visible}
.home-page .lottery-tabs button:last-child{margin-right:0}
.home-page .lottery-tabs small{margin-top:calc(var(--unit)*.1);font-size:calc(var(--unit)*.18);font-weight:400;line-height:1.15;transform:scale(.8)}
.home-page .lottery-tabs button.active:after{content:"";position:absolute;left:50%;bottom:calc(var(--unit)*-.14);transform:translateX(-50%);border-left:calc(var(--unit)*.16) solid transparent;border-right:calc(var(--unit)*.16) solid transparent;border-top:calc(var(--unit)*.16) solid var(--blue);z-index:1}
.home-page .draw-record{padding:calc(var(--unit)*.24) calc(var(--unit)*.2);border-radius:10px}
.home-page .draw-record-heading{font-size:calc(var(--unit)*.28);line-height:1.15;min-height:20px;gap:0;margin:0 0 calc(var(--unit)*.2);padding:0;background:transparent}
.home-page .draw-record-heading>span:first-child{flex:0 0 29.166667%}
.home-page .draw-record-heading>time:empty{display:none}
.home-page .draw-record-heading>.countdown-label{flex:0 0 45.833333%;display:flex;font-size:inherit;line-height:20px;white-space:nowrap}
.home-page #countdown{font-size:14px;font-weight:400;line-height:20px}
.home-page .draw-record-heading>a{flex:0 0 25%;text-align:right}
.home-page .draw-numbers{grid-template-columns:repeat(6,13.5%) 5% 13.5%;gap:0;min-height:calc(var(--unit)*1.2)}
.home-page .draw-number>b{margin:0;width:calc(var(--unit)*.88);height:calc(var(--unit)*.88);padding:0 calc(var(--unit)*.06) 0 0;text-indent:calc(var(--unit)*.08);font-family:inherit;font-size:calc(var(--unit)*.4);font-weight:700;line-height:calc(var(--unit)*.88)}
.home-page .draw-number:last-child>b{margin-left:auto}
.home-page .draw-number small{width:calc(var(--unit)*.72);height:calc(var(--unit)*.356);min-height:calc(var(--unit)*.356);margin:calc(var(--unit)*.08) calc(var(--unit)*.08) 0;padding:calc(var(--unit)*.04);font-size:calc(var(--unit)*.24);line-height:1.15;color:#333;white-space:nowrap;background:#fff;border-radius:calc(var(--unit)*.04)}
.home-page .draw-number:last-child small{margin-left:auto;margin-right:calc(var(--unit)*.08)}
.home-page .draw-plus{font-size:20px;line-height:calc(var(--unit)*.88)}
.home-page .next-draw{font-family:"Noto Sans SC";font-size:calc(var(--unit)*.24);font-weight:400;line-height:1.15;margin-top:calc(var(--unit)*.2);color:#666}
.home-page .section-title{display:block;position:relative;font-size:16px;font-weight:700;line-height:1.15;padding:15px 0 10px;margin:10px 0 5px;background:#f8f9fa;text-align:center;color:#333}
.home-page .section-title:before,.home-page .section-title:after{position:absolute;top:50%;width:50px;height:1px;background:#ddd}
.home-page .section-title:before{left:30px}.home-page .section-title:after{right:30px}
.home-page .recent-records{padding:0;margin:0 0 10px}
.home-page .recent-records .draw-record{padding:calc(var(--unit)*.24) calc(var(--unit)*.2);margin:0 0 8px;opacity:.9}
.home-page .recent-records .draw-record-heading{align-items:flex-start;min-height:0;background:rgba(248,249,250,.8)}
.home-page .recent-records .draw-record-heading>time{width:20.833333%;max-width:none;font-size:12px;line-height:1.15;color:#666}
.home-page .recent-records .draw-record-heading span{line-height:1.15}
.home-page .partner-links{margin:0;padding:0 calc(var(--unit)*.22);gap:0 calc(var(--unit)*.2);border-top:calc(var(--unit)*.16) solid #eee}
.home-page .partner-links a{height:calc(var(--unit)*.6);padding:0;margin:calc(var(--unit)*.2) 0 calc(var(--unit)*.1);font-family:"Noto Sans SC";font-size:calc(var(--unit)*.28);line-height:calc(var(--unit)*.6);color:#444;background:#f8f8f8}
.home-page .home-menu{padding:calc(var(--unit)*.2) 0 calc(var(--unit)*.16);gap:0;grid-template-columns:repeat(5,minmax(0,1fr))}
.home-page .home-menu a{display:block;text-align:center;font-size:calc(var(--unit)*.28);line-height:1.15}
.home-page .home-original-entry{display:inline-block;max-width:100%}
.home-page .home-menu-icon{display:inline-block;width:calc(var(--unit)*1.1);height:calc(var(--unit)*1.1);line-height:calc(var(--unit)*1.2);border-radius:50%}
.home-page .home-menu img{display:inline;width:calc(var(--unit)*1.1);height:calc(var(--unit)*1.1);object-fit:contain}
.home-page .home-menu-label{display:block;font-family:"Noto Sans SC";font-size:calc(var(--unit)*.28);font-weight:400;line-height:normal;margin-top:calc(var(--unit)*-.2);padding:calc(var(--unit)*.12) 0 calc(var(--unit)*.2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-page .gallery-year-grid,.home-page .series-grid{display:flex;gap:0;padding:calc(var(--unit)*.24) 0 0;border:0;overflow-x:auto;scrollbar-width:none}
.home-page .gallery-year-grid a,.home-page .series-grid a{display:block;flex:0 0 25%;min-width:0;text-align:center;white-space:nowrap;font-size:calc(var(--unit)*.28);line-height:1.15}
.home-page .gallery-year-grid img,.home-page .series-grid img{width:33px;height:32px;max-width:none;display:inline;object-fit:contain}
.home-page .series-grid img{width:32px}.home-page .series-grid a:last-child img{width:33px}
.home-page .gallery-year-grid .home-original-entry>span,.home-page .series-grid .home-original-entry>span{display:block;width:calc(var(--unit)*1.6);height:auto;max-width:100%;border-radius:0;background:none;color:#333;font-family:"Noto Sans SC";font-size:calc(var(--unit)*.28);font-weight:400;line-height:normal;padding:calc(var(--unit)*.12) 0 calc(var(--unit)*.2);overflow:hidden;text-overflow:ellipsis}
.home-page .series-grid{padding-top:calc(var(--unit)*.1)}
.bottom-nav{height:calc(50px + var(--safe-bottom));display:flex;font-family:PingFangSC-Regular,"Microsoft YaHei",Helvetica;line-height:12px;font-synthesis:auto}
.bottom-nav a{position:relative;flex:1;height:50px;gap:4px;font-size:12px;font-weight:400;line-height:12px;color:#646566}
.bottom-nav a>span{display:block;width:20px;height:20px;line-height:20px}
.bottom-nav img{display:block;width:20px;height:20px;max-width:none}
.bottom-nav small{font-size:12px;line-height:12px}
.bottom-nav .center-tab>span{position:absolute;top:calc(var(--unit)*-.24);left:50%;transform:translateX(-50%);display:block;width:calc(var(--unit)*.8);height:calc(var(--unit)*.8);margin:0;padding:0;border:0;border-radius:0;background:none}
.bottom-nav .center-tab img{width:100%;height:100%}
.bottom-nav .center-tab small{position:absolute;top:calc(var(--unit)*.6);left:50%;transform:translateX(-50%);white-space:nowrap}
@media(min-width:768px){.home-page .home-header{width:480px}}
