:root {
    --bg-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --accent-color: #ffcc00; /* 金黄色 */
    --text-main: #e2e8f0;    /* 浅灰文字 */
    --text-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.08); /* 磨砂玻璃底色 */
}

/* XKing SEO navigation and long-form content */
.site-nav{max-width:1180px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:rgba(5,15,31,.94);border-bottom:1px solid rgba(255,255,255,.08)}
.nav-brand img{width:210px;height:54px;object-fit:contain}
.nav-links{display:flex;flex-wrap:wrap;gap:16px}.nav-links a{color:#fff;font-weight:700;text-decoration:none}.nav-links a:hover{color:var(--accent-color)}
.breadcrumbs{font-size:14px;margin:12px 0 22px}.breadcrumbs a{color:var(--accent-color)}
.article-header,.policy-page{max-width:900px;margin:0 auto}.eyebrow{color:var(--accent-color)!important;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.article-lead{font-size:1.15rem}.article-meta{font-size:.9rem;opacity:.75}
.article-page h2,.policy-page h2{margin-top:34px}.article-actions{margin:30px 0}.related-games{margin-top:50px;padding-top:25px;border-top:1px solid rgba(255,255,255,.15)}
.related-item{display:block;padding:12px;border-radius:10px;background:rgba(255,255,255,.06);color:#fff;text-decoration:none}.related-item img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:7px;margin-bottom:10px}
.policy-hero{width:100%;height:auto;border-radius:14px;margin:12px 0 24px}
footer{padding:28px 20px;text-align:center}footer a{color:var(--accent-color)}
@media(max-width:700px){.site-nav{align-items:flex-start;flex-direction:column}.nav-links{gap:10px;font-size:14px}.game-box{grid-template-columns:1fr}}
/* 品牌风格变量 - 差异化调整 */
:root {
    --brand-primary: #ff4500; /* 修改了主题色，使其与旧品牌风格区分 */
    --brand-name: "XKing";
}

/* 统一修改品牌样式类 */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient) !important;
    color: var(--text-main) !important;
    line-height: 1.7;
    margin: 0;
    padding: 10px 10px;
}

/* 主布局 */
.main-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

header { text-align: center; }

/* 容器内部清理 */
.container, .about-section, .faq-section, .game-container, .download-section, .features-section {
    background: transparent !important;
}

/* 标题与文字颜色 */
h1, h2, h3, .logo { color: var(--accent-color) !important; }
p, li, .faq-item span, #score-display { color: var(--text-main) !important; }
strong { color: var(--text-white) !important; }

/* 链接统一颜色 */
a { color: var(--accent-color) !important; text-decoration: none; transition: 0.3s; }
a:hover { text-decoration: underline; opacity: 0.8; }

/* 游戏卡片布局 */
.game-item {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 20px !important;
    text-align: left !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* 图片适配 */
.game-item img, .download-section img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

/* 按钮风格 */
.btn {
    background: var(--accent-color) !important;
    color: #000 !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    text-align: center;
}
.btn-game { margin-bottom: 10px !important; width: auto !important; }
.btn-details { margin-top: 5px !important; display: block; border: 1px solid var(--accent-color); padding: 5px 10px; border-radius: 5px; }

/* 信任证章 */
.trust-badges { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.badge-card { display: flex; align-items: center; justify-content: flex-start; gap: 15px; background: rgba(0,0,0,0.25); padding: 16px; border-radius: 12px; }

/* 翻牌游戏网格 */
.memory-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 50px) !important;
    gap: 8px !important;
    margin: 15px auto !important;
    width: 108px !important;
    justify-content: center;
}
.card-box { width: 50px; height: 50px; background: #2c3e50; color: white; display: flex; align-items: center; justify-content: center; border-radius: 5px; cursor: pointer; }

/* 响应式适配 */
@media (max-width: 600px) {
    .main-wrapper { border-radius: 0 !important; }
    .btn-group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .btn { width: 90%; }
}

@media (min-width: 768px) {
    .trust-badges { flex-direction: row; }
    .badge-card { flex: 1; justify-content: center; }
    .download-section { display: flex !important; align-items: center; justify-content: center; gap: 40px; }
}

/* FAQ 列表容器 */
.faq-list { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 20px 0;
}

/* 每一个独立的 FAQ 卡片 */
.faq-item { 
    background: rgba(0, 0, 0, 0.25) !important; /* 深色磨砂质感 */
    padding: 20px; 
    margin-bottom: 15px; 
    border-radius: 15px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

/* 问题标题 */
.faq-question { 
    font-weight: 800; 
    color: var(--accent-color) !important; /* 金黄色标题 */
    display: flex; 
    align-items: center; 
    gap: 12px;
    font-size: 17px;
    margin-bottom: 10px;
}

/* 问号图标装饰 */
.faq-icon {
    background: var(--accent-color);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 回答内容 */
.faq-answer { 
    color: var(--text-main) !important; 
    line-height: 1.6; 
    padding-left: 36px; /* 与标题文字对齐 */
    font-size: 15px;
    opacity: 0.9;
}

/* Logo 容器样式 */
.logo-link {
    display: block;
    text-align: center;
}

/* 统一 Logo 图片尺寸 */
.site-logo {
    max-width: 200px;  /* 移动端 Logo 宽度 */
    width: 100%;       /* 确保不会溢出 */
    height: auto;      /* 保持比例 */
    display: inline-block;
    vertical-align: middle;
}

/* PC 端适配：稍微放大一点 */
@media (min-width: 768px) {
    .site-logo {
        max-width: 280px; /* 电脑端 Logo 稍大 */
    }
}

/* 游戏画廊布局 */
.game-gallery {
    display: flex;
    justify-content: space-between; /* 或者使用 space-around */
    gap: 15px; /* 图片之间的间距 */
    margin: 20px 0;
}

.game-gallery img {
    width: 32%; /* 让三张图片各占约三分之一宽度 */
    height: auto;
    border-radius: 8px; /* 添加圆角更美观 */
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 针对手机端的响应式调整 */
@media (max-width: 600px) {
    .game-gallery {
        flex-direction: column; /* 手机端改为垂直排列 */
    }
    .game-gallery img {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 优化游戏介绍文字 */
.game-desc {
    font-size: 14px;
    color: #a0aec0 !important; /* 比主文字颜色稍暗，增加层次感 */
    margin: 8px 0;
    line-height: 1.5;
}

/* 优化按钮组间距 */
.btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

/* 手机端响应式适配 */
@media (max-width: 600px) {
    .game-item {
        flex-direction: column; /* 手机端改为垂直排列 */
        text-align: center;
        padding: 20px !important;
    }

    .game-item img {
        width: 100% !important;
        height: 180px !important; /* 手机端给图片多一点空间 */
        margin-bottom: 15px;
    }

    .game-info {
        width: 100%;
        text-align: center;
    }

    .btn-group {
        flex-direction: column; /* 手机端按钮垂直堆叠 */
        gap: 8px;
    }

    .btn-game, .btn-details {
        width: 100% !important; /* 按钮撑满全屏 */
        margin: 0 !important;
    }

    /* 翻牌游戏网格在手机上居中 */
    .memory-grid {
        margin: 15px auto !important;
    }
}

/* 1. 顶部容器：从Logo的正方形改为 Banner 的扁长形 */
.header-carousel {
    width: 95%;           /* 适配所有设备：宽度设为屏幕的 95% */
    max-width: 688px;    /* 限制最大宽度，正好是你这张图片的原生宽度 */
    margin: 15px auto 10px; /* 居中，上下留间距 */
    position: relative;
    overflow: hidden;
    border-radius: 12px;  /* 增加圆角，匹配现代 UI */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* 阴影增强立体感 */
}

/* 2. 滚动轨道 */
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* 核心：支持触摸左右滑动 */
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

/* 3. 单个幻灯片 */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* 4. 图片填充方式：核心修改！！！ */
.activity-banner {
    width: 100%;
    /* 关键比例适配：根据你图片 688x236，锁定比例约为 2.9 : 1 */
    /* 这能保证在任何手机、平板上，图片都会等比例缩小，决不拉伸变形 */
    aspect-ratio: 688 / 236; 
    object-fit: fill;      /* 使用 fill 强行填满容器，因为我们要锁定比例 */
    display: block;
}

/* 5. 小圆点指示器 */
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: #fff;
    width: 14px; /* 激活时变为长条 */
    border-radius: 3px;
}

/* 针对手机小屏的优化 */
@media (max-width: 480px) {
    .header-carousel {
        border-radius: 8px; /* 手机端圆角稍微小一点 */
        width: 98%;        /* 手机端占满 */
    }
}
.carousel-track {
    cursor: grab; /* 鼠标放上去时显示“小手”形状，提示用户这里可以拖拽 */
}
