/* ==========================================================================
   会员中心 member 应用 — 仪表盘 + 响应式
   ========================================================================== */
.member-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(22, 93, 255, 0.08), transparent);
}

/* ---------- 顶栏 ---------- */
.member-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 230, 235, 0.9);
  box-shadow: 0 1px 4px rgba(29, 33, 41, 0.04);
}
.member-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
}
.member-topbar .brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}
.member-topbar .brand-title {
  font-size: 17px;
  font-weight: 700;
  color: #165dff;
  line-height: 1.3;
}
.member-topbar .brand-slogan {
  font-size: 11px;
  color: #86909c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.member-topnav a {
  padding: 6px 12px;
  font-size: 14px;
  color: #4e5969;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.member-topnav a:hover { background: #f2f3f5; color: #165dff; }
.member-topnav a.is-active {
  color: #165dff;
  font-weight: 600;
  background: #e8f3ff;
}

.member-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: #f2f3f5;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.member-nav-toggle span {
  display: block;
  height: 2px;
  background: #1d2129;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
body.sidebar-open .member-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.sidebar-open .member-nav-toggle span:nth-child(2) { opacity: 0; }
body.sidebar-open .member-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 主布局 ---------- */
.member-main {
  flex: 1;
  padding: calc(20px * var(--layout-scale, 1.4285714286)) 0 calc(40px * var(--layout-scale, 1.4285714286));
}
.member-layout {
  display: grid;
  grid-template-columns: calc(260px * var(--layout-scale, 1.4285714286)) minmax(0, 1fr);
  gap: calc(20px * var(--layout-scale, 1.4285714286));
  align-items: start;
}

/* ---------- 侧栏 ---------- */
.member-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(29, 33, 41, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
body.sidebar-open .member-sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.member-sidebar {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e6eb;
  box-shadow: 0 4px 20px rgba(22, 93, 255, 0.06);
  overflow: hidden;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: linear-gradient(135deg, #165dff 0%, #4080ff 100%);
  color: #fff;
}
.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  overflow: hidden;
}
.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-avatar-letter {
  line-height: 1;
}
.sidebar-user-info { min-width: 0; flex: 1; }
.sidebar-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-meta {
  margin: 0 0 4px;
  font-size: 13px;
  opacity: 0.9;
}
.sidebar-meta .meta-label { opacity: 0.75; margin-right: 4px; }
.sidebar-vip {
  margin: 0;
  font-size: 12px;
  opacity: 0.85;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #4e5969;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover {
  background: #f2f3f5;
  color: #165dff;
}
.sidebar-link.is-active {
  background: #e8f3ff;
  color: #165dff;
  font-weight: 600;
}
.sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
}
.sidebar-link.is-active .sidebar-icon { opacity: 1; }
.sidebar-icon--index { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234e5969' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 8h-3v9h-5v-6H11v6H6v-9H3l9-8z'/%3E%3C/svg%3E"); }
.sidebar-icon--profile { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234e5969' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/%3E%3C/svg%3E"); }
.sidebar-icon--order { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234e5969' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10l1 2h4v2H4V6h3l1-2zm-1 6h12v10H6V10zm2 2v6h8v-6H8z'/%3E%3C/svg%3E"); }
.sidebar-icon--purchase { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234e5969' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12v2H6V2zm0 4h15l-1 14H7L6 6zm3 3v9h2V9H9zm4 0v9h2V9h-2z'/%3E%3C/svg%3E"); }
.sidebar-icon--favorite { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234e5969' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.sidebar-icon--history { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234e5969' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z'/%3E%3C/svg%3E"); }
.sidebar-icon--recharge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234e5969' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2.65 1.87 1.78 0 2.44-.85 2.44-1.39 0-.78-.31-1.26-2.1-1.9-2.26-.88-3.17-1.86-3.17-3.65 0-1.71 1.39-2.84 3.11-3.21V4h2.67v1.95c1.86.45 2.79 1.86 2.85 3.39H14.51c-.05-1.11-.64-1.87-2.22-1.87-1.5 0-2.4.68-2.4 1.39 0 .65.39 1.08 2.05 1.65 2.23.82 3.04 1.95 3.04 3.81 0 1.76-1.26 2.96-3.12 3.37z'/%3E%3C/svg%3E"); }
.sidebar-icon--vip { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234e5969' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.2h7.6l-6 4.8 2.3 7-6.3-4.6-6.3 4.6 2.3-7-6-4.8h7.6L12 2z'/%3E%3C/svg%3E"); }
.sidebar-link.is-active .sidebar-icon--index { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23165dff' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 8h-3v9h-5v-6H11v6H6v-9H3l9-8z'/%3E%3C/svg%3E"); }
.sidebar-link.is-active .sidebar-icon--profile { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23165dff' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/%3E%3C/svg%3E"); }
.sidebar-link.is-active .sidebar-icon--order { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23165dff' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10l1 2h4v2H4V6h3l1-2zm-1 6h12v10H6V10zm2 2v6h8v-6H8z'/%3E%3C/svg%3E"); }
.sidebar-link.is-active .sidebar-icon--purchase { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23165dff' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12v2H6V2zm0 4h15l-1 14H7L6 6zm3 3v9h2V9H9zm4 0v9h2V9h-2z'/%3E%3C/svg%3E"); }
.sidebar-link.is-active .sidebar-icon--favorite { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23165dff' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.sidebar-link.is-active .sidebar-icon--history { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23165dff' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z'/%3E%3C/svg%3E"); }
.sidebar-link.is-active .sidebar-icon--recharge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23165dff' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2.65 1.87 1.78 0 2.44-.85 2.44-1.39 0-.78-.31-1.26-2.1-1.9-2.26-.88-3.17-1.86-3.17-3.65 0-1.71 1.39-2.84 3.11-3.21V4h2.67v1.95c1.86.45 2.79 1.86 2.85 3.39H14.51c-.05-1.11-.64-1.87-2.22-1.87-1.5 0-2.4.68-2.4 1.39 0 .65.39 1.08 2.05 1.65 2.23.82 3.04 1.95 3.04 3.81 0 1.76-1.26 2.96-3.12 3.37z'/%3E%3C/svg%3E"); }
.sidebar-link.is-active .sidebar-icon--vip { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23165dff' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.2h7.6l-6 4.8 2.3 7-6.3-4.6-6.3 4.6 2.3-7-6-4.8h7.6L12 2z'/%3E%3C/svg%3E"); }

/* ---------- 内容区通用 ---------- */
.member-content { min-width: 0; }

.m-page-head {
  margin-bottom: 20px;
}
.m-page-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1.3;
}
.m-page-desc {
  margin: 0;
  font-size: 14px;
  color: #86909c;
  line-height: 1.6;
}

.m-panel {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e6eb;
  box-shadow: 0 2px 12px rgba(29, 33, 41, 0.04);
  padding: 24px;
  margin-bottom: 20px;
}
.m-panel:last-child { margin-bottom: 0; }
.m-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f3f5;
}
.m-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
}
.m-panel-more {
  font-size: 14px;
  color: #165dff;
  text-decoration: none;
}
.m-panel-more:hover { text-decoration: underline; }

/* 按钮 */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}
.m-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #165dff, #4080ff);
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}
.m-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.4);
  color: #fff;
  text-decoration: none;
}
.m-btn--outline {
  color: #165dff;
  background: #fff;
  border: 1px solid #165dff;
}
.m-btn--outline:hover {
  background: #e8f3ff;
  text-decoration: none;
}
.m-btn--ghost {
  color: #4e5969;
  background: #f2f3f5;
  border: 1px solid #e5e6eb;
}
.m-btn--ghost:hover { background: #e5e6eb; }
.m-btn--sm { padding: 6px 14px; font-size: 13px; }
.m-btn--block { width: 100%; }
.m-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(14px * var(--layout-scale, 1.4285714286));
  margin-bottom: calc(20px * var(--layout-scale, 1.4285714286));
}
.stat-card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(29, 33, 41, 0.03);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.1);
  border-color: #c9d8ff;
}
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #165dff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: #86909c;
}

/* 余额高亮 */
.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #165dff 0%, #4080ff 100%);
  border-radius: 12px;
  color: #fff;
}
.balance-card-label { font-size: 14px; opacity: 0.9; margin: 0 0 4px; }
.balance-card-amount {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}
.balance-card-hint { margin: 0; font-size: 13px; opacity: 0.85; }

.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.amount-preset {
  padding: 8px 18px;
  font-size: 14px;
  color: #4e5969;
  background: #f7f8fa;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.amount-preset:hover,
.amount-preset.is-active {
  color: #165dff;
  border-color: #165dff;
  background: #e8f3ff;
}

/* 列表 */
.m-list { list-style: none; margin: 0; padding: 0; }
.m-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f2f3f5;
}
.m-list-item:first-child { padding-top: 0; }
.m-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.m-list-main { min-width: 0; flex: 1; }
.m-list-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1d2129;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-list-title:hover { color: #165dff; }
.m-list-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #86909c;
}
.m-list-actions { flex-shrink: 0; }

/* 表格 */
.m-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.m-table th,
.m-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f2f3f5;
}
.m-table th {
  font-weight: 600;
  color: #86909c;
  font-size: 13px;
  background: #fafbfc;
  white-space: nowrap;
}
.m-table tbody tr:hover td { background: #fafbfc; }
.m-table tbody tr:last-child td { border-bottom: none; }
.m-table .col-actions { text-align: right; white-space: nowrap; }

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 500;
}
.status-badge--paid { background: #e8ffea; color: #00b42a; }
.status-badge--pending { background: #fff7e8; color: #ff7d00; }
.status-badge--cancel { background: #f2f3f5; color: #86909c; }
.status-badge--refund { background: #ffece8; color: #f53f3f; }

/* VIP 套餐 */
.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--article-card-compact-min, 371px), 1fr));
  gap: var(--gap-md, 16px);
}
.vip-plan-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vip-plan-card:hover {
  border-color: #165dff;
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.12);
}
.vip-plan-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1d2129;
}
.vip-plan-price {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #ff7d00;
}
.vip-plan-price s {
  font-size: 14px;
  color: #c9cdd4;
  font-weight: 400;
  margin-left: 8px;
}
.vip-plan-days {
  margin: 0 0 12px;
  font-size: 13px;
  color: #86909c;
}
.vip-plan-benefits {
  flex: 1;
  margin: 0 0 20px;
  font-size: 14px;
  color: #4e5969;
  line-height: 1.6;
}
.vip-plan-card .m-btn { margin-top: auto; }

