/* GPAway 账号与管理子页面统一 Liquid Glass 视觉与弹簧动效 */
body.gpaway-subpage {
  margin: 0;
  min-height: 100vh;
  background: #f5f6f8;
  color: var(--ink, #2E3036);
  font-family: var(--font-editorial, "GPAway Times New Roman", "GPAway Song", SimSun, serif);
  display: flex;
  flex-direction: column;
  position: relative;
}

.subpage-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
}

.subpage-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.subpage-logo:hover { opacity: 0.78; }
.subpage-logo img { height: 30px; width: auto; display: block; }

.subpage-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 36px) clamp(20px, 5vw, 28px) 64px;
  box-sizing: border-box;
  animation: gp-subpage-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gp-subpage-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.subpage-icon-top { width: 42px; height: 42px; margin-bottom: 18px; color: var(--ink-strong, #22242A); }
.subpage-title { margin: 0 0 14px; font-size: clamp(28px, 4.6vw, 36px); line-height: 1.25; font-weight: 700; color: var(--ink-strong, #22242A); }
.subpage-lead { margin: 0 0 28px; font-size: 1rem; line-height: 1.8; color: var(--ink, #2E3036); }
.subpage-lead a { color: var(--ink-strong, #22242A); text-decoration: underline; text-underline-offset: 3px; }
.subpage-section-title { margin: 32px 0 14px; font-size: 1.16rem; font-weight: 700; color: var(--ink-strong, #22242A); }

.subpage-box {
  border-radius: 22px;
  background: var(--glass-card, rgba(255, 255, 255, 0.62));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--rim-card);
  overflow: hidden;
  transition: box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.subpage-row {
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.subpage-row + .subpage-row { border-top: 1px solid rgba(46, 48, 54, 0.07); }

.subpage-row-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.subpage-row-link:hover { background: rgba(255, 255, 255, 0.56); }
.subpage-row-link:active { transform: scale(0.992); }

.subpage-row-icon { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--ink, #2E3036); }
.subpage-row-body { flex: 1; min-width: 0; }
.subpage-row-title { margin: 0 0 4px; font-size: 0.98rem; font-weight: 700; color: var(--ink-strong, #22242A); }
.subpage-row-desc { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--ink-secondary, rgba(46, 48, 54, 0.68)); }
.subpage-row-arrow { flex: 0 0 auto; align-self: center; color: rgba(46, 48, 54, 0.42); font-size: 1.15rem; transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.subpage-row-link:hover .subpage-row-arrow { transform: translateX(3px); }

.subpage-step-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--rim-control);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-strong, #22242A); margin-top: 1px;
}

.subpage-btn-black {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px; padding: 14px 24px;
  border: none; border-radius: 999px;
  background: #1a1c20;
  color: #ffffff;
  font-family: inherit; font-size: 0.98rem; font-weight: 700; text-decoration: none;
  cursor: pointer; box-sizing: border-box;
  box-shadow: var(--rim-primary);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, opacity 0.2s ease;
}
.subpage-btn-black:hover:not(:disabled) { background: #2c2f37; transform: translateY(-1px); }
.subpage-btn-black:active:not(:disabled) { transform: scale(0.985); }
.subpage-btn-black:disabled { opacity: 0.56; cursor: not-allowed; }

.subpage-btn-danger { background: linear-gradient(160deg, #b02a27 0%, #8e1e1b 100%); }
.subpage-btn-danger:hover:not(:disabled) { background: linear-gradient(160deg, #c2322e 0%, #9f2320 100%); }

.subpage-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: none; border-radius: 999px;
  background: var(--glass-control, rgba(255, 255, 255, 0.62));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--rim-control);
  color: var(--ink-strong, #22242A);
  font-family: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.subpage-btn-outline:hover:not(:disabled) { background: rgba(255, 255, 255, 0.88); transform: translateY(-1px); }
.subpage-btn-outline:active:not(:disabled) { transform: scale(0.98); }
.subpage-btn-outline:disabled { opacity: 0.55; cursor: not-allowed; }

.subpage-form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.subpage-field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 700; color: var(--ink-strong, #22242A); }
.subpage-field input[type="text"],
.subpage-field input[type="password"],
.subpage-field textarea {
  box-sizing: border-box; width: 100%; padding: 12px 16px;
  border: 1px solid rgba(46, 48, 54, 0.12); border-radius: 16px;
  background: rgba(255, 255, 255, 0.78); color: var(--ink-strong, #22242A);
  font-family: inherit; font-size: 0.96rem; line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.subpage-field input:focus, .subpage-field textarea:focus {
  outline: none; border-color: rgba(46, 48, 54, 0.36); background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46, 48, 54, 0.08);
}
.subpage-field textarea { min-height: 140px; resize: vertical; }

.subpage-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
  padding: 16px 20px; border-radius: 18px;
  background: var(--glass-card, rgba(255, 255, 255, 0.54));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--rim-card); margin-bottom: 22px;
}
.subpage-meta-item small { display: block; font-size: 0.78rem; color: var(--ink-secondary, rgba(46, 48, 54, 0.6)); margin-bottom: 3px; }
.subpage-meta-item strong { font-size: 0.92rem; color: var(--ink-strong, #22242A); word-break: break-all; }

.subpage-alert { padding: 14px 18px; border-radius: 16px; font-size: 0.92rem; line-height: 1.65; margin: 14px 0; backdrop-filter: blur(14px); }
.subpage-alert-info { background: rgba(255, 255, 255, 0.68); box-shadow: var(--rim-control); color: var(--ink, #2E3036); }
.subpage-alert-success { background: rgba(241, 248, 243, 0.86); border: 1px solid #c6e2ce; color: #1f5130; }
.subpage-alert-error { background: rgba(253, 243, 242, 0.9); border: 1px solid #f0c9c6; color: #8f221e; }

.subpage-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; line-height: 1.6; cursor: pointer; }
.subpage-checkbox input { margin-top: 4px; width: 16px; height: 16px; }

.subpage-footer {
  position: relative; z-index: 1;
  padding: 24px 20px 36px; text-align: center; font-size: 0.86rem;
  color: var(--ink-secondary, rgba(46, 48, 54, 0.62));
}
.subpage-footer a { color: var(--ink-strong, #22242A); text-decoration: underline; text-underline-offset: 3px; }

.gp-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: gp-spin 0.7s linear infinite; vertical-align: middle;
}
@keyframes gp-spin { to { transform: rotate(360deg); } }

.subpage-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.subpage-badge-pending { background: #fff4de; color: #7a5200; }
.subpage-badge-done { background: #e8f5ec; color: #1c5c30; }
.subpage-badge-fail { background: #fdecec; color: #96221e; }
