/* 顶部黑色条样式 */
.top-black-bar {
  background-color: #000;
  color: #fff;
  font-size: 12px;
  line-height: 30px;
  width: 100%;
}

.top-black-bar a {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.top-black-bar a:hover {
  color: #fff;
}

.top-black-bar .right-links a {
  margin-left: 10px;
  margin-right: 0;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .top-black-bar {
    line-height: 26px;
  }
  
  .top-black-bar .right-links {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }
  
  .top-black-bar .right-links a {
    margin: 0 5px;
    font-size: 11px;
  }
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left a, 
.top-bar-right a {
  color: #aaa;
  text-decoration: none;
  margin-right: 15px;
  transition: color 0.2s ease;
}

.top-bar-left a:hover, 
.top-bar-right a:hover {
  color: #fff;
}

.top-bar-right a {
  margin-left: 10px;
  margin-right: 0;
}

.top-bar-right a i {
  margin-right: 3px;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
  .top-bar-left {
    display: none;
  }
  
  .top-bar-content {
    justify-content: flex-end;
  }
}

/* 用户中心 - 余额/充值页面样式 */

/* 余额卡片 */
.coin-balance-body {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: none;
}

/* 签到按钮 */
.balance-qiandao {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.user-qiandao-action {
  background: #f8f9fa;
  border: 1px solid #e9ecef !important;
  color: #dc3545 !important;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}
.user-qiandao-action:hover {
  background: #dc3545;
  color: #fff !important;
  border-color: #dc3545 !important;
}

/* 余额信息 */
.balance-info .fs-5 {
  color: #6c757d;
  font-weight: 500;
}
.balance-info .fs-2 {
  color: #212529;
  font-weight: 700;
}
.balance-info hr {
  opacity: 0.1;
  margin: 12px 0;
}

/* 充值套餐卡片 */
.coin-pay-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.coin-pay-card:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}
.coin-pay-card.active {
  border-color: #007bff;
  background-color: #f8f9fa;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}
.coin-pay-card h5 {
  font-weight: 600;
}

/* 充值按钮 */
.js-pay-action {
  background: #ffc107;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  padding: 10px 24px;
  transition: all 0.2s ease;
}
.js-pay-action:not([disabled]):hover {
  background: #ffb300;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}
.js-pay-action[disabled] {
  background: #e9ecef !important;
  color: #adb5bd !important;
  cursor: not-allowed;
}

/* 卡片样式统一 */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  overflow: hidden;
}
.card-header {
  background-color: #fff;
  border-bottom: 1px solid #f1f3f5;
  padding: 16px 20px;
}
.card-header h5 {
  font-weight: 600;
  color: #212529;
  margin: 0;
}
.card-body {
  padding: 20px;
}

/* CDK兑换区域 */
#vip-cdk-action .form-control {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 10px 16px;
  transition: all 0.2s ease;
}
#vip-cdk-action .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
#captcha-img {
  height: 42px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}
#vip-cdk-submit {
  background: #dc3545;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}
#vip-cdk-submit:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* 列表样式 */
.list-group-item {
  border: 1px solid #e9ecef;
  border-radius: 6px !important;
  margin-bottom: 8px;
  padding: 12px 16px;
  background-color: #fff;
  transition: all 0.2s ease;
}
.list-group-item:hover {
  border-color: #007bff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.list-group-item-light {
  background-color: #f8f9fa;
  color: #495057;
}

/* 移动端优化 */
@media (max-width: 767.98px) {
  .balance-qiandao {
    justify-content: center;
  }
  .js-pay-action {
    width: 100%;
  }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .coin-balance-body,
  .card,
  .card-header,
  .list-group-item {
    background-color: #212529;
    border-color: #343a40;
  }
  
  .balance-info .fs-5 {
    color: #adb5bd;
  }
  
  .balance-info .fs-2,
  .card-header h5 {
    color: #f8f9fa;
  }
  
  .coin-pay-card {
    background-color: #343a40;
    border-color: #495057;
  }
  
  .coin-pay-card.active {
    background-color: #212529;
  }
  
  .list-group-item-light {
    background-color: #343a40;
    color: #e9ecef;
  }
  
  #vip-cdk-action .form-control {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
  }
}

/* 覆盖：确保黑色顶部条为固定定位，并设置统一高度占位 */
.top-black-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1090; height: 32px; line-height: 32px; }
@media (max-width: 767.98px) {
  .top-black-bar { height: 28px; line-height: 28px; }
}

/* 当启用 WP 管理工具条时，让黑色顶部条显示在其下方 */
body.admin-bar .top-black-bar { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .top-black-bar { top: 46px; }
}

/* 兼容：粘性/固定头部在有无 admin bar 的情况下都不遮挡 */
.site-header.is-sticky,
.site-header.sticky,
.site-header.stuck,
.site-header.is-fixed,
.site-header.header-fixed,
.site-header.fixed,
.site-header.navbar-fixed { top: 32px !important; }

body.admin-bar .site-header.is-sticky,
body.admin-bar .site-header.sticky,
body.admin-bar .site-header.stuck,
body.admin-bar .site-header.is-fixed,
body.admin-bar .site-header.header-fixed,
body.admin-bar .site-header.fixed,
body.admin-bar .site-header.navbar-fixed { top: 64px !important; }
@media (max-width: 782px) {
  body.admin-bar .site-header.is-sticky,
  body.admin-bar .site-header.sticky,
  body.admin-bar .site-header.stuck,
  body.admin-bar .site-header.is-fixed,
  body.admin-bar .site-header.header-fixed,
  body.admin-bar .site-header.fixed,
  body.admin-bar .site-header.navbar-fixed { top: 74px !important; }
}
/* 基础占位：推开主菜单，防止被黑色顶部条遮挡 */
.site-header { margin-top: 32px !important; }
@media (max-width: 767.98px) {
  .site-header { margin-top: 28px !important; }
}