/* 基础样式 */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a86ff;
  --accent-color: #4895ef;
  --dark-color: #333;
  --light-color: #f8f9fa;
  --success-color: #4cc9f0;
  --warning-color: #ffd166;
  --danger-color: #ef476f;
  --border-radius: 12px;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --header-gradient: linear-gradient(135deg, #4361ee, #3a86ff);
}

/* 页面通用样式 */
h2.page-header {
  margin: 10px 0 25px 0;
  padding-bottom: 15px;
  border-bottom: none;
}

/* 用户信息基础样式 */
.user-baseinfo {
  margin-bottom: 25px;
}

.user-baseinfo table tr td {
  color: #999;
}

/* 侧边栏样式 */
.sidenav {
  background: #fff;
  height: 100%;
  border-radius: var(--border-radius);
  padding: 0;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  z-index: 10;
  width: 250px;
  transition: var(--transition);
  border: 1px solid #eaedf1;
}

/* 折叠侧边栏样式 */
.sidenav.collapsed {
  width: 70px;
}

.sidenav.collapsed .nav-section-header span,
.sidenav.collapsed .list-group-item .nav-text,
.sidenav.collapsed .user-panel-info,
.sidenav.collapsed .nav-arrow,
.sidenav.collapsed .nav-arrow-sub,
.sidenav.collapsed .nav-child,
.sidenav.collapsed .nav-child-sub {
  display: none;
}

.sidenav.collapsed .list-group-item {
  padding: 10px 0;
  text-align: center;
}

.sidenav.collapsed .list-group-item i {
  margin-right: 0;
  font-size: 18px;
}

.sidenav.collapsed .nav-section-header {
  padding: 10px 0;
  text-align: center;
}

.sidenav.collapsed .nav-section-header i {
  margin-right: 0;
  font-size: 16px;
}

/* 内容区域自适应 */
body.sidenav-collapsed .container {
  padding-left: 90px;
}

.sidebar-toggle {
  display: none;
  z-index: 1030;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: var(--primary-color);
  color: #fff;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  transform: rotate(0deg);
  background: var(--secondary-color);
}

/* 用户面板 */
.user-panel {
  padding: 15px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eaedf1;
  position: relative;
  background: var(--primary-color);
  color: #fff;
}

.user-panel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.user-panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-panel-info {
  flex: 1;
}

.user-panel-info .user-name {
  color: #fff;
  font-weight: 600;
  margin: 0;
  font-size: 15px;
}

.user-panel-info .user-role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin: 0;
}

/* 折叠按钮 */
.panel-collapse {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: var(--transition);
}

.panel-collapse:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.sidenav.collapsed .panel-collapse {
  right: 50%;
  transform: translate(50%, -50%);
}

/* 导航部分 */
.nav-section {
  margin-bottom: 0;
}

.nav-section-header {
  padding: 12px 15px 8px;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.nav-section-header i {
  margin-right: 10px;
  font-size: 14px;
  color: var(--primary-color);
}

.list-group {
  margin-bottom: 0;
  padding-left: 0;
  background: transparent;
}

.list-group-item {
  background: transparent;
  border: none;
  padding: 8px 15px;
  margin-bottom: 0;
  position: relative;
  color: var(--dark-color);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.list-group-item:hover,
.list-group-item.active {
  background: rgba(67, 97, 238, 0.08);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.list-group-item a {
  color: inherit;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.list-group-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--primary-color);
}

/* 二级菜单样式 */
.nav-parent {
  position: relative;
}

.nav-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #999;
  transition: var(--transition);
}

.nav-parent.open .nav-arrow {
  transform: translateY(-50%) rotate(90deg);
  color: var(--primary-color);
}

.nav-child {
  padding-left: 15px;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-parent.open .nav-child {
  max-height: 1500px;
}

.nav-child li {
  padding: 4px 10px;
  position: relative;
}

.nav-child li a {
  color: #666;
  font-size: 13px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  padding: 4px 0;
}

.nav-child li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.nav-child li.active a {
  color: var(--primary-color);
  font-weight: 500;
}

/* 三级菜单样式 */
.nav-parent-sub {
  position: relative;
  margin-bottom: 5px;
}

.nav-arrow-sub {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #999;
  transition: var(--transition);
}

.nav-parent-sub.open .nav-arrow-sub {
  transform: translateY(-50%) rotate(90deg);
  color: var(--primary-color);
}

.nav-child-sub {
  padding-left: 15px;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 5px;
}

.nav-parent-sub.open .nav-child-sub {
  max-height: 500px;
}

.nav-child-sub li {
  padding: 3px 0;
  position: relative;
}

.nav-child-sub li a {
  color: #777;
  font-size: 12px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  padding: 3px 0;
}

.nav-child-sub li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.nav-child-sub li.active a {
  color: var(--primary-color);
  font-weight: 500;
}

/* 用户中心主面板 */
.user-dashboard {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 25px;
  margin-bottom: 30px;
  overflow: hidden;
}

.dashboard-header {
  margin-bottom: 20px;
  position: relative;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
}

.badge-pulse {
  background: var(--header-gradient);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-left: 10px;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
  }
}

.dashboard-header-line {
  height: 4px;
  background: var(--header-gradient);
  border-radius: 2px;
  width: 100px;
  margin-bottom: 20px;
}

/* 用户概览卡片 */
.user-overview-card {
  display: flex;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  border: 1px solid rgba(67, 97, 238, 0.1);
  transition: var(--transition);
}

.user-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.user-overview-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  position: relative;
  border: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.user-overview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid white;
  bottom: 5px;
  right: 5px;
}

