/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background-color: #F2F7FF;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* 下载横幅 - 默认隐藏 */
.download-banner {
    display: none;
}

/* ===== 背景 ===== */
.web-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    background-image: url('image/web_background.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.mobile-bg {
    display: none;
    width: 100%;
    position: relative;
    z-index: 0;
}

.mobile-bg img {
    width: 100%;
    height: auto;
}

/* ===== 固定导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    z-index: 100;
}

/* 手机端全屏适配 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100vw;
        position: relative;
        z-index: 0;
    }

    .navbar,
    .web-background,
    .web-image-wrapper {
        display: none !important;
    }

    .mobile-bg {
        display: block !important;
        width: 100vw;
        z-index: 0;
    }

    .mobile-bg img {
        width: 100vw;
        height: auto;
    }

    /* 页面内容全屏 */
    .page-content {
        position: relative;
        z-index: 0;
        max-width: 100vw;
        padding: 100px 0 0 0;
        overflow-x: hidden;
    }

    /* 下载横幅 */
    .download-banner {
        display: flex;
        position: absolute;
        top: 530px;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 390px;
        height: 84px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 28.8px;
        align-items: stretch;
        justify-content: space-between;
        padding-right: 0;
        z-index: 99999 !important;
        overflow: hidden;
    }

    .banner-left {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-left: 18px;
    }

    .banner-logo {
        width: 44px;
        height: 44px;
        border-radius: 9.6px;
        object-fit: cover;
    }

    .banner-text {
        display: flex;
        flex-direction: column;
    }

    .banner-title {
        font-size: 19px;
        font-weight: 600;
        color: #000;
    }

    .banner-subtitle {
        font-size: 14px;
        color: #666;
    }

    .banner-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 133px;
        height: 84px;
        background-color: #000;
        border-radius: 0 28.8px 28.8px 0;
        text-decoration: none;
        flex-shrink: 0;
        padding: 0 15px;
    }

    .btn-icon {
        font-size: 36px;
        color: #fff;
        line-height: 1;
    }

    .btn-text {
        font-size: 14px;
        color: #fff;
        margin-top: 2px;
        white-space: nowrap;
    }

    /* 第二板块全屏 - 保持横向滑动 */
    .features-section {
        max-width: 100vw;
        margin-top: 0;
    }

    .features-container {
        background: transparent;
        height: auto !important;
        min-height: auto !important;
    }

    .tab-content-wrapper {
        position: relative;
        height: auto !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-content {
        flex-direction: row;
        padding: 0 20px !important;
        gap: 10px;
        width: max-content;
        height: auto !important;
    }

    .feature-card {
        width: 75vw !important;
        height: auto !important;
        flex-shrink: 0;
    }

    .card-image {
        width: 100% !important;
        height: auto !important;
    }

    .card-info {
        width: 100% !important;
        padding: 5px 0 !important;
    }

    .card-title {
        font-size: 20px !important;
    }

    .card-desc {
        width: 100% !important;
        font-size: 12px !important;
    }

    /* 木蛙表情包图片全屏 */
    .brand-section {
        max-width: 100vw;
        padding: 0;
        position: relative;
    }

    .brand-title h2 {
        font-size: 28px;
    }

    .brand-image {
        width: 100vw !important;
        max-height: 35vh !important;
        object-fit: contain !important;
        margin-top: -20px !important;
    }

    .brand-text,
    .brand-text-sub {
        width: 100vw;
        padding: 0 15px;
        font-size: 14px;
        margin-top: 0 !important;
    }

    .emoji-guide {
        width: calc(100vw - 100px) !important;
        max-height: 18vh !important;
        object-fit: contain !important;
        margin-top: 0 !important;
    }

    /* 教程竖向排列 */
    .tutorial-gallery {
        flex-direction: column;
        gap: -5px;
        width: 100vw;
        padding: 0 15px;
        overflow-x: hidden;
        margin-top: 80px !important;
    }


    .tutorial-image {
        width: 100% !important;
        max-height: 30vh !important;
        object-fit: contain !important;
    }

    /* 第四板块全屏 */
    .download-section {
        max-width: 100vw;
        padding: 0 15px;
    }

    .footer-line-wrapper {
        width: 100%;
        padding: 0;
    }

    .footer-line {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        width: 100%;
    }

    .footer-links-left,
    .footer-links-right {
        width: 100%;
    }

    /* 下载板块移动端 */
    .download-platforms {
        max-width: 100vw;
        padding: 0 15px;
        margin-top: 40px;
    }

    .download-platforms-title {
        font-size: 28px;
    }

    .download-platforms-subtitle {
        font-size: 16px;
    }

    .platform-group-title {
        font-size: 20px;
        margin-top: 32px;
    }

    .platform-buttons {
        gap: 12px;
        margin-top: 16px;
    }

    .platform-btn {
        min-width: calc(50% - 6px);
        height: 48px;
        font-size: 14px;
        padding: 0 16px;
    }

    .platform-buttons.second-row .platform-btn {
        min-width: calc(50% - 6px);
    }
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.logo-text p {
    font-size: 12px;
    font-weight: 400;
    color: #000;
}

.btn-download-nav {
    width: 132px;
    height: 48px;
    background: #000;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

/* ===== 页面主内容 ===== */
.page-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== 首屏图 ===== */
.web-image-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.web-image {
    width: 922px;
    height: 664px;
}

/* ===== 第二板块：功能展示 ===== */
.features-section {
    display: flex;
    justify-content: center;
    margin-top: -10px;
}

.features-container {
    width: 1198px;
    height: 840px;
    background: rgba(242, 247, 255, 0.7);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.tab-content-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.tab-content-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-content {
    display: flex;
    gap: 40px;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 65px;
    height: 100%;
    width: max-content;
}

.feature-card {
    flex-shrink: 0;
    width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 400px;
    height: 522px;
    border-radius: 16px;
    object-fit: cover;
}

.card-info {
    padding: 20px 30px 0 30px;
    text-align: left;
}

.card-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.card-desc {
    width: 340px;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    line-height: 1.6;
}

/* ===== 第三板块：品牌介绍 ===== */
.brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.brand-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-bg {
    position: absolute;
    z-index: -1;
}

.brand-title h2 {
    font-size: 40px;
    font-weight: 700;
    color: #000;
}

.brand-image {
    width: 1200px;
    height: 286px;
    margin-top: 20px;
    border-radius: 16px;
}

.brand-text {
    width: 100%;
    max-width: 1200px;
    font-size: 20px;
    font-weight: 500;
    color: #000;
    text-align: center;
    margin-top: 30px;
    line-height: 1.8;
}

.brand-text-sub {
    width: 100%;
    max-width: 1200px;
    font-size: 20px;
    font-weight: 500;
    color: #000;
    text-align: center;
    margin-top: 52px;
    line-height: 1.8;
}

.brand-text-sub .highlight {
    color: #4977cb;
}

.emoji-guide {
    width: 478px;
    height: 120px;
    margin-top: 20px;
    border-radius: 16px;
}

.tutorial-gallery {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tutorial-gallery::-webkit-scrollbar {
    display: none;
}

.tutorial-image {
    flex-shrink: 0;
    border-radius: 16px;
}

/* ===== 下载板块 ===== */
.download-platforms {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 50px;
    text-align: center;
    width: 100%;
    scroll-margin-top: 120px;
}

.download-platforms-title {
    font-size: 40px;
    font-weight: 700;
    color: #000;
}

.download-platforms-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 12px;
}

.platform-group-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-top: 40px;
}

.platform-hint {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
}

.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.platform-buttons.second-row {
    margin-top: 16px;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 52px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    padding: 0 24px;
    transition: background 0.2s ease;
}

.platform-btn:hover:not(.disabled) {
    background: #e8e8e8;
}

.platform-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.platform-tip {
    font-size: 12px;
    color: #999;
    margin-top: 24px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 第四板块 ===== */
.download-section {
    max-width: 1200px;
    margin-top: 50px;
    padding: 0 50px;
    padding-bottom: 160px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.download-image {
    width: 80px;
    height: 40px;
}

.download-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.download-image {
    width: 80px;
    height: 40px;
}

.copyright-text {
    font-size: 14px;
    color: #666;
    margin-left: -10px;
}

.footer-line-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.footer-line {
    width: 1100px;
    height: 1px;
    background-color: #6d6d6d;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 16px;
    padding: 0 10px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links-left {
    display: flex;
    gap: 20px;
}

.underline-link {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
}

.footer-links-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.footer-text {
    font-size: 12px;
    color: #666;
}