/* 梦歌体育 - 刮刮乐前台样式 */
.ggl-list{overflow:hidden;margin:0 -8px;}
.ggl-item{float:left;width:33.33%;padding:8px;box-sizing:border-box;}
.ggl-item-inner{border:1px solid #eee;border-radius:6px;background:#fff;overflow:hidden;padding:10px;}
.ggl-item-inner .ggl-cover{height:150px;overflow:hidden;text-align:center;background:#fafafa;}
.ggl-item-inner .ggl-cover img{max-height:150px;max-width:100%;}
.ggl-item-inner h3{font-size:16px;margin:8px 0 4px;line-height:22px;height:22px;overflow:hidden;}
.ggl-item-inner .ggl-meta{font-size:13px;color:#888;line-height:20px;}
.ggl-item-inner .ggl-price{color:#e02020;font-size:18px;font-weight:bold;margin:6px 0;}
.ggl-item-inner .ggl-price span{font-size:12px;color:#999;font-weight:normal;margin-left:6px;}
.ggl-item-inner .ggl-btn{display:block;text-align:center;background:#e02020;color:#fff;border-radius:4px;padding:8px 0;margin-top:8px;}
.ggl-item-inner .ggl-btn.gray{background:#bbb;}

.ggl-detail{background:#fff;border:1px solid #eee;border-radius:6px;padding:15px;overflow:hidden;}
.ggl-detail .ggl-pic{float:left;width:220px;text-align:center;}
.ggl-detail .ggl-pic img{max-width:100%;}
.ggl-detail .ggl-info{margin-left:240px;}
.ggl-detail .ggl-info h2{font-size:20px;margin-bottom:10px;}
.ggl-detail .ggl-info p{line-height:26px;color:#666;}
.ggl-detail .ggl-info .price{color:#e02020;font-size:22px;font-weight:bold;}

.ggl-tickets{margin-top:20px;}
.ggl-tickets ul{overflow:hidden;margin:0 -5px;}
.ggl-tickets li{float:left;width:20%;padding:5px;box-sizing:border-box;}
.ggl-tickets .t{border:1px solid #eee;border-radius:4px;padding:8px 4px;text-align:center;font-size:12px;background:#fff;}
.ggl-tickets .t.mine{border-color:#f5a623;background:#fff9ef;}
.ggl-tickets .t.sold{background:#f5f5f5;color:#999;}
.ggl-tickets .t.win{border-color:#e02020;background:#fff1f1;color:#e02020;}
.ggl-tickets .t b{display:block;font-size:13px;margin-bottom:4px;word-break:break-all;}
.ggl-tickets .t em{font-style:normal;font-size:12px;}

.ggl-buybox{margin-top:20px;padding:15px;background:#fafafa;border:1px solid #eee;border-radius:6px;}
.ggl-buybox .ui-form-ip{width:120px;}

.ggl-orders .ggl-order{border:1px solid #eee;border-radius:6px;background:#fff;padding:12px;margin-bottom:12px;overflow:hidden;}
.ggl-orders .ggl-order .o-pic{float:left;width:80px;}
.ggl-orders .ggl-order .o-pic img{width:80px;}
.ggl-orders .ggl-order .o-body{margin-left:95px;font-size:14px;line-height:24px;}
.ggl-orders .ggl-order .o-body .o-title{font-size:15px;font-weight:bold;}
.ggl-orders .ggl-order .o-body .o-money{color:#e02020;font-weight:bold;}
.ggl-orders .ggl-order .o-body .o-state{float:right;font-size:13px;}
.ggl-orders .ggl-order .o-body .o-btn{display:inline-block;background:#e02020;color:#fff;border-radius:4px;padding:4px 14px;font-size:13px;}

.ggl-paybox{background:#fff;border:1px solid #eee;border-radius:6px;padding:20px;text-align:center;}
.ggl-paybox .qr img{max-width:220px;border:1px solid #eee;border-radius:6px;}
.ggl-paybox .money{font-size:26px;color:#e02020;font-weight:bold;margin:10px 0;}

.ggl-my .m-item{border:1px solid #eee;border-radius:6px;background:#fff;padding:12px;margin-bottom:12px;}
.ggl-my .m-item .m-head{font-size:15px;font-weight:bold;}
.ggl-my .m-item .m-sn{font-size:13px;color:#666;margin:6px 0;word-break:break-all;}
.ggl-my .m-item video{width:100%;max-width:420px;margin-top:8px;background:#000;}
.ggl-my .m-win{color:#e02020;font-weight:bold;}
.ggl-sum{background:#fffaf0;border:1px solid #f5d8a8;border-radius:6px;padding:12px;margin-bottom:15px;font-size:15px;}
.ggl-empty{padding:40px 0;text-align:center;color:#999;}
/* 已售完票本分隔条：在售的排前面，售完的沉底 */
.ggl-split{grid-column:1/-1;clear:both;float:none;width:auto;padding:8px 10px;margin:10px 0 0;background:#f7f7f7;border:1px dashed #e3e3e3;border-radius:6px;color:#999;font-size:13px;text-align:center;letter-spacing:1px;}

/* 点选票号 */
.ggl-tickets .t.pick{cursor:pointer;border:1px dashed #c0c0c0;background:#fff;transition:all .15s;}
.ggl-tickets .t.pick:hover{border-color:#e02020;color:#e02020;}
.ggl-tickets .t.pick.on{border:2px solid #e02020;background:#fff1f1;color:#e02020;font-weight:bold;}
.ggl-tickets .t .pick-tip{display:block;font-size:11px;color:#bbb;margin-top:2px;}
.ggl-tickets .t.on .pick-tip{color:#e02020;}
/* 已售出票张：认证会员点开看刮完的照片 / 刮奖视频 */
.ggl-tickets .t.sold.hasmedia{position:relative;cursor:pointer;border-color:#e02020;}
.ggl-tickets .t.sold.hasmedia .media-tip{display:block;font-style:normal;font-size:11px;color:#e02020;margin-top:2px;}
.ggl-tkmedia{display:none;}
.ggl-tkpop{position:fixed;left:0;top:0;right:0;bottom:0;z-index:9998;display:none;}
.ggl-tkpop-mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.72);}
.ggl-tkpop-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:90%;max-width:560px;max-height:84%;overflow:auto;background:#fff;border-radius:10px;padding:15px;box-sizing:border-box;}
.ggl-tkpop-title{font-size:16px;font-weight:bold;color:#333;margin-bottom:10px;}
.ggl-tkpop-body img{max-width:100%;display:block;margin:0 auto 8px;border-radius:6px;}
.ggl-tkpop-close{margin-top:14px;text-align:center;background:#e02020;color:#fff;font-size:15px;border-radius:6px;padding:10px 0;cursor:pointer;}

/* 醒目下单按钮 */
.ggl-submitbar{margin-top:20px;}
.ggl-submitbar .sinfo{text-align:center;font-size:15px;color:#666;margin-bottom:10px;}
.ggl-submitbar .sinfo b{color:#e02020;font-size:22px;margin:0 2px;}
.ggl-bigbtn{display:block;width:100%;background:#e02020;color:#fff;font-size:19px;font-weight:bold;border:none;border-radius:8px;padding:15px 0;box-shadow:0 4px 12px rgba(224,32,32,.35);letter-spacing:1px;}
.ggl-bigbtn:active{background:#c01a1a;}
.ggl-bigbtn.off{background:#c9c9c9;box-shadow:none;}
.ggl-bigbtn.green{background:#18a058;box-shadow:0 4px 12px rgba(24,160,88,.35);}
.ggl-bigbtn.green:active{background:#128a49;}
.ggl-bigbtn.gray{background:#c9c9c9;box-shadow:none;color:#fff;}
/* 余额支付区 */
.ggl-balance{margin-top:18px;padding:14px 15px;border:1px solid #ffd8b0;background:#fff9f0;border-radius:8px;}
.ggl-balance-top{font-size:15px;color:#666;text-align:center;}
.ggl-balance-top .ggl-balance-money{color:#e02020;font-size:22px;font-weight:bold;margin-left:4px;}
.ggl-balance .ggl-submitbar{margin-top:12px;}
.ggl-balance .ggl-balused{display:block;margin-top:4px;font-style:normal;font-size:13px;color:#f58220;font-weight:bold;}
/* 哔哩哔哩嵌入视频（16:9 自适应） */
.ggl-video-bili{position:relative;width:100%;height:0;padding-bottom:56.25%;overflow:hidden;border-radius:6px;background:#000;margin-top:10px;}
.ggl-video-bili iframe{position:absolute;left:0;top:0;width:100%;height:100%;border:0;display:block;}
/* 快手等外链视频：解析失败时给一个跳转按钮 */
.ggl-video-link{margin-top:10px;}
.ggl-video-link a{display:block;text-align:center;background:linear-gradient(90deg,#ff5a2c,#ff9500);color:#fff;padding:12px 0;border-radius:6px;font-size:15px;font-weight:bold;text-decoration:none;box-shadow:0 2px 8px rgba(255,90,44,.25);}
.ggl-video-link a:active{opacity:.85;}

.ggl-orders .o-btn{display:inline-block;background:#e02020;color:#fff;border-radius:6px;padding:8px 20px;font-size:14px;font-weight:bold;}

@media (max-width:768px){
	/* 手机端票本列表改为规整的两列网格，卡片等高、图片比例统一、信息更紧凑 */
	.ggl-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0;}
	.ggl-item{float:none;width:auto;padding:0;}
	.ggl-item-inner{display:flex;flex-direction:column;height:100%;padding:8px;}
	.ggl-item-inner .ggl-cover{position:relative;height:0;padding-bottom:133%;overflow:hidden;text-align:center;background:#fff;}
	.ggl-item-inner .ggl-cover img{position:absolute;left:0;top:0;width:100%;height:100%;max-height:none;max-width:none;object-fit:contain;}
	.ggl-item-inner h3{height:auto;min-height:40px;font-size:14px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0 4px;}
	.ggl-item-inner .ggl-meta{font-size:11px;line-height:17px;}
	.ggl-item-inner .ggl-win{font-size:11px;margin-top:2px;}
	.ggl-item-inner .ggl-win b{font-size:12px;}
	.ggl-item-inner .ggl-price{font-size:15px;margin:4px 0;}
	.ggl-item-inner .ggl-price span{font-size:11px;margin-left:4px;}
	.ggl-item-inner .ggl-btns2{display:flex;flex-direction:column;gap:5px;margin-top:auto;padding-top:6px;}
	.ggl-item-inner .ggl-btns2 .ggl-btn{font-size:12px;padding:6px 0;margin-top:0;}
	.ggl-item-inner .ggl-btn.gray{margin-top:auto;padding:6px 0;font-size:12px;}
	.ggl-detail .ggl-pic{float:none;width:100%;margin-bottom:10px;}
	.ggl-detail .ggl-info{margin-left:0;}
	.ggl-tickets li{width:33.33%;}
	.ggl-submitbar.fixed{position:fixed;left:0;right:0;bottom:0;z-index:99;margin:0;background:#fff;padding:12px 15px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid #eee;box-shadow:0 -2px 10px rgba(0,0,0,.08);}
	.ggl-tickets{padding-bottom:6px;}
	.ggl-bigbtn{font-size:18px;padding:13px 0;}
}

.ggl-win{margin-top:4px;font-size:13px;color:#666;}
.ggl-win b{color:#e64340;font-size:14px;}
.ggl-winsum{margin:8px 0;padding:8px 10px;background:#fff7f7;border:1px solid #ffd9d9;border-radius:4px;font-size:14px;color:#555;}
.ggl-winsum span{margin-right:16px;display:inline-block;}
.ggl-winsum b{color:#e64340;font-size:16px;}
.ggl-winsum .gray{color:#999;}

/* 会员默认收款账户 */
.ggl-payee-saved .ui-alert{margin:0 0 10px;}
.ggl-payee-line{line-height:24px;font-size:14px;}
.ggl-payee-picbox{margin:6px 0;}
.ggl-payee-pic{max-width:120px;max-height:170px;border:1px solid #e5e5e5;padding:2px;background:#fff;cursor:pointer;}
.ggl-payee-btns{margin-top:6px;}
.ggl-payee-btns a{color:#1a73e8;font-size:14px;text-decoration:underline;}

/* ===== 整本分享按钮与海报弹层（2026-10-05） ===== */
.ggl-sharebar{margin-top:12px;}
.ggl-sharebtn{display:block;width:100%;height:46px;line-height:46px;border:0;border-radius:23px;background:linear-gradient(135deg,#ffb400,#ff7a18);color:#fff;font-size:16px;font-weight:700;letter-spacing:1px;box-shadow:0 2px 10px rgba(255,122,24,.35);cursor:pointer;}
.ggl-sharebtn:active{opacity:.85;}
/* 最高奖级（票本页顶部，醒目金色条） */
.ggl-maxprize{margin-top:10px;padding:8px 12px;border-radius:8px;background:linear-gradient(90deg,#fff6de,#ffe3a3);border:2px solid #e02020;display:inline-block;}
.ggl-maxprize span{font-size:14px;color:#8c0d14;font-weight:bold;margin-right:6px;}
.ggl-maxprize b{font-size:22px;color:#e02020;text-shadow:0 1px 0 #fff,0 0 6px rgba(255,207,92,.9);letter-spacing:1px;}
.ggl-poster{position:fixed;left:0;top:0;right:0;bottom:0;z-index:9999;display:none;}
.ggl-poster.on{display:block;}
.ggl-poster-mask-bg{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.78);}
.ggl-poster-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:84%;max-width:420px;max-height:86%;overflow:auto;text-align:center;padding-bottom:10px;}
.ggl-poster-box img{width:100%;display:block;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.45);}
.ggl-poster-tip{margin-top:12px;color:#fff;font-size:14px;line-height:1.6;}
.ggl-poster-close{margin:14px auto 0;width:130px;height:38px;line-height:38px;border-radius:19px;background:rgba(255,255,255,.2);color:#fff;font-size:14px;cursor:pointer;}

/* 刮完照片（我的票张） */
.ggl-pics{margin:8px 0 2px;overflow:hidden;}
.ggl-pics a{display:block;float:left;width:88px;height:88px;margin:0 8px 8px 0;border:1px solid #eee;border-radius:6px;overflow:hidden;background:#fafafa;}
.ggl-pics a img{width:100%;height:100%;object-fit:cover;display:block;}

/* ===== 票号选择区 v2（2026-10-06）：只显示票号后三位 + 固定尺寸，点击绝不位移 ===== */
.ggl-picktip{margin:-6px 0 12px;font-size:13px;color:#999;line-height:20px;}
.ggl-picktip b{color:#e02020;}
.ggl-pickbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;padding:9px 12px;background:#fffaf3;border:1px solid #ffe0c2;border-radius:10px;font-size:13px;color:#666;}
.ggl-pickbar .lgbox{line-height:22px;}
.ggl-pickbar .lg{display:inline-flex;align-items:center;margin-right:14px;white-space:nowrap;}
.ggl-pickbar .lg i{display:inline-block;width:15px;height:15px;border-radius:4px;margin-right:5px;box-sizing:border-box;}
.ggl-pickbar .i-free{background:#fff;border:1px dashed #f3b3ae;}
.ggl-pickbar .i-on{background:linear-gradient(140deg,#ff5a4d,#d81e06);}
.ggl-pickbar .i-sold{background:repeating-linear-gradient(45deg,#f6f6f6,#f6f6f6 4px,#f0f0f0 4px,#f0f0f0 8px);border:1px solid #e6e6e6;}
.ggl-pickbar .i-win{background:linear-gradient(140deg,#fff0ef,#ffe1de);border:1px solid #e02020;}
.ggl-pickbar .clr{color:#e02020;font-size:13px;text-decoration:none;white-space:nowrap;}

.ggl-tickets{margin-top:14px;}
.ggl-tickets ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;margin:0;padding:0;list-style:none;}
.ggl-tickets li{float:none;width:auto;padding:0;margin:0;list-style:none;}
.ggl-tickets .t{position:relative;box-sizing:border-box;height:82px;padding:6px 4px;border:1px solid #ececec;border-radius:12px;background:#fff;overflow:hidden;text-align:center;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:background .15s,box-shadow .15s,border-color .15s;}
.ggl-tickets .t b{display:block;margin:0;font-size:25px;line-height:29px;font-weight:800;letter-spacing:1px;color:#333;word-break:normal;white-space:nowrap;}
.ggl-tickets .t em{display:block;font-style:normal;font-size:11px;line-height:15px;color:#999;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}

/* 可选票：虚线票券风，选中变红底 + 勾（不改变盒模型，不位移） */
.ggl-tickets .t.pick{cursor:pointer;border:1px dashed #f0aeaa;background:linear-gradient(180deg,#ffffff,#fff7f6);}
.ggl-tickets .t.pick b{color:#c0392b;}
.ggl-tickets .t.pick em{color:#c58a86;}
.ggl-tickets .t.pick:hover{border-color:#e02020;box-shadow:0 3px 10px rgba(224,32,32,.18);}
.ggl-tickets .t.pick.on{border:1px solid #e02020;background:linear-gradient(140deg,#ff5a4d,#d81e06);box-shadow:0 4px 12px rgba(224,32,32,.32);}
.ggl-tickets .t.pick.on b{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.25);}
.ggl-tickets .t.pick.on em{color:#ffe6e4;font-weight:bold;}
.ggl-tickets .t.pick.on::before{content:"";position:absolute;right:7px;top:11px;width:10px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg);}

/* 已售票：斜纹灰底；中奖：红粉渐变；我的票：橙边 */
.ggl-tickets .t.sold{background:repeating-linear-gradient(45deg,#f7f7f7,#f7f7f7 5px,#f1f1f1 5px,#f1f1f1 10px);border-color:#e9e9e9;}
.ggl-tickets .t.sold b{color:#b6b6b6;}
.ggl-tickets .t.sold em{color:#b6b6b6;}
.ggl-tickets .t.sold.win{background:linear-gradient(140deg,#fff1f0,#ffe2df);border-color:#e02020;}
.ggl-tickets .t.sold.win b{color:#e02020;}
.ggl-tickets .t.sold.win em.win-money{color:#c0392b;font-weight:bold;}
.ggl-tickets .t.sold.mine{border-color:#f5a623;box-shadow:inset 0 0 0 1px #f5a623;}
.ggl-tickets .t.sold.hasmedia{cursor:pointer;}
.ggl-tickets .t.sold.hasmedia::after{content:"";position:absolute;right:6px;top:6px;width:8px;height:8px;border-radius:50%;background:#e02020;box-shadow:0 0 0 3px rgba(224,32,32,.15);}
.ggl-tickets .t.sold.hasmedia .media-tip{color:#e02020;font-weight:bold;}
.ggl-tickets .t.sold .media-none{color:#c2c2c2;}

@media (max-width:768px){
	.ggl-tickets ul{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;}
	.ggl-tickets li{float:none;width:auto;padding:0;}
	.ggl-tickets .t{height:74px;border-radius:10px;padding:5px 3px;}
	.ggl-tickets .t b{font-size:22px;line-height:26px;}
	.ggl-tickets .t em{font-size:10px;line-height:14px;}
	.ggl-pickbar{font-size:12px;padding:8px 10px;}
	.ggl-pickbar .lg{margin-right:10px;}
	.ggl-pickbar .lg i{width:13px;height:13px;}
	.ggl-picktip{font-size:12px;margin:-4px 0 10px;}
}

/* 订单付款倒计时提示 */
.ggl-countdown{margin:8px auto 0;padding:8px 12px;background:#fff7e6;border:1px dashed #f0a020;border-radius:6px;color:#a35b00;font-size:13px;text-align:center;}
.ggl-countdown b{color:#e02020;font-size:17px;margin:0 3px;}
/* 梦歌定制：前台「包整本」 */
.ggl-btns{display:flex;gap:10px;align-items:center;}
.ggl-btns .ggl-bigbtn{flex:1;margin:0;}
.ggl-btns .ggl-bigbtn.bao{flex:0 0 38%;background:linear-gradient(135deg,#ff9a2e,#ff5a2c);box-shadow:0 4px 12px rgba(255,90,44,.35);font-size:16px;}
.ggl-btns .ggl-bigbtn.bao:active{opacity:.88;}
.ggl-item-inner .ggl-btns2{display:flex;gap:6px;margin-top:8px;}
.ggl-item-inner .ggl-btns2 .ggl-btn{flex:1;margin-top:0;font-size:14px;}
.ggl-item-inner .ggl-btn.bao{background:linear-gradient(135deg,#ff9a2e,#ff5a2c);}
.ggl-pickbar .clr.bao{font-weight:bold;color:#ff5a2c;}
