html,
body,
#app {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.box {
    background-size: 100% 100%;
    width: 100vw;
    min-width: 320px;
    height: 100vh;
    margin: 0 auto;
    overflow-x: hidden; /* 只隐藏水平滚动条，允许阴影显示 */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.down-tips {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0px;
    background: #FFF;
}


.down-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    color: #3D8AF5;
    font-family: "PingFang SC";
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
}

.app-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.down-tips-icon {
    width: 30px;
    height: 30px;
}

.down-btn {
    color: #FFF;
    font-family: "PingFang SC";
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
    border-radius: 24px;
    background: #3D8AF5;
    padding: 5px 20px;
    cursor: pointer;
    border: none;
}

.down-doc {
    width: 95%;
    margin-top: 8px;
    color: #000;
    font-family: "PingFang SC";
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
}

.header_logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.header_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 98%;
    margin: 0 auto;
}

.icon-img {
    width: 100%;
}

.back {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.header_text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.header_text_title {
    color: #000;
    text-align: center;
    font-family: PangMenZhengDao;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 5px;
}

.header_text_desc {
    color: #000;
    text-align: center;
    font-family: "PingFang SC";
    font-size: 20px;
    font-weight: 500;
}
.down {
    width: 60%;
    max-width: 420px;
    /* height: 60px; */
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: #1777FF;
    padding: 10px 0;
    margin-top: 20px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.down-text {
    color: #FFF;
    text-align: center;
    font-family: "PingFang SC";
    font-size: 14px;
    font-weight: 600;
}

.loading-icon {
    vertical-align: middle;
    margin-right: 6px;
}

.down[disabled] {
    opacity: 0.6;
    pointer-events: none;
}



@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

.hidden {
    display: none;
}

.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #1777FF;
    padding: 10px 0;
  
    box-shadow: 0 4px 4px 0 rgba(60, 100, 156, 0.10);
    position: relative;
    z-index: 10;
}

.header .header_left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
}

.header .header_left img {
    width: 40px;
    height: 40px;
}

.header .header_left .header_left_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.header .header_left .header_left_text .header_left_text_title {
    font-size: 20px;
    font-weight: 600;
}

.header .header_left .header_left_text .header_left_text_desc {
    font-size: 14px;
    font-weight: 400;
    color: #000;
}

.header .header_right {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1777FF;
    padding: 9px 16px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.header .header_right[disabled] {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.continer {
    width: 100%;
    /* height: calc(100%-80px); */
    position: relative;
    background: linear-gradient(199deg, #F6FFE4 -9.68%, #3D8AF5 100.94%);
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  
}

.continer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/PCBg.png') repeat;
    background-size: contain; /* 使用图片原始尺寸，不拉伸 */
    opacity: 0.3; /* 控制图片的透明度 */
    pointer-events: none; /* 让鼠标事件穿透到下层 */
    z-index: 0;
}

.continer .continer_content {
    width: 260px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1; /* 确保内容在背景图上方 */
    justify-content: center;
    background: #fff;
    border-radius: 13px;
    margin-top: 30px;
    /* padding: 40px ; */
    flex-direction: column;
    padding: 30px 60px;
}

.continer .continer_content .continer_content_icon {
    width: 80px;
    height: 80px;
}

.continer .continer_content .continer_content_title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
    color: #000;
    font-size: 24px;
}

.continer .continer_content .continer_content_desc {
    font-size: 18px;
    font-weight: 400;
    color: #000;
}

/* 群组内容样式 - 只影响continer_content内部 */
.continer_content.group-content {
    background: white;
    position: relative;
    border-radius: 13px;
}

/* 群组背景图案 - 已移除，使用纯白色背景 */

/* 好友卡片样式 */
.friend-card {
    text-align: center;
    max-width: 320px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.friend-avatar {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.friend-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.friend-name {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    font-family: "PingFang SC";
}

.friend-id {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-family: "PingFang SC";
}

.friend-open-btn {
    background: #1777FF;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: "PingFang SC";
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.friend-open-btn:hover {
    background: #1565C0;
    box-shadow: 0 5px 15px rgba(23, 119, 255, 0.3);
}

.friend-open-btn[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.group-card {
    text-align: center;
    max-width: 320px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.group-avatar {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.group-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* 群组头像网格样式已移除，现在使用单个头像 */

.group-name {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    font-family: "PingFang SC";
}

.group-members {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-family: "PingFang SC";
}

.group-open-btn {
    background: #1777FF;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: "PingFang SC";
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.group-open-btn:hover {
    background: #1565C0;
    box-shadow: 0 5px 15px rgba(23, 119, 255, 0.3);
}

.group-open-btn[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .friend-avatar {
        width: 80px;
        height: 80px;
    }
    
    .friend-name {
        font-size: 20px;
    }
    
    .friend-id {
        font-size: 14px;
    }
    
    .friend-open-btn {
        padding: 10px 25px;
        font-size: 16px;
    }
    
    .group-avatar {
        width: 80px;
        height: 80px;
    }
    
    .group-name {
        font-size: 20px;
    }
    
    .group-members {
        font-size: 14px;
    }
    
    .group-open-btn {
        padding: 10px 25px;
        font-size: 16px;
    }
}

/* iOS海外账号选择弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-dialog {
    background: white;
    border-radius: 20px;
    padding: 30px 25px 25px 25px;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-question {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin-bottom: 25px;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.2s ease;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.modal-btn-secondary {
    background-color: #f5f5f5;
    color: #007AFF;
    border: 1px solid #e0e0e0;
}

.modal-btn-secondary:hover {
    background-color: #e8e8e8;
}

.modal-btn-secondary:active {
    background-color: #d0d0d0;
    transform: scale(0.98);
}

.modal-btn-primary {
    background-color: #007AFF;
    color: white;
}

.modal-btn-primary:hover {
    background-color: #0056CC;
}

.modal-btn-primary:active {
    background-color: #004499;
    transform: scale(0.98);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-dialog {
        margin: 0 20px;
        padding: 35px 20px 30px 20px;
    }
    
    .modal-question {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .modal-btn {
        padding: 10px 16px;
        font-size: 15px;
        min-height: 40px;
    }
    
    .modal-buttons {
        gap: 10px;
    }
}

/* 微信浏览器引导遮罩样式 */
.wechat-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.wechat-guide-arrow {
    position: absolute;
    top: 60px;
    right: 30px;
    width: 120px;
    height: 120px;
    background-image: url('../img/guide-row.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wechat-guide-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
}

.wechat-guide-step {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #fff;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

.wechat-guide-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    font-size: 24px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.wechat-guide-text {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .wechat-guide-arrow {
        top: 5px;
        right: 20px;
        width: 100px;
        height: 100px;
    }
    
    .wechat-guide-number {
        width: 35px;
        height: 35px;
        font-size: 20px;
        margin-right: 12px;
    }
    
    .wechat-guide-text {
        font-size: 18px;
    }
    
    .wechat-guide-step {
        margin-bottom: 25px;
    }
}
.open-app-toast {
    width:164px;
    position: fixed;
    top:60px;
    right:20px;
    z-index: 1000;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    padding:10px;
    font-size:14px;
    border-radius: 10px;
    display: none;
}
.open-app-toast::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.8);
}
.open-app-toast span {
    color: #FFC61A;
}