/* ========== 字体 ========== */
@font-face {
    font-family: 'DouyinSansBold';
    src: url('fonts/DouyinSansBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --theme-color: #fe8900;
    --theme-color-dark: #f67800;
    --theme-color-rgb: 254,137,0;
    --color-bg-primary: #f5f5f5;
    --color-bg-section: #f0f0f0;
    --color-card-bg: #fff;
    --color-title-bg: #fff5eb;
    --color-input-bg: rgba(255,255,255,.3);
    --color-link: #ff0000;
    --color-text-primary: #000;
    --color-text-secondary: #666;
    --color-text-muted: #888;
    --color-text-white: #fff;
    --color-border-medium: #ddd;
    --color-border-light: #eee;
    --color-skeleton: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-accent: 0 4px 12px rgba(254,137,0,.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --bottom-h: 65px;
}
body[data-theme="blue"] { --theme-color: #3b82f6; --theme-color-dark: #2563eb; --theme-color-rgb: 59,130,246; --color-bg-section: #eff6ff; }
body[data-theme="green"] { --theme-color: #10b981; --theme-color-dark: #059669; --theme-color-rgb: 16,185,129; --color-bg-section: #ecfdf5; }
body[data-theme="purple"] { --theme-color: #8b5cf6; --theme-color-dark: #7c3aed; --theme-color-rgb: 139,92,246; --color-bg-section: #f5f3ff; }

html, body {
    margin: 0; padding: 0;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; -webkit-user-select: none;
    user-select: none;
}
body {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: 'DouyinSansBold', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6; min-height: 100vh;
    padding-bottom: var(--bottom-h);
    transition: background-color .3s ease, color .3s ease;
}
body.page-detail {
    padding-bottom: 0;
    background-color: #f0f0f5;
}
body.page-detail::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0,0,0,.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.065) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
i[class^="bi-"], i[class*=" bi-"] { display: inline-block; line-height: 1; }

/* ========== 图片淡入（缩放淡入：从 92% 放大到原尺寸） ========== */
.img-fade {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .4s ease-out, transform .4s ease-out;
}
.img-fade.loaded {
    opacity: 1;
    transform: none;
}

/* ========== View Transitions 跨页过渡（缩放淡入淡出） ========== */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .35s;
    animation-timing-function: cubic-bezier(.2, .7, .3, 1);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut {
    to { opacity: 0; transform: scale(.96); }
}
@keyframes vtIn {
    from { opacity: 0; transform: scale(.96); }
}
.no-vt body {
    animation: pageFadeIn .35s ease-out;
}
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 顶部搜索栏 ========== */
.top-search-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
    width: 100%; max-width: 900px; margin: 0 auto;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    transition: background .3s ease;
}
.top-search-bar.scrolled { background: var(--theme-color); }
body[data-channel="ip"] .top-search-bar { background: var(--theme-color); }
body[data-channel="ip"] .search-logo-text { color: #fff; }

.top-search-bar .search-container {
    position: relative; width: 100%; padding: 5px 150px;
    box-sizing: border-box; display: flex; align-items: center; justify-content: center;
}
.search-logo-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 5px; overflow: hidden; z-index: 2;
}
.search-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.search-logo-text {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%) skewX(-10deg);
    font-size: 21px; font-weight: bold; color: var(--theme-color);
    white-space: nowrap; font-style: italic; pointer-events: none; z-index: 2;
}
.search-logo-text::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 100%; height: 2px; background: currentColor;
    transform: skewX(-10deg);
}
.top-search-bar.scrolled .search-logo-text { color: white; }
.top-search-bar .search-input {
    width: 100%; padding: 0 10px; border-radius: 10px; border: none;
    font-size: 14px; background: var(--color-input-bg);
    box-sizing: border-box; height: 30px;
    color: var(--color-text-primary); font-family: inherit;
    transition: background .3s ease;
}
.top-search-bar .search-input::placeholder { color: rgba(0,0,0,0.5); font-size: 13px; }
.top-search-bar .search-input:focus { outline: none; background: var(--color-card-bg); }
.top-search-bar.scrolled .search-input { background: rgba(255,255,255,0.95); }

.theme-toggle-btn {
    position: absolute; left: 60px; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; line-height: 1; padding: 0;
    cursor: pointer; z-index: 3;
    transition: background .2s, transform .2s;
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle-btn:hover { background: rgba(255,255,255,.55); transform: translateY(-50%) rotate(15deg); }
.top-search-bar.scrolled .theme-toggle-btn { background: rgba(255,255,255,.5); }

.theme-toggle-btn-detail {
    position: absolute; right: 37px; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; line-height: 1; padding: 0;
    cursor: pointer; z-index: 3;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle-btn-detail:hover { background: rgba(255,255,255,.3); }

.platform-tabs {
    display: none; align-items: center; justify-content: center; gap: 6px;
    width: 100%; height: 30px;
    background: rgba(255,255,255,0.2); border-radius: 10px; padding: 0 6px;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
body[data-channel="ip"] .search-input { display: none; }
body[data-channel="ip"] .platform-tabs { display: flex; }
.platform-tab {
    flex: 1; height: 24px; border-radius: 6px; background: transparent;
    color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600;
    transition: all 0.2s ease; white-space: nowrap; padding: 0 6px; font-family: inherit;
}
.platform-tab.active { background: #fff; color: var(--theme-color); }
.platform-tab:hover { background: rgba(255,255,255,0.2); color: #fff; }
.platform-tab.active:hover { background: #fff; color: var(--theme-color); }

/* ========== 背景图 + 悬浮卡 ========== */
.image-container {
    position: relative; width: 100%; height: 400px;
    overflow: visible; margin: 0; padding: 0;
    background: var(--color-skeleton);
}
body[data-channel="ip"] .image-container { display: none; }
.image-container > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.junction-cards-section {
    position: absolute; bottom: 0; left: 0; right: 0;
    transform: translateY(50%); z-index: 100; padding: 0 1rem;
}
.junction-cards-container {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    max-width: 900px; margin: 0 auto;
}
.junction-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(248,248,248,0.7) 100%);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-sm);
    padding: 0.8rem; text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; gap: 0.8rem;
    box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden; cursor: pointer;
    height: 100px;
}
.junction-card:hover {
    transform: translateY(-3px); border-color: var(--theme-color);
    box-shadow: var(--shadow-md); background: var(--color-card-bg);
}
.junction-card-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    transition: all 0.25s ease;
}
.junction-card:hover .junction-card-icon { transform: scale(1.05); }
.junction-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.junction-card-info { flex: 1; min-width: 0; }
.junction-card-name {
    font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem;
    color: var(--color-text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.junction-card:hover .junction-card-name { color: var(--theme-color); }
.junction-card-description {
    font-size: 0.75rem; color: var(--color-text-secondary); line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== 主体 ========== */
.main-content {
    max-width: 900px; margin: 0 auto;
    background: var(--color-bg-section);
    padding: 2rem 1.5rem; padding-top: 5rem;
    position: relative; z-index: 2;
    box-shadow: inset 0 5px 15px rgba(0,0,0,.03);
}
.section-desc {
    text-align: center;
    font-size: 0.75rem; font-weight: 700;
    color: var(--theme-color);
    line-height: 1.5;
    margin: -10px 0 8px;
    padding: 0 20px;
}
.channel { display: none; animation: smoothFadeIn .3s ease; }
.channel.active { display: block; }
@keyframes smoothFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========== 游戏卡片 ========== */
.game-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem; position: relative; z-index: 1;
}
.game-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: 1rem; text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden; cursor: pointer;
    height: 110px;
}
.game-card:hover {
    transform: translateY(-3px); border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
}
.game-icon {
    width: 70px; height: 70px; border-radius: var(--radius-md);
    background: transparent !important;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    transition: all 0.25s ease;
    position: relative; border: none !important;
}
.game-card:hover .game-icon { transform: scale(1.05); }
.game-icon img { width: 100%; height: 100%; object-fit: cover; }

.discount-tag {
    position: absolute; top: 0; left: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 25px 25px 0 0;
    border-color: #ff4444 transparent transparent transparent;
    z-index: 10; pointer-events: none;
}
.discount-tag::after {
    content: attr(data-discount);
    position: absolute; top: -21px; left: 0px;
    color: white; font-size: 8px; font-weight: bold;
    transform: rotate(-45deg);
    white-space: nowrap;
    font-family: "Comic Sans MS", "Marker Felt", sans-serif;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
    letter-spacing: 0.5px; text-transform: uppercase;
}
.game-info { flex: 1; min-width: 0; }
.game-name {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem;
    color: var(--color-text-primary); transition: color 0.25s ease;
    line-height: 1.3;
}
.game-card:hover .game-name { color: var(--theme-color); }
.game-name-tag {
    display: inline-block; font-size: 0.65rem; font-weight: bold;
    color: white; border-radius: 4px; padding: 2px 2px;
    margin-left: 4px; vertical-align: middle;
    animation: smoothPulse 1s infinite ease-in-out;
}
@keyframes smoothPulse {
    0% { transform: scale(1); opacity: 0.8; filter: brightness(1); }
    50% { transform: scale(1.15); opacity: 1; filter: brightness(1.3); }
    100% { transform: scale(1); opacity: 0.8; filter: brightness(1); }
}
.game-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.game-tag {
    background: rgba(var(--theme-color-rgb), 0.1);
    color: var(--theme-color);
    padding: 0rem 0.5rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600;
    border: 1px solid rgba(var(--theme-color-rgb), 0.2);
    transition: all 0.25s ease;
    display: inline-block;
    line-height: 1.6;
}

/* ========== ip iframe ========== */
.ip-iframe-wrapper {
    position: relative; width: calc(100% + 3rem); margin-left: -1.5rem;
    background: var(--color-card-bg); overflow: hidden;
}
.ip-iframe-wrapper.fixed-mode {
    position: fixed !important; left: 0 !important; right: 0 !important;
    width: 100% !important; margin: 0 !important;
    z-index: 1000 !important; border-radius: 0 !important;
}
.ip-iframe-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-card-bg); overflow: hidden; }
.ip-iframe-item iframe { display: block; width: 100%; height: 100%; border: 0; }
.ip-loading {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-card-bg); display: none; flex-direction: column;
    align-items: center; justify-content: center; z-index: 10;
}
.ip-loading.show { display: flex; }
.ip-loading .loader {
    width: 40px; height: 40px; border: 4px solid var(--color-border-light); border-top-color: var(--theme-color);
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ip-loading p { color: var(--theme-color); font-size: 14px; font-weight: 600; }

/* ========== 盒子 / 客服 ========== */
.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.box-card {
    background: var(--color-card-bg); border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md); padding: 1rem;
    transition: all .25s ease;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-sm); height: 90px;
}
.box-card:hover { transform: translateY(-3px); border-color: var(--theme-color); box-shadow: var(--shadow-md); }
.box-icon {
    width: 55px; height: 55px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid rgba(var(--theme-color-rgb),.1);
    background: var(--color-skeleton);
    transition: all .25s ease;
}
.box-card:hover .box-icon { transform: scale(1.05); border-color: var(--theme-color); }
.box-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-md) - 2px); }
.box-name { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; line-height: 1.2; }
.box-card:hover .box-name { color: var(--theme-color); }
.box-desc { font-size: .8rem; color: var(--color-text-secondary); line-height: 1.3; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.contact-card {
    background: var(--color-card-bg); border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md); padding: 1.2rem;
    transition: all .25s ease;
    display: flex; align-items: center; gap: 1.2rem;
    box-shadow: var(--shadow-sm); min-height: 110px;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--theme-color); box-shadow: var(--shadow-md); }
