/* 全局重置 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* 解决固定导航栏遮挡锚点问题，略大于导航栏高度(73px) */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 注册自定义字体 */
@font-face {
    font-family: 'ZiYouFangHuaTi';
    src: url('/assets/ZiYouFangHuaTi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'ZiYouFangHuaTi', 'AlimamaFangYuanTi', 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* 防止水平溢出 */
}

.container {
    max-width: 95%; /* 增加宽度，使左右元素更靠边 */
    margin: 0 auto;
    padding: 0 20px; /* 减少内边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* 导航栏样式 */
.navbar {
    background-color: transparent; /* 默认透明 */
    height: 73px; /* 设置导航栏高度为 73px */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* 滚动后的导航栏样式 */
.navbar.scrolled {
    background-image: url('../images/navigation%20_bar.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    height: 73px; /* 滚动后高度保持 73px */
}

/* 左侧 Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* 中间导航菜单 */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* 让菜单占据剩余空间 */
    margin: 0 20px;
}

.nav-menu > li {
    margin: 0 15px; /* 调整间距 */
    position: relative;
}

/* 导航链接样式 */
.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 24px; /* 增大字体大小 (原20px) */
    font-weight: normal; /* 去除加粗 */
    padding: 8px 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    /* 确保使用自定义字体 */
    font-family: 'ZiYouFangHuaTi', sans-serif; 
}

/* 悬停效果 - 椭圆框 + 内部白色渐变 */
.nav-link:hover {
    border: 2px solid #fff; /* 边框保持实心白色 */
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3)); /* 内部白色渐变效果 */
    border-radius: 50px;
}

/* 电脑端隐藏下拉箭头 */
@media screen and (min-width: 993px) {
    .nav-link i {
        display: none;
    }
}

/* --- 子菜单样式 (仿图二) --- */
.submenu {
    display: none;
    position: absolute;
    top: 100%; /* 父元素下方 */
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    
    /* 蓝色卡片背景 */
    background-color: #2D9CDB; /* 类似图中的蓝色，也可以吸管取色 */
    background-image: linear-gradient(to bottom, #3498db, #2980b9); /* 可选渐变 */
    
    min-width: 140px; /* 宽度适中 */
    border-radius: 10px; /* 圆角 */
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 10px; /* 距离父级一点距离 */
    
    /* 小三角 (可选，如果需要) */
}

/* 增加一个透明的伪元素桥梁，防止鼠标移出链接时子菜单立刻消失 */
.submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

/* 显示子菜单 */
.has-submenu:hover .submenu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.submenu li {
    margin: 0;
    text-align: center; /* 内容居中 */
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal; /* 去除加粗 */
    font-family: 'ZiYouFangHuaTi', sans-serif; /* 子菜单也用该字体 */
    transition: background 0.3s;
    border: 1px solid transparent; /* 预留边框位置，防止抖动 */
}

/* 子菜单项悬停 (椭圆框边框效果) */
.submenu li a:hover {
    background-color: transparent; /* 移除背景色 */
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3)); /* 内部白色渐变效果 */
    border: 1px solid #fff; /* 添加白色边框 */
    border-radius: 50px; /* 椭圆效果 */
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* 右侧区域 (语言切换) */
.nav-right {
    display: flex;
    align-items: center;
}

/* 语言切换按钮 */
.lang-switch {
    color: #fff;
    border: 1px solid #fff;
    border-radius: 30px; /* 加大圆角以适应更大字体 */
    padding: 5px 20px;
    cursor: pointer;
    font-size: 20px; /* 增大字体大小，与社区(导航链接)一致 */
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    transition: all 0.3s ease;
    position: relative; /* 为下拉菜单定位 */
}

.lang-switch:hover {
    background-color: rgba(255,255,255,0.2);
}

