/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* 移除移动端点击时的蓝色或灰色背景 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* 头部样式 */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: 72px;
    line-height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
}

.headerContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    width: auto;
    margin-right: 20px;
}

.logo .companyname {
    font-size: 18px;
}

.navItem {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.navItem b {
    font-size: 18px;
    color: #0497ff;
    font-weight: normal;
}

.navItem em {
    font-style: normal;
    font-size: 14px;
}

/* 内容区域样式 */
.content {
    margin-top: 72px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: url("https://filecourse.ctaiot.com/dlabel_website/bg1.png") no-repeat;
    background-size: 100% 480px;
    padding: 0px 0 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.title {
    text-align: center;
    font-size: 56px;
    font-weight: 600;
    color: #333;
    padding: 100px 0 56px;
}

.downloadContent {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- 统一应用信息区域 --- */
.appInfo {
    text-align: center;
    margin-bottom: 120px;
}

.appIcon {
    margin-bottom: 4px;
}

.iconImage {
    width: 144px;
    height: 144px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iconImg {
    border-radius: 24px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.appName {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 16px 0;
}

.companyInfo {
    margin-top: 16px;
}

.company {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
}

.company p {
    margin-bottom: 0;
    margin-right: 10px;
}

.permissions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.permissionLink {
    font-size: 18px;
    color: #1890ff;
    text-decoration: none;
}



.separator {
    color: #666;
    font-size: 20px;
}

/* --- 响应式控制: 默认显示桌面版，隐藏移动版下载按钮 --- */
.downloadSection {
    display: none;
}

.platformSection {
    display: block;
    /* 或者 grid, flex 等 */
}

/* --- 桌面端平台选择区域 --- */
.platformSection {
    margin-bottom: 240px;
}

.platformCards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 auto;
}

.platformCard {
    cursor: pointer;
    max-width: 389px;
    height: 240px;
    background: #ffffff;
    box-shadow: 0px 16px 48px -8px rgba(0, 0, 0, 0.08),
        0px 2px 8px -4px rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 1px solid #f7f9ff;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}



.platformCard::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    background: #dff1ff;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    border-top-right-radius: 16px;
    z-index: 1;
    transition: background 0.3s ease;
}

.platformCard::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background: url("../img/icon-download.png") center center no-repeat;
    background-size: 40px 40px;
    top: 6px;
    right: 10px;
    z-index: 9;
}

.platformCards .platformCard:nth-child(2)::before,
.platformCards .platformCard:nth-child(3)::before {
    background: url("../img/icon-qrcode.png") center center no-repeat;
    background-size: 40px 40px;
}

.platformContent {
    width: 100%;
    text-align: center;
    padding: 24px;
}

.platformIcon {
    margin-bottom: 16px;
}

.platformIcon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.platformName {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.platformCard .platformBox {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.platformCard .windowsDownloads,
.platformCard .qrCodeContainer {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
}



.windowsDownloads {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    z-index: 9;
}

.iconDownload {
    width: 72px;
    height: 72px;
    margin-bottom: 36px;
    margin-top: 67px;
}

.versionBtn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}



.qrCodeContainer {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    z-index: 99;
    gap: 8px;
}

.qrCanvas {
    width: 144px;
    height: 144px;
    margin-bottom: 12px;
}

.qrLabel {
    font-size: 18px;
    color: #424c55;
    margin: 0;
    text-align: center;
}

/* --- 移动端下载按钮区域 --- */
.downloadSection {
    margin-bottom: 88px;
}

.downloadButton {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: #1890ff;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}


.downloadButton:active {
    background: #0958d9;
    transform: scale(0.98);
    transition: all 0.1s ease;
}

/* --- 统一功能特点区域 --- */
.features {
    text-align: center;
    margin-bottom: 60px;
}

.featureTitle {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.featureDesc {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.actionButtons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.tutorialButton,
.changelogButton {
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 180px;
    height: 50px;
}

.actionButtons .tutorialButton {
    background: #0497ff;
    color: #ffffff;
    border: 1px solid #0497ff;
    transition: all 0.2s ease;
}



.actionButtons .changelogButton {
    background: #fff;
    box-shadow: 0px 4px 8px -1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 148, 255, 0.05);
    color: #333333;
    transition: all 0.2s ease;
}


/* --- 统一设备展示图 --- */
.deviceShowcase {
    text-align: center;
}

.showcaseImg {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (hover: hover) {
    .permissionLink:hover {
        text-decoration: underline;
    }

    .platformCard:hover .platformBox {
        opacity: 0;
    }

    .platformCard:hover .windowsDownloads,
    .platformCard:hover .qrCodeContainer {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .actionButtons .changelogButton:hover {
        background: #e6f5ff !important;
        border: 1px solid rgba(0, 148, 255, 0.05) !important;
        color: #0497ff !important;
        transform: translateY(-1px);
        box-shadow: 0px 4px 8px -1px rgba(0, 0, 0, 0.05) !important;
    }

    .actionButtons .tutorialButton:hover {
        background: #0488e6 !important;
        border-color: #0488e6 !important;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(4, 151, 255, 0.3);
    }

    .downloadButton:hover {
        background: #096dd9;
    }

    .versionBtn:hover {
        background: #096dd9;
        transform: translateY(-1px);
    }

    .platformCard:hover {
        transform: translateY(-4px);
        box-shadow: 0px 20px 56px -8px rgba(0, 0, 0, 0.12),
            0px 4px 12px -4px rgba(0, 0, 0, 0.04);
    }
}

/* --- 响应式设计: 小于 768px 的屏幕应用以下样式 --- */
@media (max-width: 767px) {
    .content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 24px 0;
    }

    /* 响应式控制: 显示移动按钮，隐藏桌面卡片 */
    .downloadSection {
        display: block;
    }

    .platformSection {
        display: none;
    }

    .container {
        padding: 0 16px;
    }

    .title {
        font-size: 24px;
        padding: 40px 0 24px;
    }

    /* 应用信息 */
    .appInfo {
        margin-bottom: 20px;
    }

    .appIcon {
        margin-bottom: 16px;
    }

    .iconImage {
        width: 80px;
        height: 80px;
    }

    .iconImg {
        border-radius: 16px;
    }

    .appName {
        font-size: 24px;
        margin: 0 0 12px 0;
    }

    .companyInfo {
        margin-top: 12px;
    }

    .company {
        font-size: 14px;
        margin: 8px 0;
    }

    .permissions {
        gap: 8px;
        margin-top: 8px;
    }

    .permissionLink {
        font-size: 14px;
    }

    .separator {
        color: #d9d9d9;
        font-size: 12px;
    }

    /* 功能特点 */
    .features {
        margin-bottom: 32px;
    }

    .featureTitle {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .featureDesc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .actionButtons {
        gap: 12px;
    }

    .tutorialButton,
    .changelogButton {
        /* 自适应宽度 */
        background: #dff1ff;
        color: #0497ff;
        border: 1px solid #dff1ff;
        width: 176px;
        height: 46px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
    }

    .changelogButton {
        box-shadow: 0px 4px 8px -1px rgba(0, 0, 0, 0.05);
        background: #ffffff;
        border-color: #f7f9ff;
        color: #333333;
    }

    /* 设备展示图 */
    .deviceShowcase {
        padding: 0;
    }

    .showcaseImg {
        border-radius: 8px;
    }
}

/* 针对更小的手机屏幕的微调 */
@media (max-width: 480px) {
    .content {
        margin-top: 44px;
        /* 调整与顶部的距离 */
        padding: 20px 0 40px;
    }

    .header {
        height: 44px;
        line-height: 44px;
    }

    .logo img {
        height: 32px;
        margin-right: 12px;
    }

    .logo .companyname {
        font-size: 14px;
    }

    .title {
        padding-top: 20px;
    }

    .company {
        flex-direction: column;
    }

    .separator1 {
        display: none;
    }

    .tutorialButton,
    .changelogButton {
        width: 140px;
        height: 36px;
    }

    .navItem {
        font-size: 12px;
    }

    .navItem b {
        font-size: 14px;
    }

    .navItem em {
        font-size: 12px;
    }
}

/* 国际化预处理样式 */
.pre-i18n {
    visibility: hidden !important;
}

noscript .pre-i18n {
    visibility: visible !important;
}

.wechat-guide {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.guide-content {
    position: relative;
    width: 100%;
}

.guide-close {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.guide-img {
    position: absolute;
    display: block;
    top: 72px;
    transform: translateX(-50%);
    left: 50%;
    width: 300px;
}