:root {
    /* Color Palette - Dark & Secure Theme */
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #334155;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Ambient Glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    /* Use CSS vars for parallax if available, fallback to animation */
    transform: translate(calc(var(--mouse-x, 0.5) * -50px), calc(var(--mouse-y, 0.5) * -50px));
    transition: transform 0.2s ease-out;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    transform: translate(calc(var(--mouse-x, 0.5) * 50px), calc(var(--mouse-y, 0.5) * 50px));
    transition: transform 0.2s ease-out;
}

/* @keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
} */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Navbar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg video, .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4), var(--bg-body));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

/* Scroll Animations - High-End Modern Style */
.scroll-animate {
    opacity: 0;
    /* 组合技：模糊 + 下沉 + 缩放 + 3D旋转 */
    transform: translateY(120px) scale(0.85) perspective(2000px) rotateX(45deg); 
    filter: blur(15px); /* 磨砂玻璃入场感 */
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 更加优雅流畅的曲线 */
    will-change: transform, opacity, filter;
    transform-origin: center bottom; /* 从底部往上翻 */
}

.scroll-animate.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) perspective(2000px) rotateX(0) !important;
    filter: blur(0) !important;
}

/* Directions - 覆盖基础transform，保持3D感 */
.from-left { transform: translateX(-150px) scale(0.85) perspective(2000px) rotateY(-30deg); }
.from-right { transform: translateX(150px) scale(0.85) perspective(2000px) rotateY(30deg); }
.from-bottom { transform: translateY(150px) scale(0.85) perspective(2000px) rotateX(45deg); }
.from-top { transform: translateY(-150px) scale(0.85) perspective(2000px) rotateX(-45deg); }
.zoom-in { transform: scale(0.5) perspective(2000px); filter: blur(20px); }

/* Stagger Delays - 更加紧凑的波浪感 */
.delay-100 { transition-delay: 0.05s; }
.delay-200 { transition-delay: 0.1s; }
.delay-300 { transition-delay: 0.15s; }
.delay-400 { transition-delay: 0.2s; }
.delay-500 { transition-delay: 0.25s; }

