/* ============================================================
   Notify Me 页面 — 泄露通知订阅
   ============================================================ */

/* ---- 页面头部 ---- */
.notify-header {
  text-align: center;
  padding: 60px 0 48px;
}

.header-icon {
  font-size: 56px;
  margin-bottom: 16px;
  line-height: 1;
}

.notify-header .page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.notify-header .page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- 通用区块 ---- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 32px;
}

/* ---- 三步说明 ---- */
.steps-section {
  padding: 40px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 40px;
  margin: 8px 0 16px;
  line-height: 1;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ---- 表单区 ---- */
.form-section {
  padding: 20px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 480px;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.input-field::placeholder {
  color: #5f6368;
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.input-field.input-error-state {
  border-color: #ef4444;
}

.input-error {
  display: none;
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
}

.input-error.visible {
  display: block;
}

/* ---- 提交按钮 ---- */
.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.btn-submit:hover:not(:disabled) {
  opacity: 1;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

/* ---- 复选框 ---- */
.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: transparent;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  margin-top: 1px;
}

.checkbox-input:checked + .checkbox-custom {
  background: #6366f1;
  border-color: #6366f1;
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 6px;
}

.terms-note {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.terms-note a {
  color: #6366f1;
  text-decoration: none;
}

.terms-note a:hover {
  text-decoration: underline;
}

/* ---- 成功卡片 ---- */
.success-card,
.error-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  text-align: center;
  margin-top: 24px;
}

.success-card {
  border: 1px solid #22c55e33;
}

.error-card {
  border: 1px solid #ef444433;
}

.success-icon,
.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.success-title,
.error-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.success-desc,
.error-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.6;
}

.success-steps {
  text-align: left;
  background: rgba(34, 197, 94, 0.06);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.success-steps ol {
  margin: 0;
  padding-left: 20px;
}

.success-steps li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

.spam-note {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 20px;
}

.btn-retry {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-retry:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

/* ---- 已订阅提醒 ---- */
.already-section {
  padding: 0 0 40px;
  display: flex;
  justify-content: center;
}

.already-card {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid #22c55e33;
  border-radius: 14px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.already-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.already-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.already-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ---- 更多信息区 ---- */
.info-section {
  padding: 20px 0 60px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(99,102,241,0.06);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition-slow);
}
.info-card:hover {
  border-color: rgba(99,102,241,0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.info-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ---- 验证页面 ---- */
.verify-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.verify-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.verify-success {
  border: 1px solid #22c55e33;
}

.verify-fail {
  border: 1px solid #ef444433;
}

.verify-icon {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}

.verify-icon-fail {
  font-size: 56px;
}

.verify-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.verify-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  line-height: 1.6;
}

.verify-desc strong {
  color: var(--text-primary);
}

.verify-info {
  text-align: left;
  background: rgba(34, 197, 94, 0.06);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.verify-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.verify-info ul {
  margin: 0;
  padding-left: 20px;
}

.verify-info li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

.fail-reasons {
  text-align: left;
  padding-left: 20px;
  margin: 0 0 28px;
}

.fail-reasons li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

.verify-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.btn-primary:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: #6366f1;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .notify-header {
    padding: 48px 0 36px;
  }
  .notify-header .page-title {
    font-size: 28px;
  }
  .notify-header .page-subtitle {
    font-size: 15px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px;
  }
  .success-card,
  .error-card {
    padding: 28px 20px;
  }
  .verify-card {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .notify-header .page-title {
    font-size: 24px;
  }
  .section-title {
    font-size: 19px;
  }
}
