/* 新手指南模块样式 */
.guide-section {
    background-color: #000;
    padding: 100px 20px 40px; /* 减少底部内边距，与安全保障模块靠得更近 */
    position: relative;
    overflow: hidden;
    text-align: center; /* 确保电脑端内容居中 */
}

.guide-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* 增加左右内容的间距 */
    /* 浏览器兼容性 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /* 确保在所有浏览器中居中 */
    text-align: left;
}



/* 左侧内容 */
.guide-left {
    flex: 1;
    max-width: 450px;
    /* 确保左侧内容在所有浏览器中正确对齐 */
    text-align: left;
}

.guide-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 50px;
    text-align: center;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    margin-left: 120px;
    width: 100%;
    /* 浏览器兼容性 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 800px;
    width: 100%;
    padding: 0 15px;
    /* 浏览器兼容性 */
    -ms-display: flex;
    -webkit-display: flex;
    -moz-display: flex;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 204, 102, 0.1);
    color: #00cc66;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 5px;
}

.step-content {
    flex: 1;
    text-align: left;
    /* 浏览器兼容性 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    line-height: 1.5;
}

.step-btn {
    background-color: rgba(0, 204, 102, 0.2);
    color: #00cc66;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-btn:hover {
    background-color: rgba(0, 204, 102, 0.3);
}

/* 右侧插画 */
.guide-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 确保右侧内容在所有浏览器中正确对齐 */
    text-align: center;
}

.guide-illustration {
    width: 400px;
    height: 400px;
    /* 浏览器兼容性 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}



.gift-illustration {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
}

.gift-box {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 200px;
    height: 200px;
}

.gift-top {
    position: absolute;
    top: -50px;
    left: 0;
    width: 200px;
    height: 100px;
    background-color: #1a1a1a;
    border: 2px solid #fff;
    border-radius: 10px 10px 0 0;
    transform: perspective(100px) rotateX(-45deg);
    transform-origin: bottom;
}

.gift-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-color: #1a1a1a;
    border: 2px solid #fff;
    border-radius: 10px;
    position: relative;
}

.gift-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    background-color: #fff;
}

.gift-ribbon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -90px;
    width: 180px;
    height: 20px;
    background-color: #fff;
}

.bitcoin-icon {
    position: absolute;
    bottom: 80px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #00cc66;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 204, 102, 0.5);
}

/* 礼物效果 */
.gift-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.effect {
    position: absolute;
    border-radius: 50%;
}

.effect-1 {
    width: 20px;
    height: 20px;
    background-color: #00cc66;
    top: 100px;
    right: 120px;
    animation: float 3s ease-in-out infinite;
}

.effect-2 {
    width: 15px;
    height: 15px;
    background-color: #0066ff;
    top: 80px;
    right: 180px;
    animation: float 3.5s ease-in-out infinite 0.5s;
}

.effect-3 {
    width: 10px;
    height: 10px;
    background-color: #ff4d4f;
    top: 120px;
    right: 200px;
    animation: float 2.5s ease-in-out infinite 1s;
}

.effect-4 {
    width: 25px;
    height: 25px;
    border: 2px solid #00cc66;
    border-radius: 0;
    top: 60px;
    right: 140px;
    transform: rotate(45deg);
    animation: float 3s ease-in-out infinite 0.2s;
}

.effect-5 {
    width: 18px;
    height: 18px;
    border: 2px solid #0066ff;
    top: 140px;
    right: 160px;
    animation: float 4s ease-in-out infinite 0.8s;
}

.effect-6 {
    width: 12px;
    height: 12px;
    border: 2px solid #ff4d4f;
    border-radius: 0;
    top: 90px;
    right: 220px;
    transform: rotate(30deg);
    animation: float 3.2s ease-in-out infinite 1.2s;
}

.effect-7 {
    width: 22px;
    height: 22px;
    border: 2px solid #00cc66;
    border-radius: 0;
    top: 110px;
    right: 100px;
    transform: rotate(60deg);
    animation: float 3.8s ease-in-out infinite 0.6s;
}

.effect-8 {
    width: 16px;
    height: 16px;
    border: 2px solid #0066ff;
    top: 130px;
    right: 130px;
    animation: float 2.8s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .guide-content {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .guide-left {
        max-width: 100%;
    }
    
    .step {
        align-items: center;
        justify-content: center;
    }
    
    .guide-title {
        font-size: 28px;
    }
    
    .gift-box {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .guide-section {
        padding: 60px 20px;
    }
    
    .guide-content {
        gap: 20px;
    }
    
    .guide-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .guide-steps {
        gap: 25px;
        margin-left: 0; /* 移除手机端的左边距，确保居中 */
    }
    
    .step {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .guide-illustration {
        width: 350px;
        height: 350px;
    }
    
    .gift-illustration {
        max-width: 300px;
        height: 300px;
    }
    
    .gift-box {
        width: 150px;
        height: 150px;
    }
    
    .gift-top {
        width: 150px;
        height: 75px;
    }
    
    .gift-body {
        width: 150px;
        height: 150px;
    }
    
    .bitcoin-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .guide-section {
        padding: 40px 15px;
    }
    
    .guide-content {
        gap: 15px;
    }
    
    .guide-title {
        font-size: 20px;
    }
    
    .guide-steps {
        gap: 20px;
        margin-left: 0; /* 确保在更小屏幕上也居中显示 */
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 0;
    }
    
    .step-content {
        text-align: center;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-desc {
        font-size: 13px;
    }
    
    .step-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .guide-illustration {
        width: 250px;
        height: 250px;
    }
    
    .gift-illustration {
        max-width: 250px;
        height: 250px;
    }
    
    .gift-box {
        width: 120px;
        height: 120px;
    }
    
    .gift-top {
        width: 120px;
        height: 60px;
    }
    
    .gift-body {
        width: 120px;
        height: 120px;
    }
    
    .bitcoin-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* 浏览器兼容性 */
@supports not (display: flex) {
    .guide-content {
        display: block;
        text-align: center;
    }
    
    .guide-left,
    .guide-right {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    .guide-steps {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    .step {
        display: block;
        text-align: center;
        margin: 0 auto 20px; /* 减少步骤之间的间隔 */
        max-width: 800px;
        width: 100%;
        padding: 0 15px;
    }
    
    .step-number {
        display: inline-block;
        vertical-align: top;
        margin-right: 20px;
    }
    
    .step-content {
        display: inline-block;
        vertical-align: top;
        text-align: left;
        max-width: calc(100% - 70px);
    }
    
    @media (max-width: 480px) {
        .step-number {
            display: block;
            margin-right: 0;
            margin-bottom: 10px;
        }
        
        .step-content {
            display: block;
            text-align: center;
            max-width: 100%;
        }
    }
}

/* 清除浮动 */
.guide-section::after {
    content: '';
    display: table;
    clear: both;
}