/* 设置根元素字体 */
html {
    font-size: 16px;
    /* PC端基准 */
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
        /* 移动端基准 */
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    /* 禁用文本选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* 禁用拖拽 */
    -webkit-user-drag: none;
}

@media screen and (min-width: 768px) {
    .h5 {
        display: none !important;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
        background: url(../images/backgroud_pc.webp);
        background-size: 100% 100%;
        margin: 0 auto;
        height: 100vh;
        display: flex;
        flex-direction: column;
        min-width: 1200px;
        padding: 0 1.25rem;
    }

    /* Header */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem;
    }

    .logo img {
        height: 3.125rem;
        width: auto;
    }

    .contact {
        display: flex;
        gap: 1.25rem;
    }

    .contact a {
        display: block;
        transition: transform 0.3s;
    }

    .contact a:hover {
        transform: scale(1.1);
    }

    .contact img {
        margin-top: 0.3125rem;
        height: 3.125rem;
        width: auto;
    }

    .pc-container {
        flex-grow: 1;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .left-container {
        width: 55%;
        height: calc(100%);
    }

    .left-container .title {
        width: 100%;
        height: calc(60%);
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .left-container .title img {
        width: 80%;
        height: auto;
        display: block;
    }

    .right-container {
        width: 44%;
        height: calc(100%);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .right-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    .download-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .download-container-left {
        flex-shrink: 0;
        width: 14rem;
        height: 14rem;

        margin-right: 2rem;
        background: url(../images/qrcode_bg.webp);
        background-size: 100% 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .download-container-left .qrcode {
        margin-top: -0.625rem;
        display: block;
        width: 10rem;
        height: 10rem;
        background: #fff;

        box-sizing: content-box;
        border-radius: .8rem;
        border-top: .4rem;
        border-bottom: .4rem;
        border-left: .6rem;
        border-right: .6rem;
        border-style: solid;
        border-color: #fff;
    }

    .download-container-left .qrcode img {
        width: 100%;
        height: 100%;
    }

    .download-container-right {
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .download-container-right .app {
        display: flex;
        flex-direction: column;
    }

    .app-logo-ios,
    .app-logo-android {
        display: block;
        width: 12rem;
        transition: transform 0.3s;
    }

    .app-logo-ios a,
    .app-logo-android a {
        display: block;
        width: 100%;
        transition: transform 0.3s;
    }

    .app-logo-ios a:hover,
    .app-logo-android a:hover {
        transform: scale(1.05);
    }

    .app img {
        width: 100%;
        height: auto;
    }

    .setup-tips {
        text-align: left;
        color: #ffd700;
        font-size: 0.875rem;
    }

    .setup-tips p {
        margin: 0.2rem 0;
    }
}

@media screen and (max-width: 768px) {
    .pc {
        display: none !important;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
        background: url(../images/backgroud.webp);
        background-size: 100% 100%;
        margin: 0 auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Header */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem;
    }

    .logo img {
        height: 3.125rem;
        width: auto;
    }

    .contact {
        display: flex;
        gap: 1.25rem;
    }

    .contact a {
        display: block;
        transition: transform 0.3s;
    }

    .contact a:hover {
        transform: scale(1.1);
    }

    .contact img {
        margin-top: 0.3125rem;
        height: 3.125rem;
        width: auto;
    }

    .main {
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .banner {
        width: 100%;
    }

    .banner img {
        width: 100%;
        height: auto;
        display: block;
    }

    .title {
        width: 100%;
    }

    .title img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Footer */
    footer {
        flex-shrink: 0;
        padding: 2.5rem 1.25rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .app {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }

    .app-logo-ios,
    .app-logo-android {
        display: block;
        width: 30%;
        transition: transform 0.3s;
    }

    .app-logo-ios a,
    .app-logo-android a {
        display: block;
        width: 100%;
        transition: transform 0.3s;
    }

    .app-logo-ios a:hover,
    .app-logo-android a:hover {
        transform: scale(1.05);
    }

    .app img {
        width: 100%;
        height: auto;
    }

    .setup-tips {
        text-align: center;
        color: #ffd700;
        font-size: 0.875rem;
    }

    .setup-tips p {
        margin: 0.5rem 0;
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .header {
        padding: 0.9375rem 1.5625rem;
    }

    .logo-img {
        width: 3.4375rem;
        height: 3.4375rem;
    }

    .title-text h1 {
        font-size: 1.375rem;
    }

    .title-text p {
        font-size: 0.8125rem;
    }

    .header-right {
        gap: 1.25rem;
    }

    .btn-circle {
        width: 3.4375rem;
        height: 3.4375rem;
    }

    .btn-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .btn-label {
        font-size: 0.6875rem;
    }

    .download-section {
        padding: 1.875rem 0.9375rem;
    }

    .download-btn {
        width: 95%;
        padding: 1.125rem 1.875rem;
    }

    .download-btn .btn-text {
        font-size: 1.125rem;
    }

    .download-btn .btn-subtitle {
        font-size: 0.75rem;
    }

    .tips-text {
        font-size: 0.875rem;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .header {
        padding: 0.75rem 1.25rem;
        flex-direction: column;
        gap: 0.9375rem;
    }

    .header-left {
        gap: 0.625rem;
    }

    .logo-img {
        width: 3.125rem;
        height: 3.125rem;
    }

    .title-text h1 {
        font-size: 1.125rem;
    }

    .title-text p {
        font-size: 0.6875rem;
    }

    .header-right {
        gap: 1.5625rem;
    }

    .btn-circle {
        width: 3.125rem;
        height: 3.125rem;
    }

    .btn-icon {
        width: 1.5625rem;
        height: 1.5625rem;
    }

    .btn-label {
        font-size: 0.625rem;
    }

    .download-section {
        padding: 1.5625rem 0.625rem;
        gap: 0.9375rem;
    }

    .download-btn {
        width: 100%;
        max-width: 25rem;
        padding: 1rem 1.5625rem;
    }

    .download-btn .btn-icon {
        font-size: 1.75rem;
    }

    .download-btn .btn-text {
        font-size: 1rem;
    }

    .download-btn .btn-subtitle {
        font-size: 0.6875rem;
    }

    .tips-section {
        padding: 1.25rem 0.9375rem;
    }

    .tips-text {
        font-size: 0.8125rem;
        margin: 0.3125rem 0;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.header,
.promo-image,
.download-section,
.tips-section,
.banner-section {
    animation: fadeIn 0.6s ease-out;
}

/* 图片加载效果 */
img {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* header_1.webp 缩放动画 */
.header-animation {
    -webkit-animation: 0.4s scale 0.3s both;
    animation: 0.4s scale 0.3s both;
}

/* 下载提示样式 */
.download-tip {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.9375rem 1.875rem;
    border-radius: 3.125rem;
    box-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

/* 微信浏览器引导页样式 */
.wechat-guide-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.5s ease-out;
}

.wechat-guide-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 90%;
    animation: scale 0.6s ease-out;
}

.guide-icon {
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.guide-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.guide-steps {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(0.625rem);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.guide-step {
    font-size: 1.125rem;
    line-height: 2;
    margin: 0.75rem 0;
    font-weight: 500;
}

.guide-step .highlight {
    display: inline-block;
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    border: 0.125rem solid #FFD700;
}

.guide-arrow {
    margin: 1.5rem 0;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(0.625rem);
    }
}

.guide-hint {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 1.5rem;
    font-style: italic;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .guide-title {
        font-size: 1.5rem;
    }

    .guide-step {
        font-size: 1rem;
    }

    .guide-icon svg {
        width: 60px;
        height: 60px;
    }

    .guide-arrow svg {
        width: 50px;
        height: 50px;
    }
}

/* 调试模式：允许文本选择 */
body.debug-mode * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-user-drag: auto !important;
}