/*全局样式*/
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

/* 移除所有默认间隔 */
body, header, section, div, h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

/* 设置全局变量 */
:root {
    --tablet-breakpoint: 768px;
    --mobile-breakpoint: 480px;
    --primary-color: #333;
    --background-color: #fff;
}

/* 页面布局结构 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
}

/* 全局字体设置 - 使用免费可商用的无衬线字体 */
body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 标题字体设置 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    margin: 0;
}

/* 正文和段落字体设置 */
p, a, span, li {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

/* 语言切换按钮字体 */
#language-toggle {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-weight: 500;
}

/* Logo字体 */
.logo {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-weight: 700;
}

/*顶部logo区域及语言切换按钮 - 透明叠加在banner上*/
header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding:12px;
    background: transparent;  /* 完全透明背景 */
    z-index: 10;  /* 确保在banner上方 */
}

.header-container{
    color: white;
    display:flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background: transparent;  /* 完全透明背景 */
    padding: 8px 20px;
}

/* Logo文字样式 - 星空主题 */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

.logo img{
    max-width:150px;
}

/* 平板设备响应式调整 */
@media (max-width: var(--tablet-breakpoint)) {
    header {
        padding: 11px;
    }
    
    .header-container {
        padding: 6px 15px;
    }
    
    .logo {
        font-size: 22px;
        text-shadow: 0 0 9px rgba(255,255,255,0.45);
    }
    
    #language-toggle {
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 3px;
    }
}

/* 移动设备响应式调整 */
@media (max-width: var(--mobile-breakpoint)) {
    header {
        padding: 10px;
    }
    
    .header-container {
        padding: 4px 12px;
    }
    
    .logo {
        font-size: 20px;
        text-shadow: 0 0 8px rgba(255,255,255,0.4);
    }
    
    #language-toggle {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 3px;
    }
}

#language-toggle{
    padding:6px 14px;
    background: transparent;  /* 完全透明背景 */
    color:white;
    border: none;  /* 无边框 */
    border-radius:4px;  /* 小圆角 */
    cursor:pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

#language-toggle:hover{
    background: rgba(255,255,255,0.1);  /* 悬停时轻微半透明 */
    transform: translateY(-1px);
}

/* 中间 banner 区域 - 星空背景效果 */
.banner {
    background: linear-gradient(
        to bottom,
        #1a1a2e 0%,      /* 深紫蓝色 - 从顶部开始 */
        #16213e 30%,     /* 深蓝紫色 */
        #0f3460 70%,     /* 深海蓝色 */
        #0a1929 100%     /* 深空黑色 */
    );
    text-align: center;
    min-height: 600px;  /* 最小高度保证内容显示 */
    height: 80vh;      /* 默认高度 */
    max-height: 800px; /* 最大高度限制 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 60px;  /* 为透明header留出空间 */
}

/* 星空背景效果 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
        radial-gradient(1px 1px at 200px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 250px 90px, #fff, transparent),
        radial-gradient(2px 2px at 300px 20px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 350px 60px, #eee, transparent),
        radial-gradient(1px 1px at 400px 40px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 400px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
    z-index: 1;
}

/* 星星闪烁动画 */
@keyframes twinkle {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* 添加更多星星层次 */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 20px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 100px 90px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 180px 10px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 230px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 320px 30px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 380px 85px, rgba(255,255,255,0.4), transparent);
    background-repeat: repeat;
    background-size: 400px 100px;
    animation: twinkle 6s ease-in-out infinite alternate-reverse;
    z-index: 1;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    padding: 0 10px;
    height: 100%;
    position: relative;
    z-index: 2;
}

