/* ============================================================
   迈赞共赢 — 引流落地页 自定义样式
   设计风格：有机自然 · 温馨舒适 · 东方禅意
   配色基调：木棕 + 鎏金 + 奶油底色
   ============================================================ */

/* ====== CSS Variables ====== */
:root {
    --color-cream: #FDF8F3;
    --color-cream-light: #FFF9F5;
    --color-coffee: #8B5A2B;
    --color-coffee-dark: #3C2415;
    --color-gold: #D4AF37;
    --color-gold-light: #E5C158;
    --color-terracotta: #D4875E;
    --color-warm: #8C6E5A;
    --color-beige: #EDE0D4;
    --color-blush: #FBF0E8;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --transition-smooth: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ====== Base Styles ====== */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    line-height: 1.6;
}

::selection {
    background-color: var(--color-gold-light);
    color: var(--color-coffee-dark);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-beige); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-light); }

#navbar.scrolled {
    background: rgba(253, 248, 243, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(123, 91, 58, 0.06);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 0.6s ease-out both; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out both; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.merchant-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}
.merchant-card:nth-child(1) { animation-delay: 0.05s; }
.merchant-card:nth-child(2) { animation-delay: 0.1s; }
.merchant-card:nth-child(3) { animation-delay: 0.15s; }
.merchant-card:nth-child(4) { animation-delay: 0.2s; }
.merchant-card:nth-child(5) { animation-delay: 0.25s; }
.merchant-card:nth-child(6) { animation-delay: 0.3s; }
.merchant-card:nth-child(7) { animation-delay: 0.35s; }
.merchant-card:nth-child(8) { animation-delay: 0.4s; }
.merchant-card:nth-child(9) { animation-delay: 0.45s; }

.merchant-card:hover .merchant-logo { transform: scale(1.08); }
.merchant-logo { transition: transform var(--transition-smooth); }
.feature-icon-wrapper { transition: all var(--transition-bounce); }
.btn-press:active { transform: scale(0.96); }

@media (hover: none) {
    .hover\:-translate-y-1:hover { transform: none !important; }
    .hover\:shadow-warm-hover:hover { box-shadow: 0 4px 24px rgba(123, 91, 58, 0.08) !important; }
}

a, button, [role="button"], .cursor-pointer {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
a.inline-link { min-height: auto; min-width: auto; display: inline; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 640px) {
    .rounded-3xl { border-radius: 20px; }
    .gap-5 { gap: 0.875rem; }
    #hero svg { height: 50px !important; }
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

@media print {
    body { background: white !important; }
    nav, #hero svg { display: none; }
}

/* ====== Navigation V1 Logo Animations ====== */
.nav-logo-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nav-logo-svg { width: 36px; height: 36px; }

@keyframes navPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.nl-dot { animation: navPulse 3s ease-in-out infinite; }

@keyframes navRipple {
    0% { r: 3; opacity: 0.5; }
    100% { r: 16; opacity: 0; }
}
.nl-ripple { animation: navRipple 3s ease-out infinite; }

@keyframes navLeft {
    0% { transform: translateX(-3px); opacity: 0.75; }
    15% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}
.nl-left { animation: navLeft 4s ease-out infinite; transform-origin: center; }

@keyframes navRight {
    0% { transform: translateX(3px); opacity: 0.75; }
    15% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}
.nl-right { animation: navRight 4s ease-out infinite; transform-origin: center; }