/* 语言下拉菜单 */
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%; /* 紧贴父元素底部 */
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    background-color: #2D9CDB;
    background-image: linear-gradient(to bottom, #3498db, #2980b9);
    min-width: 140px; /* 增加宽度 */
    border-radius: 10px;
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 15px; /* 使用 margin 制造视觉间距 */
    z-index: 2000; /* 提高层级，确保在最上层 */
}

/* 增加透明桥梁防止鼠标移出消失 */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -20px; /* 向上延伸覆盖 margin-top 的间隙 */
    left: 0;
    width: 100%;
    height: 25px; /* 高度足够覆盖间隙 */
}

/* 显示语言下拉菜单 */
.lang-switch:hover .lang-dropdown,
.lang-switch.active .lang-dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lang-dropdown li {
    padding: 12px 20px; /* 增加内边距 */
    color: #fff;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    font-size: 20px; /* 增大字体，与子菜单一致 */
    border: 1px solid transparent;
    border-radius: 50px;
    margin: 5px 10px;
}

.lang-dropdown li:hover {
    background-color: transparent;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    border: 1px solid #fff;
}

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

/* 模块样式 */
.module {
    min-height: 100vh;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative; /* 添加相对定位，作为绝对定位子元素的参考 */
}

/* 模块一底部的草地装饰 */
.grass-decoration {
    position: absolute;
    bottom: 0; /* 贴底 */
    left: 50%; /* 居中定位起点 */
    transform: translateX(-50%); /* 水平居中 */
    width: 100%; /* 宽度设置为100%，自适应屏幕宽度 */
    max-width: 100%; /* 防止溢出屏幕 */
    height: auto; /* 高度自适应，保持比例 */
    z-index: 5; /* 层级大于 banner (默认0) */
    pointer-events: none; 
    display: block;
}

/* 模块一特殊处理 */
.module-1 {
    /* 移除背景图，改用 img 标签 */
    background-image: none;
    background-color: transparent;
    height: auto !important; /* 强制覆盖 min-height */
    min-height: 0 !important; /* 允许高度小于视口 */
    padding-top: 0; /* 移除顶部内边距 */
    display: block; /* 取消 flex 布局，让图片自然撑开 */
}

/* 模块一背景图样式 */
.module-1-bg {
    width: 100%;
    height: auto;
    display: block; /* 消除图片底部默认间隙 */
}

.module-2 {
    /* 设置模块二背景图片为 bg2.png */
    background-image: url('../images/bg2.png');
    background-size: cover; /* 背景覆盖整个区域 */
    background-position: center; /* 背景居中 */
    background-repeat: no-repeat; /* 不重复 */
    color: #fff;
    position: relative;
    z-index: 20; /* 层级大于 grass (5) */
    height: auto; /* 高度自适应 */
    min-height: 0; /* 允许高度小于视口 */
    padding: 0; /* 移除内边距，让图片完全填充 */
    display: block; /* 恢复块级显示，让图片定义高度 */
}

/* 猫爪装饰样式 */
.cat-paw-decoration {
    position: relative; /* 相对定位，占据文档流空间，定义模块高度 */
    display: block; /* 块级元素 */
    width: 100%; /* 宽度设置为100%，填充模块 */
    max-width: 100%;
    height: auto; /* 高度自适应 */
    z-index: 25; /* 层级大于 bg2 (20) */
    pointer-events: none;
    margin: 0; /* 移除边距 */
}

/* "关于"部分文本样式 */
.about-container {
    position: absolute; /* 绝对定位，覆盖在猫爪图片之上 */
    top: 0;
    left: 0;
    width: 100%; /* 宽度占满 */
    height: 100%; /* 高度占满，与猫爪图片一致 */
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    padding: 10% 0 5%; /* 增加上下内边距，配合按钮置底 */
    
    text-align: center;
    color: #fff;
    z-index: 30; /* 层级大于猫爪 (25) */
}

.about-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -30px; /* 减少底部外边距，原为 30px */
    position: relative;
}