/* 3D Tilt Effect Utilities */
.tilt-element {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-inner {
    transform: translateZ(20px);
}

.feature-card, .platform-card, .glass-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.feature-card:hover, .platform-card:hover {
    z-index: 10;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Product Showcase */
.product-switcher {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.switcher-btn {
    padding: 12px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.switcher-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.switcher-btn:hover:not(.active) {
    background: var(--bg-surface-hover);
}

/* 全屏视频展示区 - 无边框纯净显示 */
.video-showcase {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.video-showcase video {
    max-width: 100%;
    height: auto;
    display: block;
    background: transparent;
    border-radius: var(--radius-md);
}

/* 视频控件样式融入 */
.video-showcase video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.video-showcase:hover {
    box-shadow: none;
    border: none;
}

.video-play-btn {
    display: none;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.media-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.media-item:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none;
}

/* Platform Downloads */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.platform-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-card:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-5px);
}

.platform-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.platform-card:hover .platform-icon {
    color: var(--accent);
}

.platform-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.platform-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.9rem;
}

.platform-link:hover {
    background: rgba(56, 189, 248, 0.1);
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 80px;
    text-align: center;
    color: var(--text-muted);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Button Shine Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translate(-150%, 0);
    transition: transform 0.5s;
}

.btn:hover::after {
    transform: rotate(45deg) translate(150%, 0);
    transition: transform 0.5s;
}

/* Feature Icon Animation */
.feature-card:hover .feature-icon i {
    animation: iconBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Hero Badge Pulse */
.hero-badge {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; } /* Mobile menu needed but keeping simple for now */
    .hero-actions { flex-direction: column; }
    .product-switcher { flex-direction: column; }
}

/* Product Content Logic */
.product-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.product-content.active {
    display: block;
}

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

/* Fixed Contact Sidebar */
.fixed-contact-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding: 16px;
    z-index: 999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 180px;
    transition: transform 0.3s ease;
}

.sidebar-header {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.contact-item.qq:hover { border-color: #12b7f5; }
.contact-item.wx:hover { border-color: #07c160; }
.contact-item.tg:hover { border-color: #229ED9; }

.contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.contact-item.qq .contact-icon { color: #12b7f5; }
.contact-item.wx .contact-icon { color: #07c160; }
.contact-item.tg .contact-icon { color: #229ED9; }

.contact-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-info .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-info .value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustment for sidebar */
@media (max-width: 768px) {
    .fixed-contact-sidebar {
        width: 50px;
        padding: 12px 8px;
        gap: 16px;
    }
    
    .sidebar-header,
    .contact-info {
        display: none;
    }
    
    .contact-item {
        padding: 0;
        background: transparent;
        justify-content: center;
    }
    
    .contact-item:hover {
        background: transparent;
        transform: scale(1.1);
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}


/* Custom Context Menu */
.custom-context-menu {
    display: none;
    position: fixed;
    z-index: 10000;
    width: 200px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 10px rgba(59, 130, 246, 0.2);
    padding: 8px 0;
    overflow: hidden;
    animation: menuFadeIn 0.2s ease;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
    font-size: 0.9rem;
}

.menu-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
}

.menu-icon {
    width: 20px;
    margin-right: 12px;
    font-size: 1.1rem;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}


/* 联系方式弹窗 */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.contact-modal-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-modal-header i {
    font-size: 32px;
}

.contact-modal-header span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.contact-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-qrcode {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: white;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.contact-qrcode:hover {
    transform: scale(1.05);
}

.contact-id-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-id-wrapper:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.contact-id-wrapper span:first-child {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-id-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.copy-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-id-wrapper:hover .copy-icon {
    color: var(--accent);
}

.contact-tip {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .contact-modal-content {
        padding: 24px 20px;
        margin: 16px;
    }
    
    .contact-qrcode {
        width: 180px;
        height: 180px;
    }
    
    .contact-modal-header span {
        font-size: 1.25rem;
    }
}


/* 打字机效果 - 逐字淡入 */
.typewriter {
    display: inline-block;
    border-right: 3px solid var(--accent);
    padding-right: 4px;
    animation: blink 0.8s step-end infinite;
    min-height: 1.2em;
}

.typewriter.typing-done {
    animation: blink 0.8s step-end infinite;
}

/* 第一行打字完成后隐藏光标 */
.typewriter:not(:last-of-type) {
    border-right: none;
    animation: none;
}

@keyframes blink {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

/* 逐字淡入动画 */
.char-fade {
    display: inline-block;
    opacity: 0;
    animation: charFadeIn 0.5s ease forwards;
}

@keyframes charFadeIn {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* 确保标题容器正确显示 */
.hero-title .typewriter {
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .typewriter .char-fade {
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* 演示确认弹窗 - Glassmorphism Dark */
.demo-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    justify-content: center;
    align-items: center;
}

.demo-confirm-modal.active {
    display: flex;
}

.demo-confirm-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.demo-confirm-content {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 
        0 25px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.demo-confirm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-confirm-close:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.demo-confirm-header {
    text-align: center;
    margin-bottom: 32px;
}

.demo-confirm-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(56, 189, 248, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.demo-confirm-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.demo-confirm-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 联系方式选择按钮 */
.demo-confirm-contacts {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.demo-contact-btn {
    flex: 1;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.demo-contact-btn i {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.demo-contact-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.demo-contact-btn small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.demo-contact-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.demo-contact-btn:hover i {
    transform: scale(1.1);
}

.demo-contact-btn.qq i { color: #12b7f5; }
.demo-contact-btn.wx i { color: #07c160; }
.demo-contact-btn.tg i { color: #229ED9; }

.demo-contact-btn.qq:hover,
.demo-contact-btn.qq.selected { 
    border-color: #12b7f5; 
    box-shadow: 0 0 20px rgba(18, 183, 245, 0.2);
}
.demo-contact-btn.wx:hover,
.demo-contact-btn.wx.selected { 
    border-color: #07c160; 
    box-shadow: 0 0 20px rgba(7, 193, 96, 0.2);
}
.demo-contact-btn.tg:hover,
.demo-contact-btn.tg.selected { 
    border-color: #229ED9; 
    box-shadow: 0 0 20px rgba(34, 158, 217, 0.2);
}

.demo-contact-btn.selected {
    background: rgba(255, 255, 255, 0.08);
}

/* 操作按钮 */
.demo-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-btn-yes,
.demo-btn-no {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.demo-btn-yes {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.demo-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
}

.demo-btn-no {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.demo-btn-no:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 提示弹窗 */
.tip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10003;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.tip-modal.active {
    display: flex;
}

.tip-modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 40px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tip-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.tip-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.tip-modal-content p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.tip-modal-content button {
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tip-modal-content button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* 响应式 */
@media (max-width: 480px) {
    .demo-confirm-content {
        padding: 28px 20px;
    }
    
    .demo-confirm-contacts {
        flex-direction: column;
    }
    
    .demo-contact-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 16px;
        gap: 12px;
    }
    
    .demo-contact-btn i {
        font-size: 24px;
    }
}
