/**
 * 会员中心首页样式 - Google Cloud Console 风格
 * 现代化卡片式设计，Google Material Design 色彩体系
 * 编码：UTF-8
 */

/* ==================== 1. 主布局 ==================== */
.nh-main {
  padding: 0 !important;
  background: #f8f9fa;
  min-height: 100vh;
}
.nh-wrapper {
  display: flex;
  gap: 16px;
  padding: 20px;
  box-sizing: border-box;
  align-items: flex-start;
}
.nh-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nh-right {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==================== 2. 通用卡片 ==================== */
.nh-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  border: 1px solid #dadce0;
  overflow: hidden;
}
.nh-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.nh-card-title {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin: 0;
}
.nh-card-body {
  padding: 16px 20px 20px;
}
.nh-more-link {
  font-size: 13px;
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.nh-more-link:hover {
  text-decoration: underline;
}
.nh-row {
  display: flex;
  gap: 16px;
}
.nh-row > .nh-card {
  flex: 1;
  min-width: 0;
}

/* ==================== 3. 资源概览指标卡（4列） ==================== */
.nh-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nh-metric-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border-top: 4px solid #dadce0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  border-left: 1px solid #dadce0;
  border-right: 1px solid #dadce0;
  border-bottom: 1px solid #dadce0;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.nh-metric-card:hover {
  box-shadow: 0 4px 8px rgba(60, 64, 67, 0.15);
  transform: translateY(-2px);
}
.nh-metric-balance,
.nh-metric-active,
.nh-metric-pending,
.nh-metric-security {
  border-top-color: #1a73e8;
}
.nh-metric-label {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 8px;
}
.nh-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #202124;
}
.nh-metric-link {
  font-size: 12px;
  color: #1a73e8;
  margin-top: 8px;
  cursor: pointer;
}

/* ==================== 4. 快速访问（大图标卡片网格） ==================== */
.nh-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nh-quick-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.nh-quick-card:hover {
  box-shadow: 0 4px 8px rgba(60, 64, 67, 0.15);
  transform: translateY(-2px);
  border-color: #1a73e8;
}
.nh-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
}
.nh-quick-label {
  font-size: 13px;
  color: #202124;
  font-weight: 500;
}

/* ==================== 5. 活动轮播横幅 ==================== */
.nh-promo-banner {
  margin: 0 20px 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}
.nh-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.nh-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.nh-banner-link:hover .nh-banner-img {
  transform: scale(1.05);
}
.nh-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: 16px 24px;
  color: #fff;
}
.nh-banner-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.nh-banner-desc {
  font-size: 13px;
  margin: 0;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Element UI 轮播指示器样式覆盖 */
.nh-promo-banner .el-carousel__indicators {
  bottom: -30px;
}
.nh-promo-banner .el-carousel__indicator--horizontal {
  padding: 8px 4px;
}
.nh-promo-banner .el-carousel__button {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #dadce0;
}
.nh-promo-banner .el-carousel__indicator.is-active .el-carousel__button {
  background: #1a73e8;
}

/* ==================== 6. 产品列表 ==================== */
.nh-product-link {
  color: #1a73e8;
  text-decoration: none;
  font-size: 13px;
}
.nh-product-link:hover {
  text-decoration: underline;
}
.nh-text-mono {
  font-family: monospace;
  font-size: 13px;
  color: #5f6368;
}
.nh-text-muted {
  color: #5f6368;
  font-size: 13px;
}
.nh-text-danger {
  color: #ea4335;
}
.nh-status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}
.nh-status-active,
.nh-status-Active {
  background: #e6f4ea;
  color: #34a853;
}
.nh-status-pending,
.nh-status-Pending {
  background: #fef7e0;
  color: #f9ab00;
}
.nh-status-suspended,
.nh-status-Suspended {
  background: #fce8e6;
  color: #ea4335;
}
.nh-status-terminated,
.nh-status-Terminated {
  background: #f1f3f4;
  color: #5f6368;
}
.nh-status-cancelled,
.nh-status-Cancelled {
  background: #f1f3f4;
  color: #9aa0a6;
}
.nh-status-overdue,
.nh-status-Overdue {
  background: #fce8e6;
  color: #ea4335;
}
.nh-status-fraud,
.nh-status-Fraud {
  background: #fce8e6;
  color: #ea4335;
}

