/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #E3EBFF 0%, #F7FCFF 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 确保容器至少占满整个视口高度 */
}

/* 头部样式 */
header {
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 24px;
    color: #4a6bff;
    font-weight: 600;
}

/* 主要内容区域 */
.hero {
    margin: 10px 0 40px;
    padding: 30px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;  /* 添加这一行，移除顶部内边距 */
}

.hero-image {
    flex: 1.2;
    min-width: 320px;
    text-align: center;
    padding: 0;
    margin-top: -20px;  /* 添加负上边距使图片进一步上移 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    color: #4a4a4a;
    /* 可以在这里添加其他样式，如字体大小、行高等 */
}

.mockup-img {
    max-width: 110%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.mockup-img:hover {
    transform: scale(1.02);
}

.hero-features {
    flex: 0.8;
    min-width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.feature {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
    width: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 107, 255, 0.1), rgba(74, 107, 255, 0.05));
    backdrop-filter: blur(5px);
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #4a6bff;
}

.feature-text p {
    font-size: 14px;
    color: #666;
}

/* 下载区域 */
.download-section {
    text-align: center;
    margin: -30px auto 40px;
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.download-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.download-option {
    width: 180px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 二维码引导图标 */
.qr-guide {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 44px;
    height: 42px;
    z-index: 5;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.qr-guide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.android:hover .qr-guide,
.ios:hover .qr-guide {
    /* transform: scale(1.2) rotate(15deg); */
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

/* 点击二维码引导图标时的动画效果 */
.qr-guide.active {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.3);
    }
}

.download-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 107, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
}

.platform-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon img {
    max-width: 100%;
    max-height: 100%;
}

.download-option p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Windows下载按钮 */
.download-button {
    background: linear-gradient(135deg, #4a6bff, #6a83ff);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(74, 107, 255, 0.3);
}

/* .windows:hover .download-button {
    opacity: 1;
    transform: translateY(2px);
} */

/* 移动端二维码提示框 */
.qr-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform-origin: bottom center;
}

.qr-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.android:hover .qr-tooltip,
.ios:hover .qr-tooltip,
.qr-guide:hover + .platform-icon + p + .qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* 二维码提示框显示动画 */
@keyframes showQrTooltip {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.qr-tooltip.show {
    animation: showQrTooltip 0.4s forwards;
}

.qr-content {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.qr-content p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 页脚 */
/* 页脚 */
footer {
    padding: 20px 0;
    margin-top: auto; /* 将页脚推到底部 */
    border-top: 1px solid #eee;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left p {
    font-size: 12px;
    color: #999;
    max-width: 100%;
    word-wrap: break-word;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4a6bff;
}

/* 桌面端专用元素 */
.desktop-only {
    display: block;
}

/* 移动端下载选项样式 */
.mobile-options {
    display: none;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.mobile-download-row {
    display: flex;
    justify-content: center;
    gap: 22px; /* 扩大间距为原来的1.5倍左右 */
    margin: 0 auto 20px;
    width: auto; /* 改为自动宽度 */
    max-width: 320px; /* 限制最大宽度 */
}

.mobile-download-option {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 12px 10px; /* 减小内边距使整体更紧凑 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 140px; /* 固定宽度 */
    flex-shrink: 0; /* 防止缩小 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-qr-container {
    margin-bottom: 8px; /* 减小底部间距 */
    width: 100%;
    display: flex;
    justify-content: center;
}

.mobile-qr-code {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 6px;
}

/* 移除了 .mobile-download-option p 的样式，因为我们已经移除了这些p标签 */

.mobile-download-button {
    border: none;
    padding: 8px 10px;
    border-radius: 15px;
    color: white;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0; /* 移除顶部边距 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* 添加下载按钮中的图标样式 */
.download-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.android-download {
    background: linear-gradient(135deg, #007aff, #5ac8fa);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.ios-download {
    background: linear-gradient(135deg, #3ddc84, #2bb673);
    box-shadow: 0 2px 6px rgba(61, 220, 132, 0.3);
}

.mobile-download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-download-button:active {
    transform: translateY(0);
}

.windows-link-section {
    margin: 25px auto 0;
    text-align: center;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.windows-link-section p {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    width: 100%;
    padding: 0 10px;
}

.windows-link-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 0 5px;
}

#windows-download-link {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    background-color: #f9f9f9;
    max-width: 280px;
}

#copy-link-button {
    background: linear-gradient(135deg, #4a6bff, #6a83ff);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(74, 107, 255, 0.3);
}

#copy-link-button:hover {
    background: linear-gradient(135deg, #3a5bef, #5a73ef);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(74, 107, 255, 0.3);
}

#copy-link-button:active {
    transform: translateY(0);
}

/* 2025.9.24 调整桌面端安卓下载按钮 */
/* styles.css: 桌面端安卓按钮基础样式（默认隐藏） */
.desktop-android-download-btn {
    background: linear-gradient(135deg, #3ddc84, #2bb673);
    color: #fff;
}

/* 悬浮安卓卡片时显示按钮（与二维码同时出现） */
.download-option.android:hover .download-button {
    /* opacity: 1; */
    transform: translateY(2px);
}

/* iOS专属扫码下载按钮样式 */
.desktop-ios-download-btn {
    background: linear-gradient(135deg, #007aff, #5ac8fa);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3);
    border: none;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image {
        order: -1; /* 确保图片在移动端显示在顶部 */
        margin-bottom: 30px;
    }
    
    .hero-image, .hero-features {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .mockup-img {
        max-width: 90%;
    }
    
    .download-section {
        margin-top: -20px;
    }
    
    /* 隐藏桌面端选项，显示移动端选项 */
    .desktop-options, .desktop-only {
        display: none;
    }
    
    .mobile-options {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .qr-tooltip {
        width: 150px;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    /* 确保页脚在移动端也居中显示 */
    footer {
        padding: 20px 10px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .footer-right {
        justify-content: center;
        gap: 15px; /* 减小间距 */
    }
    
    .footer-link {
        font-size: 11px; /* 稍微减小字体 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 5px;
    }
    
    .hero {
        padding: 15px 10px;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    
    .feature {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-icon {
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .feature-text {
        flex: 1;
    }
    
    .mobile-download-row {
        flex-direction: row; /* 保持水平排列 */
        align-items: center;
        justify-content: center;
        gap: 18px; /* 保持较大间距 */
        max-width: 300px; /* 限制最大宽度 */
    }
    
    .mobile-download-option {
        width: 130px; /* 固定宽度 */
        padding: 10px 8px;
        flex-shrink: 0;
    }
    
    .mobile-download-button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .download-icon {
        width: 16px;
        height: 16px;
    }
    
    .windows-link-section {
        max-width: 95%;
        padding: 0 10px;
    }
    
    .windows-link-section p {
        /* font-size: 12px; */
        padding:0;
        text-align: center;
    }
    
    .windows-link-box {
        flex-direction: row;
        align-items: center;
        max-width: 280px;
    }
    
    #windows-download-link {
        font-size: 11px;
        padding: 6px;
    }
    
    #copy-link-button {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
}

@media (max-width: 360px) {
    .mobile-download-row {
        gap: 15px; /* 即使在小屏幕上也保持较大间距 */
        max-width: 280px;
    }
    
    .mobile-download-option {
        width: 120px; /* 固定宽度 */
        padding: 8px 6px;
    }
    
    .mobile-qr-container {
        margin-bottom: 5px;
    }
    
    .mobile-qr-code {
        max-width: 100px;
    }
    
    .mobile-download-button {
        padding: 5px;
        font-size: 10px;
    }
    
    .download-icon {
        width: 14px;
        height: 14px;
    }
    
    .windows-link-section {
        max-width: 90%;
        padding: 0 5px;
    }

    .windows-link-section p {
        padding:0;
        text-align: center;
    }
    
    .feature {
        max-width: 280px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon img {
        width: 30px;
        height: 30px;
    }
    
    .feature-text h3 {
        font-size: 16px;
    }
    
    .feature-text p {
        font-size: 12px;
    }
}
