/* CSS变量定义 */
@font-face {
    font-family: 'DouyinSansBold';
    src: url('../fonts/DouyinSansBold.woff2') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #fe8900;
    --color-primary-dark: #e67800;
    --color-text-primary: #111;
    --color-text-secondary: #333;
    --color-text-muted: #666;
    --color-text-white: #fff;
    --color-bg-white: #fff;
    --gradient-orange: linear-gradient(180deg, #fe8900, #e67800);
    --gradient-red: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    --gradient-purple: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
    --btn-radius: 12px;
}

/* 基础样式设置 */
body {
    background: var(--color-bg-white);
    color: var(--color-text-primary);
    font-family: 'DouyinSansBold', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* 轮播图区域 */
.gd-shots-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 20%, #4a4a4a 40%, #8a8a8a 60%, #c0c0c0 80%, #fff 100%);
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.gd-shots-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0;
    max-width: 1500px;
    margin: 0 auto;
}

/* 默认竖版轮播图 */
.gd-shots {
    position: relative;
    width: 100%;
    height: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.gd-shot-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    width: 300px;
    height: 533px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.6;
}

/* 横版轮播图样式 */
.gd-shots.horizontal {
    height: 445px;
}

.gd-shots.horizontal .gd-shot-item {
    width: 600px;
    height: 337.5px;
}

/* 轮播图激活状态 */
.gd-shot-item.active {
    opacity: 1;
    transform: translateX(-50%) scale(1.3);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.gd-shots.horizontal .gd-shot-item.active {
    transform: translateX(-50%) scale(1.2);
}

.gd-shot-item.prev {
    opacity: 0.8;
    transform: translateX(calc(-50% - 240px)) scale(0.9);
    z-index: 5;
}

.gd-shots.horizontal .gd-shot-item.prev {
    transform: translateX(calc(-50% - 400px)) scale(0.9);
}

.gd-shot-item.next {
    opacity: 0.8;
    transform: translateX(calc(-50% + 240px)) scale(0.9);
    z-index: 5;
}

.gd-shots.horizontal .gd-shot-item.next {
    transform: translateX(calc(-50% + 400px)) scale(0.9);
}

.gd-shot-item.far-prev {
    opacity: 0.4;
    transform: translateX(calc(-50% - 480px)) scale(0.8);
    z-index: 1;
}

.gd-shots.horizontal .gd-shot-item.far-prev {
    transform: translateX(calc(-50% - 800px)) scale(0.8);
}

.gd-shot-item.far-next {
    opacity: 0.4;
    transform: translateX(calc(-50% + 480px)) scale(0.8);
    z-index: 1;
}

.gd-shots.horizontal .gd-shot-item.far-next {
    transform: translateX(calc(-50% + 800px)) scale(0.8);
}

.gd-shot-item.hidden {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
    z-index: 0;
}

.gd-shot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* 游戏详情区域 */
.game-detail {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* 主容器 */
.main-container {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    position: relative;
    overflow: hidden;
}

/* 顶部区域 */
.top-section {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 1.5rem;
}

.gd-icon {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.gd-center {
    flex: 1;
    min-width: 0;
    margin-left: 1rem;
    position: relative;
    min-height: 75px;
}

.gd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
}

/* 标签区域 */
.tags-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.gd-meta {
    display: flex;
    gap: 0.3rem;
    align-items: flex-end;
}

.gd-chip {
    display: inline-flex;
    align-items: center;
    background: #fff5eb;
    border: 1px solid #fe8900;
    color: #fe8900;
    border-radius: 999px;
    padding: .2rem .5rem;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.2;
}

/* 评分区域 */
.gd-rating-container {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff5eb;
    border-radius: 12px;
    border: 1px solid #ffe4cc;
    box-shadow: 0 2px 6px rgba(254, 137, 0, 0.1);
    width: 75px;
    height: 75px;
    text-align: center;
}

.gd-rating {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .15rem;
}

.gd-score {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
}

.gd-rating-text {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* 按钮区域 */
.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.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(--btn-radius);
    padding: 0.7rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    height: 44px;
    text-decoration: none;
    transition: all .2s ease;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: 100%;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--color-text-white);
}

.btn:active,
.btn:focus {
    transform: scale(0.98);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    outline: none;
}

.btn:hover {
    transform: translateY(-2px);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* QQ群按钮 */
.qq-group-btn {
    background: var(--gradient-red);
}

.qq-group-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* 通用按钮样式 */
.register-btn,
.download-btn,
.welfare-btn {
    background: var(--gradient-orange);
}

.register-btn:hover,
.download-btn:hover,
.welfare-btn:hover {
    box-shadow: 0 8px 25px rgba(254, 137, 0, 0.5);
}

/* 充值按钮 */
.recharge-btn {
    background: var(--gradient-purple);
}

.recharge-btn:hover {
    box-shadow: 0 8px 25px rgba(165, 94, 234, 0.5);
}

/* 文本框样式 */
.text-box {
    width: auto;
    margin: 0.1rem 0.1rem 0;
    padding: 0.3rem;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #000000;
    background: #f9f9f9;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-weight: 600;
    white-space: normal;
    text-align: center;
}

/* 内容区域 */
.gd-section {
    margin-top: 1.5rem;
}

.gd-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fe8900;
    margin-bottom: .8rem;
    text-align: left;
}

.gd-content {
    color: #333;
    line-height: 1.6;
    font-size: .9rem;
    text-align: left;
}

.gd-feature-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #333;
}

.gd-feature-list li {
    margin: .5rem 0;
    line-height: 1.6;
}

/* 底部滚动文字条 */
.marquee-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-orange);
    color: white;
    z-index: 1000;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px 12px 0 0;
}