.status-badge.online {
  background-color: var(--success-color);
}

.user-overview-info {
  flex: 1;
}

.user-overview-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 5px 0;
}

.user-overview-bio {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.user-overview-stats {
  display: flex;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(67, 97, 238, 0.05);
  padding: 8px 12px;
  border-radius: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.stat-item i {
  color: var(--primary-color);
  margin-right: 5px;
}

.stat-item b {
  font-weight: 700;
  color: var(--primary-color);
}

/* 数据仪表盘 */
.data-dashboard {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  border: 1px solid rgba(67, 97, 238, 0.1);
}

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  display: flex;
  align-items: center;
}

.dashboard-section-header h3 i {
  margin-right: 10px;
  color: var(--primary-color);
}

.dashboard-controls {
  display: flex;
  align-items: center;
}

.time-selector {
  display: flex;
  background: #f5f7fa;
  border-radius: 20px;
  padding: 3px;
  overflow: hidden;
}

.time-selector span {
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 20px;
  transition: var(--transition);
}

.time-selector span.active {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(67, 97, 238, 0.1);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.metric-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(67, 97, 238, 0.1);
  margin-right: 15px;
  font-size: 20px;
  color: var(--primary-color);
}

.metric-data {
  flex: 1;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  display: flex;
  align-items: flex-end;
}

.metric-value small {
  font-size: 14px;
  margin-left: 2px;
}

.metric-label {
  font-size: 13px;
  color: #666;
  margin-top: 3px;
}

.metric-chart {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  opacity: 0.5;
  display: flex;
  align-items: flex-end;
}

.chart-bar {
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  margin-right: 2px;
}

/* 最近订单 */
.recent-orders {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eaedf1;
}

.view-all {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.view-all i {
  margin-left: 5px;
  font-size: 12px;
  transition: var(--transition);
}

.view-all:hover i {
  transform: translateX(5px);
}

.empty-state {
  text-align: center;
  padding: 30px 20px;
}

.empty-state-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 15px;
}

.empty-state h4 {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
  font-size: 16px;
}

.empty-state p {
  color: #666;
  margin-bottom: 15px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
}

/* 平台数据 */
.platform-stats {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eaedf1;
}

.platform-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.platform-stat-card {
  background: #f7f9ff;
  border-radius: var(--border-radius);
  padding: 15px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid #eaedf1;
}

.platform-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.platform-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 12px;
}

