/* 移动端基础优化 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Roboto", "Microsoft YaHei", "PingFang SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* 提升触摸体验 */
button,
a,
input,
select,
textarea {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器样式 - 关键修复 */
.fullscreen-container {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    background-image: url(images/0.png);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

#all-pages {
    position: relative;
    transition: all 0.8s ease;
    min-height: 100vh;
    z-index: 1;
}

.wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh !important;
    height: auto !important;
}

.page {
    position: relative;
    min-height: 100vh;
    height: auto !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em 1em;
}

.logo {
    position: fixed;
    top: 5%;
    left: 10%;
    z-index: 100;
    display: none;
}

.bottom-btn {
    position: fixed;
    bottom: 32px;
    right: 64px;
    z-index: 100;
    flex-direction: column;
    display: none;
}

.fixedTop-btn {
    position: fixed;
    top: 0;
    background: linear-gradient(to top, #362005, #000);
    width: 100vw;
    box-shadow: 0 3px 6px #131111;
    transition: all 0.5s ease;
    padding: 0 10vw;
    z-index: 99;
    justify-content: flex-end;
    display: flex;
}

.fixedTop-btn a {
    color: #a69145;
    font-size: 15px;
    padding: 10px 15px;
    cursor: pointer;
}

.fixedTop-btn a:hover {
    color: #e2cb79;
}

/* Inner容器修复 */
.page .inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 1em;
    gap: 3em;
    padding: 3em 2em;
    margin: 0 auto;
    z-index: 10;
}

.page-1 {
    padding: 2em 1em;
}

.page.page-1 .inner {
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    gap: 2em;
    padding: 3em 2em;
}

/* 视觉元素 */
.visual {
    height: 100%;
    width: 40%;
    display: flex;
    position: relative;
    z-index: 3;
}

.visual:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url(images/1.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: -10px;
    z-index: 0;
}

.visual .phone {
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.visual .phone img {
    width: 100%;
    height: auto;
}

.visual .title {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(20%, -50%);
    z-index: 1;
    width: 90%;
}

.visual .title img {
    display: block;
    width: 100%;
}

/* 文本区域 */
.process-text {
    width: 45%;
    text-align: start;
    color: #fff;
}

.process-text h3 {
    font-size: 1.5em;
    color: #daa606;
    margin-bottom: 1em;
}

.process-text ul {
    padding-left: 2em;
}

.process-text ul li {
    line-height: 1.8em;
    list-style-type: decimal;
    color: #fff;
}

.process-step {
    width: 45%;
}

.process-img {
    width: 22%;
    position: absolute;
    right: 0;
    top: -10%;
    z-index: 3;
}

.process-img img {
    display: block;
    width: 100%;
}

/* 下载区域 - 核心修复 */
.download {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    color: #fff;
    gap: 2.5em;
    z-index: 20;
}

.download img {
    display: block;
}

.download img.index-logo {
    width: 220px;
    max-width: 90%;
    margin: 0 auto;
}

.download img.qr-code {
    width: 200px;
    max-width: 80%;
}

.download-btn {
    display: flex;
    width: 100%;
    justify-content: center;
}

.download .download-btn a {
    position: relative;
    background: #daa606;
    color: #fff;
    padding: 0.9em 2.5em;
    border-radius: 2em;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    box-shadow: 0 4px 15px rgba(218, 166, 6, 0.4);
    z-index: 30;
}

.download .download-btn a:hover {
    background: #f9c21a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 193, 26, 0.5);
}

.download .download-btn a:active {
    transform: translateY(0);
}

.download .download-btn a img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.6em;
    width: 1.3em;
    height: auto;
}

/* 其他页面 */
.page-2,
.page-3 {
    padding: 4em 2em;
}

.page-2 .inner {
    flex-direction: row;
    justify-content: space-between;
}

/* 导航点 */
.nav-dot-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 50;
}

.nav-dot {
    width: 20px;
    height: 30px;
    padding: 8px 0;
    margin: auto;
}

.nav-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
    margin: auto;
}

.nav-dot span:hover {
    width: 12px;
    height: 12px;
}

.nav-dot.dot-active span {
    width: 15px;
    height: 15px;
    background-color: #daa606;
}

/* ========== 响应式设计 ========== */