.contact-qr {
    width: 90px; height: 90px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border: 1px solid var(--color-border-light);
    flex-shrink: 0; background: var(--color-skeleton);
}
.contact-card:hover .contact-qr { border-color: var(--theme-color); transform: scale(1.03); }
.contact-qr img { width: 100%; height: 100%; object-fit: cover; }
.contact-info { flex: 1; display: flex; justify-content: space-between; align-items: center; height: 90px; gap: 1rem; }
.contact-text-info { flex: 1; padding-right: 1rem; }
.contact-text-info h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.3rem 0; line-height: 1.2; }
.contact-text-info p { font-size: 0.8rem; color: var(--color-text-secondary); margin: 0; line-height: 1.2; }
.contact-btn {
    display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px;
    background: var(--theme-color); color: white; text-decoration: none;
    font-size: 0.75rem; font-weight: 600; text-align: center;
    transition: all 0.25s ease; min-width: 80px; white-space: nowrap;
}
.contact-btn:hover { background: var(--theme-color-dark); transform: translateY(-2px); box-shadow: var(--shadow-accent); }

/* ========== 加载 / 底部 ========== */
.loading-dots { display: inline-flex; gap: 6px; justify-content: center; }
.loading-dots span {
    width: 10px; height: 10px; border-radius: 50%; background: var(--theme-color);
    animation: dotBounce 1.4s infinite; opacity: .6;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%,80%,100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.load-more-indicator, .list-end-tip { text-align: center; padding: 20px 0; color: var(--color-text-muted); font-size: 13px; }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    border-top: 2px solid var(--theme-color);
    box-shadow: 0 -5px 25px rgba(0,0,0,.3);
    max-width: 900px; margin: 0 auto; height: var(--bottom-h);
}
.nav-container { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; padding: 0; }
.nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: rgba(0,0,0,0.7); transition: all .3s cubic-bezier(.34,1.56,.64,1);
    font-size: 0.7rem; font-weight: 600; padding: 5px 0;
    position: relative;
}
.nav-item i {
    font-size: 1.2rem; margin-bottom: 4px;
    transition: all .3s ease;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.nav-item.active { color: var(--theme-color); background: linear-gradient(180deg, rgba(var(--theme-color-rgb),.1) 0%, transparent 100%); }
.nav-item.active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 3px; background: var(--theme-color);
    border-radius: 0 0 3px 3px; box-shadow: 0 0 10px var(--theme-color);
}
.nav-item.active i { transform: translateY(-2px) scale(1.1); filter: drop-shadow(0 0 8px var(--theme-color)); }

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 3000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all .3s ease;
    backdrop-filter: blur(5px); padding: 15px;
    overflow: hidden;
    overscroll-behavior: contain;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--color-card-bg); border-radius: var(--radius-lg); width: 95%; max-width: 800px;
    max-height: 85vh; display: flex; flex-direction: column;
    transform: translateY(20px) scale(.95); opacity: 0; transition: all .3s cubic-bezier(.25,.46,.45,.94);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); opacity: 1; }
