/* login-modal.css — 登录弹窗+AI引导卡片+每日预览+社会认证 */
/* ===== login.css — 登录弹窗/注册/设置页样式 =====
   从 base.css 拆分而来，保持原始顺序
   ===== */

/* ============================================================
 * 全局登录引导弹窗 (auth-modal)
 * ============================================================ */

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.auth-modal-overlay.auth-modal-visible {
  opacity: 1;
}

.auth-modal-container {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 80px rgba(108, 92, 231, 0.06);
  padding: 32px 28px 24px;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  overflow: hidden;
}
.auth-modal-visible .auth-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 顶部装饰渐变光带 */
.auth-modal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #6C5CE7), #A29BFE, #F1C40F, #FD79A8, var(--accent, #6C5CE7));
  background-size: 200% 100%;
  animation: auth-gradient-flow 3s ease infinite;
}

@keyframes auth-gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: #999;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.auth-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #666;
  transform: rotate(90deg);
}

/* 头部 */
.auth-modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.auth-modal-logo {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}
.auth-modal-logo-inner {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent, #6C5CE7), #A29BFE);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
  position: relative;
  z-index: 1;
}
.auth-modal-logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 2px solid rgba(108, 92, 231, 0.15);
  animation: auth-ring-pulse 2.5s ease-in-out infinite;
}
@keyframes auth-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

.auth-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d2d3f;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.auth-modal-reason {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

/* 权益亮点 */
.auth-modal-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.auth-modal-benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.04);
  border: 1px solid rgba(108, 92, 231, 0.06);
  font-size: 12px;
  color: #666;
  transition: all 0.2s;
}
.auth-modal-benefit-item i {
  color: var(--accent, #6C5CE7);
  font-size: 14px;
  flex-shrink: 0;
}
.auth-modal-benefit-item:hover {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.15);
}

/* Tab */
.auth-modal-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px;
  margin-bottom: 16px;
}
.auth-modal-tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  cursor: pointer;
  transition: all 0.25s;
}
.auth-modal-tab.active {
  background: white;
  color: var(--accent, #6C5CE7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.auth-modal-tab:not(.active):hover {
  color: #666;
}

/* 表单 */
.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-modal-input-group {
  position: relative;
}
.auth-modal-input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s;
}
.auth-modal-input-group input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.25s;
  box-sizing: border-box;
}
.auth-modal-input-group input::placeholder {
  color: #c8c8d0;
}
.auth-modal-input-group input:focus {
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.08);
}
.auth-modal-input-group input:focus + i,
.auth-modal-input-group:focus-within i {
  color: var(--accent, #6C5CE7);
}

.auth-modal-error {
  font-size: 13px;
  color: #e74c3c;
  text-align: center;
  padding: 6px 0;
  animation: auth-shake-in 0.3s ease;
}

.auth-modal-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent, #6C5CE7), #A29BFE);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.25);
  margin-top: 4px;
}
.auth-modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
}
.auth-modal-submit:active {
  transform: translateY(0);
}
.auth-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 底部 */
.auth-modal-footer {
  text-align: center;
  margin-top: 16px;
}
.auth-modal-skip {
  border: none;
  background: none;
  color: #bbb;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.auth-modal-skip:hover {
  color: #888;
  background: rgba(0, 0, 0, 0.03);
}

/* ============================================================
 * AI 分析登录引导卡片
 * ============================================================ */

.ai-login-guide {
  position: relative;
  overflow: hidden;
}
.ai-login-guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #6C5CE7), #A29BFE, #F1C40F);
  border-radius: 3px 3px 0 0;
}

.ai-login-guide-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(108, 92, 231, 0.12);
  animation: ai-guide-float 3s ease-in-out infinite;
}
.ai-login-guide-icon i {
  font-size: 26px;
  color: var(--accent, #6C5CE7);
}

/* 深色主题变体（占卜模块用） */
.ai-login-guide-icon-dark {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(162, 155, 254, 0.25));
  border-color: rgba(162, 155, 254, 0.2);
}
.ai-login-guide-icon-dark i {
  color: #A29BFE;
}

