/* ============================================
   LexiSharp Keyboard - Custom Styles
   ============================================ */

/* Root Variables */
:root {
    --primary-color: #4285F6;
    --primary-hover: #1E6FE8;
    --secondary-color: #FFD02B;
    --accent-color: #FF8DA1;
    --success-color: #5FCF80;
    --purple-accent: #A78BFA;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-light-yellow: #FFF9E6;
    --bg-light-pink: #FFF0F3;
    --bg-light-blue: #F0F7FF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
.dark {
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --border-color: #374151;
}

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

/* 防止所有元素水平溢出 */
img, video {
    max-width: 100%;
    height: auto;
}

section, div {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-color: var(--bg-primary);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

body.dark {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.gradient-text {
    color: var(--primary-color);
}

.gradient-text-animated {
    background-size: 200% auto;
    animation: textGradient 4s linear infinite;
}

@keyframes textGradient {
    to {
        background-position: 200% center;
    }
}

/* 3D Tilt Effect Classes */
.perspective-container {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--purple-accent) 50%, var(--accent-color) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(66, 133, 246, 0.5);
}

/* Navigation */
#navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100vw;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.dark #navbar {
    background-color: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.dark #navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(55, 65, 81, 0.8);
}

/* Logo animation */
#navbar .text-2xl {
    transition: transform 0.3s ease;
}

#navbar.scrolled .text-2xl {
    transform: scale(0.95);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--purple-accent) 100%);
    transition: width 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
    box-shadow: 0 0 8px rgba(66, 133, 246, 0.4);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: white;
    box-shadow: 0 4px 14px rgba(66, 133, 246, 0.25), 0 0 0 0 rgba(66, 133, 246, 0.7);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Shine effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    background-position: 100% 50%;
    box-shadow: 0 6px 20px rgba(66, 133, 246, 0.4), 0 0 0 4px rgba(66, 133, 246, 0.1);
    transform: translateY(-2px);
}

.btn-primary:hover::after {
    left: 100%;
    transition: 0.5s ease-in-out;
}

.btn-primary:hover i {
    animation: iconBounce 0.6s ease;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-4px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
}

.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 246, 0.1) 0%, rgba(168, 139, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.btn-secondary:hover i {
    animation: iconBounce 0.6s ease;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary i,
.btn-primary i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: var(--text-primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    filter: blur(80px);
    opacity: 0.6;
    animation: bgPulse 15s ease-in-out infinite alternate;
}

.hero-bg::before {
    background:
        radial-gradient(circle at 15% 50%, rgba(66, 133, 246, 0.15), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(167, 139, 250, 0.15), transparent 40%);
    z-index: 1;
}

.hero-bg::after {
    background:
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1), transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.1), transparent 40%);
    z-index: 2;
    animation-delay: -5s;
}

.dark .hero-bg::before {
    background:
        radial-gradient(circle at 15% 50%, rgba(66, 133, 246, 0.2), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(167, 139, 250, 0.2), transparent 45%);
}

.dark .hero-bg::after {
    background:
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.15), transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15), transparent 45%);
}

@keyframes bgPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Decorative Elements */
.floating-shape {
    position: absolute;
    border-radius: 1.5rem;
    opacity: 0.15;
}

.dark .floating-shape {
    opacity: 0.1;
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.2;
    font-size: 28px;
    transition: all 0.3s ease;
}

.dark .floating-icon {
    opacity: 0.15;
}

.icon-mic {
    background-color: rgba(66, 133, 246, 0.2);
    color: var(--primary-color);
    top: 25%;
    left: 5%;
    animation: floatMic 5s ease-in-out infinite 0.3s;
    will-change: transform, opacity;
}

.icon-speech {
    background-color: rgba(236, 72, 153, 0.2);
    color: var(--accent-color);
    top: 55%;
    right: 8%;
    animation: floatSpeech 5.5s ease-in-out infinite 1.2s;
    will-change: transform, opacity;
}

.icon-user-speech {
    background-color: rgba(167, 139, 250, 0.2);
    color: var(--purple-accent);
    bottom: 15%;
    left: 25%;
    animation: floatUserSpeech 4.5s ease-in-out infinite 0.6s;
    will-change: transform, opacity;
}

