/*
 * Bootstrap（经 frontend.css 引入）含 html { font-size: 10px }，Tailwind 工具类用 rem 相对根元素：
 * text-sm = 0.875rem → 8.75px。首页未加载该规则时浏览器默认约 16px → text-sm ≈ 14px，导航观感一致。
 * 仅在加载 user.css 的个人中心页覆盖根字号，与首页导航对齐。
 */
html {
  font-size: 16px;
}

/* 与首页相同的版心：max-w-7xl + px-4 sm:px-6 lg:px-8；横向不占 main，避免与横幅错位 */
main.user-layout-main {
  width: 100%;
  overflow: auto;
  padding: 1.5rem 0 2.5rem;
  min-height: calc(100vh - 135px);
  /* 参照后台型个人中心：浅灰底 */
  background-color: #f0f2f5;
}
@media (max-width: 767px) {
  main.user-layout-main {
    position: inherit;
    padding: 1rem 0 1.75rem;
  }
}

/*
 * 与 user_center_banner 内层对齐（max-w-7xl + 同款水平 padding），不用 Bootstrap .container 定宽。
 */
main.user-layout-main #content-container.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  main.user-layout-main #content-container.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  main.user-layout-main #content-container.container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 内容区卡片：贴近首页白卡片 + 细边框阴影 */
main.user-layout-main #content-container .panel {
  margin-bottom: 0;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
main.user-layout-main #content-container .panel-default {
  border-color: #e5e7eb;
}
main.user-layout-main #content-container .panel-body {
  padding: 1.5rem;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.625;
}
main.user-layout-main #content-container .panel-body p:last-child {
  margin-bottom: 0;
}
main.user-layout-main #content-container .panel-heading {
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

@media (min-width: 992px) {
  main.user-layout-main .sidenav.user-sidenav {
    border-radius: 0.5rem;
    border: none !important;
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0 1rem !important;
  }
  main.user-layout-main .user-sidenav .user-sidenav-list {
    margin-bottom: 0;
  }
  main.user-layout-main .user-sidenav .list-group-heading {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #8c8c8c;
    border-bottom: 1px solid #f0f0f0;
  }
  main.user-layout-main .user-sidenav .list-group-item {
    border: none !important;
    padding: 0 0.5rem;
    margin-bottom: 0.25rem;
    background: transparent;
  }
  main.user-layout-main .user-sidenav .list-group-item > a {
    display: block;
    padding: 0.65rem 1rem !important;
    border-radius: 0.25rem;
    margin: 0 !important;
    font-size: 0.9375rem;
    color: #595959 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  main.user-layout-main .user-sidenav .list-group-item:not(.disabled):not(.active) > a:hover {
    background-color: #f5f5f5 !important;
    color: #262626 !important;
  }
  main.user-layout-main .user-sidenav .list-group-item.disabled > a {
    color: #bfbfbf !important;
    cursor: not-allowed;
  }
  /* 当前页：深蓝底 + 白字（参照示例侧栏） */
  main.user-layout-main .user-sidenav .list-group-item.active > a {
    color: #fff !important;
    background-color: #1d4ed8 !important;
    box-shadow: 0 1px 3px rgba(29, 78, 216, 0.35);
  }
  main.user-layout-main .user-sidenav .list-group-item.active > a .fa {
    color: #fff !important;
  }
}

h2.page-header {
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}
main.user-layout-main #content-container .page-header {
  margin-top: 0;
}
.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";
}

/* layout/default 同时加载 Bootstrap(frontend.css) 与公共导航 Tailwind 类名。
 * Bootstrap 的 .hidden 与 Tailwind 的 hidden/sm:flex 同名冲突，桌面端菜单被永久隐藏。
 * 用结构选择器还原导航栏三列布局（与 common/navbar.html 一致）。 */
@media (min-width: 640px) {
  #navbar .justify-between.h-16 > div:nth-child(1) > div {
    display: flex !important;
  }
  #navbar .justify-between.h-16 > div:nth-child(2) {
    display: flex !important;
  }
  #navbar .justify-between.h-16 > div:nth-child(3) {
    display: none !important;
  }
}

@media (max-width: 639px) {
  #navbar .justify-between.h-16 > div:nth-child(3) {
    display: flex !important;
  }
}

/* 底部与首页一致使用 Tailwind 式 container；减弱 Bootstrap .container 对 footer 的挤压 */
footer.bg-dark .container.mx-auto {
  width: auto;
  max-width: 1280px;
}

/*
 * Bootstrap：body { padding-top: 60px } 为旧版固定导航预留；个人中心用自建 fixed #navbar，
 * 叠加后顶部多出一块空白，这里清零（首页静态页不加载 frontend.css，无此问题）。
 */