.about-title-deco {
    /* 使用 关于.png 作为背景装饰 */
    background-image: url('../images/关于.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* 保持等比例缩放，不拉伸 */
    padding: 50px 300px; /* 减少上下内边距，原为 100px 300px */
    display: inline-block;
    position: relative;
}

.about-title {
    font-size: 96px; /* 标题字体调整为96px，是正文48px的两倍 */
    font-weight: normal;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    position: relative;
    z-index: 2; /* 确保文字在图片上方 */
    margin: 0; /* 移除默认边距 */
}

.about-text {
    font-size: 48px; /* 字体放大两倍，原为 24px */
    margin-bottom: 15px;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    line-height: 1.5;
}

/* 创作按钮样式 */
.create-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto; /* 自动推到最底部 */
    padding: 15px 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* 磨砂效果 */
}

.create-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

.create-btn img {
    width: 24px;
    height: auto;
    transform: rotate(15deg); /* 稍微旋转猫爪 */
}

.module-3 {
    /* 设置模块三背景图片为 bg2.png */
    background-image: url('../images/bg2.png');
    background-size: 100% auto; /* 宽度铺满，高度自动，允许垂直重复 */
    background-position: top center; /* 从顶部开始 */
    background-repeat: repeat-y; /* 垂直重复背景图 */
    color: #fff;
    position: relative; /* 确保子元素定位相对于此 */
    padding-bottom: 150px; /* 增加底部内边距，防止内容侵占模块四 */
}

.module-3 .content {
    width: 100%; /* 让内容容器占满宽度，使内部的 .cats-display 能扩展 */
}

.module-4 {
    /* 设置模块四背景图片为 bg4.png */
    background-image: url('../images/bg4.png');
    background-size: cover; /* 背景覆盖整个区域 */
    background-position: center bottom; /* 底部对齐，确保底部装饰(猫咪剪影)可见 */
    background-repeat: no-repeat; /* 不重复 */
    color: #fff;
    position: relative;
    height: auto; /* 高度自适应 */
    min-height: 100vh; /* 至少占满一屏 */
    display: flex;
    flex-direction: column;
    padding-bottom: 100px; /* 底部留白，确保模块高度始终大于内容 */
}

.time-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto; /* 改为高度自适应，确保宽度铺满 */
    z-index: 5; /* 层级：背景(0) < time_bg(5) < 内容(10) */
    pointer-events: none; /* 不阻挡交互 */
}

.module-5 {
    /* 设置模块五背景图片为 bg5.png */
    background-image: url('../images/bg5.png');
    background-size: cover; /* 背景覆盖整个区域 */
    background-position: center top; /* 顶部对齐，确保与上一模块衔接自然 */
    background-repeat: no-repeat; /* 不重复 */
    color: #fff;
    position: relative;
    min-height: auto !important; /* 取消固定高度 */
    height: auto !important; /* 高度自适应 */
    padding-bottom: 100px; /* 底部留白，比内容略高 */
    display: flex;
    flex-direction: column;
}

.module-6 {
    /* 设置模块六背景图片为 bg6.png */
    background-image: url('../images/bg6.png');
    background-size: cover; /* 背景覆盖整个区域 */
    background-position: center bottom; /* 底部对齐，确保底部装饰可见 */
    background-repeat: no-repeat; /* 不重复 */
    color: #fff;
    position: relative;
    min-height: 100vh; /* 默认高度 */
    height: auto;
}

.tv-decoration {
    position: absolute;
    top: 45%; /* 上移一点：从 60% -> 55% */
    left: 5%; /* 距离左侧 5% */
    transform: translateY(-50%);
    width: 40%; /* 宽度占屏幕 40% */
    height: auto;
    max-width: 600px; /* 限制最大宽度 */
    z-index: 10;
}

/* 移动端适配电视机装饰 */
@media screen and (max-width: 992px) {
    .tv-decoration {
        width: 80%; /* 移动端宽度增加 */
        left: 50%; /* 水平居中 */
        top: 55%; /* 位于标题下方，同步上移 */
        transform: translate(-50%, -50%);
    }
}

