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";
}

/* ===== 个人中心面板样式 ===== */
.main-content { padding: 0 !important; }
.main-content > .container { padding: 0; max-width: 100%; }
.user-panel-content-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 顶部用户信息栏 */
.user-top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 0;
}
.user-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-info-row {
    display: flex;
    align-items: center;
    gap: 20px;
}
.user-avatar-top {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
}
.vip-badge-top {
    position: relative;
    display: inline-block;
}
.vip-crown {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    border: 2px solid #fff;
}
.user-name-top {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 5px;
}
.user-bio-top {
    opacity: 0.9;
    font-size: 14px;
    margin: 0;
}
.user-balance-top {
    text-align: right;
}
.balance-label-top {
    font-size: 14px;
    opacity: 0.9;
}
.balance-value-top {
    font-size: 32px;
    font-weight: bold;
    margin-top: 5px;
}
.balance-value-top i {
    font-size: 18px;
    font-style: normal;
    margin-right: 3px;
}

/* 主体布局 */
.panel-main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    padding: 25px 0;
}

/* 左侧导航 */
.panel-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 20px;
}
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav-item {
    margin-bottom: 5px;
}
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 15px;
    cursor: pointer;
}
.sidebar-nav-link:hover {
    background: #f5f7ff;
    color: #667eea;
    text-decoration: none;
}
.sidebar-nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.sidebar-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}
.sidebar-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 0;
}
.sidebar-nav-link.logout-link {
    color: #ff6b6b;
}
.sidebar-nav-link.logout-link:hover {
    background: #fff5f5;
    color: #ff6b6b;
}

