/* ============================================
   HHPoker 德扑圈 - Main Stylesheet
   Color: Violet (#7c3aed) + Pink accent
   ============================================ */

:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --accent: #ec4899;
    --accent-light: #f9a8d4;
    --accent-dark: #be185d;
    --bg-light: #faf5ff;
    --text-main: #1e1b4b;
    --text-muted: #6b7280;
    --white: #ffffff;
    --border: #e9d5ff;
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-card: 0 4px 24px rgba(124,58,237,0.08);
    --shadow-hover: 0 20px 50px -12px rgba(124,58,237,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(167,139,250,0.2);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(124,58,237,0.1); }
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .logo-icon {
    width: 40px; height: 40px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.nav-logo .logo-icon i { color: white; font-size: 18px; }
.nav-logo .logo-text {
    font-size: 1.25rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    text-decoration: none; font-size: 0.875rem; font-weight: 600;
    color: var(--text-muted); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; text-decoration: none; padding: 10px 24px;
    border-radius: 999px; font-size: 0.875rem; font-weight: 700;
    transition: all 0.3s; box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.4); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; padding: 0 24px 16px; gap: 8px; }
.mobile-menu a { text-decoration: none; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); padding: 8px 0; }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .nav-cta { text-align: center; margin-top: 8px; display: block; }

@media (max-width: 768px) {
    .nav-links, .nav-cta-desktop { display: none; }
    .nav-toggle { display: block; }
    .mobile-menu.open { display: flex; }
}

