/* ============================================================
   自助广告 —— 前台样式（主题内置）
   视觉与几何均对齐 ba9.cn：小横幅 2 列 65px / 文字链 5 列 23px / 大横幅 80px
   ============================================================ */

/* ---------- 广告区（视觉对齐 ba9.cn） ---------- */
.shane-ads{padding:6px;box-sizing:border-box;overflow:hidden}
.shane-ads-grid{display:grid}

.shane-ads-small .shane-ads-grid{grid-template-columns:repeat(2,1fr);gap:4px}
.shane-ads-small .shane-ads-item{height:65px}

.shane-ads-word .shane-ads-grid{grid-template-columns:repeat(5,1fr);column-gap:6px;row-gap:2px}
.shane-ads-word .shane-ads-item{height:23px;line-height:21px;font-size:13px;font-weight:700}

.shane-ads-big .shane-ads-grid{grid-template-columns:1fr;gap:4px}
.shane-ads-big .shane-ads-item{height:80px}

.shane-ads-item{position:relative;display:block;overflow:hidden;border-radius:5px;background:#f5f6f7;text-decoration:none;transition:opacity .3s ease}
.shane-ads-item img{width:100%;height:100%;object-fit:cover;display:block;border-radius:5px;transition:opacity .3s ease}
.shane-ads-item:hover img{opacity:.8}

/* 右下角“广告”角标（与 ba9 一致） */
.shane-ads-tag{position:absolute;right:0;bottom:0;z-index:2;background:rgba(128,128,128,.4);color:#fff;font-style:normal;font-weight:400;letter-spacing:0;font-size:12px;line-height:1.45;padding:1px 6px;border-bottom-right-radius:5px;white-space:nowrap}

/* ---------- 空位：复刻 ba9 的占位广告图 ---------- */
.shane-ads-item.is-empty{display:flex;align-items:center;justify-content:center;text-align:center;color:#fff}
.shane-ads-empty-title{font-size:26px;font-weight:400;letter-spacing:6px;line-height:1;text-shadow:0 1px 1px rgba(0,0,0,.06)}
.shane-ads-empty-sub{font-size:26px;font-weight:400;letter-spacing:6px;line-height:1;margin-left:34px;text-shadow:0 1px 1px rgba(0,0,0,.06)}

.shane-ads-small .shane-ads-item.is-empty{background:linear-gradient(125deg,#2e8fd9 0%,#3f9fe2 48%,#4fa9e8 100%)}
.shane-ads-small .shane-ads-item.is-empty:hover{background:linear-gradient(125deg,#2a86ce 0%,#3b96d8 48%,#4aa0df 100%)}

.shane-ads-big .shane-ads-item.is-empty{background:linear-gradient(95deg,#ff5c00 0%,#ff7a10 52%,#ffa733 100%);justify-content:space-between;padding:0 46px 0 26px;box-sizing:border-box}
.shane-ads-big .shane-ads-empty-title{font-size:23px;font-weight:700;letter-spacing:3px}
.shane-ads-pill{background:#fff;color:#f4610a;font-size:14px;font-weight:700;letter-spacing:1px;padding:6px 16px;border-radius:5px;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* ---------- 文字链：ba9 的彩色加粗虚线风格 ---------- */
.shane-ads-word .shane-ads-item{box-sizing:border-box;text-align:center;border:1px dashed rgba(0,0,0,.2);border-radius:0;background:transparent;padding:0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .6s}
.shane-ads-word .shane-ads-item:nth-child(10n+1){color:#00ccff}
.shane-ads-word .shane-ads-item:nth-child(10n+2){color:#33cc00}
.shane-ads-word .shane-ads-item:nth-child(10n+3){color:#ff0080}
.shane-ads-word .shane-ads-item:nth-child(10n+4){color:#921aff}
.shane-ads-word .shane-ads-item:nth-child(10n+5){color:#f59e0c}
.shane-ads-word .shane-ads-item:nth-child(10n+6){color:#f35c14}
.shane-ads-word .shane-ads-item:nth-child(10n+7){color:#008000}
.shane-ads-word .shane-ads-item:nth-child(10n+8){color:#a52a2a}
.shane-ads-word .shane-ads-item:nth-child(10n+9){color:#dc143c}
.shane-ads-word .shane-ads-item:nth-child(10n){color:#008b8b}
.shane-ads-word .shane-ads-item:hover{color:#fff !important;background:#1caee3;border-color:#1caee3;opacity:1}
.shane-ads-word .shane-ads-empty-title{font-size:13px;letter-spacing:1px;font-weight:700;line-height:21px}

@media (max-width:520px){
  .shane-ads-small .shane-ads-item{height:40px}
  .shane-ads-big .shane-ads-item{height:40px}
  .shane-ads-word .shane-ads-grid{grid-template-columns:repeat(2,1fr);column-gap:4px;row-gap:2px}
  .shane-ads-word .shane-ads-item{height:23px;line-height:21px;font-size:12px}
  .shane-ads-item.is-empty{overflow:hidden;white-space:nowrap;letter-spacing:0}
  .shane-ads-empty-title,.shane-ads-empty-sub{font-size:12px;letter-spacing:0}
  .shane-ads-empty-sub{margin-left:7px}
  .shane-ads-big .shane-ads-item.is-empty{padding:0 10px 0 12px}
  .shane-ads-big .shane-ads-empty-title{font-size:12px;letter-spacing:0}
  .shane-ads-pill{font-size:10px;padding:2px 8px;box-shadow:none}
  .shane-ads-tag{font-size:10px;padding:0 4px}
}

/* ---------- 购买页 ---------- */
.shane-buy-page{padding-bottom:40px}
.shane-buy-head{margin-bottom:16px;border:0;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.shane-buy-title{margin:0 0 10px;font-size:22px;font-weight:700}
.shane-buy-notice{color:#5f6368;font-size:13px;line-height:1.9}
.shane-buy-notice p{margin:0}
.shane-buy-contact{margin:10px 0 0;font-size:13px;color:#ff7235}

.shane-buy-section{margin-bottom:22px}
.shane-buy-section-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.shane-buy-section-head h2{margin:0;font-size:17px;font-weight:600}
.shane-buy-section-head span{color:#6b7280;font-size:12px}

.shane-buy-grid{display:grid;gap:10px}
.shane-buy-grid-small{grid-template-columns:repeat(2,1fr)}
.shane-buy-grid-word{grid-template-columns:repeat(5,1fr)}
.shane-buy-grid-big{grid-template-columns:1fr}

.shane-buy-item{position:relative;background:#fff;border:1px solid #e8eaed;border-radius:8px;overflow:hidden;transition:.2s}
.shane-buy-item.is-live img{width:100%;height:65px;object-fit:cover;display:block}
.shane-buy-grid-big .is-live img{height:80px}
.shane-buy-word{padding:8px;font-size:13px;color:#3c4043;text-decoration:none;display:block;text-align:center}
.shane-buy-badge{position:absolute;top:6px;right:6px;background:rgba(19,115,51,.9);color:#fff;font-size:11px;padding:1px 7px;border-radius:9px}

.shane-buy-item.is-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px 10px;border-style:dashed;background:#fcfcfd}
.shane-buy-item.is-empty:hover{border-color:#ff7235;background:#fffaf7}
.shane-buy-empty-name{font-size:13px;color:#9aa0a6}
.shane-buy-price{font-size:20px;font-weight:700;color:#ff7235}
.shane-buy-price small{font-size:12px;font-weight:400;color:#9aa0a6;margin-left:2px}
.shane-buy-btn{border:0;background:#ff7235;color:#fff;font-size:13px;padding:7px 18px;border-radius:16px;cursor:pointer;transition:.2s}
.shane-buy-btn:hover{background:#e85f22}
.shane-buy-tip{padding:40px;text-align:center;color:#9aa0a6}

/* 弹层 */
.shane-modal{position:fixed;inset:0;z-index:99999;display:none}
.shane-modal.is-open{display:block}
.shane-modal-mask{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.shane-modal-body{position:relative;width:min(520px,92vw);max-height:88vh;overflow:auto;margin:6vh auto 0;background:#fff;border-radius:12px;padding:22px 22px 18px;box-shadow:0 12px 40px rgba(0,0,0,.2)}
.shane-modal-close{position:absolute;top:8px;right:12px;border:0;background:transparent;font-size:24px;line-height:1;color:#9aa0a6;cursor:pointer}
.shane-modal-title{margin:0 0 4px;font-size:18px;font-weight:700}
.shane-modal-sub{margin:0 0 16px;font-size:12px;color:#9aa0a6}

.shane-field{margin-bottom:14px}
.shane-field label{display:block;font-size:13px;color:#3c4043;margin-bottom:6px}
.shane-field label em{color:#e11d48;font-style:normal}
.shane-field label small{color:#9aa0a6;font-weight:400}
.shane-field input[type=text],.shane-field input[type=file]{width:100%;border:1px solid #dcdfe3;border-radius:6px;padding:8px 10px;font-size:14px;box-sizing:border-box}
.shane-field input[type=text]:focus{border-color:#ff7235;outline:none}
.shane-hint{margin:6px 0 0;font-size:12px;color:#9aa0a6}

.shane-months{display:flex;flex-wrap:wrap;gap:8px}
.shane-month-btn{border:1px solid #dcdfe3;background:#fff;border-radius:16px;padding:5px 14px;font-size:13px;cursor:pointer;color:#3c4043}
.shane-month-btn.is-active{border-color:#ff7235;background:#fff2ec;color:#ff7235;font-weight:600}

.shane-img-preview{margin-top:8px}
.shane-img-preview img{max-height:70px;border-radius:4px;border:1px solid #eee}

.shane-total{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px dashed #eee;margin-top:6px}
.shane-total strong{font-size:22px;color:#ff7235}

.shane-modal-actions{display:flex;gap:10px;margin-top:14px}
.shane-btn-primary{flex:1;border:0;background:#ff7235;color:#fff;padding:10px;border-radius:8px;font-size:15px;cursor:pointer}
.shane-btn-primary:hover{background:#e85f22}
.shane-btn-primary[disabled]{background:#f0b49b;cursor:not-allowed}
.shane-btn-ghost{flex:1;border:1px solid #dcdfe3;background:#fff;color:#5f6368;padding:10px;border-radius:8px;font-size:15px;cursor:pointer}

.shane-error{margin:10px 0 0;color:#e11d48;font-size:13px;min-height:18px}

.shane-result-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px dashed #f0f0f0;font-size:14px}
.shane-result-row span{color:#9aa0a6}
.shane-result-note{margin-top:12px;background:#fffaf7;border:1px dashed #ffd2be;border-radius:8px;padding:12px;font-size:13px;color:#8a4b2a;line-height:1.8}
.shane-qr{display:flex;gap:16px;margin-top:12px}
.shane-qr img{width:140px;height:140px;object-fit:contain;border:1px solid #eee;border-radius:6px}
.shane-qr figcaption{font-size:12px;color:#9aa0a6;text-align:center;margin-top:4px}

@media (max-width:768px){
  .shane-buy-grid-small{grid-template-columns:1fr}
  .shane-buy-grid-word{grid-template-columns:repeat(2,1fr)}
  .shane-modal-body{margin-top:2vh;padding:18px 16px}
}
