* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置rem基准值 - 设计稿宽度1365px，基准font-size为100px */
html {
    font-size: 100px; /* 基准值，1rem = 100px，JavaScript会动态调整 */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url('https://dianta-pc-test-1334254576.cos.ap-beijing.myqcloud.com/guanwang/%E8%83%8C%E6%99%AF%E5%95%8A.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    position: relative;
    min-height: 100vh;
    padding-bottom: 1rem;
}

.content-wrapper {
    position: relative;
    width: 13.65rem;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    z-index: 1;
    overflow: visible;
    padding-bottom: 0.5rem;
  
}

.left-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    height: 100%;
    margin-top: 1.96rem;

}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7.77rem;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}


.carousel-image {
    display: block;
    object-fit: contain;
}

.carousel-image-1 {
    width: 5.73rem;
    height: 7.77rem;
    margin-right: 0.7rem;
}

.carousel-image-2 {
    width: 5.77rem;
    height: 6.27rem;
    margin-top: -0.9rem;
    margin-right: 0.5rem;
}

.right-box {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    height: 100%;
    margin-top: 2.06rem;
}

.logo {
    position: absolute;
    top: 0.32rem;
    left: 1.6rem;
    z-index: 1000;
    display: block;
    width: 1.3rem;
    height: 0.48rem;
}

.main-title {
    width: 6.97rem;
    height: 0.94rem;
    display: block;
    position: relative;
    z-index: 1000;
    margin: 0 0 0.6rem 0;
    object-fit: contain;
}

.subtitle-text {
    width: 5.9rem;
    height: 0.5rem;
    display: block;
    position: relative;
    z-index: 1000;
    margin: 0 0 0.86rem 0.5rem;
    object-fit: contain;
}

.download-buttons {
    display: flex;
    gap: 0.12rem;
    align-items: flex-start;
    position: relative;
}

.download-btn-wrapper {
    position: relative;
    display: inline-block;
}

.download-btn {
    width: 2.41rem;
    height: 0.72rem;
    display: block;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}



.qr-code-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.2rem;
    width: 2.4rem;
    height: 2.6rem;
    background-image: url('https://dianta-pc-test-1334254576.cos.ap-beijing.myqcloud.com/guanwang/%E4%BA%8C%E7%BB%B4%E7%A0%81.png');
    background-size: 100% 100%;
    
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.download-btn-wrapper:hover .qr-code-container {
    display: flex;
    opacity: 1;
}

.qr-code {
    padding-top: 0.2rem;
    width: 2.2rem;
    height: 2.2rem;
    display: block;
    object-fit: contain;
}

.container {
    max-width: 8rem;
    margin: 0 auto;
    background: white;
    border-radius: 0.2rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 0.4rem;
    text-align: center;
}

header h1 {
    font-size: 3em;
    margin-bottom: 0.1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

main {
    padding: 0.4rem;
}

.card {
    background: #f8f9fa;
    border-radius: 0.12rem;
    padding: 0.3rem;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-0.05rem);
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #667eea;
    margin-bottom: 0.2rem;
    font-size: 1.8em;
}

.features {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 0.12rem 0;
    padding-left: 0.3rem;
    position: relative;
    font-size: 1.1em;
    color: #555;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.15rem 0.4rem;
    font-size: 1.1em;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0.05rem 0.2rem rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: scale(0.98);
}

.message {
    margin-top: 0.2rem;
    padding: 0.15rem;
    background: #e8f5e9;
    border-radius: 0.08rem;
    color: #2e7d32;
    font-weight: 500;
    display: none;
}

.message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-0.1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    background: #f8f9fa;
    padding: 0.3rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

.page-footer {
    
    bottom: 0.1rem;
    left: 0;
    width: 100%;
    text-align: center;
    background: transparent;
    border-top: none;
    z-index: 1000;
}

.page-footer p {
    color: #FFF;
    text-align: center;
    font-family: "Source Han Sans CN", "Microsoft YaHei", "SimHei", sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    margin: 0;
    padding: 0 0.2rem;
}

/* 小屏幕适配 - 当屏幕宽度小于1024px时，改为响应式布局 */
/* 注意：媒体查询使用px单位，因为它是基于浏览器视口的实际像素宽度 */
@media (max-width: 1024px) {
    .content-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-direction: column;
        margin: 1.2rem auto 0 auto;
        padding: 0 0.2rem;
        gap: 0.4rem;
    }

    .left-box {
        width: 100%;
        margin-top: 0;
        height: auto;
        min-height: 4rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-container {
        width: 100%;
        height: auto;
        min-height: 4rem;
        position: relative;
    }

    .carousel-slide {
        position: absolute;
        width: 100%;
        height: 100%;
        min-height: 4rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-image-1 {
        width: 100%;
        max-width: 4rem;
        height: auto;
        margin-right: 0;
    }

    .carousel-image-2 {
        width: 100%;
        max-width: 4rem;
        height: auto;
        margin-top: 0;
        margin-right: 0;
    }

    .right-box {
        width: 100%;
        margin-top: 0;
        padding: 0 0.2rem;
        align-items: center;
        text-align: center;
    }

    .main-title {
        width: 100%;
        max-width: 5rem;
        height: auto;
        margin: 0 auto 0.3rem auto;
    }

    .subtitle-text {
        width: 100%;
        max-width: 4.5rem;
        height: auto;
        margin: 0 auto 0.4rem auto;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        width: 100%;
    }

    .download-btn {
        width: 2rem;
        height: auto;
        max-height: 0.6rem;
    }

    .logo {
        left: 0.2rem;
        width: 1rem;
        height: auto;
        max-height: 0.4rem;
    }

    .page-footer {
        position: relative;
        bottom: auto;
        margin-top: 0.6rem;
        padding-bottom: 0.2rem;
    }

    body {
        padding-bottom: 0;
    }
}

/* 超小屏幕适配（手机） */
@media (max-width: 128px) {
    .content-wrapper {
        margin: 0.8rem auto 0 auto;
        gap: 0.3rem;
    }

    .logo {
        top: 0.2rem;
        left: 0.15rem;
        width: 0.8rem;
        max-height: 0.32rem;
    }

    .main-title {
        max-width: 90%;
        margin-bottom: 0.2rem;
    }

    .subtitle-text {
        max-width: 85%;
        margin-bottom: 0.3rem;
    }

    .download-btn {
        width: 1.8rem;
        max-height: 0.54rem;
    }

    .qr-code-container {
        width: 2rem;
        height: 2.2rem;
    }

    .qr-code {
        width: 1.8rem;
        height: 1.8rem;
        padding-top: 0.15rem;
    }

    .page-footer p {
        font-size: 0.12rem;
        padding: 0 0.15rem;
    }

    .left-box,
    .carousel-container,
    .carousel-slide {
        min-height: 3rem;
    }

    .carousel-image-1,
    .carousel-image-2 {
        max-width: 3rem;
    }
}