.banner-left {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.banner-right {
    width: 45%;
}

.banner-right img {
    border: 1px solid black;
    max-width: 100%;
}

/* Banner标语容器 - 智能自适应布局 */
.banner-slogan {
    margin-bottom: 0;
    text-align: center;
    max-width: 800px;
    width: 90%;  /* 响应式宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;  /* 最小高度保证内容显示 */
    height: auto;  /* 高度自适应 */
    flex: none;  /* 移除flex:1避免高度问题 */
    padding: 100px 20px 60px;  /* 上下内边距，为导航留空间 */
    box-sizing: border-box;
}

/* 星隙标题 */
.banner-title {
    font-size: 56px;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* 副标题 */
.banner-subtitle {
    font-size: 22px;
    color: #e9ecef;
    margin: 0 0 25px 0;  /* 缩小与按钮的距离 */
    text-align: center;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
}

/* 响应式banner区域 */
/* 平板设备下的响应式调整 */
@media (max-width: var(--tablet-breakpoint)) {
    .banner {
        padding: 60px 0;
        min-height: 500px;
    }
    
    .banner-content {
        flex-direction: column;
    }
    
    .banner-left {
        width: 100%;
        text-align: center;
    }
    
    .banner-right {
        width: 80%;
        margin-top: 30px;
    }
    
    .banner-title {
        font-size: 48px;
        text-align: center;
        margin: 0 0 12px 0;
    }
    
    .banner-subtitle {
        font-size: 20px;
        text-align: center;
        margin: 0 0 30px 0;
        max-width: 400px;
    }
    
    .banner-slogan {
        text-align: center;
        margin-bottom: 0;
        padding-top: 90px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .button-container {
        gap: 12px;
    }
    
    .features {
        padding: 25px 0;
    }
}

/* 移动设备下的响应式调整 */
@media (max-width: var(--mobile-breakpoint)) {
    .banner {
        padding: 40px 0;
        min-height: 450px;
    }
    
    .banner-left {
        width: 100%;
    }
    
    .banner-right {
        width: 100%;
        margin-top: 20px;
    }
    
    .banner-title {
        font-size: 36px;
        margin: 0 0 10px 0;
    }
    
    .banner-subtitle {
        font-size: 18px;
        margin: 0 0 25px 0;
        max-width: 350px;
    }
    
    .banner-slogan {
        margin-bottom: 0;
        padding-top: 80px;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .button-container {
        gap: 12px;
    }
    
    .features {
        padding: 20px 0;
    }
}

/* 响应式按钮容器 */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 28px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    min-width: 160px;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* 鸿蒙版按钮 - 轻盈蓝色 */
.harmonyos {
    background: linear-gradient(135deg, rgba(0,125,255,0.2), rgba(0,90,255,0.15));
    border-color: rgba(0,125,255,0.3);
}

.harmonyos:hover {
    background: linear-gradient(135deg, rgba(0,125,255,0.25), rgba(0,90,255,0.2));
    border-color: rgba(0,125,255,0.4);
}

/* 安卓版按钮 - 轻盈绿色 */
.android {
    background: linear-gradient(135deg, rgba(61,220,132,0.2), rgba(43,181,115,0.15));
    border-color: rgba(61,220,132,0.3);
}

.android:hover {
    background: linear-gradient(135deg, rgba(61,220,132,0.25), rgba(43,181,115,0.2));
    border-color: rgba(61,220,132,0.4);
}

/* 苹果版按钮 - 轻盈灰色 */
.apple {
    background: linear-gradient(135deg, rgba(160,160,160,0.2), rgba(100,100,100,0.15));
    border-color: rgba(160,160,160,0.3);
}

.apple:hover {
    background: linear-gradient(135deg, rgba(160,160,160,0.25), rgba(100,100,100,0.2));
    border-color: rgba(160,160,160,0.4);
}

/*功能文案介绍区域*/
.features{
    display: flex;
    /* 水平居中排列子元素 */
    justify-content: center;
    /* 让子元素换行显示 */
    flex-wrap: wrap;
    padding: 65px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 适中设备（桌面端）：一行三列布局 */
@media (min-width: 992px) {
    .feature {
        text-align: left;
        width: calc(33.33% - 25px);
        margin: 0 12.5px 20px 12.5px;
        box-sizing: border-box;
        min-height: 130px;
    }
}

/* 小设备（平板和手机）：一行一列垂直布局 */
@media (max-width: 991px) {
    .feature {
        text-align: left;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

.feature h4 {
    /* 可根据需要调整标题的底部间距 */
    margin-bottom: 10px; 
    font-size: 20px;
    word-wrap: break-word;
    max-width: 100%;
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-weight: 600;
}

.feature p {
    /* 可根据需要调整段落的行高 */
    line-height: 1.6; 
    font-size: 16px;
    word-wrap: break-word;
    max-width: 100%;
    margin: 0;
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-weight: 400;
}

.feature:last-child {
    margin-bottom: 0;
}

/* 平板设备字体调整 */
@media (max-width: var(--tablet-breakpoint)) {
    .feature h4 {
        font-size: 18px;
        font-family: 'Noto Sans SC', 'Inter', sans-serif;
        font-weight: 600;
    }
    
    .feature p {
        font-size: 14px;
        font-family: 'Noto Sans SC', 'Inter', sans-serif;
        font-weight: 400;
    }
}

/* 移动设备字体调整 */
@media (max-width: var(--mobile-breakpoint)) {
    .features {
        padding: 30px 0;
    }
    
    .feature h4 {
        font-size: 16px;
        font-family: 'Noto Sans SC', 'Inter', sans-serif;
        font-weight: 600;
    }
    
    .feature p {
        font-size: 14px;
        font-family: 'Noto Sans SC', 'Inter', sans-serif;
        font-weight: 400;
    }
}

/*底部备案信息区域 - 固定在页面底部*/
footer{
    color: #b7b7b7;
    text-align: center;
    padding:15px 15px 20px;
    margin-top: auto;
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    background-color: #fff;
    width: 100%;
}

footer p,a{
    color:#b7b7b7;
    text-decoration: none;
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-weight: 400;
}

footer a:hover {
    text-decoration: underline;
}

/* 底部备案区域响应式适配 */
@media (max-width: var(--tablet-breakpoint)) {
    footer {
        padding: 12px 15px 15px;
        font-size: 13px;
    }
}

@media (max-width: var(--mobile-breakpoint)) {
    footer {
        padding: 10px 15px 12px;
        font-size: 12px;
    }
    
    footer p {
        line-height: 1.4;
    }
}

/* 按钮容器 - 智能自适应布局 */
.button-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 25px;  /* 适中距离 */
    flex-wrap: nowrap;  /* 默认不换行 */
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1000px;  /* 增加最大宽度 */
}

/* 大屏设备 - 一行排列 */
@media (min-width: 1200px) {
    .button-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
    }
    
    .download-btn {
        min-width: 180px;
        max-width: 220px;
    }
}

/* 中等屏幕 - 智能排列 */
@media (max-width: 1199px) and (min-width: 768px) {
    .button-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        max-width: 600px;
    }
    
    .download-btn {
        min-width: 160px;
        flex: 1;
        max-width: 200px;
    }
}

/* 平板设备按钮调整 */
@media (max-width: var(--tablet-breakpoint)) {
    .banner {
        min-height: 500px;  /* 平板最小高度 */
        height: 75vh;       /* 平板默认高度 */
    }
    
    .banner-title {
        font-size: 48px;
        margin: 0 0 18px 0;
    }
    
    .banner-subtitle {
        font-size: 20px;
        margin: 0 0 20px 0;
        max-width: 400px;
    }
    
    .banner-slogan {
        padding: 90px 20px 50px;  /* 平板内边距 */
    }
    
    .button-container {
        gap: 12px;
        margin-top: 25px;
        max-width: 500px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 140px;
        flex: 1;
        max-width: 180px;
    }
}

/* 移动设备按钮调整 */
@media (max-width: var(--mobile-breakpoint)) {
    .banner {
        min-height: 450px;  /* 移动最小高度 */
        height: 85vh;       /* 移动默认高度 */
        max-height: 600px;  /* 移动最大高度 */
    }
    
    .banner-title {
        font-size: 36px;
        margin: 0 0 15px 0;
    }
    
    .banner-subtitle {
        font-size: 18px;
        margin: 0 0 20px 0;
        max-width: 350px;
    }
    
    .banner-slogan {
        padding: 80px 15px 40px;  /* 移动内边距 */
        width: 95%;  /* 更宽宽度 */
    }
    
    .button-container {
        gap: 15px;
        flex-direction: column;  /* 移动端垂直排列 */
        margin-top: 20px;
        max-width: 100%;
        align-items: center;  /* 居中对齐 */
    }
    
    .download-btn {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 240px;
        max-width: 280px;
        width: 100%;  /* 占满可用宽度 */
        max-width: 300px;  /* 限制最大宽度 */
    }
}

/* 超小屏幕设备 */
@media (max-width: 375px) {
    .banner {
        min-height: 400px;  /* 超小屏幕最小高度 */
        height: 90vh;       /* 超小屏幕默认高度 */
    }
    
    .banner-title {
        font-size: 32px;
        margin: 0 0 12px 0;
    }
    
    .banner-subtitle {
        font-size: 16px;
        margin: 0 0 18px 0;
        max-width: 300px;
    }
    
    .banner-slogan {
        padding: 70px 10px 35px;
        width: 98%;
    }
    
    .button-container {
        gap: 10px;
        margin-top: 18px;
        flex-direction: column;  /* 超小屏垂直排列 */
        align-items: center;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 200px;
        max-width: 260px;
        width: 100%;
    }
}

/* 智能排列逻辑 - 根据按钮文字长度 */
@media (max-width: 768px) {
    /* 英文模式下强制垂直排列 */
    [data-lang="en"] .button-container {
        flex-direction: column !important;
        align-items: center;
        gap: 12px;
    }
    
    [data-lang="en"] .download-btn {
        width: 100%;
        max-width: 280px;
        min-width: 200px;
    }
    
    /* 中文模式下智能判断 */
    [data-lang="zh"] .button-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 400px;
    }
    
    [data-lang="zh"] .download-btn {
        flex: 1;
        min-width: 120px;
        max-width: 160px;
    }
}

/* Banner背景色彩渐变区域 */
.banner-color-gradient {
    position: absolute;
    top: -30px;
    left: -150px;
    right: -150px;
    bottom: -30px;
    width: calc(100% + 300px);
    height: calc(100% + 60px);
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(33, 37, 41, 0.1) 60%,
        rgba(33, 37, 41, 0.3) 100%
    );  /* 添加轻微的深色渐变叠加 */
    filter: blur(15px);
}

/* 确保标题文字清晰可见 */
.banner-slogan {
    position: relative;
    z-index: 3;
}