@font-face {
    font-family: 'HajimiFont';
    src: url('/public/assets/alimama/AlimamaFangYuanTiVF-Thin.woff2') format('woff2'),
         url('/public/assets/alimama/AlimamaFangYuanTiVF-Thin.woff') format('woff'),
         url('/public/assets/alimama/AlimamaFangYuanTiVF-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ZiYouFangHuaTi';
    src: url('/assets/ZiYouFangHuaTi.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    font-family: 'HajimiFont', 'ZiYouFangHuaTi', sans-serif;
    background-color: #55B8A5;
    color: #ffffff;
    font-weight: normal;
    box-sizing: border-box;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Decoration */
.bg3-1-decoration {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 100%; /* 确保至少覆盖宽度 */
    height: auto;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

/* Ensure content is above decoration */
main {
    position: relative;
    z-index: 2;
    flex: 1; /* Push footer to bottom */
}

/* Footer Styles */
.simple-footer {
    position: relative;
    z-index: 10; /* Ensure above fixed background */
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* =========================================
   Loading Screen Styles
   (Using shared styles from /css/style.css)
   ========================================= */
/*
#loader-wrapper { ... } styles removed to align with main site
*/

/* =========================================
   Navbar Styles (Override main style.css)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 73px;
    z-index: 1000;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.3); /* 淡灰色(黑透)毛玻璃背景 */
    backdrop-filter: blur(10px); /* 毛玻璃模糊效果 */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    transition: all 0.4s ease;
    font-family: 'ZiYouFangHuaTi', 'HajimiFont', sans-serif;
}

.navbar.scrolled {
    background-image: none; /* 移除背景图片 */
    background-color: rgba(0, 0, 0, 0.5); /* 滚动后加深颜色 */
    backdrop-filter: blur(15px); /* 毛玻璃模糊效果 */
    -webkit-backdrop-filter: blur(15px); /* 兼容 Safari */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Hover */
.logo img {
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: scale(1.1);
}

/* =========================================
   Header Section (New)
   ========================================= */
.emoji-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    color: #fff;
    background: url('images/bg/banner.png') no-repeat center center;
    background-size: cover;
}

.header-content {
    z-index: 1;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 2.5rem; /* Larger text for the header */
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-family: 'ZiYouFangHuaTi', sans-serif;
    margin: 0;
    line-height: 1.4;
}

/* =========================================
   NFT Showcase Styles
   ========================================= */

/* Grid Container */
.nft-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 120px auto 40px; /* Adjusted margin top to clear fixed navbar (90px) */
}

/* Single NFT Card */
.nft-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Image Box */
.nft-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f7f7f7;
    overflow: hidden;
    position: relative;
}

.nft-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.nft-card:hover .nft-image-box img {
    transform: scale(1.05);
}

/* Info Section */
.nft-info {
    padding: 15px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nft-name {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Action Buttons (Download & Copy) */
.download-btn, .copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.download-btn:hover, .copy-btn:hover {
    background-color: #f0f0f0;
    color: #2C97DD;
    transform: scale(1.1);
}

/* =========================================
   Pagination Styles
   ========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 60px;
    gap: 10px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 6px;
    color: #555;
    font-family: 'HajimiFont', sans-serif;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: #f8f8f8;
    border-color: #bbb;
    color: #2C97DD;
}

.page-btn.active {
    background-color: #2C97DD;
    color: #fff;
    border-color: #2C97DD;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

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

/* 汉堡菜单 (默认隐藏) */
.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* 移动端自适应 */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    /* 移动端 Logo 依然在左 */
    .logo {
        flex-grow: 0;
    }

    /* 移动端菜单隐藏，变为全屏或侧滑 */
    .nav-menu {
        position: fixed;
        top: 73px; /* 匹配当前页面导航栏高度 (73px) */
        left: 0;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: #2D9CDB; /* 与语言菜单一致的蓝色背景 */
        background-image: linear-gradient(to bottom, #3498db, #2980b9);
        flex-direction: column;
        justify-content: flex-start;
        margin: 0;
        padding: 40px 0 0 0; /* 移除默认的左侧内边距 */
        overflow-y: auto;
        
        /* 修改动画为淡入/下滑，而不是从左侧滑入 */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

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

    .nav-menu > li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    /* 移动端导航链接样式调整 */
    .nav-link {
        font-size: 26px; /* 移动端增大字体 */
        justify-content: center;
        display: inline-flex; /* 使用 inline-flex 让边框包裹文字 */
        padding: 8px 20px; /* 调整内边距 */
        border: 1.5px solid transparent; /* 减小边框厚度 */
        color: #fff; 
        text-decoration: none;
    }
    
    /* 移动端悬停/激活样式 */
    .nav-link:hover,
    .has-submenu.active > .nav-link {
        border: 1.5px solid #fff; /* 恢复实心白边框 */
        background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3)); /* 内部白色渐变 */
        border-radius: 50px;
    }
    
    /* 移动端显示下拉箭头 */
    .nav-link i {
        display: inline-block; /* 确保图标显示 */
        margin-left: 8px;
        font-size: 16px;
        transition: transform 0.3s ease; /* 三角形旋转动画 */
    }
    
    /* 当子菜单激活时，旋转三角形 */
    .has-submenu.active > .nav-link i {
        transform: rotate(180deg);
    }
    
    /* 移动端右侧语言切换显示 */
    .nav-right {
        display: flex; /* 在移动端显示 */
        margin-right: 15px; /* 与汉堡菜单保持间距 */
    }

    .lang-switch {
        padding: 4px 12px; /* 稍微减小内边距 */
        font-size: 16px; /* 稍微减小字体 */
    }
    
    .lang-dropdown {
        top: 120%; /* 增加下拉菜单距离，防止遮挡 */
        width: 120px; /* 调整下拉菜单宽度 */
    }

    .lang-dropdown li {
        font-size: 16px; /* 调整下拉菜单字体 */
        padding: 10px 15px;
    }
    
    /* 移动端子菜单 */
    .submenu {
        position: static;
        transform: none;
        background-color: rgba(0,0,0,0.2);
        background-image: none;
        width: 100%;
        box-shadow: none;
        display: none;
        margin-top: 0;
        padding: 10px 0;
        border-radius: 0;
    }
    
    .has-submenu:hover .submenu {
        display: none; /* 禁用 hover 显示 */
    }
    
    /* 移动端点击显示子菜单，无动画 */
    .has-submenu.active .submenu {
        display: block;
        animation: none; /* 禁用 fadeIn 动画 */
    }
    
    /* 移动端子菜单项样式 */
    .submenu li a {
        display: inline-block; /* 让子菜单项也是适应内容宽度 */
        margin: 5px 0;
        padding: 8px 20px; /* 减小一点 padding */
        font-size: 16px;
        text-align: center; /* 确保文字居中 */
        color: #fff;
        text-decoration: none;
    }
}