/* 模块五社区账号部分样式 */
.community-wrapper {
    position: relative; /* 改为相对定位，撑开父容器 */
    top: auto;
    left: auto;
    transform: none;
    margin: 30px auto 0; /* 减小顶部间距，从 80px -> 30px，使其更靠上 */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 30;
    width: 90%; /* 宽度增加到 90%，适应屏幕 */
    max-width: 1600px; /* 限制最大宽度，避免在大屏过宽 */
}

.community-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.community-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.community-deco {
    height: auto;
    width: auto;
}

.community-title {
    font-size: 80px;
    color: #fff;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    line-height: 1;
}

/* 模块六头部专用样式 */
.footer-header-wrapper {
    position: absolute; /* 绝对定位，脱离文档流 */
    top: 50px; /* 距离顶部 50px */
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    width: 90%;
    display: flex;
    justify-content: center;
    z-index: 20;
}

/* 移动端适配模块六头部 */
@media screen and (max-width: 992px) {
    .footer-header-wrapper {
        top: 30px; /* 移动端距离顶部更近 */
        width: 95%;
    }
}

/* 移动端适配社区账号部分 */
@media screen and (max-width: 992px) {
    .community-wrapper {
        width: 95%;
        margin-top: 50px; /* 移动端顶部间距也相应减小，从 100px -> 50px */
    }

    .community-container {
        width: 100%;
    }

    .community-title {
        font-size: 40px;
    }
    
    .community-deco {
        height: 15px;
        gap: 15px;
    }
}

/* 社区账号展示列表样式 */
.community-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4%; /* 减小间距以容纳更大的卡片 */
    margin-top: 60px; /* 距离标题的间距 */
    width: 100%;
}

.community-item {
    width: 39%; /* 放大 1.5 倍：26% * 1.5 = 39% */
    height: auto; /* 保持等比例缩放 */
    max-width: none; /* 移除最大宽度限制 */
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* 社区卡片容器样式 (替换原来的 img 标签) */
.community-card {
    width: 39%; /* 与 community-item 保持一致，放大 1.5 倍 */
    position: relative; /* 相对定位，作为内容定位的参考 */
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex; /* 消除 img 下方的空隙 */
    text-decoration: none; /* 确保作为链接时无下划线 */
    color: inherit; /* 继承颜色，避免变成链接蓝 */
}

.community-card:hover,
.community-item:hover {
    transform: translateY(-10px); /* 悬停浮动效果 */
}

.card-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* 卡片内容覆盖层 */
.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 内容不干扰点击 */
    display: flex;
    flex-direction: column;
}

/* 账号 Handle */
.card-handle {
    position: absolute;
    top: 38%; /* 稍微上移，紧贴深色区域左上角 */
    left: 6%; /* 稍微左移，增加左侧对齐感 */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: min(2.2vw, 36px); /* 使用 min() 限制最大字号，防止在大屏溢出 */
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    letter-spacing: 1px;
    font-weight: bold;
    width: 88%; /* 限制宽度，防止溢出 */
    white-space: nowrap; /* 默认不换行 */
    overflow: hidden; /* 溢出隐藏 */
    text-overflow: ellipsis; /* 超出显示省略号 */
    text-align: left; /* 明确左对齐 */
}

/* 描述文本 */
.card-desc {
    position: absolute;
    top: 58%; /* 稍微上移 (原60%)，为底部图标腾出空间 */
    left: 6%; /* 与 handle 左对齐 */
    width: 88%; /* 稍微增加宽度 */
    font-size: min(1.2vw, 19px); /* 使用 min() 限制最大字号 */
    color: #ffffff;
    line-height: 1.3; /* 调整行高，避免太松散 */
    text-align: justify;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: normal; /* 不加粗 */
    white-space: normal; /* 允许换行 */
    word-wrap: break-word; /* 自动换行 */
    max-height: 30%; /* 限制最大高度，防止遮挡图标 */
    overflow: hidden; /* 超出隐藏 */
}

