/* 通用样式 */
body {
    background-color: #f2f2f2;
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px; /* 为底部导航栏留出空间 */
}

.layui-container {
    padding-bottom: 60px; /* 为底部导航栏留出空间 */
}

/* 登录注册页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info .info h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.user-info .info p {
    margin: 5px 0 0;
    color: #666;
}

/* 余额信息样式 */
.balance-info {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.balance-info .item {
    text-align: center;
}

.balance-info .item h4 {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.balance-info .item .amount {
    margin: 5px 0 0;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

/* 客服页面样式 */
.customer-service-box {
    text-align: center;
    padding: 30px 0;
}

.customer-service-box p {
    color: #666;
    margin-bottom: 20px;
}

/* 底部导航栏样式 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 55px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.1);
    z-index: 9999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    width: 25%;
    height: 100%;
    padding: 5px 0;
}

.nav-item.active {
    color: #1E9FFF;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    display: inline-block;
}

.home-icon {
    background: url('/static/mobile/images/home.png') no-repeat center;
    background-size: contain;
}

.notice-icon {
    background: url('/static/mobile/images/notice.png') no-repeat center;
    background-size: contain;
}

.service-icon {
    background: url('/static/mobile/images/service.png') no-repeat center;
    background-size: contain;
}

.user-icon {
    background: url('/static/mobile/images/user.png') no-repeat center;
    background-size: contain;
}

/* 表单样式 */
.layui-form-item {
    margin-bottom: 20px;
}

.layui-form-label {
    width: 100px;
}

.layui-input-block {
    margin-left: 100px;
}

/* 按钮样式 */
.layui-btn {
    width: 100%;
}

.layui-btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.layui-btn-group .layui-btn {
    width: 48%;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .layui-form-label {
        width: 80px;
    }

    .layui-input-block {
        margin-left: 80px;
    }
}