.platform-metrics {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.platform-metric {
  font-size: 12px;
}

.metric-name {
  color: #666;
  margin-bottom: 4px;
}

.metric-value {
  font-weight: 600;
  color: var(--dark-color);
}

.platform-chart {
  margin-top: 12px;
  height: 25px;
}

.chart-line svg {
  width: 100%;
  height: 100%;
}

.chart-line path {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 客服区块 */
.customer-service {
  border-radius: var(--border-radius);
  padding: 0;
  color: #333;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
  background: #fff;
  border: 1px solid #eaedf1;
  box-shadow: var(--card-shadow);
}

.cs-header {
  background: var(--primary-color);
  color: #fff;
  padding: 15px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  position: relative;
}

.cs-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cs-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-info {
  flex: 1;
}

.cs-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 3px;
}

.cs-title {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

.cs-content {
  padding: 15px;
  position: relative;
}

.cs-text {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.cs-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.cs-contact-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  background: #f7f9ff;
  padding: 8px 12px;
  border-radius: 30px;
  transition: var(--transition);
  color: var(--dark-color);
  border: 1px solid #eaedf1;
}

.cs-contact-item:hover {
  background: #edf1fd;
  transform: translateY(-2px);
}

.cs-contact-item i {
  margin-right: 8px;
  color: var(--primary-color);
}

.cs-buttons {
  display: flex;
  gap: 10px;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f9ff;
  color: var(--dark-color);
  border: 1px solid #eaedf1;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.cs-btn:hover {
  background: #edf1fd;
  transform: translateY(-2px);
}

.cs-btn i {
  margin-right: 8px;
  color: var(--primary-color);
}

.cs-btn-primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.cs-btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.cs-btn-primary i {
  color: #fff;
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* 响应式设计 */
@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;
  }
}

@media (max-width: 991px) {
  .sidenav {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    z-index: 1050;
    transition: var(--transition);
  }
  
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 40px;
    height: 40px;
    left: 15px;
    top: 15px;
    font-size: 16px;
  }
  
  .metrics-grid, .platform-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .user-overview-card {
    flex-direction: column;
    text-align: center;
  }
  
  .user-overview-avatar {
    margin: 0 auto 20px;
  }
  
  .user-overview-stats {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .metrics-grid, .platform-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .user-dashboard {
    padding: 15px;
    margin-top: 60px;
  }
}

body.sidebar-open .sidenav {
  left: 0;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
}

body.sidebar-open .sidebar-toggle i:before {
  content: "\f00d";
}

/* 账户数据样式 */
.account-data {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.account-data-item {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
}

.account-data-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.account-data-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
}

.text-primary {
  color: #4361ee !important;
}

/* 用户数据统计表格 */
.user-stats-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
}

.user-stats-table th,
.user-stats-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.user-stats-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #666;
  font-size: 13px;
}

.user-stats-table td {
  color: var(--dark-color);
}

.user-stats-table .stat-value {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 16px;
}

.user-stats-table .stat-unit {
  font-size: 13px;
  color: #666;
}

.user-stats-table .view-more {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 13px;
}

.user-stats-table .view-more:hover {
  text-decoration: underline;
}

/* 快捷入口样式 */
.quick-access {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.quick-access-item {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  transition: var(--transition);
  color: #333;
  text-decoration: none;
  border: 1px solid #eee;
}

.quick-access-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
  text-decoration: none;
}

.quick-access-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background: rgba(67, 97, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 18px;
  color: var(--primary-color);
}

