/* 全局样式 */
:root {
    --primary-color: rgba(157, 78, 221, 1);
    --secondary-color: rgba(182, 115, 232, 1);
    --strong-color: rgba(127, 56, 184, 1);
    --weak-color: rgba(209, 166, 240, 1);
    --text-color: #333;
    --white: #ffffff;
    --light-bg: #f9f5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局动画定义 */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(157, 78, 221, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(157, 78, 221, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(157, 78, 221, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 禁止所有滚动条显示 */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 标题样式优化 */
h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    z-index: 1; /* 确保标题在最上层，不会被其他元素遮挡 */
}

h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    z-index: -1; /* 确保横线在标题下层，但仍然可见 */
}

/* 联系客服按钮样式 */
.customer-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.customer-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
}

.customer-service-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 60%, rgba(182, 115, 232, 0.08) 0%, transparent 30%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 微信蒙层 - 核心功能，内联 */
#wechatOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.fade {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(157, 78, 221, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 头部样式 */
header {
    text-align: center;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    display: block;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.logo {
    max-width: 240px;
    max-height: 240px;
    margin: 0 auto 25px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.15);
    transition: transform 0.3s ease;
    object-fit: contain;
    position: relative;
    z-index: 3;
    display: block;
    background: transparent;
}

h1 {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.logo:hover {
    transform: scale(1.05) rotate(3deg);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(157, 78, 221, 0.2);
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    opacity: 1;
    transform: translateY(0);
}

.subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

/* 主要内容区域 */
main {
    position: relative;
}

/* 3D悬浮卡片区 */
.app-showcase {
    position: relative;
    margin: 60px 0;
    perspective: 1000px;
}

.app-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.app-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    width: 320px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.15);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.app-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(157, 78, 221, 0.05) 0%, rgba(182, 115, 232, 0) 50%, rgba(157, 78, 221, 0.05) 100%);
    transform: rotate(30deg);
    animation: shine 6s infinite linear;
}

.app-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), transparent, var(--primary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes shine {
    to { transform: translateX(100%) rotate(30deg); }
}

.app-card:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(157, 78, 221, 0.25);
}

.app-card:hover::after {
    opacity: 1;
}

.app-icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px; /* PC端圆角 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(10deg);
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.app-description {
    color: #666;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* 下载按钮 */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
}

.download-btn:hover::before {
    left: 100%;
}

/* 品牌卡通形象展示 */
.characters-showcase {
    margin: 100px 0;
    position: relative;
}

.characters-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.characters-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.characters-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.character-card {
    position: relative;
    width: 280px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.character-card:hover {
    transform: translateY(-20px);
}

.character-card:hover .character-image {
    transform: scale(1.1);
}

.character-image {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 15px 30px rgba(157, 78, 221, 0.3));
}

/* 平台优势 */
.advantages-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    margin: 100px 0;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.advantages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
}

.advantages-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.advantages-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.advantage-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.advantage-description {
    opacity: 0.9;
    line-height: 1.6;
}

