/* ==================== 通用设置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f7f7f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body::-webkit-scrollbar {
    display: none;
}

a {
    color: #333333;
    text-decoration: none;
}

a:hover {
    color: #333333;
}

p {
    color: #333333;
    margin: 0;
}

.weui-flex__item {
    text-align: center;
}

.title {
    font-size: 2em;
    color: #FFF;
}

.sub-title {
    font-size: 1.1em;
    color: #666666;
}

/* ==================== 主背景 ==================== */
#main {
    background-image: url('../images/background.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* ==================== 微信环境提示蒙层 ==================== */
#weixin-tip {
    position: fixed;
    display: none;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#weixin-tip img {
    width: 100%;
    position: fixed;
    z-index: 10001;
}

.weixin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
}

/* ==================== 顶部导航栏 ==================== */
#header {
    display: none;
    padding: 20px 0;
}

#header .main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    margin: 0 auto;
    width: 950px;
}

#header-logo {
    display: flex;
    justify-content: left;
    align-items: center;
    font-size: 24px;
    line-height: 60px;
}

#header-logo img {
    height: 35px;
    margin-right: 10px;
}

#header-logo span {
    font-size: 28px;
    width: 150px;
    color: #FFFFFF;
}

#header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#header li {
    display: inline-block;
    line-height: 60px;
}

#header li a {
    color: #FFFFFF;
    padding: 0 15px;
    display: block;
    height: 100%;
    font-size: 14px;
}

#header li a .is-active {
    border-bottom: white 3px solid;
    padding-bottom: 8px;
}

/* ==================== 主内容区域 ==================== */
#first_screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-content {
    color: #FFF;
    margin-bottom: 30px;
}

#main-content .sub-title,
#main-content .title {
    color: #FFF;
}

/* Logo和标题区域 */
.logo-title-box {
    display: flex;
    margin-left: 50px;
    padding-top: 40px;
}

.logo-box {
    width: 82px;
    height: 82px;
    background-color: #fff;
    border-radius: 20px;
}

.logo-box img {
    width: 100%;
    border: 3px solid white;
    border-radius: 20px;
}

.title-box {
    margin-left: 20px;
}

/* 下载按钮 */
.download-group {
    display: none;
    margin-top: 40px;
    align-items: center;
}

.mobile-download-button-box {
    height: 50px;
    width: 200px;
    background-color: #f22222;
    border-radius: 30px;
    line-height: 50px;
    text-align: center;
    border: 1px solid white;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-download-button-box:hover {
    background-color: #d91d1d;
    transform: scale(1.05);
}

.mobile-download-button-box p {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

#mobile-download-box {
    margin-top: 30px;
}

.hint-text {
    margin-left: 30px;
    font-size: 14px;
    margin-top: 20px;
}

/* ==================== 手机模型 ==================== */
.iPhone-14-pro {
    margin-left: 80px;
    margin-top: 30px;
    position: relative;
    width: 240px;
    height: 490px;
    background-color: #998c9e;
    border-radius: 48px;
    overflow: hidden;
}

.iPhone-14-pro .screen {
    position: absolute;
    inset: 2px;
    background-color: black;
    border-radius: 48px;
    padding: 10px;
}

.iPhone-14-pro .screen .wrapper {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background-size: cover;
    overflow: hidden;
}

.large-image {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    object-fit: cover;
}

/* ==================== Swiper轮播图 ==================== */
.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: 0;
}

.swiper-container {
    --swiper-pagination-color: #ffffff;
}

/* 分页器样式调整，确保在屏幕内显示 */
.swiper-pagination {
    bottom: 8px !important;
    z-index: 5;
}

/* ==================== 安装教程 ==================== */
.install-guide-box {
    margin-top: 30px;
}

.install-guide-box .large-image {
    width: 100%;
    border-radius: 0;
}

/* ==================== 底部版权信息 ==================== */
#footer {
    display: block;
    margin-top: 20px;
    z-index: 10;
    padding: 40px;
    padding-bottom: 96px;
}

#footer .content {
    margin: 0 auto;
}

#footer .footer-left .icon-group {
    display: none;
}

#footer .footer-navbar {
    margin-top: 20px;
}

#footer .footer-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer .footer-navbar ul li {
    display: inline;
}

#footer .footer-navbar ul li a {
    line-height: 2em;
    color: #212121;
    border-right: #212121 solid 1px;
    padding: 0 5px;
    font-size: 14px;
}

#footer .footer-navbar .first {
    padding-left: 0;
}

#footer .footer-navbar .last {
    border-right: 0;
}

#footer .footer-info {
    font-size: 14px;
    margin-top: 10px;
}

#footer .footer-info p {
    color: #212121;
    line-height: 2em;
}

.footer-logo-box {
    width: 82px;
    height: 82px;
    background-color: #fff;
    border-radius: 20px;
}

.footer-logo-box img {
    width: 100%;
}

.footer-text-box {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-left: 10px;
}

#footer .title {
    font-size: 30px;
    color: #212121;
}

#footer .sub-title {
    font-size: 20px;
    color: #757575;
}

#footer .footer-right {
    display: none;
}

/* ==================== iOS添加到主屏幕提示弹窗 ==================== */
.ios-tip-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.ios-tip-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.ios-tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.ios-tip-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.ios-tip-close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.ios-tip-close:hover {
    color: #333;
}

.ios-tip-body {
    padding: 20px;
}

.ios-tip-body p {
    margin: 15px 0;
    font-size: 20px;
    color: #333;
    line-height: 1.6;
}

.ios-tip-body .inline-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 5px;
}

.ios-tip-body .guide-image {
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
}

/* ==================== 外部链接样式 ==================== */
/* 外部链接基础样式 */
.external-link {
    color: #f22222;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.external-link:hover {
    color: #d91d1d;
}

/* 外部链接按钮样式 */
.external-link-btn {
    background-color: #f22222;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
}

.external-link-btn:hover {
    background-color: #d91d1d;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(242, 34, 34, 0.3);
}

/* ==================== 移动端样式 ==================== */
.mobile-display {
    display: block;
}

.pc-display {
    display: none;
}

/* ==================== PC端样式 ==================== */
@media screen and (min-width: 1000px) {
    /* 主背景 */
    #main {
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    /* 顶部导航 */
    #header {
        display: flex;
    }

    /* 主内容区域 */
    #first_screen {
        display: flex;
        justify-content: center;
    }

    #main-content {
        width: 1000px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding-bottom: 40px;
    }

    #main-content .title {
        font-size: 3.5em;
    }

    #main-content .sub-title {
        font-weight: 200;
        font-size: 2.5em;
    }

    .text-group {
        align-self: center;
        margin-right: 40px;
    }

    .text-group .weui-flex__item {
        text-align: left;
    }

    .logo-box {
        display: none;
    }

    /* 显示/隐藏控制 */
    .mobile-display {
        display: none;
    }

    .pc-display {
        display: block;
    }

    /* 下载按钮 */
    .download-group {
        display: flex;
        margin-top: 40px;
        align-items: center;
    }

    #mobile-download-box {
        display: none;
    }

    /* 安装教程 */
    .install-guide-box {
        display: none;
    }

    /* 底部 */
    #footer .content {
        width: 1000px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
    }

    #footer .footer-navbar {
        margin-top: 40px;
    }

    #footer .footer-navbar a {
        font-size: 16px;
    }

    #footer .icon-group {
        display: flex !important;
        justify-content: left;
    }

    #footer .footer-right {
        display: flex;
        align-items: center;
        text-align: center;
    }
}