/* 空状态 */
.m-empty {
  text-align: center;
  padding: 48px 24px;
}
.m-empty-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}
.m-empty-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: #4e5969;
}
.m-empty-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: #86909c;
}

/* 表单（会员内页） */
.member-content .auth-form { max-width: calc(560px * var(--layout-scale, 1.4285714286)); }
.member-content .profile-form { max-width: 100%; }
.profile-section-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1d2129;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
}

.auth-form .form-field { margin-bottom: 18px; }
.auth-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1d2129;
}
.auth-form .form-control {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: #1d2129;
  background: #f7f8fa;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form .form-control:disabled {
  background: #f2f3f5;
  color: #86909c;
  cursor: not-allowed;
}
.auth-form .form-control:focus {
  outline: none;
  background: #fff;
  border-color: #165dff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}
.form-divider {
  border: none;
  border-top: 1px dashed #e5e6eb;
  margin: 24px 0;
}
.form-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: #86909c;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #165dff, #4080ff);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.4);
}

.btn-link {
  background: none;
  border: none;
  color: #86909c;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.btn-link:hover { color: #f53f3f; background: #ffece8; }
.inline-form { display: inline; margin: 0; }

.pagination-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f2f3f5;
  text-align: center;
}
.pagination-wrap ul {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-wrap li a,
.pagination-wrap li span {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e5e6eb;
  background: #fff;
  font-size: 14px;
  text-decoration: none;
  color: #4e5969;
}
.pagination-wrap li.active span {
  background: #165dff;
  border-color: #165dff;
  color: #fff;
}

.member-footer {
  margin-top: auto;
  padding: 20px 16px;
  text-align: center;
  font-size: 12px;
  color: #86909c;
  border-top: 1px solid #e5e6eb;
  background: #fff;
}
.member-footer p { margin: 0; }

.price { color: #ff7d00; font-weight: 600; }

/* ==========================================================================
   登录 / 注册
   ========================================================================== */
.member-app.is-auth-page {
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(22, 93, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 100%, rgba(64, 128, 255, 0.12), transparent 50%),
    linear-gradient(160deg, #eef4ff 0%, #f5f7fa 42%, #f0f4ff 100%);
}
.member-main--auth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 56px;
}
.member-topbar--auth .brand-title { font-size: 20px; }

.auth-scene { width: 100%; max-width: min(var(--container, 1600px), 1040px); margin: 0 auto; }
.auth-scene-inner {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 420px);
  gap: 32px;
  align-items: stretch;
}

/* 左侧品牌区：渐变背景 + 装饰 */
.auth-brand-panel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 480px;
  padding: 44px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(22, 93, 255, 0.22);
}
.auth-brand-panel--login {
  background: linear-gradient(145deg, #0e42d2 0%, #165dff 38%, #4080ff 100%);
}
.auth-brand-panel--register {
  background: linear-gradient(145deg, #1a3fb8 0%, #2b6cff 40%, #5b8cff 100%);
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 85%);
  pointer-events: none;
}
.auth-brand-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}
.auth-deco-ring--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
}
.auth-deco-ring--2 {
  width: 160px;
  height: 160px;
  bottom: 48px;
  left: -40px;
  background: rgba(255, 255, 255, 0.08);
}
.auth-deco-ring--3 {
  width: 80px;
  height: 80px;
  top: 42%;
  right: 18%;
  border-color: rgba(255, 255, 255, 0.28);
}
.auth-brand-content {
  position: relative;
  z-index: 1;
}
.auth-brand-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.auth-brand-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.auth-brand-desc {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
}
.auth-feature-list { margin: 0; padding: 0; list-style: none; }
.auth-feature-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.auth-feature-list li:last-child { border-bottom: none; }
.auth-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M4.5 9 1.5 6l1-1 2 2 4-4 1 1z'/%3E%3C/svg%3E") center/10px no-repeat;
}
.auth-brand-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.auth-highlight-item {
  padding: 14px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  text-align: center;
}
.auth-highlight-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.auth-highlight-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