/* ==================== 7. 空状态 ==================== */
.nh-empty {
  text-align: center;
  padding: 40px 16px;
  color: #5f6368;
}
.nh-empty-icon {
  font-size: 48px;
  color: #c0c4cc;
  display: block;
  margin-bottom: 12px;
}
.nh-empty p {
  font-size: 13px;
  margin: 0 0 12px;
}

/* ==================== 8. 账户安全 ==================== */
.nh-security-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nh-score-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nh-score-circle {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.nh-score-bg {
  fill: none;
  stroke: #e8edf5;
  stroke-width: 8;
}
.nh-score-fg {
  fill: none;
  stroke: #1a73e8;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 45px 45px;
  transition: stroke-dasharray 0.6s ease;
}
.nh-score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 700;
  color: #202124;
}
.nh-score-info {
  flex: 1;
}
.nh-score-level {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.nh-score-level.safe {
  color: #34a853;
}
.nh-score-level.medium {
  color: #fbbc04;
}
.nh-score-level.danger {
  color: #ea4335;
}
.nh-score-desc {
  font-size: 11px;
  color: #5f6368;
  line-height: 1.5;
}
.nh-security-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nh-sec-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 13px;
  color: #5f6368;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nh-sec-link:hover {
  background: #e8f0fe;
  color: #1a73e8;
}

/* ==================== 9. 工单 ==================== */
.nh-ticket-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s;
}
.nh-ticket-item:last-child {
  border-bottom: none;
}
.nh-ticket-item:hover {
  background: #f8f9fa;
}
.nh-ticket-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.nh-ticket-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.nh-ticket-num {
  font-size: 13px;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nh-ticket-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #5f6368;
  padding-left: 4px;
}

/* ==================== 10. 推介计划（折叠为紧凑横幅） ==================== */
.nh-referral-compact {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}
.nh-referral-compact-info {
  flex: 1;
}
.nh-referral-compact-title {
  font-size: 15px;
  font-weight: 600;
  color: #202124;
}
.nh-referral-compact-desc {
  font-size: 13px;
  color: #5f6368;
  margin-top: 4px;
}
.nh-referral-compact-btn {
  background: #1a73e8;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: background 0.2s;
}
.nh-referral-compact-btn:hover {
  background: #1557b0;
}

/* ==================== 11. 用户信息卡（右侧） ==================== */
.nh-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
}
.nh-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.nh-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.nh-user-info {
  flex: 1;
  min-width: 0;
}
.nh-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nh-social-icon {
  width: 16px;
  height: 16px;
}
.nh-user-meta {
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
}
.nh-user-actions {
  display: flex;
  gap: 6px;
}
.nh-icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.nh-icon-btn:hover {
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-user-detail {
  padding: 0 20px 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
  padding-top: 12px;
}
.nh-user-detail-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
}
.nh-detail-label {
  color: #5f6368;
  flex-shrink: 0;
  width: 60px;
}
.nh-detail-val {
  color: #202124;
}
.nh-user-level {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid currentColor;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.6;
}

