/* --- 基础重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth; /* 平滑滚动 */
    background: #FAF9FF;
}


body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    overflow-x: hidden;
    position: relative; /* 添加相对定位 */
}

/* --- A标签全局处理：保持原样且去除高亮 --- */
a,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: inherit; /* 继承父级颜色，防止点击后变紫 */
    outline: none;
    -webkit-tap-highlight-color: transparent; /* 清除移动端点击阴影 */
}

.home {
    position: relative;
}

.menu-item {
    text-decoration: none; /* 去掉下划线 */
    color: inherit;
    display: inline-block;
}

.menu-item:focus,
.menu-item:active {
    color: #ff3399;
    font-weight: bold;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: url('../banner.webp') center;
    background-size: cover;
}

.header {
    width: 80%; /* 固定宽度 */
    height: 116px; /* 导航栏高度 */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 30px;
    left: 10%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
}

/* --- 所有图片 URL 定义 --- */

.app-logo {
    width: 200px;
    height: 60px;
    border-radius: 12px;
    background-image: url('../logo.webp'); /* 路径记得改对 */
    background-size: cover;
    background-repeat: no-repeat;
}

.icon-apple {
    width: 20px;
    height: 20px;
    background-image: url('../icon_ios.webp');
    background-repeat: no-repeat;
    margin-right: 8px;
}

.icon-android {
    width: 20px;
    height: 20px;
    background-image: url('../icon_android.webp');
    background-repeat: no-repeat;
    margin-right: 8px;
}

/* 文字及布局 */
.brand-wrapper {
    display: flex;
    align-items: center;
}

.brand-title {
    font-size: 24px;
    margin-left: 12px;
    color: #333;
    font-weight: 600;
}

.main-menu {
    display: flex;
    width: 46%;
    justify-content: space-between;
}

.menu-item {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
}

.menu-item.active {
    color: #ff3399;
    font-weight: bold;
}

.action-group {
    display: flex;
    width: 30%;
    justify-content: space-around;
}

.btn-img {
    /* 这里的宽度和高度请根据你切图的实际像素修改 */
    width: 100%; /* 宽度自适应父容器 */
    aspect-ratio: 220 / 60; /* 填入蓝湖标注的 宽/高 */

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer; /* 鼠标移上去显示小手形状 */
    transition: transform 0.2s; /* 增加点击时的缩放动画效果 */
}

/* 分别设置两张图的路径 */
.ios-btn {
    background-image: url('../icon_ios.webp');
}

.android-btn {
    background-image: url('../icon_android.webp');
}

.btn-img:hover {
    transform: translateY(-2px);
}

.btn-img:active {
    transform: scale(0.95);
}


/* 第二屏样式 */
/* 容器基础设置 */
.section-start {
    width: 100vw;
    height: 80vh;
    padding-top: 10vh;
    text-align: center;
    overflow: hidden;
    background-image: url('../t2.webp');
    background-size: cover;
    background-position: center;
}

.play-container {
    margin-top: 26vh;
    width: 100%;
    height: 800px;
}

/* Tab 切换样式 */
.tab-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(138, 56, 245, 0.05);
    width: fit-content;
    margin: 0 auto 80px;
    padding: 6px;
    border-radius: 30px;
}

.tab-item {
    width: 200px;
    padding: 10px 25px;
    font-size: 20px;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-item.active {
    background: #fff;
    color: #333;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 容器布局 */
.card-container {
    display: none; /* 默认全部隐藏 */
    justify-content: space-around;
    gap: 20px;
}


.card-container.active {
    display: flex;
    animation: fadeIn 0.4s ease-in-out; /* 切换时的淡入效果 */
}

.feature-card-img {
    width: 600px;
    aspect-ratio: 547 / 326;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.3s;
}

.feature-card-img:hover {
    transform: translateY(-5px);
}

/* 背景图路径全部写在 CSS 里 */
.card-1-img {
    background-image: url('../p1_1.webp');
}

.card-2-img {
    background-image: url('../p1_2.webp');
}

.card-3-img {
    background-image: url('../p1_3.webp');
}

.card-4-img {
    background-image: url('../p2_1.webp');
}

.card-5-img {
    background-image: url('../p2_2.webp');
}

.card-6-img {
    background-image: url('../p2_3.webp');
}

.card-7-img {
    background-image: url('../p3_1.webp');
}

.card-8-img {
    background-image: url('../p3_2.webp');
}

.card-9-img {
    background-image: url('../p3_3.webp');
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 外层容器 */
.section-verify {
    width: 100vw;
    aspect-ratio: 1920 / 1248;
    position: relative;
    background: url('../t3.webp') center no-repeat;
    background-size: cover;
}

.section-story {
    width: 100vw;
    aspect-ratio: 1920 / 1368;
    position: relative;
    background: url('../t4.webp') center no-repeat;
    background-size: cover;
}

.section-comment {
    width: 100vw;
    aspect-ratio: 1920 / 1473;
    position: relative;
    background: url('../t5.webp') center no-repeat;
    background-size: cover;
}

.slider-section {
    width: 100%;
    overflow: hidden;
    position: absolute;
    bottom: 140px;
}

.slider-track {
    display: flex;
}

.slider-item {
    flex-shrink: 0;
    width: 50%;
    height: 350px;
    background-size: 96% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px;
}

/* 图片路径全部写在 CSS 里 */
.item-1 {
    background-image: url('../c1.webp');
}

.item-2 {
    background-image: url('../c2.webp');
}

.item-3 {
    background-image: url('../c3.webp');
}

.item-4 {
    background-image: url('../c4.webp');
}

.section-footer {
    width: 100vw;
    height: 200px;
    padding: 40px 10vw;
    position: relative;
}


.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-desc {
    font-size: 20px;
    color: #111111;
    line-height: 1.5;
}