/* 右侧表单卡片 */
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 12px 40px rgba(29, 33, 41, 0.08);
  border: 1px solid rgba(229, 230, 235, 0.9);
  align-self: center;
}
.auth-card-head { margin-bottom: 28px; text-align: center; }
.auth-card-head h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: #1d2129; }
.auth-card-head p { margin: 0; font-size: 14px; color: #86909c; }
.auth-card-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e6eb;
  text-align: center;
  font-size: 14px;
  color: #4e5969;
}
.auth-card-foot a { color: #165dff; font-weight: 500; text-decoration: none; }
.auth-card-foot a:hover { text-decoration: underline; }
.auth-foot-muted { display: block; margin-top: 12px; font-size: 13px; color: #86909c !important; font-weight: 400 !important; }
.auth-form .label-required { color: #ff7d00; }
.auth-submit {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.28);
  transition: transform 0.12s, box-shadow 0.15s;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 93, 255, 0.35);
}
.auth-form .form-control:focus {
  border-color: #165dff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}
.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-captcha-row .form-control {
  flex: 1;
  min-width: 0;
  height: 44px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}
.auth-captcha-img {
  flex-shrink: 0;
  width: 120px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #e5e6eb;
  cursor: pointer;
  background: #f7f8fa;
  object-fit: fill;
  display: block;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-captcha-img:hover {
  border-color: #165dff;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.12);
}

/* ==========================================================================
   响应式：平板
   ========================================================================== */
@media (max-width: 1024px) {
  .member-layout {
    grid-template-columns: calc(240px * var(--layout-scale, 1.4285714286)) minmax(0, 1fr);
    gap: var(--gap-md, 16px);
  }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   响应式：手机
   ========================================================================== */
@media (max-width: 768px) {
  .member-nav-toggle { display: flex; }
  .member-topbar .brand-slogan { display: none; }
  .member-topnav a { padding: 6px 10px; font-size: 13px; }

  .member-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .member-sidebar-backdrop { display: block; }

  .member-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 160;
    width: min(280px, 85vw);
    max-height: none;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
  body.sidebar-open .member-sidebar {
    transform: translateX(0);
  }
  body.sidebar-open { overflow: hidden; }

  .m-page-title { font-size: 20px; }
  .m-panel { padding: 16px; border-radius: 10px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 10px; }
  .stat-num { font-size: 22px; }
  .m-actions { flex-direction: column; }
  .m-actions .m-btn { width: 100%; }
  .balance-card { padding: 16px; }
  .balance-card-amount { font-size: 26px; }
  .vip-plan-grid { grid-template-columns: 1fr; }

  .m-table th,
  .m-table td { padding: 10px 8px; font-size: 13px; }
  .m-list-item { flex-direction: column; align-items: flex-start; }
  .m-list-actions { width: 100%; }

  .auth-scene-inner {
    grid-template-columns: 1fr;
    max-width: calc(420px * var(--layout-scale, 1.4285714286));
    margin: 0 auto;
    gap: 20px;
  }
  .auth-brand-panel {
    min-height: auto;
    padding: 28px 24px;
    text-align: center;
  }
  .auth-brand-desc { margin-left: auto; margin-right: auto; }
  .auth-feature-list { text-align: left; max-width: 360px; margin: 0 auto; }
  .auth-brand-highlights {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 16px;
  }
  .auth-highlight-item { text-align: left; padding: 12px 14px; }
  .auth-deco-ring--1 { width: 180px; height: 180px; top: -50px; right: -30px; }
  .auth-card { padding: 28px 20px 24px; }
}

@media (max-width: 400px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .member-topnav { gap: 0; }
}
