/* ============================================================
   HHpoker俱乐部 | 活力运动风 Sporty Energetic Theme
   Primary: blue-600 (#2563eb) | Accent: orange-500 (#f97316)
   ============================================================ */

/* ---------- CSS 自定义属性 ---------- */
:root {
    --primary:    #2563eb;
    --primary-d:  #1d4ed8;
    --primary-l:  #3b82f6;
    --accent:     #f97316;
    --accent-d:   #ea580c;
    --accent-l:   #fb923c;
    --dark:       #0f172a;
    --dark-800:   #1e293b;
    --gray-500:   #64748b;
    --white:      #ffffff;
}

/* ---------- 全局 ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    overflow-x: hidden;
}

/* ---------- 导航栏 ---------- */
#site-header {
    background: transparent;
}
#site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* 导航链接运动风下划线动画 */
.nav-link {
    position: relative;
}
.nav-link .nav-underline {
    background: linear-gradient(90deg, var(--accent-l), var(--accent), var(--accent-d));
}
.nav-link:hover .nav-underline,
.nav-link.nav-active .nav-underline {
    width: 100% !important;
}
.nav-link:hover {
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* ---------- Hero 对角线分割背景 ---------- */
.hero-diagonal {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 30%, #1d4ed8 50%, #312e81 100%);
    overflow: hidden;
}
.hero-diagonal::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 140%;
    background: linear-gradient(155deg, #1e40af 0%, #1e3a8a 50%, #312e81 100%);
    transform: skewX(-12deg);
    z-index: 0;
}
.hero-diagonal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(249,115,22,0.15) 0%, transparent 60%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero CTA 动画箭头 */
.cta-arrow-anim {
    animation: arrow-bounce 1.5s ease-in-out infinite;
}
@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

/* -------- 运动风特色卡片 -------- */
.sport-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 5px solid;
}
.sport-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: inherit;
    border-radius: 0 0 16px 16px;
    opacity: 0;
    transition: opacity 0.35s;
}
.sport-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.sport-card:hover::after {
    opacity: 0.3;
}
.sport-card .card-icon-right {
    margin-left: auto;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}
.sport-card .card-body {
    flex: 1;
}

/* 颜色变体 */
.sport-card.card-blue   { border-left-color: #2563eb; }
.sport-card.card-blue .card-icon-right   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.sport-card.card-orange { border-left-color: #f97316; }
.sport-card.card-orange .card-icon-right { background: linear-gradient(135deg, #f97316, #ea580c); }
.sport-card.card-indigo { border-left-color: #4f46e5; }
.sport-card.card-indigo .card-icon-right { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.sport-card.card-green  { border-left-color: #16a34a; }
.sport-card.card-green .card-icon-right  { background: linear-gradient(135deg, #16a34a, #15803d); }
.sport-card.card-purple { border-left-color: #9333ea; }
.sport-card.card-purple .card-icon-right { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.sport-card.card-teal   { border-left-color: #0d9488; }
.sport-card.card-teal .card-icon-right   { background: linear-gradient(135deg, #0d9488, #0f766e); }

/* ---------- 统计数据区域 ---------- */
.stats-strip {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #1d4ed8);
    overflow: hidden;
}
.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.02) 40px,
        rgba(255,255,255,0.02) 80px
    );
}

.stat-number {
    font-family: 'Bebas Neue', 'Noto Sans SC', cursive;
    font-size: 3.5rem;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 跑马灯风格装饰 */
.ticker-strip {
    background: var(--accent);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
}
.ticker-strip .ticker-track {
    display: inline-flex;
    animation: ticker 25s linear infinite;
}
.ticker-strip .ticker-track span {
    display: inline-block;
    padding: 0 40px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- 用户评价轮播 ---------- */
.testimonial-carousel {
    position: relative;
}
.testimonial-slide {
    display: none;
    animation: fadeSlideIn 0.5s ease;
}
.testimonial-slide.active {
    display: block;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.testimonial-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 28px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}
.testimonial-card .quote-mark {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    color: rgba(37,99,235,0.08);
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin: 0 auto 14px;
}

/* 圆点指示器 */
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* ---------- FAQ 横向选项卡 ---------- */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 3px solid #e2e8f0;
    padding-bottom: 0;
}
.faq-tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: all 0.25s;
    position: relative;
    white-space: nowrap;
}
.faq-tab-btn:hover {
    color: var(--primary);
    background: #eff6ff;
}
.faq-tab-btn.active {
    color: var(--primary);
    background: #eff6ff;
}
.faq-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}
.faq-tab-content {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}
.faq-tab-content.active {
    display: block;
}

/* ---------- CTA 倒计时紧迫感 ---------- */
.urgency-badge {
    animation: pulse-border 2s ease-in-out infinite;
}
@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(249,115,22,0); }
}

/* ---------- 加入流程步骤 ---------- */
.step-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 36px 24px 28px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.07);
    transition: all 0.35s;
    text-align: center;
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-d));
    color: var(--white);
    font-weight: 900;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

/* ---------- 游戏卡片 ---------- */
.game-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.07);
    transition: all 0.35s;
}
.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}
.game-card .game-card-header {
    padding: 24px 22px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.game-card .game-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ---------- 对比表格 ---------- */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.compare-table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-d));
    color: var(--white);
    font-weight: 700;
    padding: 16px 18px;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}
.compare-table thead th:first-child {
    text-align: left;
    padding-left: 24px;
}
.compare-table tbody td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}
.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    padding-left: 24px;
    color: #0f172a;
}
.compare-table tbody tr:hover {
    background: #f8fafc;
}
.compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .hero-diagonal::before {
        width: 100%;
        right: auto;
        left: 0;
        transform: skewY(-6deg);
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .sport-card {
        flex-direction: column;
    }
    .sport-card .card-icon-right {
        margin-left: 0;
    }
    .faq-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .faq-tab-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 10px 18px;
    }
    .compare-table {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .hero-diagonal {
        min-height: 100vh;
    }
    .stat-number {
        font-size: 2rem;
    }
    .ticker-strip .ticker-track span {
        padding: 0 20px;
        font-size: 0.75rem;
    }
}

/* ---------- 通用动画 ---------- */
.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 可见时淡入 */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 游戏详情区块 ---------- */
.game-detail-section {
    scroll-margin-top: 100px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 32px 28px;
    margin-bottom: 24px;
    border-left: 5px solid var(--primary);
}

/* ---------- Checkmarks 列表 ---------- */
.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
}
.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #16a34a;
    font-size: 0.85rem;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
