:root {
  --gp-blue: #1d4ed8;
  --gp-blue-2: #2563eb;
  --gp-ink: #0f172a;
  --gp-muted: #64748b;
  --gp-line: #e5e7eb;
  --gp-bg: #f3f4f6;
  --gp-wx: #07c160;
  --gp-gold: #b45309;
  --gp-red: #dc2626;
}

/* 试用剩余 / 开通会员：固定在页面底端居中（电脑、平板、手机同一位置，略放大） */
.gp-userbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  max-width: calc(100vw - 16px);
}
.gp-dock { justify-content: center; }
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-bar .filter-controls {
  flex: 1;
  min-width: 0;
}
.gp-chip {
  font-size: 15px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}
.gp-chip.warn {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}
.gp-chip.ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #86efac;
}
.gp-vip-btn, .gp-text-btn, .gp-ghost-btn {
  border: 1px solid #fbbf24;
  background: linear-gradient(180deg, #fef3c7, #fde68a);
  color: #92400e;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.gp-vip-btn:active { transform: translateY(1px); }
.gp-text-btn {
  background: #fff;
  border-color: #d1d5db;
  color: #374151;
  font-weight: 600;
}
.gp-ghost-btn {
  background: transparent;
  border-color: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}
.gp-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .gp-userbar { bottom: 10px; gap: 8px; padding: 7px 10px; }
  .gp-chip, .gp-vip-btn { font-size: 14px; padding: 6px 13px; }
}

.gp-mask {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gp-mask.show { display: flex; }
.gp-card {
  width: min(920px, 100%);
  max-height: min(92vh, 760px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gp-auth-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 520px;
}
.gp-auth-left {
  background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  color: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gp-auth-left h1 { font-size: 26px; line-height: 1.3; margin-bottom: 14px; }
.gp-auth-left p { color: #dbeafe; font-size: 14px; line-height: 1.9; margin-bottom: 10px; }
.gp-auth-left ul { margin-top: 22px; font-size: 13px; line-height: 2; color: #eff6ff; padding-left: 18px; }
.gp-auth-foot { font-size: 12.5px; color: #dbeafe; opacity: .92; border-top: 1px solid rgba(255,255,255,.22); padding-top: 12px; }
.gp-auth-right { padding: 28px 28px 24px; }
.gp-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.gp-tab {
  flex: 1; border: 1px solid var(--gp-line); background: #f8fafc; color: #64748b;
  border-radius: 8px; padding: 8px 0; cursor: pointer; font-weight: 700; font-size: 14px;
}
.gp-tab.on { background: #eff6ff; color: var(--gp-blue); border-color: #93c5fd; }
.gp-field { margin-bottom: 12px; }
.gp-field label { display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.gp-field input, .gp-field textarea, .gp-field select {
  width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px;
  font-size: 14px; outline: none; background: #fff;
}
.gp-field input:focus, .gp-field textarea:focus, .gp-field select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.gp-hint { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.gp-error { color: #dc2626; font-size: 14px; min-height: 22px; margin: 8px 0; font-weight: 600; }
.gp-primary, .gp-wx-btn, .gp-danger {
  width: 100%; border: 0; border-radius: 10px; padding: 11px 14px;
  font-size: 15px; font-weight: 700; cursor: pointer; color: #fff; background: var(--gp-blue-2);
}
.gp-wx-btn { background: var(--gp-wx); }
.gp-danger { background: #dc2626; width: auto; }
.gp-ref {
  margin-bottom: 14px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 8px; padding: 8px 10px; font-size: 12px;
}

.gp-pay {
  width: min(560px, 100%);
  max-height: min(94vh, 880px);
}
.gp-pay-head {
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--gp-line);
}
.gp-pay-head h2 { font-size: 20px; color: #111827; }
#gpPayClose {
  position: absolute; right: 14px; top: 10px;
  border: 0; background: transparent; font-size: 28px;
  color: #94a3b8; cursor: pointer; line-height: 1;
}
.gp-pay-head .sub { color: #b45309; font-size: 14px; margin-top: 6px; font-weight: 700; }
/* 开通会员页：上面二维码 + 联系电话，下面是开通说明与服务清单 */
.gp-pay-body {
  display: block;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gp-cs {
  padding: 18px 20px 16px;
  border-right: 0;
  border-bottom: 1px solid var(--gp-line);
  background: #f8fafc;
  text-align: center;
}
.gp-qr {
  width: 176px; height: 176px; margin: 0 auto 8px;
  border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
  object-fit: contain; padding: 8px;
}
.gp-cs-label { font-size: 12px; color: #64748b; }
.gp-cs .wx { color: #15803d; font-weight: 800; font-size: 16px; }
.gp-cs .phone { margin-top: 6px; font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: .8px; }
.gp-cs .price { margin: 12px 0 8px; font-size: 14px; color: #047857; font-weight: 700; }
.gp-cs .price small { font-size: 13px; color: #64748b; font-weight: 500; }
.gp-pay-core { padding: 16px 22px 18px; }
.gp-pay-lead { font-size: 14px; color: #334155; line-height: 1.75; }
.gp-pay-perks { list-style: none; margin: 10px 0 16px; padding: 0; }
.gp-pay-perks li {
  position: relative; padding-left: 22px; font-size: 13.5px; line-height: 2; color: #1f2937;
}
.gp-pay-perks li::before {
  content: '✓'; position: absolute; left: 2px; top: 0;
  color: #07c160; font-weight: 800;
}
.gp-faq {
  border-top: 1px solid var(--gp-line);
  padding: 0 10px 10px;
  overflow: visible;
  min-height: 0;
}
.gp-faq > summary {
  cursor: pointer; font-size: 13px; font-weight: 700; color: #334155;
  padding: 12px 6px 8px; list-style: none;
}
.gp-faq h3 { font-size: 14px; padding: 10px 12px 6px; color: #334155; }
.gp-faq details {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 6px;
}
.gp-faq summary {
  cursor: pointer; font-size: 13px; font-weight: 700; color: #1e293b;
}
.gp-faq p { font-size: 13px; color: #475569; line-height: 1.7; margin-top: 6px; }
@media (max-width: 600px) {
  /* 手机上把二维码和留白压缩一点，让「添加微信开通会员」按钮尽量出现在第一屏 */
  .gp-pay-head { padding: 14px 18px 10px; }
  .gp-pay-head h2 { font-size: 18px; }
  .gp-pay-head .sub { font-size: 13px; }
  .gp-qr { width: 136px; height: 136px; margin-bottom: 6px; padding: 6px; }
  .gp-cs { padding: 12px 16px 12px; }
  .gp-cs .phone { font-size: 18px; }
  .gp-pay-core { padding: 12px 18px 14px; }
  .gp-pay-perks { margin: 8px 0 12px; }
  .gp-pay-perks li { font-size: 13px; line-height: 1.9; }
  .gp-faq > summary { padding: 10px 6px 6px; }
}
.gp-offline {
  position: fixed; inset: 0; z-index: 9500; background: #0f172a;
  color: #fff; display: none; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.gp-offline.show { display: flex; }
.gp-offline h1 { font-size: 24px; margin-bottom: 10px; }
.gp-offline p { color: #cbd5e1; line-height: 1.8; }

body.gp-dash {
  margin: 0; background: #f1f5f9; color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.gp-shell { display: flex; min-height: 100vh; position: relative; }
.gp-side {
  width: 220px; background: #0f172a; color: #e2e8f0; flex-shrink: 0;
  display: flex; flex-direction: column;
  position: relative; z-index: 40;
}
.gp-side .brand { padding: 18px 14px 10px; position: sticky; top: 0; background: #0f172a; z-index: 2; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gp-side .brand b { font-size: 16px; color: #fff; }
.gp-side .brand span { display: block; font-size: 12px; color: #94a3b8; margin-top: 4px; }
.gp-logout {
  display: inline-block; background: #dc2626; color: #fff !important; border-radius: 6px;
  padding: 5px 10px; font-size: 12px; font-weight: 700; text-decoration: none; line-height: 1.3;
  flex-shrink: 0;
}
.gp-logout:hover { background: #b91c1c; color: #fff !important; }
.gp-nav a.gp-logout { text-align: center; margin-top: 10px; }
.gp-nav { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.gp-nav a, .gp-nav button {
  text-align: left; border: 0; background: transparent; color: #cbd5e1;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
  text-decoration: none; display: block; touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(37,99,235,.35);
}
.gp-nav a:hover, .gp-nav button:hover { background: #1e293b; color: #fff; }
.gp-nav a.on, .gp-nav button.on { background: #1d4ed8; color: #fff; }
.gp-side .foot { margin-top: auto; padding: 16px; font-size: 12px; color: #94a3b8; }
.gp-side .foot a.gp-mini { display: inline-block; margin: 8px 6px 0 0; color: #e2e8f0; text-decoration: none; background: transparent; border-color: #475569; }
.gp-side .foot a.gp-mini:hover { color: #fff; background: #1e293b; border-color: #94a3b8; }
.gp-main { flex: 1; min-width: 0; padding: 22px 24px 40px; position: relative; z-index: 1; }
.gp-main > [data-page] { display: none !important; }
.gp-main > [data-page]:target { display: block !important; }
.gp-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 18px; gap: 12px;
}
.gp-top h2 { font-size: 22px; margin: 0; }
.gp-top p { color: #64748b; font-size: 13px; margin: 4px 0 0; }
.gp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.gp-stat {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px;
}
.gp-stat .k { font-size: 12px; color: #64748b; }
.gp-stat .v { font-size: 22px; font-weight: 800; margin-top: 6px; }
.gp-panel {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px;
}
.gp-panel h3 { font-size: 15px; margin: 0 0 12px; }
.gp-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.gp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gp-table th, .gp-table td { border-bottom: 1px solid #f1f5f9; padding: 9px 8px; text-align: left; vertical-align: middle; }
.gp-table th { color: #64748b; font-weight: 600; background: #f8fafc; }
.gp-table tr:hover td { background: #fafafa; }
.gp-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.gp-badge.ok { background: #dcfce7; color: #166534; }
.gp-badge.no { background: #fee2e2; color: #b91c1c; }
.gp-badge.wait { background: #fef3c7; color: #92400e; }
.gp-mini { border: 1px solid #d1d5db; background: #fff; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 12px; }
.gp-mini.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.gp-mini.green { background: #16a34a; color: #fff; border-color: #16a34a; }
.gp-mini.red { background: #dc2626; color: #fff; border-color: #dc2626; }
.gp-share {
  background: #eff6ff; border: 1px dashed #93c5fd; border-radius: 10px; padding: 12px 14px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.gp-share code { font-size: 13px; color: #1d4ed8; word-break: break-all; }
.gp-preview-ad {
  height: 24px; overflow: hidden; border-radius: 4px; border: 1px solid #fdba74;
  background: #fff7ed; color: #c2410c; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.gp-qr-upload { display: flex; gap: 16px; align-items: flex-start; }
.gp-qr-upload img { width: 140px; height: 140px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.gp-hidden { display: none !important; }
.gp-main > [data-page]:target { display: block !important; }
.gp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.gp-field input[type="date"], .gp-table input[type="date"] {
  min-height: 42px; color: #0f172a; color-scheme: light; min-width: 148px;
}
.gp-date-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.gp-date-quick button {
  border: 1px solid #d1d5db; background: #f8fafc; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; color: #334155;
}
.gp-date-quick button:hover { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; }
.gp-check {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155;
  margin: 12px 0 8px; cursor: pointer; user-select: none;
}
.gp-check input { width: auto; margin: 0; }
.gp-panel .gp-mini.primary { padding: 8px 16px; font-size: 13px; }
.gp-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 9800;
  background: #0f172a; color: #fff; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; display: none;
}
.gp-toast.show { display: block; }
body.gp-locked #app {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.gp-cs-actions { display: flex; gap: 8px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.gp-cs-actions .gp-mini, .gp-cs-actions a.gp-mini { text-decoration: none; color: #334155; }
.gp-wx-btn:disabled { opacity: .7; cursor: default; background: #059669; }
.gp-search { width: 220px; border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.gp-side .foot a { color: #93c5fd; }
@media (max-width: 860px) {
  .gp-auth-grid, .gp-pay-body, .gp-cards, .gp-form-grid { grid-template-columns: 1fr; }
  .gp-auth-left { display: none; }
  .gp-shell { flex-direction: column; }
  .gp-side { width: auto; }
  .gp-nav { flex-direction: row; overflow-x: auto; }
}
