html,body{margin:0;min-height:100%;font-family:"PingFang SC","Microsoft YaHei",sans-serif;background:#f5f5f5;color:#333}
button{font-family:inherit;cursor:pointer}
.txbb-shell{width:100%;max-width:480px;min-height:100vh;margin:0 auto;padding-bottom:30px;background:#f5f5f5}
.txbb-nav{position:sticky;z-index:40;top:0;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:46px;border-bottom:1px solid #eee;background:#fff}
.txbb-nav button{height:46px;border:0;background:#fff;color:#333;font-size:0.56rem}
.txbb-nav h1{margin:0;text-align:center;font-size:0.32rem;font-weight:600}
.txbb-lottery-tabs{display:flex;gap:8px;overflow-x:auto;padding:8px 12px;background:#fff;border-bottom:1px solid #f0f0f0}
.txbb-lottery-tabs::-webkit-scrollbar{display:none}
.txbb-lottery-tabs button{flex:0 0 auto;height:30px;padding:0 16px;border:1px solid #ddd;border-radius:15px;background:#f7f7f7;color:#666;font-size:0.26rem}
.txbb-lottery-tabs button.active{border-color:#07c160;background:#07c160;color:#fff}
.txbb-main-tabs{display:flex;height:44px;align-items:flex-end;background:#fff;border-bottom:1px solid #eee}
.txbb-main-tabs button{position:relative;flex:1;height:43px;border:0;background:#fff;color:#666;font-size:0.28rem}
.txbb-main-tabs button.active{color:#07c160;font-weight:600}
.txbb-main-tabs button.active:after{content:"";position:absolute;right:32%;bottom:0;left:32%;height:2px;border-radius:2px;background:#07c160}
.txbb-years,.txbb-periods{display:flex;overflow-x:auto;background:#fff;white-space:nowrap}
.txbb-years{padding:8px 12px 6px;border-bottom:1px solid #f0f0f0}
.txbb-periods{padding:7px 12px 9px}
.txbb-years::-webkit-scrollbar,.txbb-periods::-webkit-scrollbar{display:none}
.txbb-years button,.txbb-periods button{flex:0 0 auto;border:1px solid #aaa;border-radius:14px;background:#fff;color:#555;font-size:0.24rem}
.txbb-years button{min-width:62px;height:26px;margin-right:10px}
.txbb-periods button{min-width:54px;height:25px;margin-right:8px}
.txbb-years button.active,.txbb-periods button.active{border-color:#07c160;background:#07c160;color:#fff}
.txbb-main{padding-top:8px}
.txbb-content-card{background:#fff}
.txbb-content-box{padding:12px 14px 8px}
.txbb-content-box h2{margin:0 0 8px;color:#333;font-size:0.28rem;line-height:22px}
.txbb-content-text{color:#666;font-size:0.26rem;line-height:22px;white-space:pre-wrap;word-break:break-word}
.txbb-media{position:relative;margin-top:8px;background:#000}
.txbb-media-picture{position:relative;min-height:260px;background:#fff;text-align:center}
.txbb-media-picture img{display:block;width:100%;max-height:560px;object-fit:contain;background:#fff}
.txbb-media-picture button{position:absolute;top:50%;width:32px;height:48px;transform:translateY(-50%);border:0;background:#0004;color:#fff;font-size:0.56rem}
.txbb-media-picture button.prev{left:0}
.txbb-media-picture button.next{right:0}
.txbb-media video{display:block;width:100%;max-height:420px;background:#000}
.txbb-video-play{position:absolute;top:50%;left:50%;display:flex;width:54px;height:54px;align-items:center;justify-content:center;transform:translate(-50%,-50%);border:0;border-radius:50%;background:#0008;color:#fff;font-size:0.48rem}
.txbb-media-cover{display:block;width:100%;min-height:240px;background:linear-gradient(135deg,#173c31,#07c160);color:#fff}
.txbb-vote-panel{display:none;padding:4px 8px 0;background:#fff}
.txbb-vote-panel.open{display:block}
.txbb-vote-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 4px}
.txbb-vote-item{display:grid;grid-template-columns:32px 1fr 42px;align-items:center;gap:6px;font-size:0.24rem}
.txbb-vote-item button{border:0;background:transparent;color:#333;font-size:0.24rem;text-align:left}
.txbb-vote-item button.active{color:#07c160;font-weight:700}
.txbb-vote-bar{position:relative;height:7px;overflow:hidden;border-radius:4px;background:#eee}
.txbb-vote-bar i{display:block;height:100%;border-radius:4px;background:#07c160}
.txbb-vote-item small{color:#999;text-align:right}
.txbb-period-actions{display:flex;align-items:center;justify-content:space-between;padding:12px;background:#fff}
.txbb-period-actions button{height:34px;padding:0 18px;border:1px solid #ddd;border-radius:17px;background:#fff;color:#555;font-size:0.26rem}
.txbb-period-actions button.primary{border-color:#07c160;background:#07c160;color:#fff}
.txbb-period-actions button:disabled{opacity:.45}
.txbb-vote-toggle{display:flex;width:100%;height:38px;align-items:center;justify-content:center;gap:6px;border:0;border-top:1px solid #f0f0f0;background:#fff;color:#666;font-size:0.24rem}
.txbb-vote-toggle i{width:0;height:0;border-width:5px;border-style:solid;border-color:#999 transparent transparent transparent}
.txbb-vote-toggle.open i{transform:rotate(180deg)}
.txbb-interaction{display:flex;align-items:center;justify-content:space-between;padding:14px 12px;background:#fff;border-top:8px solid #f5f5f5;color:#777;font-size:0.24rem}
.txbb-interaction .left{display:flex;gap:13px}
.txbb-interaction b{font-weight:500}
.txbb-interaction em{font-style:normal}
.txbb-loading{padding:40px 12px;color:#999;text-align:center;font-size:0.24rem}
.txbb-loading[hidden]{display:none}
.txbb-preview{position:fixed;z-index:100;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#000e}
.txbb-preview[hidden]{display:none}
.txbb-preview img{max-width:100%;max-height:100%;object-fit:contain}
.txbb-preview .preview-close{position:absolute;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:50%;background:#fff3;color:#fff;font-size:0.56rem}
.toast{position:fixed;z-index:120;left:50%;bottom:60px;transform:translateX(-50%);padding:8px 14px;border-radius:16px;background:#222d;color:#fff;font-size:0.24rem;opacity:0;pointer-events:none}
.toast.show{opacity:1}