.quick-access-title {
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 991px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .account-data {
    flex-direction: column;
  }
  
  .account-data-item {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .quick-access-grid {
    grid-template-columns: 1fr;
  }
}

/* 用户页面通用样式 */
body.user-center {
    background-color: #f5f7fa;
    color: #333;
}

/* 用户中心主容器 */
.user-container {
    padding-top: 30px;
    padding-bottom: 40px;
    min-height: calc(100vh - 180px);
}

/* 页面标题区域 */
.dashboard-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-header-line {
    height: 3px;
    width: 40px;
    background: #3498db;
    margin-bottom: 20px;
}

.badge-pulse {
    background-color: #27ae60;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    color: #fff;
    font-weight: normal;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* 会员信息卡片 */
.member-info-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.member-info-icons {
    display: flex;
    gap: 15px;
}

.icon-item .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
}

.bg-primary {
    background-color: #3498db;
}

.bg-success {
    background-color: #27ae60;
}

.bg-info {
    background-color: #2980b9;
}

.bg-warning {
    background-color: #f39c12;
}

.member-level {
    padding-right: 15px;
}

.level-badge {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 账户数据卡片 */
.account-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    height: 100%;
}

.account-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.account-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.bg-primary-light {
    background-color: rgba(52, 152, 219, 0.1);
}

.bg-success-light {
    background-color: rgba(39, 174, 96, 0.1);
}

.bg-warning-light {
    background-color: rgba(243, 156, 18, 0.1);
}

.text-primary {
    color: #3498db;
}

.text-success {
    color: #27ae60;
}

.text-warning {
    color: #f39c12;
}

.account-card-label {
    font-size: 14px;
    color: #777;
}

.account-card-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

/* 操作按钮 */
.action-button {
    display: block;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    height: 100%;
    color: #333;
    text-decoration: none;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

.action-button i {
    font-size: 20px;
    margin-right: 10px;
}

.action-button-primary {
    background-color: #3498db;
    color: #fff;
}

.action-button-primary:hover {
    background-color: #2980b9;
    color: #fff;
}

.action-button-outline {
    border: 1px solid #ddd;
}

.action-button-outline:hover {
    border-color: #3498db;
    color: #3498db;
}

/* 数据统计卡片 */
.stat-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    height: 100%;
}

.stat-card-primary {
    border-left: 4px solid #3498db;
}

.stat-card-success {
    border-left: 4px solid #27ae60;
}

.stat-card-warning {
    border-left: 4px solid #f39c12;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #3498db;
    margin-right: 20px;
}

.stat-card-success .stat-card-icon {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.stat-card-warning .stat-card-icon {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.stat-card-content {
    flex-grow: 1;
}

.stat-card-title {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.stat-card-info {
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.info-label {
    color: #777;
}

.info-value {
    font-weight: 500;
    color: #333;
}

/* 数据网格 */
.stats-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stats-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-card-value {
    font-size: 28px;
    font-weight: 600;
    color: #3498db;
    display: inline-block;
}

.stats-card-unit {
    font-size: 16px;
    color: #777;
    display: inline-block;
}

.stats-card-label {
    font-size: 14px;
    color: #777;
    margin: 10px 0;
}

.stats-card-link {
    color: #3498db;
    font-size: 13px;
    display: inline-block;
    transition: all 0.3s ease;
}

.stats-card-link:hover {
    color: #2980b9;
    text-decoration: none;
    transform: translateX(3px);
}

/* 快捷入口 */
.dashboard-section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.dashboard-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.dashboard-section-header h3 i {
    margin-right: 8px;
    color: #3498db;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-access-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.quick-access-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #3498db;
    text-decoration: none;
}

.quick-access-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #3498db;
    transition: all 0.3s ease;
}

.quick-access-item:hover .quick-access-icon {
    background-color: #3498db;
    color: #fff;
}

.quick-access-title {
    font-size: 14px;
    font-weight: 500;
}

/* 最近订单 */
.view-all {
    font-size: 14px;
    color: #3498db;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #2980b9;
    text-decoration: none;
    transform: translateX(3px);
}

.empty-state {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.empty-state-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #3498db;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* 媒体查询 */
@media (max-width: 1199px) {
    .stats-card-grid, .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .stats-card-grid, .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-container {
        padding-top: 20px;
    }
}

@media (max-width: 767px) {
    .member-info-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .member-info-icons {
        margin-bottom: 15px;
    }
    
    .member-level {
        padding-right: 0;
        margin-top: 10px;
    }
    
    .action-button {
        margin-bottom: 15px;
    }
    
    .stats-card-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .empty-state {
        padding: 30px 15px;
    }
}

/* 固定左侧菜单栏 */
@media (min-width: 992px) {
    .user-sidenav-container .sidenav {
        position: fixed;
        top: 76px; /* 顶部导航高度 */
        left: 0;
        bottom: 0;
        z-index: 1000;
        width: 250px;
        overflow-y: auto;
    }
    
    .user-sidenav-container {
        position: relative;
    }
    
    body.sidenav-collapsed .user-sidenav-container .sidenav {
        width: 60px;
    }
    
    body.sidenav-collapsed .user-content-container {
        margin-left: -190px;
    }
}

/* 确保左侧菜单和内容区域不被顶部导航覆盖 */
@media (min-width: 992px) {
    .user-container {
        padding-top: 30px;
        margin-top: 0;
    }
    
    .user-sidenav-container .sidenav {
        padding-bottom: 60px;
    }
}

/* 页面背景和间距 */
.profile-page,
.user-dashboard {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

@media (max-width: 767px) {
    .profile-page,
    .user-dashboard {
        padding: 20px 15px;
    }
}

/* 保持页面导航清晰 */
body.user-center .navbar-default {
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
}

/* 确保user-center页面布局和其他页面不冲突 */
body.user-center #header,
body.user-center #footer {
    position: relative;
    z-index: 1001;
}

/* 在移动端时适应性处理 */
@media (max-width: 991px) {
    body.user-center .sidebar-toggle {
        display: block;
    }
    
    body.user-center .sidenav {
        left: -250px;
    }
    
    body.user-center.sidebar-open .sidenav {
        left: 0;
    }
    
    body.user-center.sidebar-open:after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
}

/* 保持菜单样式的一致性 */
body.user-center .list-group-item.active > a, 
body.user-center .list-group-item.active > a:hover, 
body.user-center .list-group-item.active > a:focus {
    background: #3498db !important;
    color: #fff !important;
}

.user-center .sidenav .list-group-item a:hover {
    background-color: rgba(52, 152, 219, 0.1) !important;
    color: #3498db !important;
}

.user-center .nav-child .list-group-item.active > a {
    background: rgba(52, 152, 219, 0.2) !important;
    color: #3498db !important;
}