/* ============================================
   HHpoker 俱乐部排行网 — 自定义样式表
   ============================================ */

/* ---------- Smooth Scroll ---------- */
html {
    scroll-behavior: smooth;
}

/* ---------- Card Hover Effect ---------- */
.card-hover {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

/* ---------- Gradient Button ---------- */
.btn-gradient {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.faq-question {
    cursor: pointer;
    user-select: none;
}
.faq-question i.fa-chevron-down {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i.fa-chevron-down {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1rem;
}

/* ---------- Stat Numbers ---------- */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

/* ---------- Section Padding ---------- */
.section-padding {
    padding: 5rem 0;
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
    border-left: 4px solid #4f46e5;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    border-left-color: #3730a3;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ---------- Scroll Reveal Animation ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Delay utilities for staggered animations ---------- */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4f46e5, #6366f1);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4338ca, #4f46e5);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #f1f5f9;
}

/* ---------- Ranking Table Styles ---------- */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; box-shadow: 0 0 12px rgba(148, 163, 184, 0.35); }
.rank-3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; box-shadow: 0 0 12px rgba(180, 83, 9, 0.35); }
.rank-other { background: #f1f5f9; color: #64748b; }

/* ---------- Star Ratings ---------- */
.stars {
    color: #f59e0b;
    letter-spacing: 2px;
}

/* ---------- Download Card ---------- */
.download-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2);
}
.download-card.recommended {
    border: 2px solid #4f46e5;
}
.download-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: 12px;
    right: -4px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ---------- Hero Gradient Animation ---------- */
.hero-gradient {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 30%, #6366f1 60%, #4338ca 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- Pulse Dot ---------- */
.pulse-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Carousel Dots ---------- */
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.carousel-dot.active {
    background: #4f46e5;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.5);
}

/* ---------- Table Row Hover ---------- */
.table-row-hover {
    transition: all 0.2s ease;
}
.table-row-hover:hover {
    background-color: #eef2ff;
    transform: scale(1.005);
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
}

/* ---------- HR Decorative ---------- */
.hr-gradient {
    height: 3px;
    background: linear-gradient(90deg, transparent, #4f46e5, transparent);
    border: none;
    border-radius: 2px;
    margin: 2rem 0;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    .section-padding {
        padding: 3rem 0;
    }
    .hero-gradient h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .stat-number {
        font-size: 1.75rem;
    }
    .section-padding {
        padding: 2rem 0;
    }
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(79, 70, 229, 0.25);
    color: #312e81;
}

/* ---------- Focus Visible ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Print Styles ---------- */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}