/* 左下角图标 */
.card-icon {
    position: absolute;
    bottom: 6%; /* 稍微下移，贴近边缘 */
    left: 6%; /* 与文字左对齐 */
    width: 12%;
    height: auto;
}

/* 移动端适配社区账号列表 */
@media screen and (max-width: 992px) {
    .community-items {
        flex-direction: column; /* 移动端改为垂直排列 */
        gap: 30px;
        margin-top: 40px;
    }

    .community-item,
    .community-card {
        width: 80%; /* 移动端宽度自适应，覆盖PC端的26% */
        max-width: 80%; 
    }

    /* 移动端调整字体大小，避免过小 */
    .card-handle {
        font-size: 24px; 
        top: 42%;
        left: 6%;
    }

    .card-desc {
        font-size: 16px; /* 增大移动端字体 */
        top: 58%;
        left: 6%;
        width: 88%;
        line-height: 1.4;
    }
    
    .card-icon {
        width: 30px;
        bottom: 6%;
        left: 6%;
    }
}


/* 分割线装饰样式 */
.fenge-decoration {
    position: absolute;
    top: 0; /* 贴顶 */
    left: 50%; /* 居中 */
    transform: translateX(-50%); /* 水平居中 */
    width: 100%; /* 宽度占满 */
    height: auto;
    z-index: 10; /* 层级 */
    pointer-events: none;
}

/* bg3_1 装饰样式 */
.bg3-1-decoration {
    position: absolute;
    bottom: 0; /* 仅位于底部 */
    left: 0;
    width: 100%;
    height: auto; /* 高度自适应 */
    object-fit: cover;
    z-index: 5; /* 背景bg2(0) < bg3_1(5) < 其他内容 */
    pointer-events: none;
}

/* 猫咪展示区域样式 */
.cats-display {
    display: flex;
    justify-content: center; /* 居中排列 */
    align-items: flex-start; /* 顶部对齐，紧贴上方的CA Bar */
    gap: 100px; /* 图片间距 */
    width: 100%;
    height: auto; /* 高度自适应 */
    position: relative; /* 相对定位，跟随父容器 Flex 布局 */
    margin-top: 50px; /* 距离上方 CA Bar 的间距 */
    z-index: 12; 
    padding-top: 0; 
    pointer-events: none; /* 让容器不阻挡点击，除非点在猫上 */
    transition: margin-top 0.3s ease; /* 添加过渡动画 */
}

.cat-card {
    position: relative;
    width: auto;
    max-width: 30%; /* 限制最大宽度，防止三个猫超出容器 */
    display: flex;
    justify-content: center;
}

.cat-item {
    width: 100%; /* 填满卡片容器 */
    height: auto;
    max-height: 600px;
    object-fit: contain;
    pointer-events: auto; /* 恢复图片的可点击性 */
    display: block;
}

.market-label {
    position: absolute;
    top: 65%; /* 垂直居中偏下 */
    left: 50%;
    transform: translate(-50%, -50%); /* 居中定位 */
    font-family: 'ZiYouFangHuaTi', sans-serif;
    font-size: 50px; /* 增大字体 */
    color: #ffffff; /* 白色字体 */
    font-weight: normal;
    z-index: 2;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 增加阴影提升可读性 */
}

/* 市场数据数值样式 */
.market-value {
    position: absolute;
    top: 80%; /* 位于标签下方 */
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Arial', sans-serif; /* 使用清晰的数字字体 */
    font-size: 36px; /* 增大数值字体 */
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
    z-index: 3;
    opacity: 0;
    animation: fadeInValue 0.5s ease forwards;
}

