/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.4;
    color: #182341;
    background: linear-gradient(180deg, #FFFFFF 0%, #E8EFFF 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 移动端和桌面端显示控制 */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* 背景装饰 */
.background-decoration {
    position: absolute;
    top: 0;
    left: 28px;
    width: 320px;
    height: 163px;
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 30px;
    margin-bottom: 40px;
}

/* 左侧内容区域 - 移动端为上下布局 */
.left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo容器 */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.app-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 4.6px;
}

.brand-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 20px;
    width: auto;
}

/* 平台描述 */
.platform-desc {
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #4A90E2 0%, #1B49C2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin: 8px 0;
    text-align: center;
}

/* 标语区域 */
.slogan-section {
    margin: 20px 0 30px 0;
}

/* 按钮区域 */
.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    max-width: 280px;
    align-items: center;
}

.primary-btn,
.secondary-btn {
    width: 161px;
    height: auto;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}

.primary-btn {
    background: #1B49C2;
    color: #FFFFFF;
}

.primary-btn:hover {
    background: #164299;
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: #F1F5FF;
    color: #1B49C2;
}

.secondary-btn:hover {
    background: #E8EFFF;
    transform: translateY(-1px);
}

.secondary-btn:active {
    transform: translateY(0);
}

.slogan-main, .slogan-sub {
    font-family: 'CKTKingKong', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.37;
    background: linear-gradient(135deg, #5673C0 0%, #0C2E87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.slogan-main {
    text-align: center;
}

.slogan-sub {
    text-align: center;
    margin-top: 16px;
    padding-left: 0; /* 移动端不需要错位 */
}

/* 二维码区域 */
.qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.wechat-qrcode {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: #fff;
    border: 1px solid #eee;
}

.wechat-text {
    margin-top: 12px;
    font-size: 15px;
    color: #1B49C2;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    width: 160px;
    margin: 12px auto 0 auto;
    display: block;
}

.contact-info {
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

.contact-item {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    margin: 0 auto;
    display: block;
}

/* 右侧预览图区域 */
.right-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gugu-home-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(27,73,194,0.08);
    max-height: 80vh!important;
}

/* 底部区域 */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4.9px);
    padding: 20px 0 0;
    margin-top: auto;
}

.footer-content {
    padding: 0 20px 15px;
}

.developer-info {
    font-size: 11px;
    line-height: 1.4;
    color: #ABB2C5;
    text-align: center;
    margin: 0;
}

/* 移动端底部指示器 */
.home-indicator {
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 13px;
}

.home-indicator::before {
    content: '';
    width: 134px;
    height: 5px;
    background: #182341;
    border-radius: 100px;
}

/* 桌面端响应式设计 */
@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
    
    .container {
        padding: 40px;
    }
    
    /* 主要内容区域 */
    .main-content {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        margin: 40px 0;
        height: calc(100vh - 200px);
        min-height: 500px;
    }
    
    /* 左侧内容区域 */
    .left-section {
        flex: 0 0 50%;
        height: 100%;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        padding-left: 40px;
        padding-right: 20px;
    }
    
    /* Logo容器 */
    .logo-container {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 20px;
    }
    
    .app-icon-img {
        width: 64px;
        height: 64px;
        border-radius: 10px;
        margin-right: 20px;
    }
    
    .brand-logo {
        height: 36px;
    }
    
    /* 平台描述 - 桌面端 */
    .platform-desc {
        font-size: 18px;
        text-align: left;
        margin: 12px 0 30px 0;
        letter-spacing: 3px;
    }
    
    /* 标语区域 */
    .slogan-section {
        margin: 0 0 40px 0;
        width: 100%;
    }
    
    /* 按钮区域 - 桌面端 */
    .buttons-section {
        flex-direction: row;
        gap: 12px;
        margin: 0 0 30px 0;
        max-width: none;
        justify-content: flex-start;
    }
    
    .primary-btn,
    .secondary-btn {
        width: 140px;
        padding: 11px 18px;
        font-size: 15px;
    }
    
    .slogan-main {
        font-size: 68px;
        line-height: 1.2;
        text-align: left;
        display: block;
    }
    
    .slogan-sub {
        font-size: 68px;
        line-height: 1.2;
        text-align: left;
        display: block;
        margin-top: 10px;
        padding-left: 60px; /* 错位效果 */
    }
    
    /* 二维码区域 */
    .qrcode-section {
        align-items: flex-start;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
    }
    
    .wechat-qrcode {
        width: 180px;
        height: 180px;
    }
    
    .wechat-text {
        text-align: center;
        font-size: 16px;
        width: 180px; /* 与二维码同宽 */
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-item {
        font-size: 13px;
        color: #666;
        margin-top: 8px;
        text-align: left;
        white-space: nowrap;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* 右侧预览图区域 */
    .right-section {
        flex: 0 0 55%;
        height: 100%;
        justify-content: flex-end;
        align-items: center;
    }
    
    .gugu-home-img {
        max-height: 100%;
        width: auto;
        object-fit: contain;
        border-radius: 24px;
    }
    
    /* 底部区域 */
    .footer {
        background: transparent;
        backdrop-filter: none;
    }
    
    .developer-info {
        font-size: 12px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        padding: 60px;
    }
    
    .main-content {
        gap: 60px;
    }
    
    .left-section {
        flex: 0 0 45%;
        padding-left: 60px;
        padding-right: 30px;
    }
    
    .right-section {
        flex: 0 0 55%;
    }
    
    /* 平台描述 - 大屏幕 */
    .platform-desc {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .slogan-main, .slogan-sub {
        font-size: 64px;
    }
    
    /* 按钮区域 - 大屏幕 */
    .buttons-section {
        gap: 16px;
    }
    
    .primary-btn,
    .secondary-btn {
        width: 150px;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .wechat-qrcode {
        width: 180px;
        height: 180px;
        border-radius: 20px;
    }
    
    .wechat-text {
        font-size: 16px;
        margin-top: 16px;
        text-align: center;
        width: 180px; /* 与二维码同宽 */
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-item {
        font-size: 13px;
        color: #666;
        margin-top: 6px;
        text-align: left;
        white-space: nowrap;
        width: 100%;
        margin-left: 14px;
        margin-right: 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-section, .right-section {
    animation: fadeInUp 0.8s ease-out;
}

/* 链接悬停效果 */
a:hover {
    color: #0C2E87;
    transition: color 0.2s ease;
}

/* 微信浏览器引导遮罩 */
.wechat-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 27, 46, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 71px;
    padding-right: 20px;
}

.guide-content {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #182341;
}

.guide-text {
    font-size: 14px;
    font-weight: 500;
    color: #182341;
} 