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

html, body {
    overflow-x: hidden; /* 防止横向滑动 */
    position: relative; /* 对于某些浏览器必需 */
    width: 100%; /* 确保宽度不超过视口 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 多边形背景设计 - 更明亮的蓝色 */
body::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #00A3FF, #0088ff);
    transform: rotate(45deg);
    z-index: -2;
    opacity: 0.7;
}

body::after {
    content: "";
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FECC02, #ffd500);
    transform: rotate(45deg);
    z-index: -2;
    opacity: 0.5;
}

.polygon {
    position: absolute;
    z-index: -1;
}

.polygon-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: #00A3FF;
    opacity: 0.1;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.polygon-2 {
    bottom: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: #FECC02;
    opacity: 0.1;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
    overflow: hidden; /* 防止子元素溢出 */
}

.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    width: 100%; /* 确保不超过容器宽度 */
}

.hero-content {
    flex: 1;
    padding-right: 40px;
    max-width: 100%; /* 防止内容溢出 */
}

.app-logo {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    max-width: 100%; /* 防止溢出 */
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #00A3FF, #FECC02);
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(0, 163, 255, 0.2);
    flex-shrink: 0; /* 防止缩小 */
    overflow: hidden; /* 确保内容不溢出 */
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片填充整个容器而不失真 */
}

.app-title {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 100px); /* 确保不溢出 */
    justify-content: center;
}

.app-title h2 {
    font-size: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero p {
    font-size: 24px;
    margin-bottom: 50px;
    color: #4b5563;
    max-width: 500px;
    word-wrap: break-word; /* 确保长文本折行 */
}

.download-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: flex-start; /* 左对齐，与标语对齐 */
    flex-wrap: nowrap; /* 强制一行显示 */
}

.download-button {
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%; /* 确保不溢出 */
}

.download-button img {
    height: 60px; /* 统一高度 */
    width: auto;
    display: block;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* APK 下载按钮样式 */
.android-apk {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00A3FF, #0088ff);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.3);
}

.android-apk:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.4);
}

.android-apk .button-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

/* Coming Soon 按钮样式 */
.coming-soon-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00A3FF, #0088ff);
    border-radius: 12px;
    border: none;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.3);
}

.coming-soon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.4);
}

.coming-soon-button::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: left 0.5s;
}

.coming-soon-button:hover::before {
    left: 100%;
}

.coming-soon-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    text-align: center;
}

.coming-soon-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-align: center;
}

/* iOS Coming Soon 按钮 */
.ios-coming-soon {
    background: linear-gradient(135deg, #00A3FF, #0088ff);
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.3);
}

.ios-coming-soon:hover {
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.4);
}

/* Google Play Coming Soon 按钮 */
.google-play-coming-soon {
    background: linear-gradient(135deg, #00A3FF, #0088ff);
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.3);
}

.google-play-coming-soon:hover {
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.4);
}

.hero-images {
    flex: 1;
    position: relative;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* 允许截图显示，但不影响整体滚动 */
}

/* 更大的截图尺寸和更少的重叠 */
/* .screenshot { */
    /* width: 320px; */
    /* height: 680px; */
    /* background: white; */
    /* border: 8px solid white; */
    /* border-radius: 30px; */
    /* box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); */
    /* position: absolute; */
    /* 确保内容不溢出 */
    /* overflow: hidden; */
/* } */

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充容器 */
    display: block;
}

.screenshot-1 {
    width: 320px;
    height: 680px;
    position: absolute;
    overflow: hidden;
    
    z-index: 2;
    transform: rotate(-5deg) translateX(-35px); /* 向左移动更多，露出更多第二张截图 */
}

.screenshot-2 {
    width: 320px;
    height: 690px;
    position: absolute;
    overflow: hidden;

    z-index: 1;
    transform: translateX(100px) rotate(10deg); /* 增加了水平偏移，使其更加可见 */
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    position: relative;
    z-index: 1;
    width: 100%; /* 确保宽度不超过视口 */
}

/* 语言选择器 - 下拉式 */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: none; /* 暂时关闭语言选择 */
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.dropdown-button:hover {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 11;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
}

/* 显示下拉内容 */
.language-dropdown:hover .dropdown-content {
    display: block;
}

.language-dropdown:hover .dropdown-button {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 980px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 60px;
        width: 100%; /* 确保在移动端占满宽度 */
        display: flex;
        flex-direction: column;
        align-items: center; /* 使内容水平居中 */
    }

    .app-logo {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .logo-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .app-title {
        max-width: 100%; /* 移动端适配 */
    }

    .download-buttons {
        justify-content: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-images {
        min-height: 600px; /* 增加高度以适应更大的截图 */
        width: 100%; /* 确保在移动端占满宽度 */
        max-width: 100vw; /* 确保不超过视口宽度 */
        overflow: visible; /* 防止截图溢出视口 */
        padding: 0 50px;

    }
    
    .language-selector {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10;
    }

    .language-dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-button {
        background: rgba(255, 255, 255, 0.8);
        border: none;
        padding: 10px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s;
    }

    .dropdown-button:hover {
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .dropdown-content {
        display: none;
        position: absolute;
        right: 0;
        background-color: white;
        min-width: 120px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        z-index: 11;
        overflow: hidden;
    }

    .dropdown-content a {
        color: #333;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        transition: background-color 0.3s;
    }

    .dropdown-content a:hover {
        background-color: #f9f9f9;
    }

    /* 显示下拉内容 - 使用JS控制而不是hover */
    .dropdown-content.show {
        display: block;
    }

    .dropdown-button.active {
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

}

@media (max-width: 640px) {
    .container {
        padding: 60px 20px; /* 减小内边距 */
        max-width: 100%; /* 确保不溢出 */
    }
    
    .hero p {
        font-size: 20px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%; /* 确保按钮容器占满宽度 */
        gap: 15px; /* 减小按钮间距 */
    }

    .download-button img {
        height: 50px; /* 移动端下略小一点 */
    }

    /* 移动端下的截图尺寸调整 */
    /* .screenshot {
        width: 240px;
        height: 500px;
    } */

    .screenshot-1 {
        width: 240px; /* 调整移动端下的宽度 */
        height: 500px; /* 调整移动端下的高度 */
        transform: rotate(-5deg) translateX(-20px); /* 移动端调整，减少位移 */
    }

    .screenshot-2 {
        width: 240px; /* 调整移动端下的宽度 */
        height: 520px; /* 调整移动端下的高度 */
        transform: translateX(60px) rotate(5deg); /* 调整移动端重叠程度 */
    }
    
    .dropdown-button {
        padding: 8px 12px;
        font-size: 12px;
    }
}