*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;background:#e9edf0;color:#222}button,a{font:inherit}.app-shell{position:relative;width:100%;max-width:500px;min-height:100vh;margin:auto;padding-bottom:112px;background:#f4f4f4;overflow:hidden}.green-head{height:63px;display:grid;grid-template-columns:80px 1fr 80px;align-items:center;background:#03c86b;color:#fff}.green-head h1,.red-head h1{margin:0;text-align:center;font-size:0.5rem;font-weight:500}.green-head button{height:63px;border:0;background:none;color:#fff;font-size:0.46rem}.green-head small{display:block;font-size:0.2rem}.hero{position:relative;height:190px;margin:0 14px;border-radius:0 0 21px 21px;overflow:hidden;background:#064438}.hero img{width:100%;height:100%;object-fit:cover}.hero-copy{position:absolute;left:20px;top:54px;color:#fff;text-shadow:0 2px 5px #000}.hero-copy b{display:block;font-size:0.44rem}.hero-copy span{display:block;margin-top:8px;font-size:0.26rem}.dots{position:absolute;bottom:9px;width:100%;text-align:center;color:#aaa;word-spacing:5px}.notice{height:55px;margin:4px 3px 7px;padding:15px;border:5px solid #03c86b;border-top:0;border-radius:0 0 26px 26px;background:#fff;font-family:serif;font-size:0.34rem;white-space:nowrap;overflow:hidden}.draw-card{background:#fff;border:1px solid #03c86b}.lottery-tabs{display:grid;grid-template-columns:repeat(4,1fr);height:66px}.lottery-tabs button{border:0;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:#fff;font-size:0.38rem;font-weight:700}.lottery-tabs small{display:block;margin-top:3px;color:#999;font-size:0.24rem;font-weight:400}.lottery-tabs .active{background:#05c86c;color:#fff}.lottery-tabs .active small{color:#fff}.draw-title{display:flex;justify-content:space-between;padding:17px 26px 5px;font-size:0.3rem}.draw-title em{color:#03b963;font-style:normal}.draw-title a{color:#00bb61;text-decoration:none}.balls-row{height:75px;display:flex;align-items:center;padding:0 25px;gap:7px}.draw-ball{width:42px;flex:0 0 42px;text-align:center}.ball{display:flex;align-items:center;justify-content:center;width:42px;height:42px;background-size:contain;background-position:center;background-repeat:no-repeat;font-size:0.34rem;text-shadow:0 1px #fff}.ball.red{background-image:url('/assets/img/lottery/balls/ball-red.png')}.ball.blue{background-image:url('/assets/img/lottery/balls/ball-blue.png')}.ball.green{background-image:url('/assets/img/lottery/balls/ball-green.png')}.draw-ball small{font-size:0.24rem;white-space:nowrap}.plus{font-size:0.6rem}.draw-meta{height:42px;padding:4px 25px 10px;display:flex;justify-content:space-between;color:#888;font-size:0.24rem}.draw-meta b,.draw-meta button{color:red;font-weight:400}.draw-meta button{border:0;background:none}.feature-grid{margin-top:8px;display:grid;grid-template-columns:repeat(4,1fr);background:#fff}.feature-grid a{position:relative;height:122px;padding:13px 2px 7px;border-right:1px solid #eee;border-bottom:1px solid #eee;color:#222;text-align:center;text-decoration:none;font-size:0.34rem;font-weight:700}.feature-grid i{display:flex;align-items:center;justify-content:center;width:61px;height:61px;margin:0 auto 8px;border-radius:50%;color:#fff;font-size:0.58rem;font-style:normal}.feature-grid sup{position:absolute;top:6px;right:7px;background:#f33;color:#fff;font-size:0.16rem}.mint{background:#35d9b0}.blue{background:#3ea9e7}.indigo{background:#5a7ddd}.pale{background:#c4f8d0;color:#11b65b!important}.coral{background:#ef6b70}.purple{background:#d954e8}.cyan{background:#21bbed}.teal{background:#2fc0cb}.feature-grid.compact{margin-top:0}.feature-grid.compact a{height:122px}.feature-grid.compact a.active{background:#fafafa}.home-gallery{margin-top:8px;background:#fff}.gallery-entries{display:flex;overflow-x:auto;padding:13px 13px 0;-webkit-overflow-scrolling:touch}.gallery-entries::-webkit-scrollbar{display:none}.gallery-entry{flex:0 0 117px;padding-right:22px;text-align:center;text-decoration:none}.gallery-entry .icon-bg{display:flex;align-items:center;justify-content:center;width:61px;height:61px;margin:0 auto;border-radius:100%;background:#20d497;color:#fff}.gallery-entry .icon-bg.gray{background:#d8d8d8}.gallery-entry .icon-bg svg{width:31px;height:31px;fill:currentColor}.gallery-entry .text{display:block;padding:13px 0;color:#555;font-size:0.34rem;white-space:nowrap}.gallery-series{display:flex;align-items:center;gap:7px;padding:7px 13px 13px}.gallery-series .item{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;height:40px;border-radius:5px;background:#07c160;color:#f8f8f8;font-size:0.38rem;text-decoration:none;white-space:nowrap}.gallery-series .more{flex:0 0 auto;display:flex;align-items:center;height:40px;padding:0 12px;border-radius:11px;background:#eee;color:#07c160;font-size:0.34rem;text-decoration:none}.gallery-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:10px;background:#fff}.gallery-grid a{text-decoration:none;color:#222;text-align:center}.poster{height:105px;display:flex;align-items:center;justify-content:center;border:1px solid #ddd;font-weight:700}.p1{background:linear-gradient(#70caddaa,#f5b278aa);color:#e62442}.p2{background:#fff9cf;color:#111;font-size:0.44rem}.lottery-switch{position:fixed;z-index:5;left:50%;bottom:68px;transform:translateX(-50%);width:min(500px,100%);height:42px;display:grid;grid-template-columns:repeat(4,1fr);background:#fff}.lottery-switch button{border:1px solid currentColor;border-radius:5px;background:#fff;font-size:0.34rem;color:#03bf65}.lottery-switch button:nth-child(2){color:red}.lottery-switch button:nth-child(3){color:#0bc5cd}.lottery-switch button:nth-child(4){color:#d21dde}.lottery-switch .active{background:#03c86b;color:#fff!important}.bottom-nav{position:fixed;z-index:4;left:50%;bottom:0;transform:translateX(-50%);width:min(500px,100%);height:69px;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #ddd;background:#fff}.bottom-nav a{padding:7px 0;border:0;color:#999;text-align:center;text-decoration:none}.bottom-nav i{display:block;font-size:0.5rem;font-style:normal}.bottom-nav .active{color:#02bf65}.toast{position:fixed;z-index:20;left:50%;bottom:130px;transform:translate(-50%,10px);padding:9px 15px;border-radius:18px;background:#202833e8;color:#fff;font-size:0.26rem;opacity:0;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.gallery-years{margin-top:8px}.gallery-list{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:10px}.gallery-list article{border:1px solid #ddd;background:#fff;box-shadow:0 1px 3px #ccc}.gallery-list h3{margin:0;padding:12px;text-align:center;font-size:0.3rem;font-weight:400}.material{height:170px;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.material strong{font-size:0.46rem}.material span,.material p{font-size:0.24rem;line-height:1.6}.m1{background:linear-gradient(135deg,#16232c,#d6b69c);color:#fff}.m2{background:linear-gradient(135deg,#2d1721,#e9c4aa);color:#fff}.m3{background:#fff;color:#071679;border:2px solid #292bad}.m4{height:300px;background:#c8dedb;color:#6b3518}.m5{height:260px;background:#e4ffd7;color:#ec2222}.m6{height:210px;background:#fff;color:#111}.history-body{background:#fff}.history-shell{padding-bottom:0;background:#fff}.red-head{height:83px;display:grid;grid-template-columns:110px 1fr 70px;align-items:center;background:#f72e35;color:#fff}.red-head a,.red-head button{border:0;background:none;color:#fff;text-decoration:none;font-size:0.46rem}.history-tabs{display:grid;grid-template-columns:1fr 1fr;gap:38px;padding:40px 50px}.history-tabs button{height:64px;border:1px solid #f33;border-radius:8px;background:#fff;font-size:0.54rem}.history-tabs .active{background:linear-gradient(90deg,#9b1f30,#7e101c);color:#fff}.history-year{margin:12px 19px 38px;font-size:0.54rem;font-weight:400}.history-entry{margin:0 19px;padding:19px 0 11px;border-top:1px solid #eee}.entry-title{display:flex;justify-content:space-between;font-size:0.46rem}.entry-title time{color:#999}.entry-balls{margin-top:17px;padding:8px 12px;border:1px solid #f44;border-radius:0 0 10px 10px;display:flex;align-items:center;gap:9px}.entry-balls .draw-ball{width:51px;flex-basis:51px}.entry-balls .ball{width:51px;height:51px;font-size:0.4rem}.entry-balls small{font-size:0.34rem}.entry-balls .plus{margin:0 8px}@media(max-width:390px){.balls-row{padding:0 10px;gap:3px}.draw-meta{padding-left:10px;padding-right:10px}.feature-grid a{font-size:0.34rem}.history-tabs{padding-left:30px;padding-right:30px}.entry-balls{gap:3px;padding-left:5px;padding-right:5px}.entry-balls .draw-ball{width:44px;flex-basis:44px}.entry-balls .ball{width:44px;height:44px}.entry-balls small{font-size:0.34rem}}
/* 功能图标颜色限定在宫格内，避免覆盖开奖号码的蓝色球背景。 */
.feature-grid .mint{background:#35d9b0}.feature-grid .blue{background:#3ea9e7}.feature-grid .indigo{background:#5a7ddd}.feature-grid .pale{background:#c4f8d0;color:#11b65b!important}.feature-grid .coral{background:#ef6b70}.feature-grid .purple{background:#d954e8}.feature-grid .cyan{background:#21bbed}.feature-grid .teal{background:#2fc0cb}
/* 蓝球图片需覆盖通用的蓝色功能图标底色。 */
.ball.blue{background-color:transparent;background-image:url('/assets/img/lottery/balls/ball-blue.png')}
.simple-head{height:58px;display:grid;grid-template-columns:70px 1fr 70px;align-items:center;background:#fff;border-bottom:1px solid #eee}.simple-head h1{grid-column:2;margin:0;text-align:center;font-size:0.42rem}.simple-head button{grid-column:3;border:0;background:none;font-size:0.46rem}.simple-head small{display:block;font-size:0.18rem}.social-page,.treasure-page,.mine-page{padding-bottom:78px;background:#f5f6f8}.social-tabs{height:48px;display:grid;grid-template-columns:repeat(3,1fr);background:#fff}.social-tabs button{border:0;background:#fff;font-size:0.3rem}.social-tabs button.active{color:#04bd65;border-bottom:3px solid #04bd65}.topic-strip{display:flex;gap:8px;padding:12px;overflow:hidden;background:#fff;border-top:1px solid #eee;white-space:nowrap}.topic-strip span,.topic-strip button{padding:7px 11px;border:0;border-radius:16px;background:#f2f4f5;color:#555;font-size:0.24rem}.topic-strip span{color:#05b960;background:#eafaf2}.feed-list{padding:10px}.feed-list article{margin-bottom:10px;padding:14px;border-radius:9px;background:#fff}.feed-user{display:flex;align-items:center}.feed-user i{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#22c987;color:#fff;font-style:normal;font-weight:700}.feed-user i.violet{background:#8969ea}.feed-user i.orange{background:#f2a13b}.feed-user div{flex:1;padding-left:9px}.feed-user b,.feed-user small{display:block}.feed-user small{margin-top:3px;color:#999;font-size:0.22rem}.feed-user em{padding:5px 12px;border:1px solid #08bf68;border-radius:15px;color:#08bf68;font-size:0.24rem;font-style:normal}.feed-list h3{margin:14px 0 7px;font-size:0.34rem}.feed-list p{margin:0 0 12px;color:#666;font-size:0.26rem;line-height:1.65}.feed-cover{height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:6px;color:#fff;font-size:0.44rem;text-align:center}.feed-cover b{font-size:0.56rem}.feed-cover span{margin-top:8px;font-size:0.26rem}.fc1{background:linear-gradient(135deg,#0c806f,#e1aa52)}.fc2{background:linear-gradient(135deg,#45305d,#dd7a75)}.feed-list footer{display:flex;justify-content:space-around;padding-top:12px;color:#888;font-size:0.24rem}.treasure-head{background:#08c472;color:#fff}.treasure-head button{color:#fff}.treasure-hero{padding:30px 20px 35px;background:linear-gradient(160deg,#08c472,#038c69);color:#fff;text-align:center}.chest{width:92px;height:82px;margin:auto;display:flex;align-items:center;justify-content:center;border-radius:18px 18px 30px 30px;background:linear-gradient(#ffd864,#e99c19);box-shadow:inset 0 -10px 0 #b66b11,0 9px 18px #006d4e66;font-size:0.9rem}.treasure-hero h2{margin:19px 0 6px}.treasure-hero p{margin:0 0 20px;font-size:0.26rem;opacity:.9}.treasure-hero button{padding:10px 36px;border:0;border-radius:22px;background:#ffdc58;color:#765000;font-weight:700}.treasure-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:-18px 12px 10px;padding:16px 0;border-radius:10px;background:#fff;box-shadow:0 3px 12px #7772;text-align:center}.treasure-stats div{border-right:1px solid #eee}.treasure-stats div:last-child{border:0}.treasure-stats b,.treasure-stats span{display:block}.treasure-stats b{color:#05b869;font-size:0.4rem}.treasure-stats span{margin-top:4px;color:#888;font-size:0.22rem}.task-card,.reward-card{margin:10px 12px;padding:14px;border-radius:10px;background:#fff}.task-card h2,.reward-card h2{margin:0 0 9px;font-size:0.34rem}.task-card h2 small{float:right;color:#999;font-size:0.2rem;font-weight:400}.task-card article{display:flex;align-items:center;padding:13px 0;border-top:1px solid #eee}.task-card i{width:39px;height:39px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#e9fbf2;color:#05b869;font-style:normal}.task-card div{flex:1;padding-left:10px}.task-card b,.task-card span{display:block}.task-card span{margin-top:4px;color:#999;font-size:0.22rem}.task-card button{padding:6px 10px;border:0;border-radius:14px;background:#0ac36d;color:#fff;font-size:0.22rem}.reward-card div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.reward-card span{padding:28px 4px 10px;border-radius:8px;background:linear-gradient(#fff5d4,#f5d179);color:#8a5c10;text-align:center;font-size:0.24rem}.mine-hero{position:relative;padding:42px 20px 27px;background:linear-gradient(145deg,#09c876,#02976c);color:#fff;text-align:center}.mine-tools{position:absolute;right:12px;top:9px}.mine-tools button{border:0;background:none;color:#fff;font-size:0.4rem}.avatar{width:72px;height:72px;margin:auto;display:flex;align-items:center;justify-content:center;border:3px solid #fff;border-radius:50%;background:#d9f8e8;color:#08a966;font-size:0.8rem}.login-btn{margin-top:13px;border:0;background:none;color:#fff;font-size:0.36rem;font-weight:700}.mine-hero p{margin:6px 0 0;font-size:0.22rem;opacity:.8}.mine-summary{display:grid;grid-template-columns:repeat(4,1fr);padding:15px 0;background:#fff;text-align:center}.mine-summary div{border-right:1px solid #eee}.mine-summary b,.mine-summary span{display:block}.mine-summary span{margin-top:4px;color:#888;font-size:0.22rem}.mine-panel{margin-top:10px;padding:15px;background:#fff}.mine-panel h2{margin:0 0 14px;font-size:0.32rem}.mine-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px 5px}.mine-grid button{border:0;background:#fff;font-size:0.24rem}.mine-grid i{display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 auto 7px;border-radius:14px;background:#eafaf3;color:#07b765;font-size:0.42rem;font-style:normal}.mine-list{margin-top:10px;background:#fff}.mine-list button{width:100%;padding:15px;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left}.mine-list span{float:right;color:#aaa;font-size:0.4rem}.bottom-nav .treasure-nav i{width:43px;height:43px;margin:-20px auto 0;display:flex;align-items:center;justify-content:center;border:5px solid #fff;border-radius:50%;background:#08c672;color:#fff;font-size:0.44rem}.bottom-nav .treasure-nav{padding-top:0}.bottom-nav .treasure-nav.active{color:#08bd69}

/* T-52 移动端安全区 */
body{padding-bottom:env(safe-area-inset-bottom);}
.app-shell{padding-bottom:calc(env(safe-area-inset-bottom) + 8px);}
header,nav,.bottom-bar,.tabbar{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);}
[data-part="bottom"]{padding-bottom:env(safe-area-inset-bottom);}