.marquee-wrapper {
    display: inline-flex;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee-scroll 10s linear infinite;
}

.marquee-track {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    padding-right: 100%;
}

/* 滚动动画 */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .gd-shots.horizontal .gd-shot-item.prev {
        transform: translateX(calc(-50% - 400px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.next {
        transform: translateX(calc(-50% + 400px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 800px)) scale(0.8);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 800px)) scale(0.8);
    }
}

@media (max-width: 992px) {
    .gd-shots {
        height: 580px;
    }
    
    .gd-shot-item {
        width: 250px;
        height: 444px;
    }
    
    .gd-shot-item.prev {
        transform: translateX(calc(-50% - 200px)) scale(0.9);
    }
    
    .gd-shot-item.next {
        transform: translateX(calc(-50% + 200px)) scale(0.9);
    }
    
    .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 400px)) scale(0.8);
    }
    
    .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 400px)) scale(0.8);
    }
    
    .gd-shots.horizontal {
        height: 300px;
    }
    
    .gd-shots.horizontal .gd-shot-item {
        width: 400px;
        height: 225px;
    }
    
    .gd-shots.horizontal .gd-shot-item.prev {
        transform: translateX(calc(-50% - 270px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.next {
        transform: translateX(calc(-50% + 270px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 540px)) scale(0.8);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 540px)) scale(0.8);
    }
    
    .marquee-container {
        max-width: 900px;
        left: 50%;
        transform: translateX(-50%);
        height: 35px;
        border-radius: 12px 12px 0 0;
    }
    
    .marquee-track {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .gd-shots {
        height: 465px;
    }
    
    .gd-shot-item {
        width: 200px;
        height: 355px;
    }
    
    .gd-shot-item.prev {
        transform: translateX(calc(-50% - 160px)) scale(0.9);
    }
    
    .gd-shot-item.next {
        transform: translateX(calc(-50% + 160px)) scale(0.9);
    }
    
    .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 320px)) scale(0.8);
    }
    
    .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 320px)) scale(0.8);
    }
    
    .gd-shots.horizontal {
        height: 260px;
    }
    
    .gd-shots.horizontal .gd-shot-item {
        width: 350px;
        height: 197px;
    }
    
    .gd-shots.horizontal .gd-shot-item.prev {
        transform: translateX(calc(-50% - 236px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.next {
        transform: translateX(calc(-50% + 236px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 472px)) scale(0.8);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 472px)) scale(0.8);
    }
    
    .gd-icon {
        width: 70px;
        height: 70px;
    }
    
    .gd-center {
        min-height: 70px;
    }
    
    .gd-rating-container {
        width: 70px;
        height: 70px;
    }
    
    .gd-score {
        font-size: 0.95rem;
    }
    
    .gd-rating-text {
        font-size: 0.55rem;
    }
    
    .gd-title {
        font-size: 1.4rem;
    }
    
    .btn-container {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        min-width: 0;
        max-width: 100%;
        padding: 0.7rem 1.2rem;
    }
    
    .marquee-container {
        max-width: 900px;
        left: 50%;
        transform: translateX(-50%);
        height: 32px;
        border-radius: 0;
    }
    
    .marquee-track {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 45px;
    }
    
    .gd-shots {
        height: 350px;
    }
    
    .gd-shot-item {
        width: 150px;
        height: 267px;
    }
    
    .gd-shot-item.prev {
        transform: translateX(calc(-50% - 120px)) scale(0.9);
    }
    
    .gd-shot-item.next {
        transform: translateX(calc(-50% + 120px)) scale(0.9);
    }
    
    .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 240px)) scale(0.8);
    }
    
    .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 240px)) scale(0.8);
    }
    
    .gd-shots.horizontal {
        height: 220px;
    }
    
    .gd-shots.horizontal .gd-shot-item {
        width: 300px;
        height: 169px;
    }
    
    .gd-shots.horizontal .gd-shot-item.prev {
        transform: translateX(calc(-50% - 202px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.next {
        transform: translateX(calc(-50% + 202px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 404px)) scale(0.8);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 404px)) scale(0.8);
    }
    
    .game-detail {
        padding: 0.5rem;
    }
    
    .main-container {
        padding: 0.8rem;
    }
    
    .gd-icon {
        width: 60px;
        height: 60px;
    }
    
    .gd-center {
        margin-left: 0.8rem;
        min-height: 60px;
    }
    
    .gd-rating-container {
        width: 60px;
        height: 60px;
    }
    
    .gd-score {
        font-size: 0.9rem;
    }
    
    .gd-rating-text {
        font-size: 0.5rem;
    }
    
    .gd-title {
        font-size: 1.3rem;
    }
    
    .gd-chip {
        font-size: .65rem;
        padding: .15rem .4rem;
    }
    
    .btn {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        height: 40px;
    }
    
    .text-box {
        font-size: 0.85rem;
        padding: 0.3rem;
        margin: 0.1rem 0.1rem 0;
        width: auto;
        max-width: 100%;
    }
    
    .marquee-container {
        max-width: 100%;
        width: 100%;
        left: 0;
        transform: none;
        height: 30px;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }
    
    .marquee-track {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    body {
        padding-bottom: 40px;
    }
    
    .gd-shots {
        height: 280px;
    }
    
    .gd-shot-item {
        width: 120px;
        height: 213px;
    }
    
    .gd-shot-item.prev {
        transform: translateX(calc(-50% - 96px)) scale(0.9);
    }
    
    .gd-shot-item.next {
        transform: translateX(calc(-50% + 96px)) scale(0.9);
    }
    
    .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 192px)) scale(0.8);
    }
    
    .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 192px)) scale(0.8);
    }
    
    .gd-shots.horizontal {
        height: 185px;
    }
    
    .gd-shots.horizontal .gd-shot-item {
        width: 250px;
        height: 141px;
    }
    
    .gd-shots.horizontal .gd-shot-item.prev {
        transform: translateX(calc(-50% - 168px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.next {
        transform: translateX(calc(-50% + 168px)) scale(0.9);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-prev {
        transform: translateX(calc(-50% - 336px)) scale(0.8);
    }
    
    .gd-shots.horizontal .gd-shot-item.far-next {
        transform: translateX(calc(-50% + 336px)) scale(0.8);
    }
    
    .gd-icon {
        width: 50px;
        height: 50px;
    }
    
    .gd-center {
        margin-left: 0.6rem;
        min-height: 50px;
    }
    
    .gd-rating-container {
        width: 50px;
        height: 50px;
    }
    
    .gd-score {
        font-size: 0.8rem;
    }
    
    .gd-rating-text {
        font-size: 0.45rem;
    }
    
    .gd-title {
        font-size: 1.1rem;
    }
    
    .gd-chip {
        font-size: .6rem;
        padding: .1rem .3rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        height: 35px;
    }
    
    .text-box {
        font-size: 0.75rem;
        padding: 0.3rem;
        margin: 0.1rem 0.1rem 0;
        width: auto;
        max-width: 100%;
    }
    
    .marquee-container {
        max-width: 100%;
        width: 100%;
        left: 0;
        transform: none;
        height: 28px;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }
    
    .marquee-track {
        font-size: 0.75rem;
    }
}