/* 推赚客直推平台 - 自定义样式 */

/* ========== CSS Variables ========== */
:root {
  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-200: #fde68a;
  --color-amber-300: #fcd34d;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;
  
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  
  --color-red-50: #fef2f2;
  --color-red-100: #fee2e2;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;
}

/* ========== Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Selection Styles ========== */
::selection {
  background-color: var(--color-amber-100);
  color: #78350f;
}

/* ========== Scrollbar Hide ========== */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========== Animation Keyframes ========== */

/* Gradient Text with Shimmer Effect */
.gradient-text-shimmer {
  background: linear-gradient(
    90deg,
    #f59e0b 0%,
    #f97316 25%,
    #ef4444 50%,
    #f97316 75%,
    #f59e0b 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Shimmer Animation for Gradient Text */
@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Scroll Y Animation for Withdrawal Feed */
@keyframes scroll-y {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.animate-scroll-y {
  animation: scroll-y 20s linear infinite;
}

.animate-scroll-y:hover {
  animation-play-state: paused;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* ========== Mobile Menu Styles ========== */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
  display: none;
}

/* ========== Channel Card Styles ========== */
.channel-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.channel-card .badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(to right, #ef4444, #f97316);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-bottom-left-radius: 8px;
  z-index: 10;
}

/* ========== Testimonial Card Styles ========== */
.testimonial-card {
  display: inline-block;
  width: 320px;
  flex-shrink: 0;
  white-space: normal;
  vertical-align: top;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .testimonial-card {
    width: 400px;
  }
}

/* ========== Gradient Text ========== */
.gradient-text {
  background: linear-gradient(to right, var(--color-amber-500), var(--color-red-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== Button Hover Effects ========== */
.btn-primary {
  background: linear-gradient(to right, var(--color-amber-500), var(--color-red-500));
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--color-amber-600), #dc2626);
  transform: translateY(-2px);
}

/* ========== Card Hover Effects ========== */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  background-color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--color-amber-100);
}

.hover-card:hover .icon-wrapper {
  transform: scale(1.1);
}

/* ========== Icon Wrapper ========== */
.icon-wrapper {
  transition: transform 0.3s ease;
}

/* ========== Navigation Link Hover ========== */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-amber-500);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ========== FAQ Accordion (if needed) ========== */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ========== QR Code Card ========== */
.qr-card {
  transition: transform 0.3s ease;
}

.qr-card:hover {
  transform: translateY(-8px);
}

/* ========== Pricing Card Highlight ========== */
.pricing-highlight {
  position: relative;
  transform: translateY(-16px);
}

@media (max-width: 768px) {
  .pricing-highlight {
    transform: translateY(0);
  }
}

/* ========== Background Pattern ========== */
.bg-pattern {
  background-image: radial-gradient(#f59e0b15 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ========== Glass Effect ========== */
.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ========== Dark Section Gradient ========== */
.dark-gradient {
  background: radial-gradient(ellipse at top right, var(--color-slate-800), var(--color-slate-900), #000);
}

/* ========== Scroll Animation Classes ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Custom Scrollbar for non-hidden areas ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-slate-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-slate-500);
}

/* ========== Focus Styles ========== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-amber-500);
  outline-offset: 2px;
}

/* ========== Image Styles ========== */
img {
  max-width: 100%;
  height: auto;
}

/* ========== Responsive Typography ========== */
@media (max-width: 640px) {
  h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

/* ========== Loading Animation ========== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ========== Tooltip Styles ========== */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 6px 12px;
  background-color: var(--color-slate-800);
  color: white;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* ========== Print Styles ========== */
@media print {
  nav,
  footer,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}
