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

@keyframes shine {
    from {
        transform: translateX(-100%) rotate(45deg);
    }
    to {
        transform: translateX(200%) rotate(45deg);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.gradient-animate {
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.15),
        rgba(16, 185, 129, 0.15),
        rgba(139, 92, 246, 0.15),
        rgba(59, 130, 246, 0.15)
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.glass-morphism {
    background: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.button-shine {
    position: relative;
    overflow: hidden;
}

.button-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 55%
    );
    animation: shine 6s infinite;
}

.nav-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    border-radius: 1rem;
    z-index: 1000;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.15), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(236, 72, 153, 0.15), transparent 50%);
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
}

/* Language Switch Button */
.lang-switch-container {
    background: #1a1a1a;
    border-radius: 1rem;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch {
    width: 2.5rem;
    height: 1.5rem;
    border-radius: 1rem;
    background: #2a2a2a;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch::after {
    content: '';
    position: absolute;
    width: 1.125rem;
    height: 1.125rem;
    background: #fff;
    border-radius: 50%;
    left: 0.1875rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.lang-switch.active::after {
    transform: translate(1.25rem, -50%);
}

.lang-text {
    font-size: 0.875rem;
    color: #fff;
    user-select: none;
    font-weight: 500;
}

.image-flow-section {
    padding: 4rem 0;
}

.image-text-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.image-text-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-text-row {
    display: flex;
    align-items: center;
    margin: 6rem 0;
    gap: 4rem;
}

.image-text-row:nth-child(even) {
    flex-direction: row-reverse;
}

.image-container {
    flex: 1;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.text-content {
    flex: 1;
    padding: 2rem;
}

@media (max-width: 768px) {
    .image-text-row {
        flex-direction: column !important;
        margin: 3rem 0;
        gap: 2rem;
    }
    
    .text-content {
        padding: 1rem;
    }
}

/* Enhanced Comments Section Styles */
.comment-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
}

.comment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.5s;
}

.comment-card:hover::before {
    left: 100%;
}

.comment-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 160px,
        rgba(0, 255, 255, 0.03) 200px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.comment-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 10px 40px rgba(31, 38, 135, 0.2),
        0 0 20px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comment-card .w-12 {
    position: relative;
    transition: transform 0.3s ease;
}

.comment-card:hover .w-12 {
    transform: scale(1.1) rotate(5deg);
}

.comment-card .flex.text-yellow-400 {
    position: relative;
    transition: all 0.3s ease;
}

.comment-card:hover .flex.text-yellow-400 {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.comment-card:nth-child(1) { animation-delay: 0.2s; }
.comment-card:nth-child(2) { animation-delay: 0.4s; }
.comment-card:nth-child(3) { animation-delay: 0.6s; }

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

/* Web3 Style Additions */
.comment-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.1),
        rgba(255, 0, 255, 0.1),
        rgba(0, 255, 255, 0.1)
    );
    z-index: -1;
    transform: scale(0.98);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.comments-container {
    position: relative;
}

.comments-container::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(0, 255, 255, 0.1) 0%,
        transparent 70%
    );
    filter: blur(20px);
    opacity: 0.5;
    animation: floatGlow 8s infinite ease-in-out;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 50px);
    }
    50% {
        transform: translate(100px, 0);
    }
    75% {
        transform: translate(50px, -50px);
    }
}

@media (max-width: 768px) {
    .comments-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .comment-card {
        padding: 1.25rem;
    }

    .comment-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu .glass-morphism {
    background: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
}

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

.mobile-menu-button:active {
    transform: scale(0.95);
}

/* Navigation Container */
.nav-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    border-radius: 1rem;
    z-index: 1000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        top: 0.5rem;
    }
    
    .mobile-menu {
        margin-top: 0.5rem;
    }

    .mobile-menu a {
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
    }

    .mobile-menu .lang-switch-container {
        margin: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

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

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

.text-wechat-green {
    color: #07C160;
  }
  
.text-wechat-green:hover {
color: white; /* 保持原有的悬停效果 */
}