/* =============================================
   ACCOUNTHUB 全局样式
   ============================================= */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #FAFAF8;
  color: #2B2B2B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 4px; }
::-webkit-scrollbar-track { background: #FAFAF8; }
::-webkit-scrollbar-thumb { background: #E6E2DB; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8E8E8E; }

/* ── Filter Scroll ── */
.filter-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-animate {
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  animation: heroFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-delay {
  animation: heroFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ── Filter Tabs ── */
.filter-tab {
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.filter-tab.active {
  background-color: #2B2B2B;
  color: #FFFFFF;
}

.filter-tab:not(.active):hover {
  background-color: #E6E2DB;
}

.filter-tab.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Reset Button ── */
.reset-btn { transition: all 0.2s ease; }
.reset-btn:hover { color: #2B2B2B; }

/* ── Floating CTA ── */
.floating-cta::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 9999px;
  background-color: #2B2B2B;
  animation: pulseRing 2.2s ease-out infinite;
  z-index: -1;
}

/* ── Price Tag ── */
.price-tag { font-variant-numeric: tabular-nums; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px 28px 28px;
  width: 92%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Contact Option ── */
.contact-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid #E6E2DB;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #2B2B2B;
}

.contact-option:hover {
  border-color: #2B2B2B;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #2B2B2B;
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Round Indicator ── */
.round-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #8E8E8E;
  font-weight: 500;
}

.round-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E6E2DB;
  transition: background 0.2s;
}

.round-dot.active { background: #2B2B2B; }

/* ── Loading Spinner ── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 248, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #E6E2DB;
  border-top-color: #2B2B2B;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Error Banner ── */
.error-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 90;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.3s ease;
}
