/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #2d2d2d;
    --bg-dark: #1a1a1a;
    --primary-blue: #3b82f6;
    --primary-blue-hover: #2563eb;
    --accent-cyan: #0FFFC4;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --box-bg: #404040;
    --sidebar-bg: #2d2d2d;
    --link-bg: #3d3d3d;
    --link-bg-alt: #454545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Egg Link (Top Right) */
.egg-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.egg-link:hover {
    transform: scale(1.05);
}

.egg-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Left Arrow Button */
.arrow-btn {
    position: fixed;
    left: 0;
    bottom: 80px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.arrow-btn:hover {
    background-color: var(--primary-blue-hover);
    width: 70px;
}

.arrow-btn svg {
    width: 28px;
    height: 28px;
    color: white;
    margin-left: 5px;
}

.arrow-btn.active {
    background-color: var(--accent-cyan);
}

.arrow-btn.active svg {
    transform: rotate(180deg);
    margin-left: -5px;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100dvh;
    background-color: var(--sidebar-bg);
    z-index: 80;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    border-right: 3px solid var(--primary-blue);
}

.sidebar-menu.open {
    transform: translateX(0);
}

.sidebar-content {
    padding: 40px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-white);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.sidebar-link {
    display: block;
    padding: 18px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: var(--link-bg);
}

.sidebar-link:nth-child(even) {
    background-color: var(--link-bg-alt);
}

.sidebar-link:hover {
    background-color: var(--primary-blue);
    padding-left: 30px;
}

.sidebar-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: auto;
    padding-top: 20px;
}

/* Overlay for blur effect */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 255, 196, 0.3) 0%, rgba(15, 255, 196, 0.1) 50%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    transition: filter 0.4s ease;
}

.main-content.blurred {
    filter: blur(8px);
}

/* Header Section */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.app-text {
    text-align: left;
}

.app-name-cn {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 5px;
}

.app-name-en {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 2px;
}

.lang-btn {
    align-self: flex-end;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Info Section */
.info-section {
    margin-bottom: 20px;
}

.info-box {
    background-color: var(--box-bg);
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 1px;
}

.expand-arrow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--box-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.expand-arrow:hover {
    background-color: var(--primary-blue);
    transform: translateX(-50%) scale(1.1);
}

.expand-arrow svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.expand-arrow.active svg {
    transform: rotate(180deg);
}

/* Expanded Content */
.expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-content.open {
    max-height: 400px;
}

.expanded-inner {
    background-color: var(--box-bg);
    border-radius: 0 0 16px 16px;
    padding: 40px 30px 30px;
    margin-top: 20px;
    color: var(--text-gray);
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;

}

.expanded-inner p {
    margin-bottom: 15px;
}

.expanded-inner p:last-child {
    margin-bottom: 0;
}

/* Video Section */
.video-section {
    margin-bottom: 30px;
}

.video-container {
    background-color: var(--bg-dark);
    border-radius: 16px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-placeholder {
    font-size: 1.2rem;
    color: var(--text-white);
    font-weight: 500;
}

/* Download Section */
.download-section {
    display: flex;
    justify-content: center;
}

.download-btn {
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    padding: 18px 50px;
    border-radius: 35px;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.download-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

/* Responsive Design 
@media (max-width: 640px) {
    .app-info {
        flex-direction: column;
        text-align: center;
    }
    
    .app-text {
        text-align: center;
    }
    
    .app-name-cn {
        font-size: 1.8rem;
    }
    
    .app-name-en {
        font-size: 1.2rem;
    }
    
    .lang-btn {
        align-self: center;
    }
    
    .sidebar-menu {
        width: 260px;
    }

    .arrow-btn {
        width: 50px;
        height: 50px;
    }
    
    .arrow-btn svg {
        width: 24px;
        height: 24px;
    }
}*/

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

.expand-arrow.pulse {
    animation: pulse 2s infinite;
}

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

.sidebar-link {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.sidebar-menu.open .sidebar-link:nth-child(1) { animation-delay: 0.1s; }
.sidebar-menu.open .sidebar-link:nth-child(2) { animation-delay: 0.15s; }
.sidebar-menu.open .sidebar-link:nth-child(3) { animation-delay: 0.2s; }
.sidebar-menu.open .sidebar-link:nth-child(4) { animation-delay: 0.25s; }
.sidebar-menu.open .sidebar-link:nth-child(5) { animation-delay: 0.3s; }


.ad {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}