.text-green {
    color: #4caf50;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.text-red {
    color: #f44336;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

@keyframes fadeInValue {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 移动端适配猫咪展示 */
@media screen and (max-width: 992px) {
    .cats-display {
        flex-direction: column; /* 垂直排列 */
        align-items: center;
        gap: 20px;
        padding-top: 20px; /* 调整顶部空间 */
        overflow-y: auto; /* 防止溢出 */
    }

    .cat-card {
        width: 70%; /* 宽度自适应，稍微减小以避免过大 */
        max-width: 350px; /* 限制最大宽度 */
    }

    .cat-item {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .market-label {
        font-size: 36px; /* 移动端增大字体 */
        top: 60%; /* 调整移动端位置 */
    }

    .market-value {
        font-size: 26px; /* 移动端增大字体 */
        top: 78%; /* 稍微下移，避免与增大的标题重叠 */
    }
}

/* 合约地址和CA Bar 包装容器 - 居中布局 */
.contract-wrapper {
    position: relative; /* 改为相对定位，让父容器高度自适应 */
    /* top: 10%;  移除绝对定位的 top */
    /* left: 50%; 移除绝对定位的 left */
    /* transform: translateX(-50%); 移除绝对定位的 transform */
    margin: 0 auto; /* 水平居中 */
    margin-top: 50px; /* 顶部间距 */
    padding-bottom: 50px; /* 底部留白 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中对齐 */
    gap: 20px; /* 垂直间距 */
    z-index: 30; /* 确保在顶层，高于猫咪等 */
    width: 100%; /* 占满宽度 */
}

/* CA Bar 样式 */
.ca-bar-container {
    /* 移除绝对定位，由 wrapper 控制 */
    position: relative;
    top: auto;
    right: auto;
    width: 750px; /* 500px * 1.5 */
    height: 120px; /* 80px * 1.5 */
    background-image: url('../images/ca_bar.png');
    background-size: 100% 100%; /* 填满容器 */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* 鼠标变手型 */
    z-index: 20; /* 确保在顶层 */
    transition: transform 0.2s ease;
}

.ca-bar-container:hover {
    transform: scale(1.02); /* 悬停微放大 */
}

.ca-bar-container:active {
    transform: scale(0.98); /* 点击微缩小 */
}

.ca-text {
    color: #fff; /* 假设背景较深，文字用白色，可视情况调整 */
    font-size: 30px; /* 稍微调大字体以匹配放大的容器 */
    font-family: 'Arial', sans-serif; /* 地址通常用无衬线字体，或者也用自定义字体？这里先用Arial保持清晰 */
    white-space: nowrap;
    /* 移除截断效果，确保完整显示 */
    overflow: visible;
    text-overflow: clip;
    padding: 0 30px; /* 增加内边距 */
}

/* 移动端适配 CA Bar */
@media screen and (max-width: 992px) {
    .contract-wrapper {
        width: 90%; /* 移动端宽度 */
        gap: 10px; /* 缩小间距 */
        top: 100px; /* 移动端顶部距离固定值，防止被导航栏遮挡 */
    }

    .ca-bar-container {
        position: relative; /* 移动端改为流式布局或相对定位 */
        top: auto;
        right: auto;
        width: 100%; /* 宽度自适应 wrapper */
        height: 60px;
        margin-top: 0; /* 由 wrapper gap 控制 */
    }

    .ca-text {
        font-size: 14px; /* 移动端缩小字号以显示完整地址 */
    }
}

/* 模块四样式 (这里实际上是模块三的合约地址部分，类名可能沿用了之前的逻辑) */
.contract-container {
    /* 移除绝对定位，由 wrapper 控制 */
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: auto; /* 宽度自适应内容 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 内容居中对齐 */
    justify-content: flex-start;
    padding-bottom: 0;
    z-index: 15; /* 层级高于 bg3_1 */
}

.contract-header {
    display: flex;
    align-items: center;
    gap: 30px; /* 装饰图片与文字的间距 */
    margin-bottom: 10px;
}

.contract-deco {
    height: auto; /* 使用原始高度 */
    width: auto; /* 使用原始宽度 */
    /* max-height: 100px; 可选，防止过大，暂时不加 */
}

.contract-title {
    font-size: 80px; /* 大号字体 */
    color: #fff;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    line-height: 1;
}



/* 修正：副标题相对于整个容器居中可能在左上角看起来奇怪，尝试让它相对于标题居中 */
.contract-subtitle {
    font-size: 60px;
    color: #fff;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    margin-top: 10px;
    align-self: center; /* 让副标题在flex容器中居中（相对于header宽度） */
}

/* 移动端适配合约地址 */
@media screen and (max-width: 992px) {
    .contract-container {
        /* 移除旧的定位，使用 wrapper */
        top: auto;
        left: auto;
        width: 100%;
        align-items: center; 
    }

    .contract-title {
        font-size: 40px;
    }
    
    .contract-subtitle {
        font-size: 30px;
        align-self: center;
    }
    
    .contract-deco {
        height: 15px;
        gap: 15px;
    }
}



/* 模块四历史部分样式 */
.history-header {
    position: absolute;
    top: 25px; /* 距离模块四上边缘10px */
    left: 15px; /* 距离左边缘15px */
    display: flex;
    align-items: center;
    gap: 8px; /* 装饰与文字间距8px */
    z-index: 10;
    background: transparent; /* 透明背景 */
    pointer-events: none; /* 不干扰交互 */
}

.history-title {
    font-family: 'ZiYouFangHuaTi', sans-serif;
    font-size: 80px; /* 与 contract-title 保持一致 */
    color: #C07C59; /* 颜色 */
    font-weight: normal;
    line-height: 1;
}

.history-deco {
    height: auto; /* 使用图片原始高度 */
    width: auto; /* 使用图片原始宽度 */
    display: block;
}

/* 移动端适配历史部分 */
@media screen and (max-width: 992px) {
    .history-header {
        top: 20px;
        left: 0; /* 占满宽度起点 */
        width: 100%; /* 占满宽度 */
        transform: none;
        justify-content: center; /* 内容居中 */
    }

    .history-title {
        font-size: 40px; /* 与 contract-title 移动端保持一致 */
    }
    
    .history-deco {
        height: auto; /* 移动端也使用原始大小，或者可以根据需要稍微限制，这里先保持 auto */
        max-height: 40px; /* 防止在移动端过大 */
    }
}

/* 模块四右侧时间轴装饰 - 改为 Flex 布局 */
.timeline-decoration {
    position: relative; /* 相对定位，参与文档流撑开高度 */
    width: 100%;
    height: auto;
    margin-top: 250px; /* 顶部留出更多空间 (原150px) 给标题，防止遮挡 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* 节点之间的间距 */
    z-index: 10;
    pointer-events: none; /* 容器本身不阻挡交互 */
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0; /* 线条贯穿始终 */
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    z-index: 1;
}

/* 时间轴节点行容器 */
.timeline-row {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* 每一行的最小高度 */
}

.timeline-coin {
    position: relative; /* 相对定位 */
    z-index: 2;
    width: auto; 
    max-width: 80px;
    height: auto;
    margin: 0; /* 确保无边距影响居中 */
    display: block; /* 块级显示 */
}

/* 时间标签包装器样式 */
.timeline-label-wrapper {
    position: absolute;
    z-index: 3;
    width: 40vw; /* 改为相对宽度 */
    min-width: 300px; /* 减小最小宽度 */
    max-width: 600px; /* 减小最大宽度 */
    min-height: 150px;
    background-image: url('/images/time.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    top: 50%;
    transform: translateY(-50%); /* 垂直居中 */
}

/* 右侧标签 */
.label-right {
    left: 50%;
    margin-left: 80px; /* 增大间距，防止与图标重叠 (图标半宽约40px + 间距40px) */
}

/* 左侧标签 */
.label-left {
    right: 50%;
    margin-right: 80px; /* 增大间距，防止与图标重叠 */
}

/* 时间标签内的文本内容 */
.timeline-text-content {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 50px;
    box-sizing: border-box;
    color: #ffffff;
    font-family: 'ZiYouFangHuaTi', sans-serif;
    text-align: left;
}

.timeline-date {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.timeline-desc p {
    font-size: 28px;
    margin: 8px 0;
    line-height: 1.5;
    white-space: normal;
}

/* 移动端适配时间轴 */
@media screen and (max-width: 992px) {
    .timeline-decoration {
        display: flex; /* 显示时间轴 */
        margin-top: 200px; /* 增加顶部间距，防止被标题遮挡 */
        gap: 30px;
    }

    .timeline-line {
        left: 40px; /* 线条中心定位 */
        transform: translateX(-50%); /* 居中对齐 */
    }

    .timeline-row {
        flex-direction: column; /* 垂直排列 */
        align-items: flex-start; /* 左对齐 */
        min-height: auto;
        padding-left: 80px; /* 为左侧线条和图标留出更多空间 */
        margin-bottom: 30px;
    }

    .timeline-coin {
        position: absolute;
        left: 40px; /* 图标中心定位，与线条对齐 */
        top: 50%; /* 垂直居中于父容器(文本框高度) */
        transform: translate(-50%, -50%); /* 水平垂直都居中 */
        width: 40px; /* 缩小图标 */
        z-index: 5;
    }

    .timeline-label-wrapper {
        position: relative; /* 相对定位 */
        top: auto;
        left: auto !important;
        right: auto !important;
        transform: none;
        width: 100%; /* 占满剩余空间 */
        max-width: none;
        min-width: unset;
        margin: 0;
        padding: 15px;
    }

    .label-right, .label-left {
        margin: 0; /* 清除边距 */
    }

    .timeline-text-content {
        padding: 20px 30px; /* 减小内边距 */
    }

    .timeline-date {
        font-size: 24px; /* 减小字体 */
    }

    .timeline-desc p {
        font-size: 16px; /* 减小字体 */
    }
}

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

    /* 移动端菜单隐藏，变为全屏或侧滑 */
    .nav-menu {
        position: fixed;
        top: 73px; /* 匹配新的导航栏高度 */
        left: 0;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: #2c3e50;
        flex-direction: column;
        justify-content: flex-start;
        margin: 0;
        padding-top: 40px;
        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; /* 移动端增大字体 (原22px) */
        justify-content: center;
        display: inline-flex; /* 使用 inline-flex 让边框包裹文字 */
        padding: 8px 20px; /* 调整内边距，参考网页版，不宜过大 */
        border: 1.5px solid transparent; /* 减小边框厚度，避免过于厚重 */
    }
    
    /* 移动端悬停/激活样式 */
    .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; /* 确保文字居中 */
    }
    
    /* 移动端关于部分适配 */
    .module-2 {
        height: auto !important; /* 让高度由内容决定 */
        min-height: 500px; /* 给一个最小高度 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cat-paw-decoration {
        position: absolute; /* 变为绝对定位背景 */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* 覆盖整个区域 */
        z-index: 25;
    }

    .about-container {
        position: relative; /* 变为相对定位，撑开模块高度 */
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: 100%; /* 确保占满模块高度 */
        flex: 1; /* Flex 伸缩 */
        padding: 80px 20px 40px; /* 增加底部内边距 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* 移动端按钮置底 */
    .about-container .create-btn {
        margin-top: auto; /* 自动推到最底部 */
    }

    .about-title {
        font-size: 60px; /* 调大标题 */
        margin-bottom: 30px;
    }
    
    .about-text {
        font-size: 30px; /* 调大正文 */
        margin-bottom: 20px;
        line-height: 1.4;
        padding: 0 10px;
    }

    .about-title-deco {
        padding: 40px 100px; /* 调整装饰背景大小 */
        background-size: contain;
    }
}

/* 加载页面样式 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff8f0; /* 与主题色匹配的背景 */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 100px; 
    height: auto;
    animation: bounce 2s infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C07C59; /* 主题色 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}