.icon-waveform {
    background-color: rgba(255, 208, 43, 0.2);
    color: var(--secondary-color);
    top: 70%;
    left: 45%;
    animation: floatWaveform 6s ease-in-out infinite 1.8s;
    will-change: transform, opacity;
}

.icon-voice {
    background-color: rgba(95, 207, 128, 0.2);
    color: var(--success-color);
    top: 15%;
    right: 35%;
    animation: floatVoice 5s ease-in-out infinite 2.5s;
    will-change: transform, opacity;
}

/* Section Backgrounds */
/* Grid pattern background */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.dark .bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Alternate section background (subtle gray) */
.bg-alternate {
    background: linear-gradient(180deg,
        rgba(248, 249, 250, 0.4) 0%,
        rgba(248, 249, 250, 0.8) 50%,
        rgba(248, 249, 250, 0.4) 100%);
}

.dark .bg-alternate {
    background: linear-gradient(180deg,
        rgba(31, 41, 55, 0.3) 0%,
        rgba(31, 41, 55, 0.6) 50%,
        rgba(31, 41, 55, 0.3) 100%);
}

/* Gradient overlay for specific sections */
.bg-gradient-subtle {
    background: linear-gradient(135deg,
        rgba(66, 133, 246, 0.03) 0%,
        rgba(168, 139, 250, 0.03) 100%);
}

.dark .bg-gradient-subtle {
    background: linear-gradient(135deg,
        rgba(66, 133, 246, 0.08) 0%,
        rgba(168, 139, 250, 0.08) 100%);
}

.shape-1 {
    width: 120px;
    height: 120px;
    background-color: var(--secondary-color);
    top: 15%;
    right: 10%;
    transform: rotate(15deg);
    animation: float1 4s ease-in-out infinite;
    will-change: transform;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    bottom: 25%;
    left: 8%;
    transform: rotate(-20deg);
    border-radius: 50%;
    animation: float2 4.5s ease-in-out infinite 0.5s;
    will-change: transform;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    top: 45%;
    right: 25%;
    border-radius: 50%;
    animation: float3 5s ease-in-out infinite 1s;
    will-change: transform;
}

/* 新增形状元素 - Optimized */
.shape-4 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid var(--purple-accent);
    top: 35%;
    left: 15%;
    animation: float4 5.5s ease-in-out infinite 1.5s;
    background-color: transparent !important;
    will-change: transform;
}

.shape-5 {
    width: 70px;
    height: 70px;
    background-color: var(--success-color);
    top: 60%;
    right: 18%;
    transform: rotate(45deg);
    animation: float5 4.5s ease-in-out infinite 0.8s;
    will-change: transform;
}

.shape-6 {
    width: 75px;
    height: 75px;
    background: var(--secondary-color);
    bottom: 20%;
    right: 40%;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float6 6s ease-in-out infinite 2s;
    will-change: transform;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Floating animations for decorative shapes - Optimized for performance */
@keyframes float1 {
    0%, 100% {
        transform: translateY(0) rotate(15deg);
    }
    50% {
        transform: translateY(-30px) rotate(20deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0) rotate(-20deg) scale(1);
    }
    50% {
        transform: translateY(-25px) rotate(-25deg) scale(1.05);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-35px) translateX(10px);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) translateX(-15px) rotate(10deg);
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translateY(0) rotate(45deg) scale(1);
    }
    50% {
        transform: translateY(-28px) rotate(65deg) scale(1.08);
    }
}

@keyframes float6 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-35px) translateX(15px) rotate(15deg);
    }
}

/* 图标动画 */
@keyframes floatMic {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.2;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) translateX(15px) scale(1.15);
        opacity: 0.25;
    }
    75% {
        opacity: 0.18;
    }
}

@keyframes floatSpeech {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.2;
    }
    30% {
        opacity: 0.28;
    }
    50% {
        transform: translateY(-48px) translateX(-20px) rotate(-8deg);
        opacity: 0.22;
    }
}

@keyframes floatUserSpeech {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.2;
    }
    40% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-35px) scale(1.12) rotate(5deg);
        opacity: 0.25;
    }
}

@keyframes floatWaveform {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    20%, 60% {
        opacity: 0.28;
    }
    50% {
        transform: translateY(-52px) translateX(25px);
        opacity: 0.18;
    }
}

