/* ============================================================
   QQPOKER 正版官网 — 全面SEO重构版 CSS
   qq6181.com | 2026
   ============================================================ */

/* === 基础重置 === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    background-color: #001322;
    color: #d3effa;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

p { margin: 0; }
strong { font-weight: 600; }

ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === 无障碍 & SEO工具类 === */
.sr-title,
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #e5cd74;
    color: #001322;
    padding: 8px 12px;
    z-index: 999;
    font-size: 0.875rem;
    font-weight: 700;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* === 顶部进度条 === */
#page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #e5cd74, #f0b429);
    width: 0%;
    z-index: 200;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* === 色彩变量 === */
:root {
    --gold: #e5cd74;
    --gold-deep: #c9a832;
    --gold-bright: #f0b429;
    --dark: #001322;
    --dark-card: #192f45;
    --dark-card2: #1e3f5c;
    --blue-border: rgba(79, 172, 254, 0.18);
    --gold-border: rgba(229, 205, 116, 0.25);
    --text-main: #d3effa;
    --text-sub: #7fafc0;
    --text-muted: #4a7a9b;
}

.text-gold { color: var(--gold); }

/* ============================================================
   HEADER
   ============================================================ */
.head {
    background: linear-gradient(135deg, #1a3a55 0%, #0d2038 100%);
    border-bottom: 1px solid rgba(229, 205, 116, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    max-width: 576px;
    margin: 0 auto;
}

.head-logo {
    width: auto;
    height: 2.6rem;
    object-fit: contain;
}

.head-cta-btn {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(229, 205, 116, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s;
    white-space: nowrap;
}

.head-cta-btn:hover,
.head-cta-btn:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(229, 205, 116, 0.35);
}

/* ============================================================
   BUTTONS — 统一金色按钮系统
   ============================================================ */
.btn-gold {
    background: linear-gradient(135deg, #f0d76a 0%, #c9a832 100%);
    color: #2d1800;
    font-weight: 700;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-gold:hover,
.btn-gold:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 205, 116, 0.4);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-full {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
}

/* ============================================================
   HERO — 首屏单张大图（SEO最优结构）
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-img-wrap {
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, transparent, #001322);
    pointer-events: none;
}

/* 浮动牌面装饰 */
.hero-card-deco {
    position: absolute;
    z-index: 5;
}

.hero-card-1 { top: 4.5rem; left: 2.5rem; }
.hero-card-2 { right: 2rem; top: 5rem; }
.hero-card-3 { left: 2.5rem; bottom: 1.3rem; }

/* ============================================================
   主CTA按钮（首屏下方大按钮）
   ============================================================ */
.main-cta-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* ============================================================
   SEO介绍段落（爬虫重点区域）
   ============================================================ */
.seo-intro {
    padding: 14px 18px;
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(79, 172, 254, 0.06), rgba(229, 205, 116, 0.03));
    color: #e8f4fb;
    line-height: 1.9;
    font-size: 14px;
    text-align: left;
}

.seo-intro strong {
    color: var(--gold);
    font-weight: 600;
}

.seo-intro p {
    margin: 0;
}

/* ============================================================
   通用区块样式
   ============================================================ */
.section-pad {
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-heading {
    display: flex;
    align-items: center;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ============================================================
   卡片背景
   ============================================================ */
.card-bg {
    background: linear-gradient(160deg, #1e3f5c 0%, #192f45 100%);
    border: 1px solid var(--blue-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.card-inner-dark {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(104, 171, 230, 0.3);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.card-inner-dark:hover {
    background: rgba(0, 0, 0, 0.45);
}

/* ============================================================
   STATS 数据统计
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.stat-card {
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover { transform: translateY(-3px); }

.stat-num {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.72rem;
    color: #7fafc0;
    margin-top: 0.25rem;
}

/* ============================================================
   新手礼包
   ============================================================ */
.title-img-wrap {
    display: flex;
    justify-content: center;
}

.title-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.gift-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(104, 171, 230, 0.3);
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.gift-icon-wrap {
    flex-shrink: 0;
    width: 72px;
}

.gift-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gift-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.gift-tag-icon { font-size: 1.2rem; }
.gift-tag-name { font-size: 0.7rem; color: #b0cfe0; margin-top: 0.2rem; }

/* ============================================================
   核心优势
   ============================================================ */
.feature-item {
    display: flex;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.28);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.feature-item:last-child { margin-bottom: 0; }

.feature-icon {
    font-size: 1.2rem;
    line-height: 1.4;
    min-width: 1.6rem;
    text-align: center;
    flex-shrink: 0;
}

.feature-body { flex: 1; }

.feature-title {
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.feature-desc {
    font-size: 0.75rem;
    color: #9abccf;
    line-height: 1.65;
}

/* ============================================================
   下载按钮
   ============================================================ */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem;
    text-align: left;
}

.download-store {
    font-size: 0.7rem;
    color: #7fafc0;
}

.download-os {
    font-size: 0.875rem;
    font-weight: 700;
}

/* ============================================================
   社群俱乐部
   ============================================================ */
.community-list { margin-bottom: 0; }

.community-item {
    display: flex;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    gap: 0.6rem;
}

.community-bullet {
    flex-shrink: 0;
    line-height: 1.6;
    font-size: 0.85rem;
}

/* ============================================================
   活动列表
   ============================================================ */
.activity-list { width: 100%; }

.activity-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(104, 171, 230, 0.28);
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.activity-card:last-child { margin-bottom: 0; }

.activity-img {
    width: 100%;
    height: auto;
    display: block;
}

.activity-label {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    gap: 0.75rem;
}

.activity-tag {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.activity-desc {
    color: #e0eef5;
    font-size: 0.8rem;
}

.activity-hidden { display: none; }

.toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(229, 205, 116, 0.45);
    color: #e5cd74;
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.toggle-btn:hover {
    background: rgba(229, 205, 116, 0.1);
    transform: translateY(-1px);
}

#toggleIcon {
    transition: transform 0.25s ease;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.faq-item:last-child { margin-bottom: 0; }

.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 700;
    list-style: none;
    user-select: none;
    gap: 0.5rem;
    transition: background 0.15s ease;
    line-height: 1.4;
}

.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { display: none; }

.faq-summary:hover {
    background: rgba(229, 205, 116, 0.06);
}

.faq-arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: transform 0.25s ease;
    color: var(--gold);
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 0.9rem 0.8rem;
    font-size: 0.8rem;
    color: #9abccf;
    line-height: 1.7;
    border-top: 1px solid rgba(79, 172, 254, 0.1);
    padding-top: 0.6rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(to bottom, #1a3a55, #0d2038);
    border-top: 1px solid rgba(79, 172, 254, 0.12);
    padding-bottom: 6rem; /* 为悬浮按钮留空间 */
}

.footer-logo-wrap {
    display: block;
    overflow: hidden;
}

.footer-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-info {
    text-align: center;
    padding: 1rem 1rem 0.5rem;
    color: var(--text-sub);
}

.footer-copy {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.footer-notice {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-link {
    font-size: 0.7rem;
    color: #4a7a9b;
    transition: color 0.15s ease;
}

.footer-link:hover { color: var(--gold); }

.footer-sep {
    font-size: 0.7rem;
    color: #2a4a60;
}

/* SEO关键词Footer文字（自然分布，小字但可抓取）*/
.footer-seo-text {
    font-size: 0.65rem;
    color: #2a4a60;
    line-height: 1.8;
    padding-top: 0.25rem;
    letter-spacing: 0.01em;
}

/* ============================================================
   悬浮CTA按钮
   ============================================================ */
.float-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    max-width: 544px;
    padding: 0.9rem 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #f0d76a 0%, #c9a832 100%);
    color: #2d1800;
    text-align: center;
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(9, 16, 25, 0.5), 0 0 20px rgba(229, 205, 116, 0.22);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.float-cta-animate {
    animation: float-bob 2.8s ease-in-out infinite;
}

@keyframes float-bob {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-7px) scale(1.02); }
}

.float-cta-text { line-height: 1.3; }

.float-cta.hidden-float {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   返回顶部按钮
   ============================================================ */
.back-top-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(30, 63, 92, 0.85);
    border: 1px solid rgba(229, 205, 116, 0.3);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 140;
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.back-top-btn:hover { transform: translateY(-2px); }

/* ============================================================
   Shine 扫光效果
   ============================================================ */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 220%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translateX(-100%);
    animation: shine-sweep 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% { transform: rotate(30deg) translateX(-100%); }
    60%, 100% { transform: rotate(30deg) translateX(100%); }
}

/* ============================================================
   浮动动画（装饰牌面）
   ============================================================ */
.floating {
    animation: float-deco 3.2s ease-in-out infinite;
}

@keyframes float-deco {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}

/* ============================================================
   渐变文字动画
   ============================================================ */
.text-gradient {
    background: linear-gradient(90deg, #f6e05e, #c9a832, #f6e05e);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-slide 2.8s ease infinite;
}

@keyframes gradient-slide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   RemixIcon 修复（防CDN字体未加载导致乱码）
   ============================================================ */
:where([class^="ri-"])::before { content: "\f3c2"; }

/* ============================================================
   移动端响应式
   ============================================================ */
@media (max-width: 480px) {
    .main-cta-btn { font-size: 1.1rem; }
    .stat-num { font-size: 1rem; }
    .float-cta { font-size: 0.8rem; }
    .float-cta-text { font-size: 0.8rem; }
    .section-heading { font-size: 0.875rem; }
    .title-img { max-width: 240px; }
    .gift-icon-wrap { width: 56px; }
}

/* ============================================================
   触摸设备：禁用hover动效
   ============================================================ */
@media (hover: none) {
    .main-cta-btn:hover { transform: none; box-shadow: none; }
    .activity-card:hover { transform: none; }
    .stat-card:hover { transform: none; }
    .btn-gold:hover { transform: none; box-shadow: none; }
    .head-cta-btn:hover { transform: none; box-shadow: none; }
    .toggle-btn:hover { transform: none; background: none; }
}

/* ============================================================
   高对比度模式支持
   ============================================================ */
@media (prefers-contrast: high) {
    .seo-intro { border-color: rgba(229, 205, 116, 0.6); }
    .card-bg { border-color: rgba(79, 172, 254, 0.35); }
    .activity-card { border-color: rgba(104, 171, 230, 0.5); }
}

/* ============================================================
   减少动效（用户设置）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .float-cta { animation: none; }
    .floating { animation: none; }
    .shine::after { animation: none; }
    .text-gradient { animation: none; }
}

/* ============================================================
   打印样式
   ============================================================ */
@media print {
    .float-cta,
    .back-top-btn,
    .head,
    #page-progress { display: none !important; }
    body { background: #fff; color: #000; }
    .card-bg { background: #f8f8f8; border: 1px solid #ccc; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.7rem; color: #666; }
    a[rel~="nofollow"]::after { content: ""; }
}

/* ============================================================
   锚点导航 Anchor Nav（站内跳转，增强爬虫内链）
   ============================================================ */
.anchor-nav {}

.anchor-nav-inner {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.anchor-nav-inner::-webkit-scrollbar { display: none; }

.anchor-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(30, 63, 92, 0.7);
    border: 1px solid rgba(229, 205, 116, 0.25);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.anchor-nav-item:hover,
.anchor-nav-item:focus-visible {
    background: rgba(229, 205, 116, 0.12);
    border-color: rgba(229, 205, 116, 0.5);
    transform: translateY(-1px);
}

/* ============================================================
   QQPOKER平台介绍 Section
   ============================================================ */
.intro-lead-text {
    font-size: 0.875rem;
    color: #cce5f5;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.intro-lead-text strong { color: var(--gold); font-weight: 600; }

/* 新手浏览指引 */
.guide-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(79, 172, 254, 0.18);
    background: rgba(0, 0, 0, 0.22);
}

.guide-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(229, 205, 116, 0.07);
    border-bottom: 1px solid rgba(229, 205, 116, 0.15);
}

.guide-title-text {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.guide-step {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(79, 172, 254, 0.1);
}

.guide-step-last { border-bottom: none; }

.guide-step-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.guide-step-num {
    color: #f0b429;
}

.guide-step-desc {
    font-size: 0.78rem;
    color: #9abccf;
    line-height: 1.7;
}

.guide-step-desc strong { color: #d3effa; font-weight: 500; }

/* ============================================================
   QQPOKER官网页面介绍 Block（底部SEO黄金文字区）
   ============================================================ */
.page-intro-block {
    background: linear-gradient(160deg, rgba(229, 205, 116, 0.08) 0%, rgba(30, 63, 92, 0.6) 100%);
    border: 1px solid rgba(229, 205, 116, 0.28);
    border-radius: 12px;
    padding: 1.1rem 1.1rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.page-intro-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.page-intro-text {
    font-size: 0.825rem;
    color: #cce5f5;
    line-height: 1.9;
}

.page-intro-text strong {
    color: var(--gold);
    font-weight: 600;
}