@keyframes ai-guide-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ai-login-guide-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ai-login-guide-features span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(108, 92, 231, 0.06);
  color: #777;
  font-size: 12px;
  border: 1px solid rgba(108, 92, 231, 0.08);
}
.ai-login-guide-features span i {
  color: var(--accent, #6C5CE7);
  font-size: 13px;
}

/* 深色主题变体 */
.ai-login-guide-features-dark span {
  background: rgba(162, 155, 254, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(162, 155, 254, 0.15);
}
.ai-login-guide-features-dark span i {
  color: #A29BFE;
}

/* shake 动画 */
@keyframes auth-shake-in {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* ============================================================
 * 每日运势预览 (hdf-*)
 * ============================================================ */

.hdf-preview {
  position: relative;
  padding: 20px 24px;
  overflow: hidden;
}

.hdf-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hdf-color, var(--accent));
  opacity: 0.6;
  border-radius: 12px 12px 0 0;
}

.hdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.hdf-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hdf-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hdf-title {
  font-size: 15px;
  font-weight: 700;
  color: #2d3436;
  margin: 0;
  line-height: 1.3;
}

.hdf-keyword {
  font-size: 11px;
  color: var(--hdf-color, var(--accent));
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.hdf-lucky-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #999;
  background: rgba(0, 0, 0, 0.02);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.hdf-lucky-time i {
  color: var(--hdf-color, var(--accent));
  font-size: 13px;
}

.hdf-summary {
  font-size: 13px;
  line-height: 1.7;
  color: #636e72;
  margin-bottom: 14px;
  padding: 0 2px;
}

.hdf-personal-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: var(--hdf-bg, rgba(108, 92, 231, 0.06));
  border: 1px solid var(--hdf-border, rgba(108, 92, 231, 0.12));
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

.hdf-personal-hint i {
  color: var(--hdf-color, var(--accent));
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}

.hdf-personal-hint strong {
  font-weight: 700;
}

.hdf-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.hdf-tip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  transition: all 0.25s ease;
  animation: hdf-tip-in 0.4s ease-out both;
  animation-delay: var(--tip-delay, 0ms);
}

.hdf-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

@keyframes hdf-tip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hdf-tip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.hdf-tip-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hdf-tip-label {
  font-size: 10px;
  color: var(--tip-color, #999);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hdf-tip-text {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.hdf-avoid {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #aaa;
}

.hdf-avoid i {
  color: #F39C12;
  font-size: 13px;
}

.hdf-more-link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hdf-color, var(--accent));
  text-decoration: none;
  transition: all 0.2s;
}

.hdf-more-link:hover {
  color: var(--accent);
  gap: 4px;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .hdf-preview {
    padding: 16px;
  }
  .hdf-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hdf-tips-grid {
    grid-template-columns: 1fr;
  }
  .hdf-tip-text {
    white-space: normal;
  }
}

/* ============================================================
 * 社会认证区 (hsp-*)
 * ============================================================ */

.hsp-section {
  position: relative;
}

.hsp-inner {
  padding: 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.hsp-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

.hsp-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  flex: 1;
  justify-content: center;
}

.hsp-stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.08), transparent);
  flex-shrink: 0;
}

.hsp-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.hsp-stat-icon i {
  color: #fff;
  font-size: 18px;
}

.hsp-stat-icon-active {
  background: linear-gradient(135deg, #E74C3C, #FD79A8);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.hsp-stat-icon-divination {
  background: linear-gradient(135deg, #F39C12, #F1C40F);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.hsp-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hsp-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #2d3436;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hsp-stat-label {
  font-size: 11px;
  color: #aaa;
  font-weight: 500;
}

.hsp-trust {
  text-align: center;
}

.hsp-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
  background: rgba(0, 0, 0, 0.02);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.hsp-badge i {
  font-size: 13px;
  color: #6C5CE7;
}

.hsp-badge:hover {
  background: rgba(108, 92, 231, 0.05);
  border-color: rgba(108, 92, 231, 0.12);
}

/* 移动端适配 */
@media (max-width: 640px) {
  .hsp-inner {
    padding: 16px;
  }
  .hsp-stats {
    flex-direction: column;
    gap: 12px;
  }
  .hsp-stat-item {
    padding: 0;
    justify-content: flex-start;
    width: 100%;
  }
  .hsp-stat-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06), transparent);
  }
  .hsp-trust-badges {
    flex-direction: column;
    gap: 6px;
  }
}