/* ============ HERO ============ */
.hero {
    padding: 120px 24px 80px;
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}
.hero::before {
    content: ''; position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.1), transparent 70%);
    top: -100px; right: -100px; border-radius: 50%; z-index: 0;
}
.hero::after {
    content: ''; position: absolute; width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(236,72,153,0.08), transparent 70%);
    bottom: -50px; left: -80px; border-radius: 50%; z-index: 0;
}
.hero-inner {
    max-width: 1280px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f5f3ff; border: 1px solid var(--border);
    border-radius: 999px; padding: 6px 16px; font-size: 0.75rem;
    font-weight: 700; color: var(--primary); margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero h1 {
    font-size: 3rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; color: var(--text-main);
}
.hero h1 .hl {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; max-width: 480px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px; font-size: 0.875rem;
    font-weight: 700; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 8px 28px rgba(124,58,237,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(124,58,237,0.45); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: white; box-shadow: 0 8px 28px rgba(236,72,153,0.35); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(236,72,153,0.45); }
.btn-outline { border: 2px solid #e9d5ff; color: var(--primary); background: white; }
.btn-outline:hover { border-color: var(--primary); background: #faf5ff; }
.hero-img-wrap { position: relative; display: flex; justify-content: center; }
.hero-img-wrap .img-frame {
    position: relative; z-index: 2;
}
.hero-img-wrap .img-frame img {
    border-radius: var(--radius-xl); width: 100%; max-width: 480px;
    box-shadow: 0 30px 60px -20px rgba(124,58,237,0.3);
    object-fit: cover;
}
.hero-img-wrap .img-blur {
    position: absolute; inset: 20px -20px -20px 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    border-radius: var(--radius-xl); opacity: 0.15; z-index: 1;
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-img-wrap .img-frame img { max-width: 100%; }
}

/* ============ FEATURES ============ */
.features {
    padding: 80px 24px;
    background: #faf5ff;
}
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block; background: white; color: var(--primary);
    font-size: 0.75rem; font-weight: 800; padding: 6px 16px;
    border-radius: 999px; text-transform: uppercase; letter-spacing: 0.12em;
    border: 1px solid var(--border); margin-bottom: 16px;
}
.section-header h2 { font-size: 2.25rem; font-weight: 900; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feat-card {
    background: white; border-radius: var(--radius-lg);
    padding: 36px 28px; box-shadow: var(--shadow-card);
    border: 1px solid var(--border); transition: all 0.35s ease;
    position: relative; overflow: hidden;
}
.feat-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transition: transform 0.35s ease;
}
.feat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.feat-card:hover::after { transform: scaleX(1); }
.feat-icon {
    width: 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.4rem;
}
.feat-icon.violet { background: #ede9fe; color: var(--primary); }
.feat-icon.pink { background: #fce7f3; color: var(--accent); }
.feat-icon.purple { background: #f3e8ff; color: #9333ea; }
.feat-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.feat-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ============ STATS ============ */
.stats { padding: 80px 24px; background: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item {
    text-align: center; padding: 36px 20px; border-radius: var(--radius-lg);
    background: #faf5ff; border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.stat-item:hover { background: #f5f3ff; transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-num { font-size: 2.8rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; margin-top: 4px; }
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 80px 24px; background: #faf5ff; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card {
    background: white; border-radius: var(--radius-lg);
    padding: 32px 28px; box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative; transition: all 0.35s ease;
}
.testi-card::before {
    content: ''; position: absolute; inset: -2px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    z-index: -1; opacity: 0; transition: opacity 0.35s ease;
}
.testi-card:hover::before { opacity: 1; }
.testi-card:hover { transform: translateY(-6px); }
.testi-stars { color: #f59e0b; margin-bottom: 16px; font-size: 0.875rem; }
.testi-text { color: var(--text-muted); font-size: 0.875rem; line-height: 1.75; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e9d5ff; }
.testi-name { font-weight: 800; font-size: 0.875rem; }
.testi-role { color: var(--text-muted); font-size: 0.75rem; }
@media (max-width: 768px) {
    .testi-grid { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq { padding: 80px 24px; background: white; }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 2px solid #e9d5ff; border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s; }
.faq-item.open { border-color: var(--primary); background: #faf5ff; }
.faq-q {
    padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; font-weight: 700; font-size: 0.95rem; user-select: none;
}
.faq-q i { color: var(--primary); transition: transform 0.35s ease; font-size: 0.85rem; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding: 0 24px 18px; color: var(--text-muted); font-size: 0.875rem; line-height: 1.75; }

/* ============ CTA BANNER ============ */
.cta-banner { padding: 60px 24px; }
.cta-inner {
    max-width: 960px; margin: 0 auto; padding: 56px 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-xl); text-align: center;
    color: white; position: relative; overflow: hidden;
}
.cta-inner::after {
    content: ''; position: absolute; width: 300px; height: 300px;
    background: rgba(255,255,255,0.06); border-radius: 50%;
    top: -80px; right: -80px; z-index: 0;
}
.cta-inner h2 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-inner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; position: relative; z-index: 1; font-size: 1.05rem; }
.cta-inner .cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 1; }
.btn-white { background: white; color: var(--primary); padding: 13px 28px; border-radius: 999px; font-weight: 800; font-size: 0.875rem; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,0.2); }
.btn-glass { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: white; border: 2px solid rgba(255,255,255,0.3); padding: 13px 28px; border-radius: 999px; font-weight: 800; font-size: 0.875rem; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-glass:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(180deg, #1e1b4b, #0f0d2e);
    padding: 56px 24px 28px; color: #9ca3af;
}
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand-text { color: #9ca3af; font-size: 0.875rem; line-height: 1.7; margin-top: 12px; }
.footer h4 { color: white; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer a { color: #9ca3af; text-decoration: none; font-size: 0.875rem; display: block; margin-bottom: 10px; transition: color 0.2s; }
.footer a:hover { color: white; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid #1f2937; text-align: center; font-size: 0.8rem; color: #6b7280; }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ PAGE HEADER ============ */
.page-header {
    padding: 120px 24px 48px;
    background: linear-gradient(180deg, #faf5ff 0%, white 100%);
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 900; color: var(--text-main); margin-bottom: 12px; }
.page-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ============ DOWNLOAD PAGE ============ */
.download-section { padding: 40px 24px 80px; }
.download-grid { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dl-card {
    background: white; border: 2px solid var(--border); border-radius: var(--radius-xl);
    padding: 40px 28px; text-align: center; transition: all 0.35s ease;
}
.dl-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.dl-card i { font-size: 2.5rem; margin-bottom: 16px; }
.dl-card.android i { color: #4f46e5; }
.dl-card.ios i { color: #7c3aed; }
.dl-card h3 { font-weight: 900; font-size: 1.25rem; margin-bottom: 8px; }
.dl-card p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 20px; }
@media (max-width: 768px) {
    .download-grid { grid-template-columns: 1fr; }
}

/* ============ ABOUT PAGE ============ */
.about-section { padding: 40px 24px 80px; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 12px; margin-top: 32px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-content ul { padding-left: 20px; margin-bottom: 16px; }
.about-content li { color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }

/* ============ CONTACT PAGE ============ */
.contact-section { padding: 40px 24px 80px; }
.contact-inner { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 28px; }
.contact-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; display: flex; align-items: center; gap: 20px; transition: all 0.3s;
}
.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.contact-icon {
    width: 52px; height: 52px; min-width: 52px; border-radius: 14px;
    background: #ede9fe; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.3rem;
}
.contact-info h4 { font-weight: 800; margin-bottom: 2px; }
.contact-info p { color: var(--text-muted); font-size: 0.875rem; }