/* 右侧内容区 */
.panel-content {
    min-height: 500px;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* 通用卡片样式 */
.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.content-card-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.content-card-title i {
    margin-right: 8px;
    color: #667eea;
}

/* 表单样式 */
.profile-form .form-group label {
    font-weight: 500;
    color: #333;
}
.avatar-upload-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}
.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 签到卡片 */
.signin-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}
.signin-icon { font-size: 48px; margin-bottom: 10px; opacity: 0.9; }
.signin-title { font-size: 20px; margin: 0 0 8px; }
.signin-desc { opacity: 0.9; font-size: 14px; margin: 0 0 15px; }
.btn-signin {
    padding: 12px 40px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-signin:hover { transform: scale(1.05); }
.btn-signin.signed { background: rgba(255,255,255,0.3); color: #fff; cursor: default; }
.btn-signin.signed:hover { transform: none; }

/* VIP页面样式 */
.vip-status-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #333;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.vip-crown-icon { font-size: 48px; }
.vip-status-info h3 { margin: 0 0 8px; font-size: 22px; }
.vip-status-info p { margin: 0; opacity: 0.9; }
.vip-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.vip-benefit-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s;
}
.vip-benefit-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.benefit-icon-wrap {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 24px;
}
.vip-benefit-item h4 { margin: 0 0 8px; font-size: 16px; color: #333; }
.vip-benefit-item p { margin: 0; font-size: 13px; color: #999; }
.vip-plans-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.vip-plan-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}
.vip-plan-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.2);
}
.vip-plan-card.recommended { border-color: #ffd700; }
.vip-plan-card.selected-card { border-color: #667eea; background: #f0f2ff; }
.plan-tag {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
}
.plan-header { margin-bottom: 20px; }
.plan-name { font-size: 20px; margin: 0 0 5px; color: #333; }
.plan-duration { font-size: 14px; color: #999; }
.plan-price { margin-bottom: 20px; }
.price-symbol { font-size: 20px; color: #ff6b6b; vertical-align: top; }
.price-value { font-size: 42px; font-weight: bold; color: #ff6b6b; }
.price-original { font-size: 14px; color: #ccc; text-decoration: line-through; margin-left: 5px; }
.plan-benefits { list-style: none; padding: 0; margin: 0 0 25px; text-align: left; }
.plan-benefits li { padding: 8px 0; color: #666; font-size: 14px; }
.plan-benefits li i { color: #52c41a; margin-right: 8px; }
.btn-vip-subscribe {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-vip-subscribe:hover { opacity: 0.9; }
.btn-vip-subscribe.selected-plan { background: #52c41a; }
.vip-plan-card.recommended .btn-vip-subscribe {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #333;
}

/* 支付方式 */
.payment-methods {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}
.payment-method-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.payment-method-item.selected { border-color: #667eea; background: #f0f2ff; }
.payment-method-item input { display: none; }
.payment-icon-alipay { color: #1677ff; font-size: 28px; }
.payment-icon-wechat { color: #07c160; font-size: 28px; }
.payment-tips { text-align: center; margin-top: 20px; color: #999; font-size: 13px; }
.payment-tips i { color: #52c41a; margin-right: 5px; }

/* 充值页面样式 */
.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.balance-label { font-size: 16px; opacity: 0.9; }
.balance-value { font-size: 42px; font-weight: bold; margin-top: 5px; }
.balance-value i { font-size: 24px; font-style: normal; margin-right: 5px; }
.amount-section h4 { margin: 0 0 20px; font-size: 18px; color: #333; }
.recharge-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.recharge-amount-btn {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.recharge-amount-btn:hover { border-color: #667eea; }
.recharge-amount-btn.selected { border-color: #667eea; background: #f0f2ff; }
.amount-value { font-size: 24px; font-weight: bold; color: #333; display: block; }
.amount-bonus {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}
.custom-amount-row { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.custom-amount-row label { color: #666; font-size: 14px; }
.custom-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 0 15px;
    flex: 1;
    max-width: 300px;
    transition: all 0.3s;
}
.custom-input-wrap:focus-within { border-color: #667eea; }
.input-prefix { color: #999; font-size: 18px; }
.custom-input-wrap input {
    border: none;
    outline: none;
    padding: 12px 10px;
    flex: 1;
    font-size: 16px;
}
.recharge-notes {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}
.recharge-notes h5 { margin: 0 0 12px; color: #666; font-size: 14px; }
.recharge-notes h5 i { color: #1890ff; margin-right: 5px; }
.recharge-notes ul { margin: 0; padding-left: 20px; color: #999; font-size: 13px; line-height: 2; }
.btn-recharge-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-recharge-submit:hover { opacity: 0.9; transform: translateY(-2px); }

/* 推广中心样式 */
.promo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.promo-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.promo-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}
.stat-gradient-blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-gradient-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.stat-gradient-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.stat-gradient-gold { background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%); }
.promo-stat-value { font-size: 28px; font-weight: bold; color: #333; display: block; }
.promo-stat-value.highlight { color: #ff6b6b; }
.promo-stat-label { font-size: 14px; color: #999; }
.promo-link-row { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.promo-link-row label { color: #666; font-size: 14px; white-space: nowrap; }
.promo-link-input-wrap { flex: 1; display: flex; gap: 10px; min-width: 300px; }
.promo-link-input-wrap input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.btn-copy-link {
    padding: 12px 25px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}
.btn-copy-link:hover { opacity: 0.9; }
.btn-copy-link.copied { background: #52c41a; }
.promo-rules-content { background: #f9fff9; border-radius: 8px; padding: 20px; }
.rule-item { display: flex; gap: 15px; margin-bottom: 15px; }
.rule-item:last-child { margin-bottom: 0; }
.rule-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.rule-item p { margin: 0; color: #666; line-height: 28px; }
.rule-item p strong { color: #ff6b6b; }
.promo-records-table-wrap { overflow-x: auto; }
.promo-records-table { width: 100%; border-collapse: collapse; }
.promo-records-table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    color: #666;
    font-size: 14px;
}
.promo-records-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 14px;
}
.reward-amount-cell { color: #52c41a; font-weight: 500; }
.empty-state { text-align: center; padding: 40px; color: #999; }
.empty-state i { font-size: 48px; margin-bottom: 10px; display: block; }

/* 下载记录样式 */
.download-list { display: flex; flex-direction: column; gap: 15px; }
.download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s;
}
.download-item:hover { border-color: #4facfe; background: #f8fcff; }
.download-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
}
.download-info { flex: 1; min-width: 0; }
.download-name { font-size: 16px; color: #333; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.download-name a { color: #333; text-decoration: none; }
.download-name a:hover { color: #4facfe; }
.download-meta { display: flex; gap: 20px; font-size: 13px; color: #999; }
.download-meta i { margin-right: 4px; }
.download-time { color: #999; font-size: 13px; white-space: nowrap; }
.download-actions { flex-shrink: 0; }
.btn-download-again {
    padding: 8px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-download-again:hover { opacity: 0.9; color: #fff; text-decoration: none; }

/* 收藏样式 */
.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.fav-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
}
.fav-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); border-color: #fa709a; }
.fav-card-icon {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: bold;
    color: #fff;
}
.btn-remove-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    font-size: 16px;
}
.fav-card:hover .btn-remove-fav { opacity: 1; }
.btn-remove-fav:hover { background: #ff6b6b; color: #fff; }
.fav-card-body { padding: 15px; }
.fav-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-card-title a { color: #333; text-decoration: none; }
.fav-card-title a:hover { color: #fa709a; }
.fav-card-desc {
    font-size: 13px;
    color: #999;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fav-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #999; }
.fav-card-meta-left { display: flex; gap: 12px; }
.fav-card-meta i { margin-right: 4px; }
.fav-card-actions { padding: 10px 15px; border-top: 1px solid #f5f5f5; display: flex; gap: 10px; }
.btn-view-detail {
    flex: 1;
    padding: 8px;
    text-align: center;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-view-detail:hover { background: #fa709a; color: #fff; text-decoration: none; }
.btn-download-fav {
    flex: 1;
    padding: 8px;
    text-align: center;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-download-fav:hover { opacity: 0.9; color: #fff; text-decoration: none; }

/* 响应式 */
@media (max-width: 768px) {
    .panel-main-layout { grid-template-columns: 1fr; }
    .panel-sidebar { position: static; }
    .sidebar-nav { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 5px; }
    .sidebar-nav-item { margin-bottom: 0; flex-shrink: 0; }
    .sidebar-nav-link { white-space: nowrap; padding: 10px 15px; font-size: 14px; }
    .sidebar-divider { display: none; }
    .user-top-inner { flex-direction: column; gap: 20px; text-align: center; }
    .user-info-row { flex-direction: column; }
    .user-balance-top { text-align: center; }
    .vip-plans-row { grid-template-columns: 1fr; }
    .recharge-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-methods { flex-direction: column; }
    .fav-grid { grid-template-columns: 1fr; }
    .promo-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