/* ==================== 12. 财务信息卡（右侧） ==================== */
.nh-finance-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nh-ftab {
  font-size: 12px;
  color: #5f6368;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nh-ftab:hover {
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.nh-balance-label {
  font-size: 12px;
  color: #5f6368;
}
.nh-balance-icons {
  display: flex;
  gap: 8px;
  color: #5f6368;
  font-size: 14px;
}
.nh-balance-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.nh-balance-prefix {
  font-size: 16px;
  color: #202124;
}
.nh-balance-num {
  font-size: 28px;
  font-weight: 700;
  color: #202124;
}
.nh-recharge-btn {
  width: 100%;
  background: #1a73e8 !important;
  border-color: #1a73e8 !important;
}
.nh-recharge-btn:hover,
.nh-recharge-btn:focus {
  background: #1557b0 !important;
  border-color: #1557b0 !important;
}
.nh-finance-stats {
  display: flex;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.nh-fstat {
  flex: 1;
  padding: 12px;
  font-size: 12px;
}
.nh-fstat-divider {
  width: 1px;
  background: #f0f0f0;
}
.nh-fstat-label {
  color: #5f6368;
  margin-bottom: 4px;
}
.nh-fstat-val {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}
.nh-fstat-sub {
  display: flex;
  justify-content: space-between;
  color: #5f6368;
  margin-bottom: 2px;
}
.nh-fstat-money {
  color: #202124;
  font-weight: 500;
}
.nh-product-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nh-pstat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.nh-pstat:hover {
  background: #e8f0fe;
}
.nh-pstat-label {
  font-size: 13px;
  color: #5f6368;
}
.nh-pstat-link {
  font-size: 12px;
  color: #1a73e8;
}

/* ==================== 13. 新闻/公告 ==================== */
.nh-news-tabs {
  display: flex;
  gap: 4px;
}
.nh-ntab {
  font-size: 12px;
  color: #5f6368;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nh-ntab.active {
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-ntab:hover {
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-news-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.15s;
}
.nh-news-item:last-child {
  border-bottom: none;
}
.nh-news-item:hover {
  background: #f8f9fa;
}
.nh-news-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.nh-tag-announce {
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-tag-news {
  background: #e6f4ea;
  color: #34a853;
}
.nh-news-title {
  flex: 1;
  font-size: 13px;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nh-news-date {
  font-size: 11px;
  color: #5f6368;
  flex-shrink: 0;
}

/* ==================== 14. 联系方式 ==================== */
.nh-contact-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.nh-contact-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 120px;
}
.nh-contact-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  width: 100%;
}
.nh-contact-qr-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.12);
}
.nh-contact-qr-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nh-contact-qr-placeholder i {
  font-size: 30px;
  color: #a0b8e8;
}
.nh-contact-qr-label {
  font-size: 11px;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.nh-contact-qr-label i {
  color: #1a73e8;
}
.nh-contact-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.nh-contact-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #5f6368;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 6px 8px;
  word-break: break-all;
}
.nh-contact-meta-item i {
  color: #1a73e8;
  font-size: 13px;
  flex-shrink: 0;
}
.nh-contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.nh-contact-slogan {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.8;
  margin: 0;
  padding: 12px;
  background: #f8f9fa;
  border-left: 3px solid #1a73e8;
  border-radius: 0 8px 8px 0;
  flex: 1;
}
.nh-contact-service-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: #1a73e8;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}
.nh-contact-service-btn:hover {
  background: #1557b0;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  color: #fff;
}

/* 联系方式旧样式兼容 */
.nh-contact-desc {
  font-size: 13px;
  color: #5f6368;
  margin: 0 0 6px;
  line-height: 1.6;
}
.nh-contact-info {
  margin-bottom: 12px;
}
.nh-contact-info .nh-contact-desc i {
  margin-right: 6px;
  color: #1a73e8;
}
.nh-contact-btns {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nh-brand-logo {
  height: 28px;
  margin-bottom: 10px;
}
.nh-contact-btn {
  display: block;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.nh-btn-primary {
  background: #1a73e8;
  color: #fff;
}
.nh-btn-primary:hover {
  background: #1557b0;
}
.nh-contact-sub {
  font-size: 12px;
  color: #5f6368;
  text-align: center;
  margin-top: 8px;
}

/* ==================== 15. 帮助文档 ==================== */
.nh-help-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 14px;
}
.nh-help-intro-icon {
  font-size: 24px;
  color: #1a73e8;
  flex-shrink: 0;
  margin-top: 2px;
}
.nh-help-intro p {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.7;
  margin: 0;
}
.nh-help-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nh-help-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #202124;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nh-help-link:hover {
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-help-link:hover .nh-help-arrow {
  color: #1a73e8;
}
.nh-help-link > i:first-child {
  color: #1a73e8;
  font-size: 16px;
  flex-shrink: 0;
}
.nh-help-link > span {
  flex: 1;
}
.nh-help-arrow {
  color: #c0c4cc;
  font-size: 12px;
}

/* ==================== 16. 实名认证 ==================== */
.nh-cert-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.nh-cert-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}
.nh-cert-label {
  color: #5f6368;
}
.nh-cert-status {
  font-size: 12px;
  font-weight: 600;
}
.nh-cert-ok {
  color: #34a853;
}
.nh-cert-go {
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
}
.nh-cert-go:hover {
  text-decoration: underline;
}
.nh-cert-with-icon,
.nh-cert-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nh-cert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nh-cert-icon-gray {
  filter: grayscale(100%) opacity(0.45);
}

/* ==================== 17. 社交账户 ==================== */
.nh-oauth-row {
  padding: 12px 20px 16px;
  border-top: 1px solid #f0f0f0;
}
.nh-oauth-label {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 10px;
}
.nh-oauth-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nh-oauth-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.15s;
  position: relative;
}
.nh-oauth-bound {
  border-color: #b7d9ff;
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-oauth-unbound {
  border-color: #e8e8e8;
  background: #fafafa;
  color: #bbb;
}
.nh-oauth-item:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}
.nh-oauth-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
}
.nh-oauth-unbound .nh-oauth-icon {
  filter: grayscale(100%) opacity(0.5);
}
.nh-oauth-name {
  line-height: 1;
}
.nh-oauth-check {
  font-size: 11px;
  color: #1a73e8;
  font-weight: 700;
}