/* 底部区域 */
footer {
    text-align: center;
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid rgba(157, 78, 221, 0.1);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-logo {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.copyright {
    color: #666;
    margin-bottom: 8px;
}

.platform-name {
    color: #999;
    font-size: 14px;
}

/* 引入98k字体 */
@font-face {
    font-family: '98k';
    src: url('https://sucai.xiaocanbao.com/xiaocanbao/l00l/0i0.ttf');
    font-weight: normal;
    font-style: normal;
}

/* 响应式设计 - 完全重构手机显示页面 */
@media (max-width: 768px) {
    /* 允许垂直滚动，但禁止横向滚动，禁止显示滚动条 */
    html, body {
        overflow-x: hidden;
        position: relative;
        margin: 0;
        padding: 0;
    }
    
    /* 主容器高度自适应，隐藏滚动条，调整padding减少logo上方间距 */
    .container {
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 5px 15px 15px !important;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        /* 隐藏滚动条但保持滚动功能 */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .container::-webkit-scrollbar {
        display: none;
    }
    
    /* 在手机视图下确保二维码弹窗不会显示 */
    #qrCodeOverlay {
        display: none !important;
    }
    
    /* 增大Logo尺寸，上方间距为0 */
    .logo {
        max-width: 150px !important;
        max-height: 150px !important;
        margin: 0 auto 15px !important;
        padding-top: 0 !important;
    }
    
    h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
        text-align: center;
        width: 100%;
        font-family: '98k', 'PingFang SC', 'Microsoft YaHei', sans-serif !important; /* 使用98k字体 */
    }
    
    h1::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 80% !important;
        max-width: 280px !important;
    }
    
    /* 手机访问时不显示副标题 */
    .subtitle {
        display: none !important;
    }
    
    /* APP展示区 */
    .app-showcase {
        margin: 10px 0 !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* APP卡片容器 - 确保单列垂直排列 */
    .app-cards-container {
        gap: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
        padding-bottom: 10px !important; /* 缩小底部间距一半 */
    }
    
    /* APP卡片 - 完全重构样式，确保内容不溢出，圆角与鼠标悬停时一致 */
    .app-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 15px !important; /* 左右padding增加，上下padding减少 */
        margin-bottom: 0 !important;
        min-height: 80px; /* 减小最小高度 */
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        position: relative !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 24px !important; /* 与鼠标悬停时的圆角保持一致 */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden !important;
        transform: none !important; /* 移除影响布局的动效 */
        max-width: calc(100vw - 10px) !important; /* 再增加宽度三分之一 */
    }
    
    /* APP图标容器 - 靠左显示 */
    .app-icon-container {
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        background: white !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* APP图标 */
    .app-icon {
        border-radius: 8px !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    
    /* 文本内容容器 - 靠右显示 */
    .app-info {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 0 10px !important;
        margin-right: 0 !important;
    }
    
    /* APP标题 */
    .app-title {
        font-size: 18px !important; /* 增大APP名称 */
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: var(--primary-color) !important;
        font-weight: 600 !important;
    }
    
    /* APP描述 */
    .app-description {
        font-size: 12px !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
        color: #777 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        height: 30px !important;
    }
    
    /* 下载按钮 */
    .download-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
        margin-top: 0 !important;
        white-space: nowrap !important;
        align-self: flex-start !important;
        background: linear-gradient(135deg, var(--primary-color), #8e44ad) !important;
        color: white !important;
        border: none !important;
        border-radius: 20px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 6px rgba(157, 78, 221, 0.3) !important;
    }
    
    /* 联系客服按钮 - 缩小上方间距一半 */
    .customer-service-section {
        margin-top: 10px !important;
        margin-bottom: 60px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .customer-service-btn {
        font-size: 14px !important;
        padding: 12px 24px !important;
        width: 260px !important;
        text-align: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, var(--primary-color), #8e44ad) !important;
        color: white !important;
        border: none !important;
        border-radius: 50px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3) !important;
    }
    
    /* 隐藏不需要的元素 */
    .characters-showcase,
    .advantages-section,
    footer {
        display: none !important;
    }
}

/* 针对较小屏幕手机的优化 */
@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem !important;
    }
    
    h1::after {
        max-width: 240px !important;
    }
    
    .logo {
        max-width: 130px !important;
        max-height: 130px !important;
    }
    
    .app-card {
        padding: 12px !important;
        gap: 10px !important;
    }
    
    .app-icon-container {
        width: 45px !important;
        height: 45px !important;
    }
    
    .app-title {
        font-size: 15px !important;
    }
    
    .app-description {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
    
    .download-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .customer-service-section {
        margin-top: 30px !important;
        margin-bottom: 60px !important;
    }
    
    .customer-service-btn {
        font-size: 13px !important;
        padding: 10px 20px !important;
        width: 220px !important;
    }
    
    .container {
        padding: 10px !important;
    }
}

/* 针对小屏幕手机的优化 */
@media (max-width: 360px) {
    h1 {
        font-size: 1.4rem !important;
    }
    
    .logo {
        max-width: 120px !important;
        max-height: 120px !important;
    }
    
    .app-card {
        padding: 10px !important;
        gap: 8px !important;
    }
    
    .app-icon-container {
        width: 40px !important;
        height: 40px !important;
    }
    
    .app-title {
        font-size: 14px !important;
    }
    
    .app-description {
        font-size: 10px !important;
    }
    
    .download-btn {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
    
    .customer-service-btn {
        font-size: 12px !important;
        padding: 9px 18px !important;
        width: 180px !important;
    }
}

/* 针对大屏幕手机的自适应优化 (max-width: 992px) */
@media (max-width: 992px) {
    .header-content {
        padding: 0 20px;
        text-align: center;
    }
    
    .app-showcase {
        padding: 0 20px;
    }
    
    .app-cards-container {
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row;
    }
    
    .app-card {
        width: calc(50% - 10px);
        max-width: 320px;
        margin-bottom: 20px;
    }
    
    /* 确保在大屏幕手机上显示两列布局，增强饱满度 */
    @media (min-width: 769px) and (max-width: 992px) {
        .app-card {
            width: calc(50% - 15px);
            margin-bottom: 30px;
        }
        
        .app-cards-container {
            gap: 30px;
        }
    }
}

/* 浮动装饰元素 */
.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(50px);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-element-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -150px;
    right: -150px;
    opacity: 0.05;
    animation-delay: 0s;
}

.floating-element-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    bottom: -100px;
    left: -100px;
    opacity: 0.05;
    animation-delay: 2s;
}