/* ============================================
   HHpoker - 德扑圈俱乐部 Landing Page Styles
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #4f46e5;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* --- Mobile Menu --- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Hamburger animation */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line + .hamburger-line {
    margin-top: 5px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero-gradient {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #f0f4ff 60%, #faf5ff 100%);
}

.hero-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-image {
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* --- Card Hover Effects --- */
.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 60px rgba(79, 70, 229, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-hover:hover .card-icon {
    transform: scale(1.1);
    transition: transform 0.35s ease;
}

.card-icon {
    transition: transform 0.35s ease;
}

/* --- Stat Counters --- */
.stat-number {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: all 0.35s ease;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.2);
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.testimonial-avatar {
    transition: all 0.35s ease;
}

/* --- FAQ Accordion --- */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item:hover {
    border-color: #c7d2fe;
}

.faq-question {
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 0;
    padding-bottom: 1.25rem;
}

.faq-arrow {
    transition: transform 0.35s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 40%, #4f46e5 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.cta-btn {
    transition: all 0.35s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

/* --- Page Hero Banner --- */
.page-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f0f4ff 100%);
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, #fff, transparent);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #4f46e5;
    color: #4f46e5;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-white-outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-white-outline:hover {
    background: #fff;
    color: #4f46e5;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: #4f46e5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}

/* --- Form Styles --- */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-error-msg.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.form-success {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-success.show {
    display: block;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
    z-index: 999;
    border: none;
    font-size: 1.1rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

/* --- Download Page --- */
.download-card {
    transition: all 0.35s ease;
    border: 2px solid transparent;
}

.download-card:hover {
    border-color: #4f46e5;
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.12);
}

.download-card.selected {
    border-color: #4f46e5;
    background: #eef2ff;
}

.qr-box {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    display: inline-block;
    transition: transform 0.3s ease;
}

.qr-box:hover {
    transform: scale(1.05);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* --- Club Page --- */
.club-benefit-card {
    transition: all 0.35s ease;
    border: 1px solid #e5e7eb;
}

.club-benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.25);
}

.game-type-card {
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.game-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.game-type-card:hover::before {
    transform: scaleX(1);
}

.game-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.12);
}

/* --- Contact Page --- */
.contact-info-card {
    transition: all 0.35s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    transform: scale(1.1);
}

/* --- Footer --- */
.footer {
    background: #1e1b4b;
    color: #c7d2fe;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 24px;
    height: 2px;
    background: #4f46e5;
    border-radius: 1px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-up-delay-1 {
    animation: fadeInUp 0.6s ease 0.15s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-3 {
    animation: fadeInUp 0.6s ease 0.45s forwards;
    opacity: 0;
}

/* --- Reveal on scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Divider Wave --- */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom right, transparent 49%, #f9fafb 50%);
}

/* --- Badge / Pill --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* --- System Requirements Table --- */
.specs-table tr {
    transition: background 0.3s ease;
}

.specs-table tr:hover {
    background: #f5f3ff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .page-hero {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