@keyframes floatVoice {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.2;
    }
    33% {
        opacity: 0.32;
    }
    50% {
        transform: translateY(-42px) translateX(-18px) scale(1.08);
        opacity: 0.24;
    }
    66% {
        opacity: 0.16;
    }
}

/* Theme toggle animation */
@keyframes rotateIcon {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

#theme-toggle i {
    transition: all 0.3s ease;
    display: inline-block;
}

#theme-toggle i.rotating {
    animation: rotateIcon 0.6s ease-in-out;
}

#theme-toggle:hover i {
    transform: scale(1.1);
}

/* Mobile menu animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.menu-enter {
    animation: slideInRight 0.3s ease-out forwards;
}

#mobile-menu.menu-exit {
    animation: slideOutRight 0.3s ease-in forwards;
}

#mobile-menu a {
    opacity: 0;
}

#mobile-menu:not(.hidden) a {
    animation: fadeInStagger 0.4s ease-out forwards;
}

#mobile-menu:not(.hidden) a:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu:not(.hidden) a:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu:not(.hidden) a:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu:not(.hidden) a:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu:not(.hidden) a:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu:not(.hidden) a:nth-child(6) { animation-delay: 0.3s; }

/* Menu button icon animation */
#mobile-menu-btn i {
    transition: transform 0.3s ease;
    display: inline-block;
}

#mobile-menu-btn:active i {
    transform: scale(0.9);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Feature Cards */
.feature-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dark .feature-card {
    background-color: rgba(31, 41, 55, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-card p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
}

/* Hover Glow Effect */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(66, 133, 246, 0.1),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(66, 133, 246, 0.3);
}

.dark .feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(66, 133, 246, 0.4);
}

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

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

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

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-icon.bg-blue {
    background-color: #E3F2FF;
}

.feature-icon.bg-blue i {
    color: var(--primary-color);
}

.feature-icon.bg-purple {
    background-color: #F3EBFF;
}

.feature-icon.bg-purple i {
    color: var(--purple-accent);
}

.feature-icon.bg-pink {
    background-color: #FFE8EE;
}

.feature-icon.bg-pink i {
    color: var(--accent-color);
}

.feature-icon.bg-green {
    background-color: #E6F7ED;
}

.feature-icon.bg-green i {
    color: var(--success-color);
}

.feature-icon.bg-yellow {
    background-color: #FFF9E6;
}

.feature-icon.bg-yellow i {
    color: #F59E0B;
}

