html {
    font-size: 12px;
    width: 100%;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html,body,#app{
    height: 100%;
}
#app {
    padding-bottom: 76px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.el-tabs__item {
    font-size: 14px;
    font-weight: bold;
}
.el-tabs__active-bar {
    height: 4px;
    background-image: linear-gradient(to right, #FF2442, #FF6B81);
}
.foot {
    width: 100%;
    height: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -1px 2px 1px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    background: #fff;
    flex-wrap: wrap;
}
.foot-disclaimer {
    width: 100%;
    height: 16px;
    line-height: 16px;
    font-size: 9px;
    color: #bbb;
    text-align: center;
    background: #f8f8f8;
    flex-shrink: 0;
}
/* 独立免责声明（无 foot-bar 的页面使用） */
.site-disclaimer {
    height: 18px;
    line-height: 18px;
    font-size: 9px;
    color: #bbb;
    text-align: center;
    background: #f8f8f8;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
}
.foot-box{
    width: 20%;
    color: #82848a;
    text-align: center;
}
.foot-view {
    font-size: 26px;
}
.foot-text{
    font-size: 8px;
    margin-top: -4px;
}
.foot-text, .foot-view{
    text-align: center;
}
.active{
    color: #FF2442;
}

/*element-ui的评价星星间隙*/
.el-rate__icon {
    margin-right: 0;
}

/* 平板 */
@media (min-width: 600px) and (max-width: 959px) {
    #app {
        max-width: 600px;
        margin: 0 auto;
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
    }
    .foot {
        left: 50%;
        transform: translateX(-50%);
        width: 600px;
    }
}
/* Element 消息提示居中（左右 auto margin 方案，不依赖 transform） */
.el-message,
.el-message--success,
.el-message--warning,
.el-message--error,
.el-message--info {
    position: fixed !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content !important;
    max-width: 90vw !important;
    transform: none !important;
}
/* 修正 Element message 动画不偏移 */
.el-message-fade-enter,
.el-message-fade-enter-active,
.el-message-fade-leave-active,
.el-message-fade-leave-to {
    transform: none !important;
}

/* 移动端弹窗不超出屏幕 */
@media (max-width: 600px) {
    .el-message {
        max-width: 90vw !important;
    }
    .el-message-box {
        width: 90% !important;
        max-width: 90vw !important;
    }
    .el-message-box__message p {
        word-break: break-all;
    }
    .el-dialog {
        max-width: 94vw !important;
    }
    .el-dialog__body {
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

/* 桌面端 */
@media (min-width: 960px) {
    body {
        background-color: #f0f0f0;
    }
    #app {
        max-width: 960px;
        margin: 0 auto;
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
        box-shadow: 0 0 20px rgba(0,0,0,0.08);
    }
    .foot {
        left: 50%;
        transform: translateX(-50%);
        width: 960px;
    }
}

