/* ============================================================
   HHpoker 俱乐部 — 自然森林风 Forest Nature Theme
   TYPE 3 TDK CSS
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* ----- Navbar Scroll Effect ----- */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ----- Feature Cards ----- */
.feature-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #10b981; /* emerald-500 */
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.04) 0%, transparent 100%);
    transition: height 0.35s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.15);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

/* Leaf-icon circle */
.feature-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: transform 0.35s ease;
    border: 3px solid #a7f3d0;
}

.feature-card:hover .feature-icon-circle {
    transform: scale(1.1) rotate(-5deg);
}

/* ----- Stats Section ----- */
.stats-section {
    position: relative;
    overflow: hidden;
}

.counter {
    font-variant-numeric: tabular-nums;
}

/* ----- Testimonial Cards ----- */
.testimonial-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    position: relative;
    border: 1px solid #f0fdf4;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.12);
}

/* Leaf quote mark */
.testimonial-quote {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: #059669;
}

/* ----- FAQ Accordion ----- */
.faq-item {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1);
}

.faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1f2937;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-toggle:hover {
    color: #059669;
}

.faq-toggle i {
    font-size: 0.9rem;
    color: #10b981;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Open state: rotate leaf icon */
.faq-item.open .faq-toggle i {
    transform: rotate(90deg);
}

/* FAQ content — animated expand */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-content {
    max-height: 300px;
}

.faq-content p {
    padding: 0 1.5rem 1.25rem;
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ----- CTA Section ----- */
/* Inline styles handle gradients; no extra styles needed */

/* ----- Footer ----- */
/* Inline styles handle dark-green gradient */

/* ----- Floating Customer Service Buttons ----- */
@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 2.5s ease-in-out infinite;
}

/* ----- Back to Top Button ----- */
#backToTop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* ----- Contact Form Focus Effects ----- */
input:focus, textarea:focus, select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* ----- Responsive Tweaks ----- */
@media (max-width: 768px) {
    .hero-leaf-decor {
        display: none;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .faq-toggle {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-content p {
        padding: 0 1.25rem 1rem;
        font-size: 0.9rem;
    }
}

/* ----- Smooth page transition ----- */
a, button {
    transition: all 0.25s ease;
}

/* ----- Organic shape dividers ----- */
.organic-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 5;
}

/* ----- Selection highlight ----- */
::selection {
    background: #059669;
    color: #fff;
}

::-moz-selection {
    background: #059669;
    color: #fff;
}

/* ----- Scrollbar subtle styling ----- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0fdf4;
}

::-webkit-scrollbar-thumb {
    background: #6ee7b7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ----- Print Styles ----- */
@media print {
    #csButtons,
    #mobileMenuBtn,
    .faq-content {
        display: none !important;
    }
    .faq-item .faq-content {
        max-height: none !important;
        display: block !important;
    }
}
