/* ===== 次数包页面样式（从 page-credits-shop.php 分离） ===== */
.gsxq-credits-page { position: relative; z-index: 1; pointer-events: auto !important; }
.gsxq-credits-page * { pointer-events: auto !important; }

/* 核心修改：删除 .gsxq-credits-page .gsxq-container { max-width: 100%; }，交由全局容器控制 */

.gsxq-credits-page .gsxq-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.gsxq-credits-page .gsxq-header { background: #212121; color: #fff; padding: 40px 30px; text-align: center; position: relative; z-index: 10; }
.gsxq-credits-page .gsxq-header-icon { display: inline-block; width: 60px; height: 60px; line-height: 60px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; font-size: 28px; margin-bottom: 20px; }
.gsxq-credits-page .gsxq-title { font-size: 24px; font-weight: 300; margin: 0 0 10px; letter-spacing: 2px; }
.gsxq-credits-page .gsxq-subtitle { font-size: 13px; opacity: 0.8; font-weight: 300; margin: 0; }
.gsxq-credits-page .gsxq-body { padding: 15px; max-width: 100%; margin: 0 auto; position: relative; z-index: 10; }

.gsxq-credits-page .credits-balance { background: #f0f6fc; border: 1px solid #c5d9ed; border-radius: 4px; padding: 20px; margin-bottom: 30px; position: relative; z-index: 100; }
.gsxq-credits-page .credits-balance h3 { margin: 0 0 15px 0; font-size: 14px; color: #2271b1; text-transform: uppercase; letter-spacing: 1px; }
.gsxq-credits-page .credits-list { display: flex; flex-wrap: wrap; gap: 10px; }
.gsxq-credits-page .credit-item { background: #fff; border: 1px solid #c5d9ed; padding: 10px 15px; border-radius: 4px; font-size: 13px; }
.gsxq-credits-page .credit-item .type { color: #666; margin-right: 5px; }
.gsxq-credits-page .credit-item .count { font-weight: 600; color: #2271b1; font-size: 16px; }
.gsxq-credits-page .no-credits { color: #999; font-size: 13px; font-style: italic; }

.gsxq-credits-page .login-notice { background: #fff3cd; border: 1px solid #ffc107; border-radius: 4px; padding: 15px 20px; margin-bottom: 30px; text-align: center; position: relative; z-index: 100; }
.gsxq-credits-page .login-notice p { margin: 0 0 10px 0; color: #856404; font-size: 14px; }
.gsxq-credits-page .login-btn { display: inline-block; padding: 8px 20px; background: #212121; color: #fff; text-decoration: none; border-radius: 4px; font-size: 13px; transition: all 0.2s; }
.gsxq-credits-page .login-btn:hover { background: #000; }

.gsxq-credits-page .section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 15px; font-weight: 600; }

.gsxq-credits-page .query-types-section { margin-bottom: 30px; position: relative; z-index: 100; }
.gsxq-credits-page .query-types-scroll { overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; margin: 0 -10px; padding: 0 10px; }
.gsxq-credits-page .query-types-scroll::-webkit-scrollbar { display: none; }
.gsxq-credits-page .query-types-row { display: inline-flex; gap: 10px; flex-wrap: nowrap; }
.gsxq-credits-page .type-btn { padding: 10px; border: 1px solid #e0e0e0; border-radius: 4px; cursor: pointer; transition: all 0.2s; text-align: center; position: relative; min-width: 140px; white-space: normal; z-index: 101; pointer-events: auto !important; -webkit-tap-highlight-color: rgba(0,0,0,0.1); }
.gsxq-credits-page .type-btn:hover { border-color: #212121; }
.gsxq-credits-page .type-btn.active { background: #212121; border-color: #212121; color: #fff; }
.gsxq-credits-page .type-btn.active .type-price { color: #fff; opacity: 0.9; }
.gsxq-credits-page .type-btn .type-badge { position: absolute; top: -1px; right: -1px; background: #00a32a; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 600; z-index: 102; }
.gsxq-credits-page .type-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: block; pointer-events: none; }
.gsxq-credits-page .type-price { font-size: 12px; font-weight: 500; color: #666; display: block; margin-top: 2px; pointer-events: none; }

.gsxq-credits-page .quick-buy-section { margin-bottom: 30px; position: relative; z-index: 100; }
.gsxq-credits-page .quick-buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.gsxq-credits-page .quick-buy-btn { padding: 20px; border: 2px solid #e0e0e0; border-radius: 4px; background: #fff; cursor: pointer; transition: all 0.2s; text-align: center; position: relative; z-index: 101; pointer-events: auto !important; -webkit-tap-highlight-color: rgba(0,0,0,0.1); }
.gsxq-credits-page .quick-buy-btn:hover { border-color: #212121; }
.gsxq-credits-page .quick-buy-btn.active { border-color: #212121; background: #212121; color: #fff; }
.gsxq-credits-page .quick-buy-btn .quantity { font-size: 28px; font-weight: 700; display: block; margin-bottom: 5px; pointer-events: none; }
.gsxq-credits-page .quick-buy-btn .label { font-size: 12px; opacity: 0.8; pointer-events: none; }
.gsxq-credits-page .quick-buy-btn .total { font-size: 14px; font-weight: 600; margin-top: 8px; color: #d63638; pointer-events: none; }
.gsxq-credits-page .quick-buy-btn.active .total { color: #fff; }

.gsxq-credits-page .custom-quantity-section { background: #fafafa; border: 1px solid #e8e8e8; border-radius: 4px; padding: 25px; margin-bottom: 30px; position: relative; z-index: 100; }
.gsxq-credits-page .quantity-slider { width: 100%; margin: 15px 0; -webkit-appearance: none; height: 6px; border-radius: 3px; background: #e0e0e0; outline: none; position: relative; z-index: 101; }
.gsxq-credits-page .quantity-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #212121; cursor: pointer; }
.gsxq-credits-page .quantity-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #212121; cursor: pointer; border: none; }
.gsxq-credits-page .quantity-input-group { display: flex; align-items: center; gap: 15px; margin-top: 15px; }
.gsxq-credits-page .quantity-input { width: 100px; padding: 10px; font-size: 16px; text-align: center; border: 1px solid #e0e0e0; border-radius: 4px; position: relative; z-index: 101; }
.gsxq-credits-page .quantity-hint { font-size: 13px; color: #666; }

.gsxq-credits-page .price-summary { background: #fff; border: 2px solid #212121; border-radius: 4px; padding: 25px; margin-bottom: 30px; text-align: center; position: relative; z-index: 100; }
.gsxq-credits-page .price-summary .label { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.gsxq-credits-page .price-summary .amount { font-size: 48px; font-weight: 300; color: #212121; }
.gsxq-credits-page .price-summary .unit-price { font-size: 13px; color: #666; margin-top: 8px; }

.gsxq-credits-page .buy-btn { width: 100%; padding: 18px; background: #212121; color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 2px; border-radius: 4px; position: relative; z-index: 200; pointer-events: auto !important; -webkit-tap-highlight-color: rgba(255,255,255,0.2); }
.gsxq-credits-page .buy-btn:hover:not(:disabled) { background: #000; transform: translateY(-1px); }
.gsxq-credits-page .buy-btn:disabled { background: #ccc; cursor: not-allowed; opacity: 0.6; }
.gsxq-credits-page .buy-btn.loading { color: transparent; position: relative; }
.gsxq-credits-page .buy-btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; top: 50%; left: 50%; margin: -10px 0 0 -10px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }

.gsxq-credits-page .payment-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99999; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.gsxq-credits-page .payment-modal.show { display: flex; }
.gsxq-credits-page .payment-box { background: #fff; border-radius: 4px; width: 90%; max-width: 400px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; z-index: 100000; }
.gsxq-credits-page .payment-header { background: #212121; color: #fff; padding: 20px; text-align: center; position: relative; }
.gsxq-credits-page .payment-header h3 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: 1px; }
.gsxq-credits-page .payment-close { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); width: 32px; height: 32px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #fff; font-size: 18px; cursor: pointer; transition: all 0.3s; line-height: 32px; text-align: center; padding: 0; z-index: 101; }
.gsxq-credits-page .payment-close:hover { background: rgba(255,255,255,0.2); }
.gsxq-credits-page .payment-body { padding: 30px; text-align: center; position: relative; z-index: 100; }
.gsxq-credits-page .qr-code { width: 200px; height: 200px; margin-bottom: 20px; border-radius: 4px; border: 1px solid #e0e0e0; }
.gsxq-credits-page .payment-amount { font-size: 32px; color: #212121; font-weight: 300; margin-bottom: 20px; }
.gsxq-credits-page .alipay-open-btn { display: block; padding: 14px; background: #ff6b00; color: #fff; text-decoration: none; border-radius: 4px; font-weight: 600; margin-bottom: 15px; transition: all 0.3s; font-size: 14px; position: relative; z-index: 101; }
.gsxq-credits-page .alipay-open-btn:hover { background: #e65100; }
.gsxq-credits-page .payment-footer { padding: 20px; background: #f9f9f9; text-align: center; border-top: 1px solid #f0f0f0; }
.gsxq-credits-page .countdown { color: #666; font-size: 13px; margin-bottom: 10px; }
.gsxq-credits-page .refresh-btn { background: none; border: none; color: #212121; cursor: pointer; font-size: 13px; text-decoration: underline; position: relative; z-index: 101; }

.gsxq-credits-page .success-message { display: none; background: #e8f5e9; border: 1px solid #00a32a; color: #2e7d32; padding: 20px; border-radius: 4px; text-align: center; margin-bottom: 30px; position: relative; z-index: 100; }
.gsxq-credits-page .success-message.show { display: block; animation: fadeIn 0.5s ease; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    .gsxq-credits-page .gsxq-body { padding: 12px; }
    .gsxq-credits-page .query-types-scroll { margin: 0 -20px; padding: 0 20px; }
    .gsxq-credits-page .gsxq-header { padding: 30px 20px; }
    .gsxq-credits-page .quick-buy-grid { grid-template-columns: 1fr; }
}