/* 全局基础样式 */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system,BlinkMacSystemFont,Roboto,sans-serif;
}
html,body{
    background: #f0f2f7;
    color: #222;
}
body{
    padding: clamp(6px,1.5vw,8px);
    max-width: clamp(580px,90vw,720px);
    margin: 0 auto;
    padding-bottom: 90px !important;
}
.main-wrap{
    margin: 0 auto;
    padding: 1px;
}
@media(min-width: 768px){
    .main-wrap{
        max-width: 630px;
    }
}

/* 顶部标题栏 */
.top-bar{
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 14px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
}
.top-bar a{
    text-decoration: none;
    color: #000;
    font-size: 18px;
    margin-right: 12px;
}
.top-bar h1{
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.container{
    width: 100%;
}

/* 通用卡片样式 */
.card{
    background:#ffffff;
    border-radius:16px;
    padding:16px;
    margin-bottom:12px;
    box-shadow:0 1px 4px rgba(0,0,0,0.05);
}

/* APP头部Logo、名称、标签 */
.app-head{
    text-align:center;
}
.app-logo{
    width:75px;
    height:75px;
    border-radius:18px;
    object-fit:cover;
    margin:0 auto 12px;
    box-shadow:0 3px 10px rgba(0,0,0,0.1);
    max-width:100%;
}
.app-name{
    font-size:24px;
    font-weight:bold;
    margin-bottom:12px;
    text-align:center !important;
    width:100%;
    display:block;
}
.invite-tag{
    display:inline-block;
    background:#e8f2ff;
    color:#2574e0;
    padding:8px 20px;
    border-radius:40px;
    font-size:15px;
    margin-bottom:18px;
}

/* 按钮公共基础样式 */
.btn {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 10px 0;
    border-radius: 40px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border: none;
    margin: 12px 0;
}
.btn:not(:last-child){
    margin-bottom:12px;
}
.btn-blue{
    background:linear-gradient(90deg,#5864f0,#825cfa);
}
.btn-black{
    background:#1a1a1c;
}
.btn-gradient{
    background:linear-gradient(90deg,#ff3c44,#ff9c21);
}

/* 移动端适配 ≤767px */
@media screen and (max-width: 767px) {
    .btn {
        margin: 12px 28% !important;
    }
}

/* PC端适配 ≥768px（最终生效版本，已合并覆盖重复样式） */
@media screen and (min-width: 768px) {
    .btn-pc-wrap {
        display: flex;
        gap: 24px;
        justify-content: center;
        margin-top: 16px;
    }
    .btn-pc-wrap .btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        flex: 0 1 220px;
        padding:6px 3px;
        font-size:16px;
    }
}

/* 公告、温馨提示标题+正文 */
.block-title{
    display:flex;
    align-items:center;
    font-size:17px;
    font-weight:600;
    margin-bottom:10px;
    gap:6px;
}
.block-text{
    font-size:15px;
    line-height:1.65;
    color:#555;
    white-space:pre-line;
}

/* 横向图片轮播 */
.swiper-img{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding-bottom:4px;
}
.swiper-img::-webkit-scrollbar{
    height:3px;
}
.swiper-item{
    height:180px;
    width:auto;
    flex-shrink:0;
    border-radius:10px;
    object-fit:cover;
    max-width:100%;
}

/* 页脚 */
.footer{
    margin-top:32px;
    padding:10px;
    text-align:center;
    color:#777;
    font-size:clamp(10px,2.5vw,11px);
    line-height:1.8;
}

/* 右侧悬浮在线客服 */
.float-kf{
    position:fixed;
    right:clamp(0px,1vw,0px);
    bottom:clamp(100px,15vw,140px);
    z-index:998;
}
.float-kf a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:clamp(30px,6vw,30px);
    padding:clamp(15px,2vw,16px) 6px;
    background:linear-gradient(135deg,#1969f2,#1969f2);
    color:#fff;
    text-decoration:none;
    border-radius:0;
    box-shadow:0 4px 18px rgba(88,100,240,0.38);
    transition:0.22s ease all;
}
.float-kf a:hover{
    transform:translateX(-5px);
    box-shadow:0 6px 22px rgba(88,100,240,0.46);
}
.float-kf-text{
    font-size:clamp(12px,2.8vw,15px);
    font-weight:500;
    writing-mode:vertical-rl;
    letter-spacing:2px;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    left:0;
    right:0;
    bottom:0;
    height:75px;
    background:#ffffff;
    display:flex;
    z-index:999;
    border-top:1px solid #eee;
    width:100%;
}
.nav-item{
    flex:1;
    width:25%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#868686;
    font-size:13px;
}
.nav-item.active{
    color:#0066dd;
}
.nav-svg{
    width:22px;
    height:22px;
    margin-bottom:5px;
}
@media(min-width: 768px){
    .bottom-nav{
        max-width:630px;
        left:50%;
        transform:translateX(-50%);
    }
}
/*悬浮客服按钮*/
.float-kf{
    position:fixed;          /* 固定定位：页面滚动，按钮位置保持不变 */
    right:12px;              /* 距离浏览器右边 12px */
    bottom:96px;             /* 距离浏览器底部 96px */
    width:48px;              /* 按钮宽度 */
    height:48px;             /* 按钮高度 */
    border-radius:50%;       /* 圆角50% → 正方形变为圆形 */
    background:#2574e0;      /* 背景蓝色，和后台主题色一致 */
    display:flex;             /* flex弹性布局，实现内容居中 */
    align-items:center;       /* 垂直方向居中 */
    justify-content:center;   /* 水平方向居中 */
    color:#fff;               /* 内部文字/图标颜色白色 */
    font-size:20px;           /* 图标字号大小 */
    text-decoration:none;    /* 清除a标签默认下划线 */
    box-shadow:0 2px 8px rgba(37,116,224,0.3); /* 柔和蓝色阴影，增加立体感 */
    z-index:997;             /* 堆叠层级，数值大，防止被其他页面元素遮挡 */
}