.modal-header {
    padding: .6rem 1.2rem; background: var(--theme-color); color: white;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { color: white; font-size: 1.5rem; line-height: 1; }
.modal-body { padding: 1.2rem; overflow-y: auto; flex: 1; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-text { font-size: .95rem; color: var(--color-text-secondary); line-height: 1.5; margin-bottom: .8rem; }
.modal-img-wrap { margin: .6rem 0; border-radius: var(--radius-md); overflow: hidden; background: var(--color-skeleton); }
.modal-footer { padding: .6rem 1.2rem; border-top: 1px solid var(--color-border-light); text-align: center; }
.modal-confirm {
    padding: .4rem 1.5rem; background: var(--theme-color); color: white;
    border-radius: var(--radius-md); font-weight: 600; font-size: .9rem;
}

/* ========== 多版本弹窗内部（响应式大卡片网格） ========== */
.popup-games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0; 
}
.popup-game-card {
    /* 基础分配 33.33% 保证大屏 3 个 */
    flex: 1 1 calc(33.333% - 10px);
    min-width: 105px; /* 关键：当容器缩到放不下两个 105px 时，自动折行！ */
    max-width: 50%; /* 如果有两个，各占 50% */
    background: var(--color-bg-section);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}
.popup-game-card:hover {
    transform: translateY(-3px); 
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
    background: var(--color-card-bg);
}
.popup-game-card .game-icon {
    width: clamp(50px, 15vw, 70px); 
    height: clamp(50px, 15vw, 70px);
    margin-bottom: 8px;
}
.popup-game-card .game-name {
    font-size: clamp(0.8rem, 3.5vw, 1rem); 
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 0;
    width: 100%;
    white-space: normal; /* 允许长标题折行 */
    word-break: break-all;
}
.popup-game-card:hover .game-name {
    color: var(--theme-color);
}

/* ============================================================
   子页：头图、吸顶三栏与内容区
   ============================================================ */
.game-detail {
    padding: 0; width: 100%; min-height: 100vh; overflow-x: clip;
}
.detail-hero {
    position: relative; width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #111;
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; z-index: 10;
    aspect-ratio: 16 / 9; max-height: 560px;
    padding-bottom: 50px;
}
.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    filter: blur(12px);
    transition: opacity .8s ease-out, filter .8s ease-out;
    z-index: 0;
    pointer-events: none;
}
.detail-hero-bg.loaded { opacity: 1; filter: blur(0); }
.detail-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 0; pointer-events: none;
}
.top-section {
    position: relative; z-index: 1;
    width: 100%; max-width: 900px; margin: 0 auto;
    padding: 25px 15px 10px;
    display: flex; align-items: flex-end;
}
.gd-icon {
    width: 75px; height: 75px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0; background: #2a2a30;
}
.gd-center {
    flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
    min-width: 0; margin-left: 15px; padding-right: 90px;
    position: relative;
}
.gd-title {
    font-size: 1.5rem; font-weight: 700;
    color: #fff; margin: 0 0 6px 0;
    line-height: 1.3; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    word-break: break-all;
}
.gd-meta { display: flex; gap: 0.3rem; flex-wrap: wrap; align-items: center; margin-bottom: 2px; }
.detail-hero .game-tag {
    background: rgba(255, 255, 255, 0.2); color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}