.feature-icon-large {
    width: 5rem;
    height: 5rem;
    border-radius: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* Code Block */
.code-block {
    background-color: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background-color: #334155;
    padding: 1rem 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
    background-color: var(--bg-light-blue);
    border: 2px solid rgba(66, 133, 246, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
}

.dark .highlight-box {
    background-color: rgba(66, 133, 246, 0.1);
    border-color: rgba(66, 133, 246, 0.3);
}

/* Theme Preview */
.theme-preview {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.theme-preview:hover {
    transform: scale(1.05);
}

.light-theme {
    background-color: #FFFFFF;
}

.dark-theme {
    background-color: #1F2937;
    color: #F9FAFB;
}

.theme-header {
    height: 40px;
    background-color: var(--primary-color);
}

.theme-content {
    padding: 1rem;
}

.theme-item {
    height: 30px;
    background-color: #E5E7EB;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.dark-theme .theme-item {
    background-color: #374151;
}

/* Comparison Cards */
.comparison-card {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
}

.dark .comparison-card {
    background-color: var(--bg-secondary);
}

.comparison-card {
    position: relative;
    overflow: hidden;
}

.comparison-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.comparison-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.comparison-card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.pro-card {
    position: relative;
    border: none;
    background: linear-gradient(135deg, rgba(66, 133, 246, 0.05), rgba(168, 139, 250, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 3px;
    background: linear-gradient(135deg, #4285F6, #A78BFA, #EC4899, #F59E0B);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradientBorder 3s ease infinite;
}

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

.pro-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: inherit;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.pro-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--purple-accent), var(--primary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(167, 139, 250, 0.6);
        transform: scale(1.05);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.pro-feature {
    color: var(--text-primary);
}

/* Download Cards */
.download-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.dark .download-card {
    background-color: rgba(31, 41, 55, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.download-card:hover i {
    transform: scale(1.15);
}

.download-card i {
    transition: transform 0.3s ease;
}

/* Steps */
.step-card {
    background-color: var(--bg-primary);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.dark .step-card {
    background-color: var(--bg-secondary);
}

.step-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(360deg);
    background: linear-gradient(135deg, var(--primary-color), var(--purple-accent));
}

.step-number {
    transition: all 0.5s ease;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 12px rgba(66, 133, 246, 0.3);
}

/* FAQ */
.faq-item {
    background-color: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark .faq-item {
    background-color: var(--bg-secondary);
}

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

.faq-question:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

/* 键盘导航时显示焦点样式（无障碍） */
.faq-question:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Footer */
footer {
    background-color: var(--bg-primary);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(66, 133, 246, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 133, 246, 0.4);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    /* 防止导航栏和所有容器溢出 */
    #navbar {
        width: 100%;
        max-width: 100vw;
    }

    #navbar .max-w-7xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* 确保 Logo 区域不会太宽 */
    #navbar .text-xl {
        font-size: 1rem;
    }

    #navbar img {
        height: 2rem;
        width: 2rem;
    }

    /* 调整按钮区域间距 */
    #navbar .flex.items-center.space-x-4 {
        gap: 0.5rem;
    }

    /* 确保所有主容器不溢出 */
    .max-w-7xl {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    section {
        overflow-x: hidden;
    }

    .hero-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .comparison-card {
        padding: 2rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Smooth Scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shape,
    #mobile-menu,
    #theme-toggle i,
    .pro-card::before,
    .pro-badge {
        animation: none !important;
    }

    #scroll-progress {
        transition: none !important;
    }
}

/* Dark Mode Transitions */
body,
.feature-card,
.comparison-card,
.download-card,
.step-card,
.faq-item,
#navbar {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Print Styles */
@media print {
    .back-to-top,
    #navbar,
    #mobile-menu {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles - 仅在键盘导航时显示 */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 移除鼠标点击时的焦点轮廓 */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Feature Demo Cards */
.feature-demo-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.dark .feature-demo-card {
    background-color: var(--bg-secondary);
}

.feature-demo-card {
    position: relative;
    overflow: hidden;
}

.feature-demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(66, 133, 246, 0.4), rgba(168, 139, 250, 0.4), rgba(236, 72, 153, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-demo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

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

/* Video Container Styling */
.feature-demo-card .rounded-2xl {
    position: relative;
    border: 4px solid #1f2937;
    background: #1f2937;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.dark .feature-demo-card .rounded-2xl {
    border-color: #000;
    background: #000;
}

.feature-demo-card:hover .rounded-2xl {
    transform: scale(1.02);
}

/* ============================================
   Changelog Section Styles (Redesigned)
   ============================================ */

/* Timeline Layout */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

/* Desktop Timeline Layout (Single Column) */
@media (min-width: 768px) {
    .timeline-item {
        width: 100%;
        padding-left: 3rem;
        margin-bottom: 4rem;
    }
}

/* Version Card - Glassmorphism */
.changelog-version {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dark .changelog-version {
    background: rgba(31, 41, 55, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Hover Effects */
.changelog-version::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(66, 133, 246, 0.5), rgba(168, 139, 250, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.changelog-version:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dark .changelog-version:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.changelog-version:hover::after {
    opacity: 1;
}

/* Version Header */
.changelog-version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.dark .changelog-version-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.changelog-version-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Version Date Badge */
.changelog-version-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(243, 244, 246, 0.8);
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dark .changelog-version-date {
    background-color: rgba(55, 65, 81, 0.5);
    color: #9ca3af;
}

.changelog-version:hover .changelog-version-date {
    background-color: rgba(66, 133, 246, 0.1);
    color: var(--primary-color);
    border-color: rgba(66, 133, 246, 0.2);
}

/* Category Sections */
.changelog-category {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(229, 231, 235, 0.4);
    transition: all 0.3s ease;
}

.dark .changelog-category {
    background: rgba(31, 41, 55, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

.changelog-category:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(229, 231, 235, 0.8);
}

.dark .changelog-category:hover {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.changelog-category-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Category Specific Styles */
.changelog-category.features .changelog-category-title { color: #059669; }
.changelog-category.improvements .changelog-category-title { color: #2563eb; }
.changelog-category.fixes .changelog-category-title { color: #d97706; }

.dark .changelog-category.features .changelog-category-title { color: #34d399; }
.dark .changelog-category.improvements .changelog-category-title { color: #60a5fa; }
.dark .changelog-category.fixes .changelog-category-title { color: #fbbf24; }

/* Change Items */
.changelog-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.changelog-item {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.dark .changelog-item {
    color: #d1d5db;
}

.changelog-item:hover {
    color: var(--text-primary);
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.changelog-category.features .changelog-item::before { background-color: #10b981; }
.changelog-category.improvements .changelog-item::before { background-color: #3b82f6; }
.changelog-category.fixes .changelog-item::before { background-color: #f59e0b; }

.changelog-item:hover::before {
    transform: scale(1.5);
    opacity: 1;
}

.changelog-item strong {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}

.dark .changelog-item strong {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.1);
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    top: 2rem;
    /*
       Mobile Calculation:
       Container PL: 32px (2rem)
       Line Center: 17px (left-4 + 1px)
       Marker Width: 20px (1.25rem) -> Half: 10px
       Target Left: 17px - 10px - 32px = -25px (-1.5625rem)
    */
    left: -1.5625rem;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(66, 133, 246, 0.2);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .timeline-marker {
        /*
           Desktop Calculation:
           Container PL: 48px (3rem)
           Timeline Item PL: 48px (3rem) -> Total Offset from Container Left: 48px
           Wait, timeline-item is inside container. Its left edge is at 48px.
           Line Center: 25px (left-6 + 1px)
           Target Left (relative to timeline-item border box):
           If timeline-item has padding-left: 3rem, does absolute position ignore padding?
           Yes, absolute is relative to padding box.
           So left: 0 is at the left edge of padding.
           
           Target Left (relative to timeline-item left edge): 25px - 10px - 48px = -33px (-2.0625rem)
        */
        left: -2.0625rem;
    }
}

.dark .timeline-marker {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(66, 133, 246, 0.15);
}

.timeline-item:hover .timeline-marker {
    background: var(--primary-color);
    box-shadow: 0 0 0 6px rgba(66, 133, 246, 0.3);
    transform: scale(1.2);
}

/* Load More Button */
.changelog-load-more {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .changelog-version {
        padding: 1.5rem;
    }

    .changelog-version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .changelog-version-number {
        font-size: 1.5rem;
    }

    .changelog-category {
        padding: 1rem;
    }
    
    /* Adjust marker for mobile */
    .timeline-marker {
        /*
           Mobile Small Marker Calculation:
           Width: 16px (1rem) -> Half: 8px
           Line Center: 17px
           Container PL: 32px
           Target Left: 17px - 8px - 32px = -23px (-1.4375rem)
        */
        left: -1.4375rem;
        width: 1rem;
        height: 1rem;
        top: 1.75rem;
    }
}

/* ============================================
   Download Dropdown Menu Styles
   ============================================ */

/* Download Button with Dropdown */
.download-btn-wrapper {
    position: relative;
    width: 100%;
}

.download-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dark .download-dropdown-menu {
    background-color: var(--bg-secondary);
    border-color: rgba(55, 65, 81, 0.8);
}

.download-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.dark .download-option {
    border-bottom-color: rgba(55, 65, 81, 0.5);
}

.download-option:last-child {
    border-bottom: none;
}

.download-option:hover {
    background-color: rgba(66, 133, 246, 0.08);
}

.dark .download-option:hover {
    background-color: rgba(66, 133, 246, 0.15);
}

.download-option i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.download-option:hover i {
    transform: translateX(3px);
}

.download-option-content {
    flex: 1;
}

.download-option-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.download-option-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Main download button with chevron */
.btn-download-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download-main .fa-chevron-down {
    font-size: 0.875rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.btn-download-main.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Responsive adjustments for dropdown */
@media (max-width: 768px) {
    .download-dropdown-menu {
        left: -1rem;
        right: -1rem;
    }

    .download-option {
        padding: 0.875rem 1rem;
    }

    .download-option-title {
        font-size: 0.9375rem;
    }

    .download-option-desc {
        font-size: 0.8125rem;
    }
}