/* ==================== 18. 实名认证提醒横幅 ==================== */
.nh-cert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fef7e0;
  border-left: 4px solid #fbbc04;
  padding: 10px 20px;
  font-size: 13px;
  color: #5f4e00;
  gap: 12px;
}
.nh-cert-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.nh-cert-banner-icon {
  color: #fbbc04;
  font-size: 16px;
  flex-shrink: 0;
}
.nh-cert-banner-btn {
  flex-shrink: 0;
  padding: 3px 14px;
  background: #1a73e8;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.nh-cert-banner-btn:hover {
  background: #1557b0;
}
.nh-cert-banner-close {
  color: #999;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nh-cert-banner-close:hover {
  color: #5f6368;
}

/* ==================== 19. 文字横幅通知 ==================== */
#text-banner-container {
  margin: 0 20px 16px;
  position: relative;
  min-height: 40px;
}
.nh-text-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  transition: box-shadow 0.3s ease;
  width: 100%;
}
.nh-text-banner:hover {
  box-shadow: 0 4px 8px rgba(60, 64, 67, 0.12);
}
.nh-text-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}
.nh-text-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.nh-text-banner-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nh-text-banner-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nh-text-banner-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}
.nh-text-banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 4px;
  z-index: 10;
}
.nh-text-banner-close:hover {
  opacity: 1;
}

