h2.page-header {
  margin: 10px 0 25px 0;
  padding-bottom: 15px;
}
.user-baseinfo {
  margin-bottom: 25px;
}
.user-baseinfo table tr td {
  color: #999;
}
@media (min-width: 992px) {
  .user-center .avatar-text,
  .user-center .avatar-img {
    height: 150px;
    width: 150px;
    border-radius: 150px;
    line-height: 150px;
    font-size: 70px;
  }
  .user-center .avatar-img {
    font-size: 0;
  }
  .user-center .avatar-img img {
    height: 150px;
    width: 150px;
    border-radius: 150px;
  }
}
.sidebar-toggle {
  display: none;
}
@media (max-width: 991px) {
  .sidenav {
    position: fixed;
    top: 50px;
    z-index: 1029;
    height: calc(100vh - 50px);
    padding: 20px 0 20px 0;
    min-width: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 250px;
    left: -250px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .sidebar-toggle {
    display: block;
    position: fixed;
    right: 20px;
    bottom: 70px;
    border-radius: 50%;
    background: #eee;
    font-size: 22px;
    padding: 10px;
    line-height: 30px;
    height: 50px;
    width: 50px;
    text-align: center;
    z-index: 999999;
  }
}
body.sidebar-open .sidenav {
  left: 0;
  width: 250px;
  box-shadow: 0 6px 27px rgba(0, 0, 0, 0.075);
}
body.sidebar-open .sidebar-toggle i:before {
  content: "\f00d";
}

/* ============================================
   H5移动端优先适配 - 前台用户页面
   以H5为主，PC端保持原有布局
   ============================================ */

/* --- 通用移动端适配 --- */
@media (max-width: 767px) {
  /* 页面容器减少左右边距 */
  #content-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* 面板去掉多余边距 */
  .panel {
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .panel-body {
    padding: 15px 12px;
  }

  /* 页面标题 */
  h2.page-header {
    margin: 5px 0 15px 0;
    padding-bottom: 10px;
    font-size: 18px;
  }

  /* 表单组增加间距，减少误触 */
  .form-group {
    margin-bottom: 16px;
  }

  /* 标签左对齐，更符合移动端阅读习惯 */
  .control-label {
    text-align: left !important;
    padding-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
  }

  /* 输入框：16px防止iOS缩放，44px触摸友好高度 */
  .form-control {
    font-size: 16px;
    height: 44px;
    padding: 10px 12px;
    border-radius: 6px;
  }

  /* 下拉选择框 */
  select.form-control {
    height: 44px;
    font-size: 16px;
  }

  /* 文本域 */
  textarea.form-control {
    height: auto;
    min-height: 100px;
    font-size: 16px;
  }

  /* 按钮触摸友好 */
  .btn:not(.btn-xs):not(.btn-sm) {
    height: 44px;
    font-size: 16px;
    border-radius: 6px;
    padding: 10px 16px;
  }
  .btn-lg {
    height: 48px;
    font-size: 17px;
  }
  .btn-block {
    width: 100%;
  }

  /* 单选/复选框放大触摸区域 */
  .radio label,
  .checkbox label,
  .radio-inline,
  .checkbox-inline {
    padding: 10px 12px;
    font-size: 15px;
    min-height: 44px;
    line-height: 24px;
  }

  /* 输入框组合 */
  .input-group-btn .btn {
    height: 44px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* --- 登录/注册页面 --- */
  .user-section {
    margin-top: 10px;
  }
  .logon-tab {
    font-size: 16px;
  }
  .logon-tab a {
    padding: 12px 20px;
  }
  .login-main {
    padding: 20px 15px;
  }
  .login-main .form-control {
    font-size: 16px;
    height: 46px;
  }
  .login-main .btn-lg {
    height: 48px;
    font-size: 17px;
    border-radius: 8px;
  }
  .btn-forgot {
    font-size: 14px;
    padding: 8px 0;
  }

  /* --- 会员中心首页 --- */
  .user-baseinfo {
    margin-bottom: 15px;
  }
  .user-baseinfo .user-center {
    margin-bottom: 10px;
  }
  .user-baseinfo .user-center .avatar-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }
  .basicinfo .row > div {
    font-size: 13px;
    padding: 4px 8px;
  }
  .basicinfo .row > .col-xs-4 {
    padding-right: 0;
    color: #999;
  }
  .page-header .btn {
    height: auto;
    font-size: 13px;
    padding: 5px 10px;
  }

  /* --- 个人资料页 --- */
  .profile-avatar-container {
    width: 80px !important;
  }
  .profile-avatar-container .profile-user-img {
    width: 80px !important;
    height: 80px !important;
  }
  .profile-avatar-container .profile-avatar-text {
    height: 80px !important;
    width: 80px !important;
    line-height: 80px !important;
    font-size: 12px;
  }
  .profile-avatar-container button {
    width: 80px !important;
    height: 80px !important;
  }

  /* 修改密码页按钮全宽 */
  .normal-footer .btn,
  .normal-footer .btn-primary,
  .normal-footer .btn-default {
    width: 100%;
    margin-bottom: 8px;
  }

  /* 弹出层表单（修改邮箱/手机） */
  .form-layer {
    min-width: auto !important;
  }
  .form-body {
    padding: 12px;
  }
}

/* --- PC端微调 --- */
@media (min-width: 768px) {
  .control-label {
    text-align: right;
  }
}