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";
}

/* 新版用户中心公共样式 */
.user-center-wrapper {
  min-height: calc(100vh - 200px);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  padding: 40px 0;
}
.user-center-wrapper .container {
  max-width: 960px;
}

/* 顶部用户卡片 */
.user-hero-card {
  background: linear-gradient(135deg, #1890ff, #096dd9);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(24, 144, 255, 0.3);
}
.user-hero-card .user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  flex-shrink: 0;
}
.user-hero-card .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-hero-card .user-info {
  flex: 1;
}
.user-hero-card .user-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.user-hero-card .user-info p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}
.user-hero-card .user-actions {
  display: flex;
  gap: 12px;
}
.user-hero-card .user-actions .btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.user-hero-card .user-actions .btn-edit {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.user-hero-card .user-actions .btn-edit:hover {
  background: rgba(255, 255, 255, 0.35);
}
.user-hero-card .user-actions .btn-logout {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.user-hero-card .user-actions .btn-logout:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 统计卡片 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.stat-card .stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.stat-card .stat-label {
  font-size: 13px;
  color: #999;
}

/* 侧边栏和内容区 */
.user-body {
  display: flex;
  gap: 24px;
}
.user-sidebar {
  width: 220px;
  flex-shrink: 0;
}
.user-sidebar .sidebar-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.user-sidebar .sidebar-header {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.user-sidebar .sidebar-nav {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.user-sidebar .sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.user-sidebar .sidebar-nav li a:hover {
  background: #f5f9ff;
  color: #1890ff;
}
.user-sidebar .sidebar-nav li a.active {
  background: #f0f7ff;
  color: #1890ff;
  border-left-color: #1890ff;
  font-weight: 600;
}
.user-sidebar .sidebar-nav li a i {
  width: 18px;
  text-align: center;
}
/* 侧边栏分隔线 */
.sidebar-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 16px;
}
/* 工单未读红点 */
.badge-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 77, 79, 0); }
}
.user-content {
  flex: 1;
  min-width: 0;
}
.user-content .content-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.user-content .content-card .card-header {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-content .info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.user-content .info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.user-content .info-item .info-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.user-content .info-item .info-value {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* 快捷入口 */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}
.quick-link:hover {
  background: #f0f7ff;
  border-color: #d6e4ff;
  color: #1890ff;
  transform: translateY(-1px);
}
.quick-link i {
  font-size: 18px;
  color: #1890ff;
}

/* 工单页特有 */
.ticket-content .card-header .btn-create {
  background: linear-gradient(135deg, #1890ff, #096dd9);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}
.ticket-content .card-header .btn-create:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}
.ticket-content .empty-state .btn-create {
  background: #fff;
  color: #1890ff;
  border: 1px solid #1890ff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}
.ticket-content .empty-state .btn-create:hover {
  background: #1890ff;
  color: #fff;
}
.ticket-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}
.ticket-item:hover {
  background: #f8fafc;
}
.ticket-item:last-child {
  border-bottom: none;
}
.ticket-info {
  flex: 1;
  min-width: 0;
}
.ticket-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1a1a2e;
}
.ticket-info h4 a {
  color: #1a1a2e;
  text-decoration: none;
}
.ticket-info h4 a:hover {
  color: #1890ff;
}
.ticket-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 16px;
}
.ticket-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ticket-status {
  margin-left: 16px;
  flex-shrink: 0;
}
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.status-open { background: #fff2f0; color: #ff4d4f; }
.status-processing { background: #e6f7ff; color: #1890ff; }
.status-closed { background: #f6ffed; color: #52c41a; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.empty-state i {
  font-size: 48px;
  color: #d9d9d9;
  margin-bottom: 16px;
}
.empty-state p {
  font-size: 14px;
  margin-bottom: 24px;
}
.pagination-wrapper {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.pagination-wrapper .pagination {
  margin: 0;
}
.priority-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 8px;
}
.priority-high { background: #fff2f0; color: #ff4d4f; }
.priority-medium { background: #fffbe6; color: #faad14; }
.priority-low { background: #e6f7ff; color: #1890ff; }

/* 工单表单 */
.ticket-form .form-group {
  margin-bottom: 20px;
}
.ticket-form label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: block;
}
.ticket-form label .required {
  color: #ff4d4f;
  margin-left: 2px;
}
.ticket-form input[type="text"],
.ticket-form input[type="email"],
.ticket-form input[type="tel"],
.ticket-form select,
.ticket-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
}
.ticket-form input[type="text"]:focus,
.ticket-form input[type="email"]:focus,
.ticket-form input[type="tel"]:focus,
.ticket-form select:focus,
.ticket-form textarea:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}
.ticket-form textarea {
  min-height: 180px;
  resize: vertical;
}
.ticket-form .btn-submit {
  background: linear-gradient(135deg, #1890ff, #096dd9);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.ticket-form .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}
.ticket-form .btn-back,
.btn-back {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.ticket-form .btn-back:hover,
.btn-back:hover {
  background: #e8e8e8;
  color: #333;
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group {
  flex: 1;
}
.alert-tip {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #1890ff;
  margin-bottom: 24px;
}
.alert-tip i {
  margin-right: 6px;
}

/* 工单详情 */
.ticket-detail-header {
  margin-bottom: 24px;
}
.ticket-detail-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px 0;
}
.ticket-detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.ticket-detail-info .info-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ticket-detail-body {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 24px;
  white-space: pre-wrap;
  word-break: break-all;
}
.ticket-reply-box {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}
.ticket-reply-box .reply-header {
  font-size: 14px;
  font-weight: 600;
  color: #52c41a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticket-reply-box .reply-body {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}
.ticket-reply-box .reply-meta {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d9f7be;
}
.no-reply {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 14px;
}
.no-reply i {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
  color: #ddd;
}

/* 个人资料页 */
.profile-content .card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.profile-content .form-group {
  margin-bottom: 22px;
}
.profile-content .form-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.profile-content .form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s;
}
.profile-content .form-control:focus {
  border-color: #1890ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
  outline: none;
}
.profile-content .form-control:disabled {
  background: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 12px;
}
.profile-avatar-section .avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0e0e0;
}
.profile-avatar-section .avatar-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
}
.profile-avatar-section .avatar-info p {
  font-size: 12px;
  color: #999;
  margin: 0 0 10px 0;
}
.profile-avatar-section .btn-upload {
  display: inline-block;
  padding: 6px 16px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.profile-avatar-section .btn-upload:hover {
  background: #096dd9;
}
.profile-content .input-group {
  display: flex;
  gap: 0;
}
.profile-content .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.profile-content .input-group .btn-change {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.profile-content .form-footer {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.profile-content .form-footer .btn-save,
.changepwd-content .form-footer .btn-save {
  height: 42px;
  padding: 0 32px;
  background: linear-gradient(135deg, #1890ff, #096dd9);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.profile-content .form-footer .btn-save:hover,
.changepwd-content .form-footer .btn-save:hover {
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}
.profile-content .form-footer .btn-reset,
.changepwd-content .form-footer .btn-reset {
  height: 42px;
  padding: 0 32px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* 第三方绑定区 */
.third-bind-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
.third-bind-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.third-bind-section h4 i { color: #1890ff; }
.third-bind-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.third-bind-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s;
}
.third-bind-item:hover {
  background: #f0f7ff;
  border-color: #d6e4ff;
}
.third-bind-item .platform-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.third-bind-item .platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}
.platform-icon.wechat { background: #07c160; }
.platform-icon.qq { background: #12b7f5; }
.platform-icon.weibo { background: #e6162d; }
.third-bind-item .platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.third-bind-item .platform-detail {
  font-size: 12px;
  color: #999;
}
.third-bind-item .bind-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bind-status .status-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.status-badge.bound { background: #f6ffed; color: #52c41a; }
.status-badge.unbound { background: #fff7e6; color: #fa8c16; }
.bind-status .btn-bind {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #1890ff;
  color: #1890ff;
  background: #fff;
  transition: all 0.2s;
}
.bind-status .btn-bind:hover {
  background: #1890ff;
  color: #fff;
}
.bind-status .btn-unbind {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
}
.bind-status .btn-unbind:hover {
  background: #ff4d4f;
  color: #fff;
}

/* 修改密码页 */
.changepwd-content .card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.changepwd-content .card-title i { color: #1890ff; }
.changepwd-content .form-group {
  margin-bottom: 22px;
}
.changepwd-content .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.changepwd-content .form-control {
  width: 100%;
  max-width: 420px;
  height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s;
}
.changepwd-content .form-control:focus {
  border-color: #1890ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
  outline: none;
}
.changepwd-content .form-footer {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.changepwd-content .help-block {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
}
.pwd-strength {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  max-width: 420px;
}
.pwd-strength .bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #f0f0f0;
  transition: all 0.3s;
}
.pwd-strength .bar.weak { background: #ff4d4f; }
.pwd-strength .bar.medium { background: #fa8c16; }
.pwd-strength .bar.strong { background: #52c41a; }

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .user-body {
    flex-direction: column;
  }
  .user-sidebar {
    width: 100%;
  }
  .user-sidebar .sidebar-card {
    position: static;
  }
  .user-hero-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .user-hero-card .user-actions {
    justify-content: center;
  }
  .user-content .info-grid {
    grid-template-columns: 1fr;
  }
  .quick-links {
    grid-template-columns: 1fr;
  }
  .ticket-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ticket-status {
    margin-left: 0;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .profile-content .input-group .btn-change {
    padding: 0 10px;
  }
  .third-bind-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .changepwd-content .form-control {
    max-width: 100%;
  }
}
