/* 游戏兑换码大全（giftcode）样式 */
.gc-page { max-width: 1200px; margin: 0 auto; padding: 0 0 40px; box-sizing: border-box; color: #333; }
.gc-header { background: linear-gradient(135deg, #1890ff, #0056b3); color: #fff; border-radius: 8px; padding: 24px; margin: 22px 0 18px; text-align: center; }
.gc-header h1 { font-size: 26px; margin: 0 0 8px; color: #fff; }
.gc-subtitle { color: #fff; opacity: .9; font-size: 14px; line-height: 1.8; margin: 0 0 16px; }

/* 搜索 */
.gc-search-wrap { position: relative; max-width: 520px; margin: 0 auto; }
.gc-search-input { width: 100%; height: 42px; border: 1px solid #d9d9d9; border-radius: 6px; padding: 0 14px; font-size: 14px; box-sizing: border-box; outline: none; }
.gc-search-input:focus { border-color: #1890ff; }
.gc-search-result { display: none; position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 20; max-height: 360px; overflow: auto; }
.gc-search-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #f5f5f5; color: #333; text-decoration: none; font-size: 14px; }
.gc-search-item:last-child { border-bottom: none; }
.gc-search-item:hover { background: #f0f7ff; }
.gc-search-item img { width: 28px; height: 28px; border-radius: 5px; object-fit: cover; }
.gc-search-item span { flex: 1; }
.gc-search-item em { color: #999; font-size: 12px; font-style: normal; }
.gc-search-empty { padding: 14px; color: #999; font-size: 14px; text-align: center; }

/* 板块 */
.gc-section { margin-top: 26px; }
.gc-sec-title { font-size: 18px; font-weight: 600; color: #333; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid #1890ff; line-height: 1.4; display: flex; align-items: center; }
.gc-sec-count { font-size: 13px; color: #999; font-weight: 400; margin-left: 10px; }
.gc-empty { padding: 28px; text-align: center; color: #999; background: #fafafa; border-radius: 6px; font-size: 14px; }

/* 游戏卡片网格 */
.gc-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gc-game-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; text-decoration: none; color: #333; transition: box-shadow .2s, border-color .2s; min-width: 0; }
.gc-game-card:hover { border-color: #1890ff; box-shadow: 0 3px 12px rgba(24,144,255,.12); }
.gc-game-logo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; background: #f0f7ff; color: #1890ff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; overflow: hidden; }
.gc-game-logo img { width: 100%; height: 100%; object-fit: cover; }
.gc-game-meta { flex: 1; min-width: 0; }
.gc-game-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-game-desc { color: #999; font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-game-count { flex-shrink: 0; color: #1890ff; font-size: 12px; background: #f0f7ff; padding: 3px 8px; border-radius: 10px; }

/* 详情页 */
.gc-crumb { color: #999; font-size: 13px; padding: 18px 0 6px; }
.gc-crumb a { color: #666; text-decoration: none; }
.gc-crumb a:hover { color: #1890ff; }
.gc-detail-header { background: linear-gradient(135deg, #1890ff, #0056b3); color: #fff; border-radius: 8px; padding: 24px; margin: 8px 0 18px; text-align: center; }
.gc-detail-header h1 { font-size: 25px; margin: 0 0 8px; color: #fff; }
.gc-detail-sub { color: #fff; opacity: .9; font-size: 14px; margin: 0; }
.gc-detail-sub strong { color: #fff; font-weight: 700; }
.gc-dot { margin: 0 8px; color: #ccc; }
.gc-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* 游戏基本区 */
.gc-game-basic { display: flex; gap: 18px; align-items: flex-start; }
.gc-basic-logo { width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; background: #f0f7ff; color: #1890ff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 600; overflow: hidden; }
.gc-basic-logo img { width: 100%; height: 100%; object-fit: cover; }
.gc-basic-info { flex: 1; min-width: 0; }
.gc-basic-info h2 { font-size: 17px; margin: 2px 0 8px; }
.gc-basic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.gc-basic-tag { display: inline-block; padding: 2px 9px; background: #f0f7ff; color: #1890ff; border-radius: 4px; font-size: 12px; line-height: 1.7; }
.gc-basic-info p { color: #666; font-size: 14px; line-height: 1.8; margin: 0 0 8px; }
.gc-play-link { color: #1890ff; font-size: 13px; text-decoration: none; }
.gc-play-link:hover { text-decoration: underline; }
.gc-basic-qr { flex-shrink: 0; text-align: center; }
.gc-basic-qr #gc-qrcode { width: 120px; height: 120px; }
.gc-basic-qr p { color: #999; font-size: 12px; margin: 6px 0 0; }

/* 兑换码表格 */
.gc-table-wrap { overflow-x: auto; }
.gc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gc-table th, .gc-table td { border: 1px solid #e8e8e8; padding: 11px 12px; text-align: center; }
.gc-table th { background: #fafafa; color: #666; font-weight: 600; }
.gc-table td { color: #444; }
.gc-code { color: #1890ff; font-weight: 700; font-size: 15px; letter-spacing: .5px; word-break: break-all; }
.gc-content { color: #333; }
.gc-long { color: #52c41a; }
.gc-copy-btn { border: 1px solid #1890ff; color: #1890ff; background: #fff; border-radius: 4px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.gc-copy-btn:hover { background: #1890ff; color: #fff; }
/* 已失效兑换码：自适应网格，纯展示、灰色弱化，浏览器按宽度自动决定一行放几个 */
.gc-expired-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gc-expired-code { padding: 9px 8px; text-align: center; color: #333; font-size: 14px; letter-spacing: .5px; word-break: break-all; background: #fafafa; border: 1px solid #f0f0f0; border-radius: 4px; }

/* 富文本（使用教程） */
.gc-rich { font-size: 15px; line-height: 1.9; color: #333; word-wrap: break-word; }
.gc-rich p { margin: 10px 0; }
.gc-rich img { max-width: 100%; height: auto; display: block; margin: 14px auto; border-radius: 6px; }
.gc-rich h3, .gc-rich h4 { font-size: 16px; color: #222; margin: 18px 0 8px; }
.gc-rich ul, .gc-rich ol { margin: 10px 0; padding-left: 24px; }
.gc-rich li { margin: 4px 0; }
.gc-rich strong { color: #222; }
.gc-rich a { color: #1890ff; }
.gc-rich div, .gc-rich span { line-height: 1.9; }

/* 常见问题 */
.gc-faq { margin-top: 8px; }
.gc-faq .faq-item { border-bottom: 1px solid #f0f0f0; }
.gc-faq .faq-item:last-child { border-bottom: none; }
.gc-faq .faq-q { display: flex; align-items: center; width: 100%; gap: 6px; padding: 14px 4px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 15px; font-weight: 600; color: #333; font-family: inherit; line-height: 1.6; transition: color .2s; }
.gc-faq .faq-q:hover { color: #1890ff; }
.gc-faq .faq-num { flex-shrink: 0; color: #333; font-weight: 600; }
.gc-faq .faq-q-text { flex: 1; min-width: 0; }
.gc-faq .faq-arrow { flex-shrink: 0; color: #1890ff; font-size: 13px; transition: transform .2s; line-height: 1.6; margin-top: 2px; }
.gc-faq .faq-item.open .faq-arrow { transform: rotate(180deg); }
.gc-faq .faq-a { display: none; padding: 0 4px 16px; color: #666; font-size: 14px; line-height: 1.9; }
.gc-faq .faq-item.open .faq-a { display: block; }
.gc-faq .faq-da { font-weight: 700; color: #333; }

/* 页面介绍 */
.gc-intro { margin: 0; color: #666; font-size: 14px; line-height: 1.9; }
.gc-intro p { margin: 0; }
.gc-intro p + p { margin-top: 10px; }

/* 其它实用工具 */
.gc-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gc-tool-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; text-decoration: none; color: #444; font-size: 13px; transition: border-color .2s; }
.gc-tool-item:hover { border-color: #1890ff; color: #1890ff; }
.gc-tool-icon { width: 24px; height: 24px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.gc-tool-icon img { width: 100%; height: 100%; object-fit: cover; }
.gc-tool-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 其它游戏（一行滚动） */
.gc-others { display: flex; flex-wrap: wrap; gap: 10px; }
.gc-other-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border: 1px solid #e8e8e8; border-radius: 20px; text-decoration: none; color: #444; font-size: 13px; background: #fff; }
.gc-other-item:hover { border-color: #1890ff; color: #1890ff; }
.gc-other-logo { width: 24px; height: 24px; border-radius: 50%; background: #f0f7ff; color: #1890ff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; overflow: hidden; }
.gc-other-logo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
    .gc-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gc-game-basic { flex-wrap: wrap; }
    .gc-basic-qr { margin: 0 auto; }
    .gc-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .gc-page { padding: 0 15px 40px; }
    .gc-game-grid { grid-template-columns: 1fr; }
    .gc-header, .gc-detail-header { padding: 18px; margin-top: 12px; }
    .gc-header h1, .gc-detail-header h1 { font-size: 22px; }
    .gc-card { padding: 16px; }
    .gc-sec-title { font-size: 16px; }
    .gc-tools { grid-template-columns: 1fr 1fr; }
}