body {
  padding-top: 0 !important;
}
@media (max-width: 768px) {
  body {
    padding-top: 0 !important;
  }
}

/*
 * Bootstrap frontend.css 全局 a { color: #337ab7 } 会盖住 Tailwind 导航灰字。
 * 字号由 html 根字号 + text-sm 与首页一致（见文件顶部）。
 */
#navbar a {
  text-decoration: none !important;
}
#navbar a[data-menu] {
  color: #6b7280 !important;
}
#navbar a[data-menu]:hover {
  color: #374151 !important;
}
#navbar a[data-menu].border-primary.text-gray-900 {
  color: #111827 !important;
  border-bottom-width: 2px !important;
  border-bottom-style: solid !important;
  border-bottom-color: #4f46e5 !important;
}
#navbar .justify-between.h-16 > div:nth-child(2) a.text-sm.text-gray-700 {
  color: #374151 !important;
}
#navbar .justify-between.h-16 > div:nth-child(2) a.text-sm.text-gray-600 {
  color: #4b5563 !important;
}
/* 登录后「积分」入口：主色链接感，不受上行灰色覆盖 */
#navbar .justify-between.h-16 > div:nth-child(2) a.text-primary {
  color: #4f46e5 !important;
}
#navbar .justify-between.h-16 > div:nth-child(2) a.text-primary:hover {
  color: #4338ca !important;
}
#navbar .justify-between.h-16 > div:nth-child(2) a:hover {
  color: #4f46e5 !important;
}
#navbar a.bg-primary.text-white,
#navbar a.bg-primary.text-white:hover {
  color: #fff !important;
}

/* ---------- 个人中心主内容：参照后台列表（白卡片 + 浅灰底 + 细表格） ---------- */
main.user-layout-main #content-container .panel.user-center-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  overflow: hidden;
}
main.user-layout-main #content-container .panel.user-center-card .panel-heading {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem 1.25rem;
}
main.user-layout-main #content-container .panel.user-center-card .panel-body {
  padding: 1.25rem 1.5rem;
}
.user-center-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.user-center-card__toolbar .panel-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #262626;
}
.user-center-btn-primary {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  background-color: #1d4ed8;
  color: #fff !important;
  border: none;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}
.user-center-btn-primary:hover,
.user-center-btn-primary:focus {
  background-color: #1e40af;
  color: #fff !important;
}
.user-center-meta {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #8c8c8c;
}
.user-center-meta strong {
  color: #1d4ed8;
  font-weight: 600;
}
.user-center-table-wrap {
  overflow-x: auto;
  margin: 0;
}
main.user-layout-main .table.user-center-table {
  margin-bottom: 0;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #fff;
}
main.user-layout-main .table.user-center-table > thead > tr > th {
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: #595959;
  background-color: #fafafa;
}
main.user-layout-main .table.user-center-table > tbody > tr > td {
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 0.85rem 1rem;
  vertical-align: middle;
  color: #262626;
}
main.user-layout-main .table.user-center-table > tbody > tr:last-child > td {
  border-bottom: none !important;
}
main.user-layout-main .table.user-center-table > tbody > tr:hover {
  background-color: #fafafa;
}
.user-center-action-link {
  color: #1d4ed8 !important;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none !important;
}
.user-center-action-link:hover,
.user-center-action-link:focus {
  color: #1e40af !important;
  text-decoration: underline !important;
}
.user-center-footer-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}
main.user-layout-main #content-container .panel.user-center-card h2.page-header {
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #262626;
}

@media (max-width: 991px) {
  .sidenav.user-sidenav {
    background-color: #fff !important;
  }
  .sidenav.user-sidenav .list-group-heading {
    padding: 0 1rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #8c8c8c;
    border-bottom: 1px solid #f0f0f0;
  }
  .sidenav.user-sidenav .list-group-item {
    border: none !important;
    background: transparent;
  }
  .sidenav.user-sidenav .list-group-item > a {
    border-radius: 0.25rem;
    color: #595959 !important;
  }
  .sidenav.user-sidenav .list-group-item.active > a {
    color: #fff !important;
    background-color: #1d4ed8 !important;
  }
}

/*
 * Tailwind Preflight：img { max-width: 100%; height: auto }
 * Bootstrap：.input-group-btn { width: 1%; }
 * 二者叠加后验证码父列宽度极小，图片按 100% 宽度收缩至几乎不可见；直接打开验证码 URL 无此布局故正常。
 */
main.user-layout-main .input-group .input-group-btn > img {
  max-width: none;
  width: 100px;
  height: 32px;
  vertical-align: middle;
  cursor: pointer;
}
/*# sourceMappingURL=user.css.map */