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

body {
    width: 100%;
    align-items: center;
    background: #0a0a0a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.header{
    width: 100%;
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 1.5%;
    position: sticky;      /* 核心：吸顶效果 */
    top: 0;                /* 贴顶部 */
    z-index: 1000;         /* 保证在最上层 */
    background: #0a0a0a;      /* 必须设背景，否则会透明 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);  /* 可选：加个阴影更立体 */
}

.footer{
    width: 80%;
    margin-top: 5%;
}

/* 页面头部 - Logo区域 */
.page-header {
    width: 100%;
    border-bottom: 1px solid #333;  /* 添加灰色分割线 */
    padding-bottom: 2%;
}

.logo-nav{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.logo {
    /* display: inline-block; */
    text-decoration: none;
    /* transition: opacity 0.2s ease; */
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-menu a {
    position: relative;      /* 给伪元素当定位基准 */
    display: inline-block;   /* 关键：让宽度占满文字区域 */
    padding-bottom: 4px;     /* 给下划线留空间 */
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: transparent;
    color: #ffffff;
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;/*下划线*/
    font-size: medium;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #afaeae;
}

/* 主内容区域 */
.container {
    margin-top: 2%;
    width: 70%;
}

.download-title {
    font-size: xx-large;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;/*文字间距*/
}

.download-buttons {
    margin: 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 3%;
}

.download-btn {
    margin-top: 2%;
    display: block;
    width: 280px;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 20px 30px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    background: #222222;
}

.flex-column{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.apple-icon {
    font-size: 36px;
    line-height: 1;
}

.google-play-icon {
    height: 30px;
    width: 30px;
    line-height: 1;
}

.btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.text-small {
    font-size: 12px;
    opacity: 0.8;
}

.text-large {
    font-size: 24px;
    font-weight: 600;
}

.btn-version {
    font-size: 12px;
    opacity: 0.7;
}

#faq_connect{
    width: 70%;

}
.faqText{
    margin-bottom: 5%;
        line-height: 2.5rem;
}

/* 页脚样式 - 非固定定位，自然文档流 */
.page-footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;

    opacity: 0.7;/*透明度70%*/
    border-top: 1px solid #333;
    width: 100%;
}
.footer-content-top{
    font-size: medium;
    padding-top:2%;
    padding-bottom: 2%;
    width: 100%;
}
.footer-content-top a{
    padding-left: 1%;
    padding-right: 1%;
}
.footer-content-bottom{
    border-top: 1px solid #333;
    padding-top: 2%;
    padding-bottom: 2%;
    font-size: small;

}
.link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.link:hover {
    opacity: 0.9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container{
        margin-top: 2%;
        width: 85%;
    }
    .header{
        width: 100%;
        padding-left: 2%;
        padding-right: 2%;
    }
    .page-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .page-footer {
        margin-top: 15%;
    }
    .footer-content-top{
        margin-top: 5%;
    }
    .footer-content-bottom{
        margin-top: 5%;
    }
    
    .logo-img {
        height: 32px;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 41px;
        left: 0;
        width: 100%;
        background-color: #000000;
        padding: 10px 0;
    }

    nav ul li {
        text-align: center;
    }

    nav ul li a {
        padding: 10px 0;
    }

    .download-buttons {
        padding-top: 15%;
    }

    #faq_connect{
        width: 100%;
    }
    .faqText{
        margin-bottom: 15%;
    }
}