/* 文字横幅动画效果 */
.nh-banner-slide-enter-active,
.nh-banner-slide-leave-active {
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.nh-banner-slide-enter {
  transform: translateX(100%);
  opacity: 0;
}
.nh-banner-slide-leave-to {
  transform: translateX(-100%);
  opacity: 0;
}
.nh-banner-slide-leave-active {
  position: absolute;
}
.nh-banner-fade-enter-active,
.nh-banner-fade-leave-active {
  transition: opacity 0.5s ease;
}
.nh-banner-fade-enter,
.nh-banner-fade-leave-to {
  opacity: 0;
}
.nh-banner-fade-leave-active {
  position: absolute;
}

/* ==================== 20. 推介计划已开启状态样式 ==================== */
.nh-referral-url {
  display: flex;
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.nh-referral-url-text {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nh-referral-copy {
  padding: 8px 14px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  border-left: 1px solid #dadce0;
  transition: background 0.2s, color 0.2s;
}
.nh-referral-copy:hover {
  background: #1a73e8;
  color: #fff;
}
.nh-referral-stats {
  display: flex;
  gap: 12px;
}
.nh-referral-stat {
  flex: 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px 12px;
}
.nh-referral-val {
  font-size: 18px;
  font-weight: 700;
  color: #202124;
}
.nh-referral-lbl {
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
}

/* 推介计划未开启提示 */
.nh-referral-empty .nh-referral-tips p {
  font-size: 13px;
  color: #5f6368;
  margin: 0 0 6px;
  padding-left: 12px;
  position: relative;
}
.nh-referral-empty .nh-referral-tips p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a73e8;
}

/* 推介计划横幅（未开启状态） */
.nh-referral-banner-wrap {
  width: 100%;
}
.nh-referral-banner-card {
  width: 100%;
}
.nh-referral-banner-body {
  padding: 20px 24px;
}
.nh-rb-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef7e0;
  border: 1px solid #fbbc04;
  border-radius: 8px;
  padding: 7px 16px;
  margin-bottom: 16px;
}
.nh-rb-header-icon {
  color: #f9ab00;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.nh-rb-header-text {
  font-size: 14px;
  font-weight: 600;
  color: #b06000;
}
.nh-rb-desc {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.8;
  margin: 0 0 16px;
}
.nh-rb-actions {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nh-rb-status-tip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #b06000;
  background: #fef7e0;
  border: 1px solid #fbbc04;
  border-radius: 8px;
  padding: 8px 14px;
}
.nh-rb-status-tip i {
  font-size: 15px;
  flex-shrink: 0;
}
.nh-rb-status-disabled {
  color: #5f6368;
  background: #f1f3f4;
  border-color: #dadce0;
}
.nh-rb-status-disabled i {
  color: #9aa0a6;
}
.nh-rb-btn {
  border: 1px solid #1a73e8 !important;
  color: #1a73e8 !important;
  background: #fff !important;
  border-radius: 8px !important;
  padding: 7px 18px !important;
  font-size: 13px !important;
  align-self: flex-start;
}
.nh-rb-btn:hover {
  background: #e8f0fe !important;
}
.nh-rb-btn-open {
  border-color: #1a73e8 !important;
  background: #1a73e8 !important;
  color: #fff !important;
}
.nh-rb-btn-open:hover {
  background: #1557b0 !important;
}
.nh-rb-features {
  display: flex;
  gap: 16px;
}
.nh-rb-feature {
  flex: 1;
  min-width: 0;
}
.nh-rb-feature-inner {
  position: relative;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  border-bottom: 2px solid #1a73e8;
}
.nh-rb-feature-decor {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 80px;
  height: 80px;
  background: repeating-linear-gradient(
    45deg,
    rgba(26, 115, 232, 0.07) 0px,
    rgba(26, 115, 232, 0.07) 4px,
    transparent 4px,
    transparent 10px
  );
  border-radius: 4px;
  pointer-events: none;
}

/* 推介计划利润优势（兼容） */
.nh-referral-row {
  align-items: stretch;
}
.nh-profit-card {
  flex: 1.4;
}
.nh-profit-body {
  display: flex;
  gap: 0;
  height: 100%;
}
.nh-profit-item {
  flex: 1;
  padding: 4px 16px;
  position: relative;
}
.nh-profit-item:first-child {
  padding-left: 0;
}
.nh-profit-item:last-child {
  padding-right: 0;
}
.nh-profit-divider {
  width: 1px;
  background: #f0f0f0;
  flex-shrink: 0;
  margin: 4px 0;
}
.nh-profit-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.nh-profit-title {
  font-size: 15px;
  font-weight: 700;
  color: #202124;
}
.nh-profit-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.nh-badge-blue {
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-badge-green {
  background: #e6f4ea;
  color: #34a853;
}
.nh-badge-orange {
  background: #fef7e0;
  color: #f9ab00;
}
.nh-profit-desc {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.75;
  margin: 0;
}

/* 推介计划已开启顶部区域 */
.nh-referral-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.nh-referral-top-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nh-referral-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nh-referral-title {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
}
.nh-referral-reward-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #ea4335 0%, #f06767 100%);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px 2px 4px;
  border-radius: 4px;
  cursor: pointer;
}
.nh-referral-reward-tag img {
  width: 20px;
  height: 20px;
}
.nh-referral-sub {
  font-size: 13px;
  font-weight: 600;
  color: #202124;
}
.nh-referral-desc {
  font-size: 12px;
  color: #5f6368;
}
.nh-referral-card-img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}
.nh-referral-img {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto 12px;
}

