/**
 * GSXQ Theme - Main Stylesheet
 * Version: 7.1.0
 * Contains: Query page / User center / Credits shop / SEO Article / Print styles
 */

/* ===== 基础变量与重置 ===== */
.gsxq-query-page, .gsxq-user-center, .gsxq-credits-page, .gsxq-guide-container {
    --primary: #212121;
    --accent: #00a32a;
    --danger: #d63638;
    --warning: #ff9800;
    --info: #2271b1;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --bg-light: #fafafa;
    --bg-hover: #f5f5f5;
    --safe: #2e7d32;
    --risk-high: #d32f2f;
    --risk-medium: #f57c00;
    --risk-low: #388e3c;
}

/* ===== 共享布局组件（核心修改：全局容器收敛为 1200px/30px） ===== */
.gsxq-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.gsxq-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.gsxq-header { background: var(--primary); color: #fff; padding: 40px 30px; text-align: center; }
.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-title { font-size: 24px; font-weight: 300; margin: 0 0 10px; letter-spacing: 2px; }
.gsxq-subtitle { font-size: 13px; opacity: 0.8; font-weight: 300; margin: 0; }
.gsxq-body { padding: 15px; max-width: 100%; }

/* ===== 查询页面 ===== */
.gsxq-query-page {  }
.gsxq-query-page .user-credits-notice { background: #e8f5e9; border: 1px solid var(--accent); border-radius: 4px; padding: 15px; margin-bottom: 20px; }
.gsxq-query-page .user-credits-notice .title { font-size: 13px; color: var(--safe); margin-bottom: 8px; font-weight: 600; }
.gsxq-query-page .credits-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gsxq-query-page .credit-tag { background: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; color: #1b5e20; border: 1px solid #c8e6c9; }

.gsxq-query-page .input-section { margin-bottom: 30px; }
.gsxq-query-page .section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 15px; font-weight: 600; }
.gsxq-query-page .serial-input { width: 100%; padding: 16px; font-size: 16px; border: 1px solid var(--border); border-radius: 4px; text-transform: uppercase; font-family: 'Courier New', monospace; letter-spacing: 1px; box-sizing: border-box; transition: border-color 0.3s; }
.gsxq-query-page .serial-input:focus { outline: none; border-color: var(--primary); }
.gsxq-query-page .input-hint { margin-top: 10px; font-size: 12px; color: var(--danger); font-weight: 500; }

.gsxq-query-page .query-types-section { margin-bottom: 30px; }
.gsxq-query-page .query-types-scroll { overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; margin: 0 -10px; padding: 0 10px; }
.gsxq-query-page .query-types-scroll::-webkit-scrollbar { display: none; }
.gsxq-query-page .query-types-row { display: inline-flex; gap: 10px; flex-wrap: nowrap; }
.gsxq-query-page .type-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; transition: all 0.2s; text-align: center; position: relative; min-width: 130px; white-space: normal; }
.gsxq-query-page .type-btn:hover { border-color: var(--primary); }
.gsxq-query-page .type-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gsxq-query-page .type-btn.active .type-price { color: #fff; opacity: 0.8; }
.gsxq-query-page .type-btn.has-credits { border-color: var(--accent); background: #e8f5e9; }
.gsxq-query-page .type-btn.has-credits.active { background: var(--safe); border-color: var(--safe); color: #fff; }
.gsxq-query-page .type-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; margin-right: 6px; display: block; }
.gsxq-query-page .type-price { font-size: 13px; font-weight: 500; color: var(--danger); display: block; }
.gsxq-query-page .type-credits { font-size: 12px; font-weight: 500; color: #000; display: block; }

.gsxq-query-page .description-section { margin-bottom: 10px; padding: 6px; background: var(--bg-light); border: 1px solid #e8e8e8; border-radius: 4px; min-height: 60px; overflow-x: auto; }
.gsxq-query-page .description-content { font-size: 14px; line-height: 1.6; color: #444; }
.gsxq-query-page .description-content p { margin: 0 0 10px 0; }
.gsxq-query-page .description-content p:last-child { margin-bottom: 0; }
.gsxq-query-page .description-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 10px 0; }
.gsxq-query-page .description-content ul, .gsxq-query-page .description-content ol { margin: 10px 0; padding-left: 20px; }
.gsxq-query-page .description-content li { margin: 5px 0; }
.gsxq-query-page .description-content table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 11px; table-layout: fixed; }
.gsxq-query-page .description-content table th, .gsxq-query-page .description-content table td { border: 1px solid #ddd; padding: 8px; text-align: center; word-wrap: break-word; overflow-wrap: break-word; max-width: 300px; }
.gsxq-query-page .description-content table th { background: #f5f5f5; font-weight: 600; }
.gsxq-query-page .description-content table tr:nth-child(even) { background: var(--bg-light); }
.gsxq-query-page .description-placeholder { color: #999; font-style: italic; text-align: center; padding: 20px; }

.gsxq-query-page .price-row { text-align: center; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #f0f0f0; }
.gsxq-query-page .price-display { font-size: 48px; font-weight: 300; color: var(--primary); line-height: 1; }
.gsxq-query-page .price-display span { font-size: 14px; color: #999; font-weight: 400; }
.gsxq-query-page .price-notice { margin-top: 10px; font-size: 12px; color: var(--danger); font-weight: 500; }
.gsxq-query-page .credits-notice { margin-top: 10px; font-size: 12px; color: var(--safe); font-weight: 500; background: #e8f5e9; padding: 8px 16px; border-radius: 4px; display: inline-block; }

.gsxq-query-page .main-action { margin-top: 30px; }
.gsxq-query-page .query-main-btn { width: 100%; padding: 16px; background: var(--primary); color: #fff; border: none; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 1px; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 4px; }
.gsxq-query-page .query-main-btn:hover:not(:disabled) { background: #000; }
.gsxq-query-page .query-main-btn:disabled { background: #ccc; cursor: not-allowed; opacity: 0.6; }
.gsxq-query-page .query-main-btn.loading { color: transparent; }
.gsxq-query-page .query-main-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-query-page .btn-price { font-size: 16px; font-weight: 600; }
.gsxq-query-page .query-main-btn.has-credits { background: var(--safe); }
.gsxq-query-page .query-main-btn.has-credits:hover:not(:disabled) { background: #1b5e20; }

.gsxq-query-page .result-container { margin-top: 40px; display: none; }
.gsxq-query-page .result-container.show { display: block; animation: fadeIn 0.5s ease; }
.gsxq-query-page .result-box { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; position: relative; }
.gsxq-query-page .device-header { padding: 20px; background: var(--bg-light); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 20px; }
.gsxq-query-page .device-main-info { flex: 1; }
.gsxq-query-page .device-model { font-size: 18px; font-weight: 500; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gsxq-query-page .device-sn { font-size: 13px; color: var(--text-light); font-family: 'Courier New', monospace; background: #f5f5f5; padding: 4px 8px; border-radius: 4px; display: inline-block; }

.gsxq-query-page .info-grid { display: flex; flex-direction: column; }
.gsxq-query-page .info-row { display: flex; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; }
.gsxq-query-page .info-row:hover { background: var(--bg-light); }
.gsxq-query-page .info-row:last-child { border-bottom: none; }
.gsxq-query-page .info-label { width: 140px; padding: 12px 15px; background: #fafafa; font-weight: 600; color: #555; font-size: 12px; display: flex; align-items: center; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.gsxq-query-page .info-value { flex: 1; padding: 12px 15px; color: #333; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.gsxq-query-page .download-area { margin-top: 20px; padding: 20px; background: #f5f5f5; border-radius: 4px; text-align: center; display: none; }
.gsxq-query-page .download-area.show { display: block; }
.gsxq-query-page .download-btn { display: inline-block; padding: 12px 24px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 4px; font-weight: 500; transition: background 0.3s; cursor: pointer; border: none; }
.gsxq-query-page .download-btn:hover { background: #000; }
.gsxq-query-page .download-btn:disabled { background: #ccc; cursor: not-allowed; }

.gsxq-query-page .disclaimer { margin-top: 15px; padding: 15px; background: #fff3e0; border: 1px solid #ffcc80; border-radius: 4px; color: #e65100; font-size: 12px; line-height: 1.6; }

.gsxq-query-page .payment-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.gsxq-query-page .payment-modal.show { display: flex; }
.gsxq-query-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); }
.gsxq-query-page .payment-header { background: var(--primary); color: #fff; padding: 20px; text-align: center; position: relative; }
.gsxq-query-page .payment-header h3 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.gsxq-query-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; }
.gsxq-query-page .payment-close:hover { background: rgba(255,255,255,0.2); }
.gsxq-query-page .payment-body { padding: 30px; text-align: center; }
.gsxq-query-page .qr-code { width: 200px; height: 200px; margin-bottom: 20px; border-radius: 4px; border: 1px solid #e0e0e0; }
.gsxq-query-page .payment-amount { font-size: 32px; color: var(--primary); font-weight: 300; margin-bottom: 20px; }
.gsxq-query-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; }
.gsxq-query-page .alipay-open-btn:hover { background: #e65100; }
.gsxq-query-page .payment-footer { padding: 20px; background: #f9f9f9; text-align: center; border-top: 1px solid #f0f0f0; }
.gsxq-query-page .countdown { color: #666; font-size: 13px; margin-bottom: 10px; }
.gsxq-query-page .refresh-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ===== 次数包页面 ===== */
.gsxq-credits-page {  }
.gsxq-credits-page .gsxq-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.gsxq-credits-page .gsxq-header { background: var(--primary); color: #fff; padding: 40px 30px; text-align: center; }
.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%; }

.gsxq-credits-page .credits-balance { background: #f0f6fc; border: 1px solid #c5d9ed; border-radius: 4px; padding: 20px; margin-bottom: 30px; }
.gsxq-credits-page .credits-balance h3 { margin: 0 0 15px 0; font-size: 14px; color: var(--info); 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: var(--text-light); margin-right: 5px; }
.gsxq-credits-page .credit-item .count { font-weight: 600; color: var(--info); 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; }
.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: var(--primary); 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; }
.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 var(--border); border-radius: 4px; cursor: pointer; transition: all 0.2s; text-align: center; position: relative; min-width: 140px; white-space: normal; }
.gsxq-credits-page .type-btn:hover { border-color: var(--primary); }
.gsxq-credits-page .type-btn.active { background: var(--primary); border-color: var(--primary); 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: var(--accent); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 600; }
.gsxq-credits-page .type-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: block; }
.gsxq-credits-page .type-price { font-size: 12px; font-weight: 500; color: var(--text-light); display: block; margin-top: 2px; }

.gsxq-credits-page .quick-buy-section { margin-bottom: 30px; }
.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 var(--border); border-radius: 4px; background: #fff; cursor: pointer; transition: all 0.2s; text-align: center; }
.gsxq-credits-page .quick-buy-btn:hover { border-color: var(--primary); }
.gsxq-credits-page .quick-buy-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.gsxq-credits-page .quick-buy-btn .quantity { font-size: 28px; font-weight: 700; display: block; margin-bottom: 5px; }
.gsxq-credits-page .quick-buy-btn .label { font-size: 12px; opacity: 0.8; }
.gsxq-credits-page .quick-buy-btn .total { font-size: 14px; font-weight: 600; margin-top: 8px; color: var(--danger); }
.gsxq-credits-page .quick-buy-btn.active .total { color: #fff; }

.gsxq-credits-page .custom-quantity-section { background: var(--bg-light); border: 1px solid #e8e8e8; border-radius: 4px; padding: 25px; margin-bottom: 30px; }
.gsxq-credits-page .quantity-slider { width: 100%; margin: 15px 0; -webkit-appearance: none; height: 6px; border-radius: 3px; background: #e0e0e0; outline: none; }
.gsxq-credits-page .quantity-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; }
.gsxq-credits-page .quantity-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); 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 var(--border); border-radius: 4px; }
.gsxq-credits-page .quantity-hint { font-size: 13px; color: var(--text-light); }

.gsxq-credits-page .price-summary { background: #fff; border: 2px solid var(--primary); border-radius: 4px; padding: 25px; margin-bottom: 30px; text-align: center; }
.gsxq-credits-page .price-summary .label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.gsxq-credits-page .price-summary .amount { font-size: 48px; font-weight: 300; color: var(--primary); }
.gsxq-credits-page .price-summary .unit-price { font-size: 13px; color: var(--text-light); margin-top: 8px; }

.gsxq-credits-page .buy-btn { width: 100%; padding: 18px; background: var(--primary); 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; }
.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 .success-message { display: none; background: #e8f5e9; border: 1px solid var(--accent); color: var(--safe); padding: 20px; border-radius: 4px; text-align: center; margin-bottom: 20px; }
.gsxq-credits-page .success-message.show { display: block; animation: fadeIn 0.5s ease; }

.gsxq-credits-page .payment-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999; 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); }
.gsxq-credits-page .payment-header { background: var(--primary); 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; }
.gsxq-credits-page .payment-close:hover { background: rgba(255,255,255,0.2); }
.gsxq-credits-page .payment-body { padding: 30px; text-align: center; }
.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: var(--primary); 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; }
.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: var(--primary); cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ===== 用户中心 ===== */
.gsxq-user-center {  }
.gsxq-user-center .user-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.gsxq-user-center .user-header { background: var(--primary); color: #fff; padding: 40px 30px; text-align: center; }
.gsxq-user-center .user-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-user-center .user-title { font-size: 24px; font-weight: 300; margin: 0 0 10px; letter-spacing: 2px; }
.gsxq-user-center .user-subtitle { font-size: 13px; opacity: 0.8; font-weight: 300; margin: 0; }
.gsxq-user-center .user-body { padding: 15px; max-width: 100%; }

.gsxq-user-center .dashboard-header { text-align: center; padding: 20px 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.gsxq-user-center .dashboard-username { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 5px; }
.gsxq-user-center .dashboard-email { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.gsxq-user-center .logout-link { font-size: 12px; color: var(--danger); text-decoration: none; }
.gsxq-user-center .logout-link:hover { text-decoration: underline; }

.gsxq-user-center .dashboard-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.gsxq-user-center .tab-btn { flex: 1; padding: 14px; background: none; border: none; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 500; color: var(--text-light); cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.gsxq-user-center .tab-btn:hover { color: var(--primary); background: var(--bg-hover); }
.gsxq-user-center .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.gsxq-user-center .tab-content { display: none; }
.gsxq-user-center .tab-content.active { display: block; animation: fadeIn 0.3s ease; }

.gsxq-user-center .loading-mask { padding: 40px; text-align: center; color: #999; }
.gsxq-user-center .loading-mask .spinner { width: 30px; height: 30px; border: 2px solid #f0f0f0; border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 15px; }

.gsxq-user-center .credits-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.gsxq-user-center .credits-table th, .gsxq-user-center .credits-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.gsxq-user-center .credits-table th { background: var(--bg-light); font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; }
.gsxq-user-center .credits-table tr:hover { background: var(--bg-hover); }
.gsxq-user-center .credits-table .count { font-weight: 600; color: var(--safe); font-size: 16px; }
.gsxq-user-center .credits-table .expiry { color: #999; font-size: 12px; }

.gsxq-user-center .history-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.gsxq-user-center .history-table th, .gsxq-user-center .history-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.gsxq-user-center .history-table th { background: var(--bg-light); font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; }
.gsxq-user-center .history-table tr:hover { background: var(--bg-hover); cursor: pointer; }
.gsxq-user-center .history-table .serial { font-family: 'Courier New', monospace; font-size: 12px; color: var(--primary); font-weight: 600; }
.gsxq-user-center .history-table .type { font-size: 12px; color: var(--text-light); }
.gsxq-user-center .history-table .date { font-size: 12px; color: #999; }
.gsxq-user-center .history-table .status-paid { color: var(--safe); font-weight: 600; }
.gsxq-user-center .history-table .status-credits { color: var(--info); font-weight: 600; }

.gsxq-user-center .purchase-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.gsxq-user-center .purchase-table th, .gsxq-user-center .purchase-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.gsxq-user-center .purchase-table th { background: var(--bg-light); font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; }
.gsxq-user-center .purchase-table tr:hover { background: var(--bg-hover); }
.gsxq-user-center .purchase-table .amount { font-weight: 600; color: var(--primary); }
.gsxq-user-center .purchase-table .status-success { color: var(--safe); font-weight: 600; }
.gsxq-user-center .purchase-table .status-pending { color: var(--warning); font-weight: 600; }

.gsxq-user-center .result-view { display: none; }
.gsxq-user-center .result-view.show { display: block; animation: fadeIn 0.3s ease; }
.gsxq-user-center .result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.gsxq-user-center .result-title { font-size: 18px; font-weight: 600; color: var(--primary); }
.gsxq-user-center .back-btn { background: none; border: none; color: var(--info); cursor: pointer; font-size: 13px; font-weight: 500; }
.gsxq-user-center .back-btn:hover { text-decoration: underline; }

.gsxq-user-center .result-box { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }

.gsxq-user-center .interpretation-wrapper-uc { margin-top: 20px; display: none; }
.gsxq-user-center .interpretation-wrapper-uc.show { display: block; }
.gsxq-user-center .uc-interpretation { background: var(--bg-light); border: 1px solid var(--border); border-radius: 4px; padding: 20px; font-size: 14px; line-height: 1.8; }

.gsxq-user-center .result-actions { display: flex; gap: 10px; margin-top: 20px; }
.gsxq-user-center .result-actions .zaxu-btn { flex: 1; }

.gsxq-user-center .empty-state { text-align: center; padding: 60px 20px; color: #999; }
.gsxq-user-center .empty-state-icon { font-size: 48px; margin-bottom: 15px; }
.gsxq-user-center .empty-state-text { font-size: 14px; }

/* ===== 报告预览容器 ===== */
.gsxq-report-preview-container { position: absolute; left: -9999px; top: -9999px; width: 794px; opacity: 0; pointer-events: none; z-index: -9999; }
.gsxq-report-preview { width: 794px; margin: 0 auto; background: #fff; padding: 40px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; box-shadow: 0 0 30px rgba(0, 0, 0, 0.1); border-radius: 4px; }
.gsxq-report-preview .report-header { text-align: center; padding: 30px; background: var(--primary); color: white; border-radius: 4px; margin-bottom: 30px; }
.gsxq-report-preview .report-header .badge { display: inline-block; padding: 4px 12px; background: rgba(255,255,255,0.15); border-radius: 20px; font-size: 12px; margin-bottom: 10px; }
.gsxq-report-preview .report-header h1 { font-size: 28px; margin: 10px 0; font-weight: 700; color: #fff; }
.gsxq-report-preview .report-header .serial-info { font-size: 16px; margin: 10px 0; opacity: 0.9; font-family: 'Courier New', monospace; color: #fff; }
.gsxq-report-preview .report-header .generate-time { font-size: 13px; opacity: 0.8; color: #fff; }
.gsxq-report-preview .report-content { margin: 20px 0; }
.gsxq-report-preview .report-footer { margin-top: 30px; padding-top: 20px; border-top: 2px solid var(--primary); text-align: center; font-size: 12px; color: #666; }

/* ===== SEO 文章页面 ===== */
.gsxq-article-main { padding-top: 40px; padding-bottom: 60px; }
.gsxq-article-container { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start; }
.gsxq-article { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.gsxq-article-header { padding: 40px; background: var(--primary); color: #fff; text-align: center; }
.gsxq-article-header .gsxq-article-title { font-size: 28px; font-weight: 300; margin: 0 0 15px; letter-spacing: 1px; line-height: 1.4; }
.gsxq-article-meta { display: flex; justify-content: center; gap: 20px; font-size: 13px; opacity: 0.8; }
.gsxq-article-content { padding: 40px; font-size: 16px; line-height: 1.8; color: var(--text); }
.gsxq-article-content h2 { font-size: 22px; margin: 30px 0 15px; color: var(--primary); }
.gsxq-article-content h3 { font-size: 18px; margin: 25px 0 12px; color: var(--primary); }
.gsxq-article-content p { margin-bottom: 20px; }
.gsxq-article-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }
.gsxq-article-content blockquote { border-left: 3px solid var(--primary); padding-left: 20px; margin: 20px 0; color: var(--text-light); font-style: italic; }
.gsxq-article-content ul, .gsxq-article-content ol { margin: 15px 0; padding-left: 25px; }
.gsxq-article-content li { margin: 8px 0; }

.gsxq-article-sidebar { position: sticky; top: 80px; }
.gsxq-widget { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px; margin-bottom: 20px; }
.gsxq-widget h4 { font-size: 14px; font-weight: 600; margin: 0 0 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); }
.gsxq-widget ul { list-style: none; padding: 0; margin: 0; }
.gsxq-widget li { margin: 10px 0; }
.gsxq-widget a { color: var(--text-light); font-size: 13px; transition: color 0.2s; }
.gsxq-widget a:hover { color: var(--primary); }

/* 风险卡片 */
.gsxq-risk-section { margin: 30px 0; }
.gsxq-risk-section h2 { font-size: 20px; margin-bottom: 20px; }
.gsxq-risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gsxq-risk-card { background: #fff8e1; border: 1px solid #ffe082; border-radius: 4px; padding: 20px; }
.gsxq-risk-card .gsxq-risk-icon { font-size: 24px; margin-bottom: 10px; }
.gsxq-risk-card h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: #e65100; }
.gsxq-risk-card p { font-size: 13px; color: var(--text-light); margin: 0; line-height: 1.5; }

/* 价格表格 */
.gsxq-price-section { margin: 30px 0; }
.gsxq-price-section h2 { font-size: 20px; margin-bottom: 20px; }
.gsxq-data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gsxq-data-table th, .gsxq-data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.gsxq-data-table th { background: var(--bg-light); font-weight: 600; color: var(--text-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.gsxq-data-table tr:hover { background: var(--bg-hover); }

/* FAQ */
.gsxq-faq-section { margin: 30px 0; }
.gsxq-faq-section h2 { font-size: 20px; margin-bottom: 20px; }
.gsxq-faq-item { border-bottom: 1px solid #f0f0f0; padding: 20px 0; }
.gsxq-faq-q { font-size: 15px; font-weight: 600; color: var(--primary); margin: 0 0 10px; cursor: pointer; }
.gsxq-faq-a { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.gsxq-faq-a p { margin-bottom: 10px; }

/* CTA */
.gsxq-article-cta { text-align: center; padding: 40px; background: var(--bg-light); border-radius: 4px; margin-top: 30px; }
.gsxq-article-cta .gsxq-btn { margin-bottom: 15px; }
.gsxq-cta-tip { font-size: 13px; color: #999; margin: 0; }

/* ===== 动画 ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 打印样式 ===== */
@media print {
    .gsxq-header, .gsxq-footer, .payment-modal, .gsxq-card-header, .gsxq-card-footer { display: none !important; }
    .gsxq-single-card { box-shadow: none; border: 1px solid #ccc; }
    .gsxq-query-page .result-box, .gsxq-user-center .result-box { break-inside: avoid; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .gsxq-container { padding: 0 15px; }
    .gsxq-article-container { grid-template-columns: 1fr; }
    .gsxq-article-sidebar { position: static; }
    .gsxq-article-header { padding: 30px 20px; }
    .gsxq-article-header .gsxq-article-title { font-size: 22px; }
    .gsxq-article-content { padding: 20px; }
    .gsxq-risk-grid { grid-template-columns: 1fr; }
    .gsxq-user-center .dashboard-tabs { overflow-x: auto; }
    .gsxq-user-center .tab-btn { font-size: 12px; padding: 12px 10px; white-space: nowrap; }
    .gsxq-user-center .credits-table, .gsxq-user-center .history-table, .gsxq-user-center .purchase-table { font-size: 12px; }
    .gsxq-user-center .credits-table th, .gsxq-user-center .credits-table td,
    .gsxq-user-center .history-table th, .gsxq-user-center .history-table td,
    .gsxq-user-center .purchase-table th, .gsxq-user-center .purchase-table td { padding: 10px 8px; }
}