/**
 * HHPoker - 赛博沙漠风 Cyber Desert Theme
 * terracotta-600 + warm orange + teal-500
 * Desert sunset gradients mixed with cyberpunk digital elements
 */

/* ==================== CSS 变量 ==================== */
:root {
    --terra-50:  #fef8f5;
    --terra-100: #fde9e0;
    --terra-200: #fad1bc;
    --terra-300: #f5b08e;
    --terra-400: #ee8b5c;
    --terra-500: #e26f3a;
    --terra-600: #c25d3c;
    --terra-700: #9e452e;
    --terra-800: #7e3828;
    --terra-900: #662e23;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
}

/* ==================== 全局 ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    overflow-x: hidden;
}

/* ==================== 导航 ==================== */
.nav-link {
    position: relative;
}

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

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

/* 导航栏滚动阴影 */
#site-header.scrolled {
    box-shadow: 0 4px 20px rgba(194, 93, 60, 0.15);
}

/* ==================== Hero 区域 ==================== */
.hero-section {
    background: linear-gradient(135deg, #c25d3c 0%, #e26f3a 25%, #f97316 50%, #7e3828 100%);
    position: relative;
    overflow: hidden;
}

/* 赛博网格叠加 */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* 光晕 */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ==================== 功能卡片 ==================== */
.feature-card {
    background: linear-gradient(145deg, #fef8f5, #fde9e0);
    border: 1px solid rgba(194, 93, 60, 0.1);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal-500), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(194, 93, 60, 0.15);
    border-color: var(--teal-500);
}

.feature-card:hover::before {
    opacity: 1;
}

/* 功能图标圆圈 */
.feature-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
    transition: transform 0.3s ease;
}

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

.feature-icon-circle i {
    color: #fff;
    font-size: 1.5rem;
}

/* ==================== 数据统计 ==================== */
.stats-section {
    background: linear-gradient(135deg, var(--terra-600), var(--terra-700));
    position: relative;
}

/* 数字网格装饰 */
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(20, 184, 166, 0.06) 50px, rgba(20, 184, 166, 0.06) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(20, 184, 166, 0.06) 50px, rgba(20, 184, 166, 0.06) 51px);
    pointer-events: none;
}

.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ==================== 用户评价卡 ==================== */
.testimonial-card {
    background: linear-gradient(160deg, #fef8f5, #fff5f0);
    border: 1px solid rgba(194, 93, 60, 0.12);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 32px rgba(194, 93, 60, 0.12);
    transform: translateY(-4px);
}

/* 评价人头像 */
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--teal-500);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

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

/* ==================== FAQ 手风琴 ==================== */
.faq-item {
    border: 1px solid rgba(194, 93, 60, 0.1);
    border-radius: 1rem;
    background: #fff;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--teal-500);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--terra-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--terra-50);
}

.faq-question i.fa-chevron-down {
    color: var(--teal-500);
    transition: transform 0.35s ease;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-question i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--orange-500);
}

.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;
}

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

/* ==================== CTA 区域 ==================== */
.cta-section {
    background: linear-gradient(135deg, #c25d3c 0%, #e26f3a 40%, #f97316 70%, #7e3828 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* ==================== 下载页面 ==================== */
.download-hero {
    background: linear-gradient(135deg, #c25d3c 0%, #9e452e 30%, #7e3828 70%, #662e23 100%);
    position: relative;
    overflow: hidden;
}

.download-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* 下载卡片 */
.download-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(194, 93, 60, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(194, 93, 60, 0.15);
    border-color: var(--teal-500);
}

.download-card.featured {
    border: 2px solid var(--teal-500);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.15);
}

.download-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
}

/* ==================== 地区俱乐部页面 ==================== */
.region-hero {
    background: linear-gradient(135deg, #c25d3c 0%, #7e3828 50%, #662e23 100%);
    position: relative;
    overflow: hidden;
}

.region-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.05) 1px, transparent 1px);
    background-size: 45px 45px;
    pointer-events: none;
}

/* 地区卡片 */
.region-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(194, 93, 60, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(194, 93, 60, 0.12);
    border-color: var(--teal-500);
}

.region-card .region-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal-500);
    display: inline-block;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px rgba(20, 184, 166, 0.3); }
    50% { box-shadow: 0 0 20px rgba(20, 184, 166, 0.6); }
}

/* ==================== 悬浮客服 ==================== */
#float-kf {
    animation: float-in 0.5s ease 0.5s both;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 按钮涟漪效果 ==================== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-ripple:hover::after {
    opacity: 1;
}

/* ==================== 脉冲动画 (CTA 按钮) ==================== */
@keyframes pulse-teal {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(20, 184, 166, 0);
    }
}

.pulse-teal {
    animation: pulse-teal 2s infinite;
}

/* ==================== 页面滚动淡入 ==================== */
.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);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

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

    .stats-section .grid {
        gap: 2rem;
    }
}

/* ==================== 自定义滚动条 ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--terra-50);
}

::-webkit-scrollbar-thumb {
    background: var(--terra-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terra-500);
}

/* ==================== 选中文字颜色 ==================== */
::selection {
    background: rgba(20, 184, 166, 0.2);
    color: var(--terra-800);
}