/* 平板设备优化 (1200px 以下) */
@media screen and (max-width: 1200px) {
    .logo {
        left: 50%;
        transform: translate(-50%, 0);
        top: 4%;
    }

    .page .inner {
        flex-direction: column;
        padding: 2em 1.5em;
        gap: 2em;
    }

    .page-2 .inner {
        flex-direction: column;
    }

    .visual {
        display: none;
    }

    .download {
        width: 100%;
        max-width: 350px;
    }

    .download img.index-logo {
        width: 180px;
    }

    .download img.qr-code {
        display: none;
    }

    .process-text,
    .process-step {
        width: 100%;
    }

    .process-img {
        width: 40%;
        position: relative;
        top: auto;
        margin: 0 auto;
    }
}

/* 移动端优化 (820px 以下) */
@media screen and (max-width: 820px) {
    .fullscreen-container {
        background-attachment: scroll;
    }

    .page {
        padding: 3em 1em;
        min-height: auto;
    }

    .page-1 {
        min-height: 100vh;
        padding: 4em 1em;
    }

    .page.page-1 .inner {
        padding: 2.5em 1.5em;
        width: 95%;
    }

    .page .inner {
        width: 95%;
        padding: 2em 1.2em;
    }

    .nav-dot-container {
        right: 10px;
    }

    .nav-dot {
        padding: 5px 0;
        height: 25px;
    }

    .bottom-btn {
        flex-direction: row;
        transform: translate(-50%, 0);
        left: 50%;
        bottom: 10px;
        right: auto;
        width: auto;
        justify-content: center;
    }

    .fixedTop-btn {
        padding: 0 5vw;
    }

    .download img.index-logo {
        width: 160px;
    }

    .download .download-btn a {
        padding: 0.8em 2em;
        font-size: 1.05rem;
    }
}

/* 小屏幕手机优化 (430px 以下) */
@media screen and (max-width: 430px) {
    .fullscreen-container {
        background-image: url(images/2.png);
    }

    .page {
        padding: 2em 0.8em;
    }

    .page-1 {
        padding: 3em 0.8em;
    }

    .page.page-1 .inner {
        padding: 2em 1.2em;
        width: 96%;
        gap: 1.8em;
    }

    .page .inner {
        padding: 1.5em 1em;
        gap: 1.5em;
    }

    .process-img {
        display: none;
    }

    .download {
        gap: 2em;
    }

    .download img.index-logo {
        width: 140px;
    }

    .download .download-btn a {
        padding: 0.75em 1.8em;
        font-size: 1rem;
        min-height: 48px;
    }

    .process-text h3 {
        font-size: 1.3em;
    }

    .process-text ul li {
        font-size: 0.95em;
        line-height: 1.7em;
    }

    .fixedTop-btn {
        justify-content: space-around;
    }

    .fixedTop-btn a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* 超小屏幕手机优化 (380px 以下) */
@media screen and (max-width: 380px) {
    .page-1 {
        padding: 2.5em 0.5em;
    }

    .page.page-1 .inner {
        padding: 1.8em 1em;
        gap: 1.5em;
    }

    .download img.index-logo {
        width: 120px;
    }

    .download .download-btn a {
        padding: 0.7em 1.5em;
        font-size: 0.95rem;
        min-height: 46px;
    }

    .download .download-btn a img {
        width: 1.1em;
    }

    .process-text h3 {
        font-size: 1.2em;
    }

    .process-text ul li {
        font-size: 0.9em;
    }

    .fixedTop-btn a {
        font-size: 13px;
        padding: 7px 10px;
    }
}

/* 横屏优化 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .page {
        min-height: auto;
        padding: 2em 1em;
    }

    .page-1 {
        min-height: auto;
    }

    .page.page-1 .inner {
        padding: 2em 1.5em;
    }

    .download {
        gap: 1.5em;
    }
}

/* Swiper 样式 */
.swiper {
    display: block;
    width: 100%;
}

.swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    transition: none;
    transform: none;
}

.swiper-slide {
    display: block;
    width: 100% !important;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-notification {
    display: none;
}

@media screen and (max-width: 820px) {
    .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
}

@media screen and (max-width: 430px) {
    .swiper-wrapper {
        gap: 10px;
        padding: 10px;
    }
}

@media screen and (max-width: 380px) {
    .swiper-wrapper {
        gap: 8px;
        padding: 8px;
    }

    .swiper-slide img {
        border-radius: 6px;
    }
}