.gd-sub-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.gd-sub-tag {
    font-size: 0.65rem; font-weight: bold; padding: 2px 4px;
    border-radius: 4px; color: #fff;
    animation: smoothPulse 1s infinite ease-in-out;
}
.gd-rating-container {
    position: absolute; right: 15px; bottom: 10px;
    width: 75px; height: 75px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255, 245, 235, 0.96);
    border: 1px solid #ffe4cc; border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(var(--theme-color-rgb), 0.25);
    text-align: center;
}
.gd-rating {
    color: var(--theme-color); display: flex; align-items: center; justify-content: center;
    gap: 0.15rem; font-size: 1.1rem;
}
.gd-score { color: var(--theme-color); font-weight: 600; font-size: 1rem; }
.gd-rating-text { font-size: 0.6rem; color: var(--color-text-muted); margin-top: 2px; }

.sticky-container {
    position: sticky; top: 0; z-index: 100;
    width: 100vw; margin-left: calc(-50vw + 50%);
    margin-top: -50px;
}
.hero-nav-bar {
    background: rgba(30, 30, 36, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero-nav-inner {
    position: relative;
    width: 100%; max-width: 900px; margin: 0 auto;
    padding: 10px 15px;
    display: flex; align-items: center;
}
.hero-nav-inner a {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff; font-size: 1.1rem; font-weight: 700;
    text-decoration: none; letter-spacing: .3px;
}
.hero-nav-inner a::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
    transform: translateX(200%);
    animation: heroShine 3.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroShine {
    0%   { transform: translateX(200%); }
    65%  { transform: translateX(-150%); }
    100% { transform: translateX(-150%); }
}
.detail-nav-wrap {
    background-color: #f8f9fa;
    background-image:
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.detail-nav {
    width: 100%; max-width: 900px; margin: 0 auto;
    padding: 10px 15px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
}
.detail-nav::-webkit-scrollbar { display: none; }
.detail-nav a {
    flex-shrink: 0; padding: 6px 18px; font-size: 0.9rem; font-weight: 600;
    color: var(--color-text-secondary); background: transparent; border-radius: 20px;
    border: none; transition: all 0.2s ease; cursor: pointer;
    white-space: nowrap; position: relative;
}
.detail-nav a.active { background: rgba(254, 137, 0, 0.12); color: var(--theme-color); }

/* ============================================================
   子页：内容区
   ============================================================ */
.detail-body {
    padding: 1.5rem 1.2rem;
    max-width: 900px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.detail-section {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 1.4rem 1.2rem;
    scroll-margin-top: 120px;
}
.detail-section .section-title {
    display: flex; align-items: center;
    width: 100%; padding: 14px 18px 14px 28px;
    background: var(--color-title-bg); color: var(--theme-color);
    font-size: 1.3rem; font-weight: 700;
    margin-bottom: 20px;
    position: relative; border-radius: 8px 16px 16px 8px;
    box-shadow: none;
}
.detail-section .section-title::before {
    content: ''; position: absolute;
    left: 8px; top: 8px; bottom: 8px;
    width: 8px; background: var(--theme-color);
    border-radius: 10px;
}
.sub-section { margin-bottom: 24px; }
.sub-section:last-child { margin-bottom: 0; }

.welfare-list { display: flex; flex-direction: column; gap: 12px; }
.welfare-item {
    display: flex; align-items: center;
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 1.5px dashed #999;
}
.welfare-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.welfare-item .welfare-label {
    width: 80px; flex-shrink: 0; font-weight: 700;
    color: var(--color-text-primary);
    text-align: left; font-size: 0.9rem;
}
.welfare-item .welfare-val {
    flex: 1; word-break: break-word;
    color: var(--color-text-secondary);
    text-align: left; font-size: 0.9rem; line-height: 1.6;
}
.notice-content-center {
    text-align: center; font-size: 0.9rem; font-weight: normal;
    color: var(--color-text-secondary);
    margin: 12px 0 0;
    padding: 12px 10px 0;
    border-top: 1.5px dashed #999;
    line-height: 1.6;
}
.welfare-center-content {
    text-align: center; color: var(--color-text-secondary);
    font-size: 0.9rem; line-height: 1.6; padding: 10px 0;
}
.welfare-images-full { margin-top: 6px; }
.welfare-images-full img {
    width: 100%; display: block; margin-bottom: 12px;
    border-radius: var(--radius-sm); cursor: zoom-in;
}
.welfare-images-full img:last-child { margin-bottom: 0; }

.welfare-cdk {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 2px 10px; margin: 2px 4px 2px 0;
    background: var(--color-title-bg); border: 1px dashed var(--theme-color);
    color: var(--theme-color); font-family: Consolas, "Courier New", monospace;
    font-size: .85rem; font-weight: 700; border-radius: 4px;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
    user-select: none; letter-spacing: .5px; line-height: 1.4;
    -webkit-touch-callout: none; position: relative;
    min-width: 64px; white-space: nowrap;
}
.welfare-cdk:hover { background: var(--theme-color); color: white; border-style: solid; }
.welfare-cdk.copied {
    background: #22b573 !important; color: white !important;
    border-color: #22b573 !important; border-style: solid !important;
}

.btn-group { display: flex; flex-direction: column; align-items: center; width: 100%; box-sizing: border-box; margin-bottom: 1.2rem; }
.btn-group:last-child { margin-bottom: 0; }
.btn-container { display: flex; justify-content: center; align-items: center; gap: 1rem; width: 100%; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: none; border-radius: var(--radius-md); padding: 0.7rem 1.5rem;
    font-size: 1.2rem; font-weight: 600; cursor: pointer; height: 44px;
    transition: all .2s ease; white-space: nowrap; color: var(--color-text-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,.2); box-shadow: 0 4px 10px rgba(0,0,0,.1);
    font-family: inherit;
}
.btn i { font-size: 1.1em; }
.btn:hover { transform: translateY(-2px); text-shadow: 1px 1px 3px rgba(0,0,0,.3); }
.btn:active, .btn:focus { transform: scale(.98); outline: none; }
.register-btn, .download-btn { background: linear-gradient(180deg, #fe8900, #e67800); }
.register-btn:hover, .download-btn:hover { box-shadow: 0 8px 25px rgba(254,137,0,.5); }
.recharge-btn { background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%); }
.recharge-btn:hover { box-shadow: 0 8px 25px rgba(165,94,234,.5); }

.text-box {
    margin: 0.4rem 0 0; padding: 0.3rem; border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.4;
    color: var(--color-text-primary);
    background: var(--color-bg-section); box-sizing: border-box;
    overflow-wrap: break-word; font-weight: 600; white-space: normal;
    text-align: center; width: 100%;
}
.desc-content { font-size: 0.9rem; line-height: 1.7; color: var(--color-text-secondary); }
.desc-content p { font-size: 0.9rem; margin-bottom: 0.8rem; }
.desc-content img { max-width: 100%; margin: 0.5rem 0; border-radius: var(--radius-sm); }
.empty-tip { text-align: center; padding: 30px 0; color: var(--color-text-muted); font-size: .85rem; }

.img-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 9999; display: none; align-items: center; justify-content: center; }
.img-lightbox.show { display: flex; }
.img-lightbox img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    transition: opacity .3s ease-out;
}
.img-lightbox img:not(.loaded) { opacity: 0; }
.img-lightbox img.loaded { opacity: 1; }
.img-lightbox-close { position: absolute; top: 15px; right: 20px; width: 44px; height: 44px; background: rgba(255,255,255,.15); color: white; border-radius: 50%; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
body.lightbox-open { overflow: hidden; }

.footer { background: var(--color-card-bg); padding: 1.5rem; }
.footer-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding-bottom: 1rem; }
.footer-col h4 { font-size: .95rem; margin-bottom: .8rem; color: var(--color-text-primary); }
.footer-col p { font-size: .8rem; color: var(--color-text-secondary); line-height: 2; }
.footer-col a { color: var(--theme-color); }
.footer-bottom { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--color-border-light); padding-top: 1rem; text-align: center; font-size: .8rem; color: var(--color-text-muted); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
    body { padding-bottom: 60px; --bottom-h: 60px; }
    .image-container { height: 300px; }
    .junction-cards-container { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .junction-card { height: 80px; padding: 0.6rem; gap: 0.6rem; }
    .junction-card-icon { width: 38px; height: 38px; }
    .junction-card-name { font-size: 0.85rem; }
    .junction-card-description { font-size: 0.7rem; }
    .main-content { padding: 1.5rem; padding-top: 7rem; }
    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .top-search-bar .search-container { padding: 5px 150px; }
    .search-logo-text { font-size: 21px; }
    .search-logo-icon { width: 38px; height: 38px; }
    .search-input { height: 30px; font-size: 13px; }
    .search-input::placeholder { font-size: 12px; }
    .platform-tabs { gap: 4px; padding: 0 4px; height: 26px; }
    .platform-tab { font-size: 11px; padding: 0 4px; height: 22px; }
    .bottom-nav { height: 60px; max-width: 100%; }
    .nav-item i { font-size: 1.3rem; }

    .top-section { padding: 20px 15px 10px; }
    .detail-hero { padding-bottom: 45px; }
    .sticky-container { margin-top: -45px; }
    .gd-icon { width: 70px; height: 70px; }
    .gd-center { margin-left: 12px; padding-right: 82px; }
    .gd-title { font-size: 1.4rem; }
    .gd-rating-container { width: 70px; height: 70px; bottom: 10px; right: 15px; }
    .gd-rating { font-size: 1rem; }
    .gd-score { font-size: 0.95rem; }
    .gd-rating-text { font-size: 0.55rem; }
    .hero-nav-inner { padding: 8px 12px; }
    .hero-nav-inner a { font-size: 1rem; }
    .theme-toggle-btn-detail { right: 34px; }
    .detail-nav { padding: 8px 12px; gap: 8px; }
    .detail-nav a { font-size: 0.85rem; padding: 5px 14px; }
    .detail-body { padding: 1.2rem 0.9rem; gap: 1.2rem; }
    .detail-section { padding: 1.2rem 1rem; scroll-margin-top: 110px; }
    .detail-section .section-title { font-size: 1.2rem; padding: 10px 14px 10px 22px; }
    .detail-section .section-title::before { width: 6px; left: 6px; top: 6px; bottom: 6px; }
    .welfare-item .welfare-label { width: 75px; font-size: 0.9rem; }
    .welfare-item .welfare-val { font-size: 0.9rem; }
    .notice-content-center, .welfare-center-content { font-size: 0.9rem; }
    .btn-container { gap: 0.8rem; }
    .btn { padding: 0.7rem 1.2rem; font-size: 1.2rem; height: 44px; }
    .welfare-cdk { font-size: .8rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 576px) {
    body { padding-bottom: 45px; }
    .top-section { padding: 15px 15px 10px; }
    .detail-hero { padding-bottom: 40px; }
    .sticky-container { margin-top: -40px; }
    .gd-icon { width: 60px; height: 60px; }
    .gd-center { padding-right: 70px; }
    .gd-title { font-size: 1.3rem; }
    .gd-rating-container { width: 60px; height: 60px; bottom: 10px; right: 15px; }
    .gd-rating { font-size: 0.95rem; }
    .gd-score { font-size: 0.9rem; }
    .gd-rating-text { font-size: 0.5rem; }
    .hero-nav-inner a { font-size: 0.95rem; }
    .theme-toggle-btn-detail { right: 29px; width: 28px; height: 28px; font-size: 14px; }
    .detail-nav a { font-size: 0.8rem; padding: 4px 12px; }
    .btn { font-size: 1.1rem; padding: 0.5rem 1rem; height: 40px; }
    .text-box { font-size: .85rem; }
    .desc-content, .desc-content p { font-size: 0.85rem; }
    .welfare-item .welfare-label { width: 70px; font-size: 0.85rem; }
    .welfare-item .welfare-val { font-size: 0.85rem; }
    .notice-content-center, .welfare-center-content { font-size: 0.85rem; }
    .welfare-cdk { font-size: .75rem; padding: 2px 6px; }
    .detail-body { padding: 1rem 0.7rem; gap: 1rem; }
    .detail-section { padding: 1rem 0.8rem; }
}

@media (max-width: 480px) {
    .image-container { height: 250px; }
    .junction-cards-container { gap: 6px; }
    .junction-card { height: 53px; padding: 0.4rem; gap: 0.4rem; }
    .junction-card-icon { width: 32px; height: 32px; }
    .junction-card-name { font-size: 0.75rem; }
    .junction-card-description { font-size: 0.6rem; }
    .main-content { padding: 1rem; padding-top: 4.5rem; }
    .game-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .game-card { height: 95px; padding: 0.6rem; gap: 0.8rem; }
    .game-icon { width: 65px; height: 65px; }
    .game-name { font-size: 1.05rem; }
    .game-tag { font-size: 0.6rem; padding: 0 .3rem; }
    .top-search-bar .search-container { padding: 5px 110px; }
    .search-logo-text { font-size: 15px; right: 10px; }
    .search-logo-icon { width: 30px; height: 30px; left: 10px; }
    .search-input { height: 26px; font-size: 12px; }
    .theme-toggle-btn { left: 46px; width: 28px; height: 28px; font-size: 14px; }
    .theme-toggle-btn-detail { right: 21px; width: 26px; height: 26px; font-size: 13px; }
    .platform-tabs { gap: 3px; padding: 0 3px; height: 24px; }
    .platform-tab { font-size: 10px; padding: 0 3px; height: 20px; }
    .ip-iframe-wrapper { width: calc(100% + 2rem); margin-left: -1rem; }
    .bottom-nav { height: 45px; }
    .nav-item i { font-size: 1.2rem; margin-bottom: -4px; }
    .nav-item { font-size: 0.65rem; }
}

@media (max-width: 400px) {
    .top-section { padding: 12px 12px 10px; }
    .detail-hero { padding-bottom: 38px; }
    .sticky-container { margin-top: -38px; }
    .gd-icon { width: 50px; height: 50px; }
    .gd-center { padding-right: 58px; }
    .gd-title { font-size: 1.1rem; }
    .gd-rating-container { width: 50px; height: 50px; bottom: 10px; right: 12px; }
    .gd-rating { font-size: 0.85rem; }
    .gd-score { font-size: 0.8rem; }
    .gd-rating-text { font-size: 0.45rem; }
    .hero-nav-inner a { font-size: 0.9rem; }
    .detail-nav a { font-size: 0.75rem; padding: 4px 10px; }
    .btn { font-size: 0.9rem; padding: 0.5rem 1rem; height: 35px; }
    .text-box { font-size: .75rem; }
    .desc-content, .desc-content p { font-size: 0.75rem; }
    .welfare-item .welfare-label { width: 65px; font-size: 0.75rem; }
    .welfare-item .welfare-val { font-size: 0.75rem; }
    .notice-content-center, .welfare-center-content { font-size: 0.75rem; }
    .detail-section .section-title { padding: 8px 12px 8px 18px; font-size: 1.15rem; }
    .detail-section .section-title::before { width: 5px; left: 5px; top: 5px; bottom: 5px; }
}

@media (max-width: 360px) {
    .image-container { height: 220px; }
    .junction-card { height: 45px; padding: 0.4rem; gap: 0.4rem; }
    .junction-card-icon { width: 32px; height: 32px; }
    .main-content { padding: 1rem; padding-top: 4rem; }
    .game-card { height: 85px; padding: 0.7rem; gap: 0.7rem; }
    .game-icon { width: 55px; height: 55px; }
    .top-search-bar .search-container { padding: 5px 80px; }
    .search-logo-text { font-size: 13px; right: 10px; }
    .search-input { height: 25px; font-size: 11px; }
    .bottom-nav { height: 45px; }
}

/* ========== 兑换方法配图（≥576px 限宽 50%，左对齐，等比不裁切） ========== */
.dhm-images {
    margin-top: 8px;
    display: flex; flex-direction: column; gap: 8px;
    align-items: flex-start;
}
.dhm-images img {
    width: 100%; height: auto; max-width: 100%;
    display: block;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
}
@media (min-width: 576px) {
    .dhm-images img { max-width: 50%; }
}

/* ========== 统一富文本内超链接 ========== */
.desc-content a:not(.btn),
.text-box a:not(.btn),
.welfare-val a:not(.btn),
.welfare-center-content a:not(.btn),
.notice-content-center a:not(.btn) {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color .18s ease, background-color .18s ease, padding .18s ease;
}
@media (hover: hover) and (pointer: fine) {
    .desc-content a:not(.btn):hover,
    .text-box a:not(.btn):hover,
    .welfare-val a:not(.btn):hover,
    .welfare-center-content a:not(.btn):hover,
    .notice-content-center a:not(.btn):hover {
        color: #fff;
        background: #ff4757;
        text-decoration: none;
        border-radius: 3px;
        padding: 1px 5px;
        margin: -1px -5px;
    }
}

/* ========== 暗色模式 ========== */
html.dark-mode {
    --color-bg-primary: #1a1c20;
    --color-bg-section: #202327;
    --color-card-bg: #282b30;
    --color-title-bg: rgba(254,137,0,.14);
    --color-input-bg: rgba(255,255,255,.08);
    --color-text-primary: #e8eaed;
    --color-text-secondary: #a8aeb6;
    --color-text-muted: #767c84;
    --color-border-medium: #3a3d42;
    --color-border-light: #2f3237;
    --color-skeleton: #2a2d32;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,.4);
}
html.dark-mode body.page-detail { background-color: var(--color-bg-primary); }
html.dark-mode .search-input::placeholder { color: rgba(255,255,255,.4); }
html.dark-mode .top-search-bar.scrolled .search-input::placeholder,
html.dark-mode .search-input:focus::placeholder { color: rgba(0,0,0,.5); }
html.dark-mode .junction-card { background: var(--color-card-bg); }
html.dark-mode .junction-card:hover { background: var(--color-bg-section); }
html.dark-mode .bottom-nav { background: rgba(30,32,36,.9); }
html.dark-mode .nav-item { color: rgba(232,234,237,.7); }
html.dark-mode .detail-nav-wrap { background-image: none; background-color: var(--color-card-bg); }
html.dark-mode .gd-rating-container { background: rgba(50,45,40,.95); border-color: rgba(254,137,0,.3); }

/* ========== QQ群 / 客服QQ 联系区块 ========== */
.qq-contact-block {
    margin-top: 6px;
}
.qq-line {
    line-height: inherit;
}
.qq-line b {
    color: var(--color-text-primary);
    font-weight: 700;
}
.qq-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 18px;
    padding: 0 6px;
    margin: 0 6px;
    background: transparent;
    border: 1px solid var(--color-border-medium);
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: normal;
    line-height: 1;
    color: var(--color-text-secondary);
    vertical-align: middle;
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}
.qq-copy-btn.copied {
    border-color: #22b573;
    color: #22b573;
}
.qq-link {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color .18s ease, background-color .18s ease, padding .18s ease;
}
@media (hover: hover) and (pointer: fine) {
    .qq-link:hover {
        color: #fff;
        background: #ff4757;
        text-decoration: none;
        border-radius: 3px;
        padding: 1px 5px;
        margin: -1px -5px;
    }
}