/* ==================== 21. 版权信息 ==================== */
.nh-copyright {
  padding: 20px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}
.nh-copyright-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: #5f6368;
  line-height: 1.8;
}

/* ==================== 友情链接（兼容） ==================== */
.nh-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nh-link-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid #dadce0;
  border-radius: 20px;
  font-size: 13px;
  color: #5f6368;
  text-decoration: none;
  transition: all 0.15s;
  background: #fafafa;
}
.nh-link-item:hover {
  border-color: #1a73e8;
  color: #1a73e8;
  background: #e8f0fe;
}
.nh-link-item i {
  font-size: 14px;
  color: #1a73e8;
}

/* ==================== 快捷导航（兼容） ==================== */
.nh-quick-nav {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nh-qn-label {
  font-size: 13px;
  color: #5f6368;
  white-space: nowrap;
}
.nh-quick-nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nh-qn-link {
  font-size: 13px;
  color: #5f6368;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  background: #f1f3f4;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nh-qn-link i {
  font-size: 13px;
}
.nh-qn-link:hover {
  background: #e8f0fe;
  color: #1a73e8;
}
.nh-qn-empty {
  font-size: 12px;
  color: #9aa0a6;
}

/* ==================== 22. 响应式适配 ==================== */
@media (max-width: 1100px) {
  .nh-right {
    flex: 0 0 280px;
  }
  .nh-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .nh-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .nh-wrapper {
    flex-direction: column;
  }
  .nh-right {
    flex: none;
    width: 100%;
    order: -1;
  }
  .nh-left {
    width: 100%;
    order: 0;
  }
  .nh-row {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .nh-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .nh-wrapper {
    padding: 12px;
    gap: 12px;
  }
  .nh-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .nh-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nh-card-body {
    padding: 12px;
  }
  .nh-card-header {
    padding: 12px 12px 0;
  }
  .nh-contact-layout {
    flex-direction: column;
  }
  .nh-contact-left {
    width: 100%;
    flex-direction: row;
  }
  .nh-referral-compact {
    flex-direction: column;
    align-items: flex-start;
  }
  .nh-promo-banner {
    margin: 0 12px 12px;
  }
  .nh-promo-banner .el-carousel {
    height: 140px !important;
  }
  .nh-banner-overlay {
    padding: 12px 16px;
  }
  .nh-banner-title {
    font-size: 16px;
  }
  .nh-banner-desc {
    font-size: 12px;
  }
  .nh-user-header {
    gap: 10px;
  }
  .nh-user-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .nh-balance-amount {
    font-size: 24px;
  }
  .nh-finance-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  .nh-ftab {
    font-size: 12px;
  }
  .nh-contact-qr-wrap {
    width: auto;
    flex-shrink: 0;
  }
  .nh-profit-body {
    flex-direction: column;
    gap: 12px;
  }
  .nh-profit-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .nh-profit-item {
    padding: 0;
  }
  .nh-rb-features {
    flex-direction: column;
  }
  .nh-referral-banner-body {
    padding: 16px;
  }
  .nh-score-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .nh-news-item {
    flex-wrap: wrap;
    gap: 4px;
  }
  .nh-news-date {
    width: 100%;
    font-size: 11px;
  }
  #text-banner-container {
    margin: 0 10px 12px;
    min-height: 36px;
  }
  .nh-text-banner {
    padding: 0 40px;
    border-radius: 8px;
  }
  .nh-text-banner-content {
    font-size: 13px;
    gap: 6px;
  }
  .nh-text-banner-icon {
    font-size: 16px;
  }
  .nh-text-banner-close {
    right: 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #text-banner-container {
    min-height: 32px;
  }
  .nh-text-banner {
    padding: 0 35px;
  }
  .nh-text-banner-content {
    font-size: 12px;
  }
  .nh-text-banner-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
