/* 首页样式表 */

/* 作品展示区 css */
/* 一键置灰功能预留 */
.gray-filter {
    filter: grayscale(100%);
}

/* 加载动画样式 */
.loading-container {
    width: 100%;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2fd453;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.load-finished {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* 优化作品展示结构样式 */
.list-desc-author {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.list-desc-info {
    gap: 12px;
    margin-top: 8px;
}

.list-desc-info span {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-desc-info span i {
    font-size: 12px;
}

/* 测试样式 */
.list-desc {
    height: auto !important;
}

/* 标题和时间容器 */
.title-with-time {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

/* 标题样式 - 限制为两行 */
.list-desc-title {
    margin: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    max-height: 2.8em; /* 2行 x 1.4行高 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-desc-title a {
    color: #333;
    text-decoration: none;
}

.list-desc-title a:hover {
    color: #1890ff;
}

/* 发布时间样式 */
.publish-time {
    font-size: 10px;
    color: #707070;
}

/* 按钮样式 主页样式 */
.main .indexPage {
    padding-top: 0;
}

.main .container {
    /* width: 1500px; */
    width: 100%;
    padding:0 20px;
    border-radius: 20px;
    margin-bottom: 20px;

}

.button-block {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    padding: 0px;
    font-size: 18px;
}

.button-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 25px;*/
    padding: 15px 0;
    position: relative;
    /*border-bottom: 1px solid #eee;*/
}

.tab-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tab-btn,
.tab-btn-rand {
    border: 1px solid #f8f8f8;
    background: #f8f8f8;
    color: #222222;
    border-radius: 10px;
    padding: 6px 24px;
    font-size: 18px;
    margin-right: 4px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    position: relative;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn-rand:hover {
    border: 1px solid #2fd453;
}

.tab-btn-rand {
    margin-left: 20px;
}

.tab-btn.active,
.tab-btn-rand.active {
    background: #2fd453;
    color: #fff;
}


@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .main .container {
        width: 100%;
        padding: 0px;
    }
}



/* TODO ：样式 */
/* 地图隐藏状态 */
.map-hidden {
    width: 0% !important;
    opacity: 0;
    padding: 0;
}

/* 内容区域 */
.main-Container {
    display: flex;
    width: 100%;
    min-height: 1200px;
    /*position: relative;*/
    /*background-color: #f5f5f5;*/
    flex-direction: row;
    justify-content: space-between;
}


/* 内容左侧 */
.main-Container .left {
    width: 65%;
    /*position: relative;*/
    padding: 10px;
    /*transition: width 0.5s ease-in-out;*/
    
    /*transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;*/
    /*background-color: #f5f5f5;*/
}

/* 瀑布流布局 */
.list {
    column-count: 3;
    column-gap: 20px;
    column-fill: balance;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-item {
    margin: 0;
}

.main-Container .left .list-item {
    background: #fff;
    /* border-radius: 12px; */
    border: 0px solid #e5e5e5;
    break-inside: avoid;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-Container .left.with-transition,
.main-Container .right.with-transition {
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.list-thumb {
    position: relative;
    overflow: hidden;
    position: relative
}
.list-thumb img {
    /*height: 100%;*/
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.list-thumb .icon-position {
    position: absolute;
    /* 位于右上角 */
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 5px;
    z-index: 10;
}

.tag-handpick {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff5a5f;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.list-desc {
    padding: 8px 12px;
}

.list-desc-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
}

.list-desc-title a {
    text-decoration: none;
    color: inherit;
}

.list-desc-title a:hover {
    color: #696969;
}

.list-desc .list-desc-info {
    /* 横向排列 */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    color: #717171;
    gap: 6px;
}

.list-item-author {
    text-decoration: none;
    color: #717171;
    font-weight: 500;
}

.list-item-author:hover {
    color: #222;
}

.list-desc-avatar {
    display: block;
}

/* 字体居中 */
.list-desc-info .list-desc-avatar {
    text-align: center;
    border-radius: 10px;
}


.list-desc-tag {
    background: #f7f7f7;
    color: #717171;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    margin-left: auto;
}

.list-desc-tag:hover {
    background: #e8e8e8;
}

/* 内容右侧 */
.main-Container .right {
    width: 100%;
    height: 500px;
    /* 调整高度以适应新的内边距 */
    /* position: sticky; */
    /* top: 60px; */
    /* 与顶部导航栏保持60px的距离 */
    z-index: 10;
    padding-top: 15px;
    /* 增加顶部内边距 */
    padding-bottom: 20px;
    /* 增加底部内边距 */
    
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* 当内容超过99条时，地图不再固定 */
.map-scroll .main-Container .right {
    position: relative;
    height: 700px;
    padding-top: 20px;
    /* 增加顶部内边距 */
    padding-bottom: 20px;
    /* 增加底部内边距 */
}

/* 地图容器 */
#mapContainer {
    width: 100%;
    opacity: 0;
    padding: 0;
    overflow: hidden;
}

#mapContainer.map-visible {
    opacity: 1 !important;
    overflow: visible; /* 允许内容溢出 */
}

#mapContainer.map-hidden {
    width: 0% !important;
    opacity: 0 !important;
    padding: 0 !important;
    display: none; /* 或者保持block但宽度为0 */
}

/* 地图本身 */
#mapnew {
    width: 100%;
    height: 100%;
    background: rgb(100, 100, 100);
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    position: relative; /* 添加相对定位 */
}
/* 移动端响应式 */
@media (max-width: 768px) {
    .main-Container {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .main-Container .left {
        width: 100%;
        /*padding: 10px;*/
        padding: 10px 5px;
    }

    .main-Container .right {
        display: none;
    }
    
    .map-hidden, .map-visible {
        display: none !important;
    }

    .list {
        column-count: 2;
        column-gap: 9px;
    }

    .main-Container .left .list-item {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .list {
        column-count: 3;
    }
}


.list-item {
    width: 100%;
    height: 377px;
}
.no-empty-account .list-item.skeleton-item.loading-skeleton {
    height: 100px;
}

/* 骨架屏样式 */
.skeleton-item {
    animation: skeleton-loading 3s ease-in-out infinite;
}

.skeleton-thumb {
    position: relative;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 12px 12px 0 0;
    animation: skeleton-shimmer 3s infinite;
}

.skeleton-title {
    width: 80%;
    height: 20px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 12px;
    animation: skeleton-shimmer 3s infinite;
}

.skeleton-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 50%;
    animation: skeleton-shimmer 3s infinite;
}

.skeleton-author {
    width: 60px;
    height: 16px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-shimmer 3s infinite;
}

.skeleton-zan {
    width: 40px;
    height: 16px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-shimmer 3s infinite;
}

.skeleton-hits {
    width: 40px;
    height: 16px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-shimmer 3s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes skeleton-loading {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* 加载更多时的骨架屏样式 */
.loading-skeleton {
    opacity: 0.7;
    animation: skeleton-loading 1.2s ease-in-out infinite;
}

.loading-skeleton .skeleton-image {
    background: linear-gradient(135deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
}

.loading-skeleton .skeleton-title,
.loading-skeleton .skeleton-avatar,
.loading-skeleton .skeleton-author,
.loading-skeleton .skeleton-zan,
.loading-skeleton .skeleton-hits {
    background: linear-gradient(135deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
}

/* 未读消息提示样式 */
.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px white;
    animation: pulse 1.5s infinite;
}

/* header  */
.header {
    width: 100%;
    /* height: 350px; */
    /* background: #c4c4c400; */
}

.header-navi {
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #00000078, transparent 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: all 0.5s;
}

.nav-scrolled {
    background: #f3f3f3;
    border-bottom: 1px solid #cececec2;
    /* border-radius: 0 0 10px 10px; */
    transition: all 0.5s;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.menu-wrap>ul {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 20px;
    right: 40px;
}

.nav {
    cursor: pointer;
}

.nav .nav-title {
    font-size: 20px;
    text-align: center;
    width: 100%;

}

.nav-item {
    display: none;
}

.logo-wrap>a {
    position: relative;
    /* left: 20px; */
}

/* 搜索框 */
.search-box.green {
    width: 100%;
    height: 35px;
    border-radius: 50px;
    padding-left: 15px;
    padding-right: 40px;
    /*background-color: #f5f5f5;*/
    /*border: none;*/
    background: transparent;
    backdrop-filter: blur(4px);
    outline: none;
    font-size: 14px;
    color: #505050;
}

.search-box:focus {
    /*border-color: #fff;*/
    border: 1px solid #f00;
    /*background: #fff;*/
    color: #fff; /* 这是占位符文字的颜色 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    /* transform: translateY(-2px); */
}
/* 搜索框样式 */
.search-box.search:focus {
    color: #505050;
}

.search-box.search .search-btn {
    color: #505050;
}
.search-btn.search {
    background:#16C040;
}
/* 搜索框样式-end */
/* 设置占位符颜色 */
.search-box::placeholder {
    color: #fff; /* 这是占位符文字的颜色 */
    opacity: 0.8;
    font-weight: 500;
}

.search-btn {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    position: absolute;
    right: 3px;
    /*background: #16C040;*/
    border: none;
    background: transparent;
}

.search-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
    /*background: #f5f5f5;*/
    background: transparent;
    border-radius: 50px;
    width: 20%;
}

.nav-scrolled .search-box.green{
   color: #505050;
   background-color: #f3f3f3; 
   border: 1px solid rgba(22, 192, 64, 0.3);
}

.nav-scrolled .search-btn{
   background: #16C040; 
}

.nav-scrolled .search-box::placeholder {
    color: #505050; /* 这是占位符文字的颜色 */
    opacity: 0.8;
    font-weight: 500;
}

/* 用户导航区域 */
.user {
    gap: 20px;
    position: relative;
}

/* 发布作品 */
.publish-wrap {
    position: relative;
}

.publish-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #16C040;
    border: 1px solid rgba(22, 192, 64, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.publish-item:hover {
    background: 16C040;
    border-color: #16C040;
    transform: translateY(-1px);
}

.publish-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.publish-icon {
    font-size: 16px;
}

.publish-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

/* 发布作品下拉菜单 */
.publish-dropdown-container {
    position: relative;
    z-index: 9999;
}

.publish-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 10px;
    z-index: 9999;
    width: 110px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.publish-dropdown-container:hover .publish-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.publish-dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.publish-dropdown-item:last-child {
    border-bottom: none;
}

.publish-dropdown-item:hover {
    background-color: #16C040;
    color: white;
}

/* 确保下拉菜单在所有元素之上 */
.publish-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid white;
}

.publish-link .fas {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.publish-dropdown-container:hover .publish-link .fas {
    transform: rotate(180deg);
}

/* 用户头像 */
.user-avatar-wrap {
    position: relative;

}
.user.block-horizontal-layout.block-align-center{
    transition: transform 1s ease;
    opacity: 0;
}

.user-avatar-item {
    position: relative;
    cursor: pointer;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #16C040;
    transition: all 0.3s ease;
}

.user-avatar-item:hover .avatar-circle {
    border-color: #16C040;
    transform: scale(1.05);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 消息图标 */
.message-wrap {
    position: relative;
}

.message-item {
    position: relative;
    cursor: pointer;
}

.message-link {
    text-decoration: none;
    color: inherit;
}

.message-icon-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #16C040;
    border: 3px solid rgba(22, 192, 64, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.message-item:hover .message-icon-wrap {
    background: rgba(22, 192, 65, 0.689);
    border-color: #16C040;
    transform: translateY(-1px);
}

.message-icon {
    font-size: 18px;
}

.message-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 10px;
    text-align: center;
}

/* 未登录用户悬停菜单 */
.guest-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(22, 192, 64, 0.1);
    padding: 16px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.publish-guest:hover .guest-menu,
.user-guest:hover .guest-menu,
.message-guest:hover .guest-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.guest-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid rgba(22, 192, 64, 0.1);
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.guest-menu-content {
    text-align: center;
}

.guest-menu-item {
    display: block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #16C040, #13a835);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.guest-menu-item:hover {
    background: linear-gradient(135deg, #13a835, #0f8a2a);
    transform: translateY(-2px);
}

.guest-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 192, 64, 0.3), transparent);
    margin: 12px 0;
}

.guest-menu-desc {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.guest-menu-link {
    display: inline-block;
    color: #16C040;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.guest-menu-link:hover {
    background: rgba(22, 192, 64, 0.1);
}

/* 登录用户菜单 */
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(22, 192, 64, 0.1);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-logged:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid rgba(22, 192, 64, 0.1);
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(22, 192, 64, 0.1);
}

.user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(22, 192, 64, 0.3);
}

.user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-info {
    flex: 1;
}

.user-menu-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.user-menu-id {
    font-size: 12px;
    color: #666;
}

.user-menu-body {
    padding: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.user-menu-item:hover {
    background: rgba(22, 192, 64, 0.1);
    color: #16C040;
}

.user-menu-logout:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.user-menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-menu-text {
    font-size: 14px;
    font-weight: 500;
}

.user-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 192, 64, 0.3), transparent);
    margin: 8px 16px;
}

/* 消息菜单 */
.message-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(22, 192, 64, 0.1);
    width: 320px;
    max-height: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.message-logged:hover .message-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.message-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid rgba(22, 192, 64, 0.1);
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.message-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(22, 192, 64, 0.1);
}

.message-menu-title {
    font-weight: 500;
    color: #333;
    font-size: 12px;
}

.message-menu-btn {
    font-size: 12px;
    color: #16C040;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.message-menu-btn:hover {
    background: rgba(22, 192, 64, 0.1);
}

.message-menu-body {
    max-height: 250px;
    overflow-y: auto;
}

.message-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.message-list-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(22, 192, 64, 0.05);
    transition: all 0.3s ease;
}

.message-list-item:hover {
    background: rgba(22, 192, 64, 0.05);
}

.message-item-inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.message-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16C040;
    margin-top: 6px;
    flex-shrink: 0;
}

.message-item-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.message-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    text-align: center;
}

.message-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.message-empty-text {
    font-size: 14px;
    color: #666;
}

.message-menu-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(22, 192, 64, 0.1);
    text-align: center;
}

.message-menu-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #16C040, #13a835);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.message-menu-link:hover {
    background: linear-gradient(135deg, #13a835, #0f8a2a);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user {
        gap: 15px;
    }

    .publish-text {
        display: none;
    }

    .guest-menu,
    .user-menu,
    .message-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
    }

    .guest-menu::before,
    .user-menu::before,
    .message-menu::before {
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(45deg);
    }

    .user-guest:hover .guest-menu,
    .user-logged:hover .user-menu,
    .message-logged:hover .message-menu {
        transform: translateX(-50%) translateY(0);
    }
}

.mobile-nav-logo .logo-img {
    position: relative;
    bottom: 15px;
    height: 50px;
}

/* 新页脚样式 - 黑色背景 */
.footer {
    background: #000;
    color: white;
    padding: 40px 5% 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    height: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-left {
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.footer-center {
    align-items: center;
    text-align: center;
    flex: 2;
}

.footer-right {
    align-items: flex-end;
    text-align: right;
    flex: 1;
}

.footer-qrcode {
    margin-bottom: 15px;
}

.qrcode-image {
    width: 100px;
    height: 100px;
    background: #333;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.8rem;
    overflow: hidden;
}

.qrcode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 80px; /* 增加菜单栏之间的间距 */
}

.menu-section {
    text-align: left;
}

.menu-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.company-logo {
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: bold;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom .icp {
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    body {
        padding-top: 0; /* 移动设备上不需要顶部填充 */
    }
    

    
    .header.scrolled {
        height: 200px; /* 移动设备上保持原高度 */
        box-shadow: none;
        background: linear-gradient(120deg, #3498db, #8e44ad, #e74c3c, #3498db);
        animation: gradientBG 15s ease infinite;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .content-right {
        position: relative;
        top: 0;
        margin-top: 20px;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .logo-container, .search-section, .nav-actions {
        justify-content: center;
        width: 100%;
    }
    
    .logo {
        justify-content: center;
    }
    
    .footer-menu {
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left, .footer-center, .footer-right {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-publish {
        margin: 5px;
    }
    
    .nav-icon {
        margin: 5px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 30px;
    }
    
    .menu-section {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .logo span {
        display: none;
    }
    
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab {
        padding: 12px 20px;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-stats {
        margin-top: 10px;
        margin-left: 40px;
    }
    
    .search-container {
        max-width: 100%;
    }
}

/* 列表容器样式 */
.list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gap-min {
    gap: 5px !important;
}

.gap-small {
    gap: 10px !important;
}

.gap-medium {
    gap: 20px !important;
}

.gap-large {
    gap: 30px !important;
}

.list-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;

    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    /* transition: transform 0.2s ease, box-shadow 0.2s ease; */
}
.list-item:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); */
}
/* 缩略图样式 */
.list-thumb {
    position: relative;
    width: 100%;
    /*height: 200px;*/
    height: 255px;
    overflow: hidden;
    background-color: transparent;
}
.list-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.list-thumb img {
    width: 100%;
    /*height: 100%;*/
    height: 255px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.list-thumb .mob-img{
    display: none;
}

.list-thumb:hover img {
    transform: scale(0.99);
}

.list-desc-title {
    margin: 0 0 0px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.list-desc-title a {
    color: #333;
    text-decoration: none;
}

.list-desc-title a:hover {
    color: #1890ff;
}

/* 作者信息样式 */
.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-avatar img {
    border-radius: 15px;
    object-fit: cover;
}

.item-author a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.item-author a:hover {
    color: #1890ff;
}

.item-info-right {
    display: flex;
    gap: 12px;
    color: #222222;
    font-size: 13px;
}

.item-likes, .item-hits {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .list-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    

    
    .list-desc {
        padding: 12px;
    }
    
    .card-list {
        grid-template-columns: 1fr;
    }
    
    .location-date-section {
        /* flex-direction: column; */
        align-items: flex-start;
    }
    
    .publish-date {
        margin-top: 5px;
        font-size: 0.85rem;
    }
    .tab-buttons .tab-btn, .tab-buttons .refresh-btn{
        padding: 6px 8px;
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* 骨架屏容器 */
#skeletonContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 骨架屏项 */
.skeleton-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.hot-card-list{
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
   gap: 10px;
   list-style: none;
   padding: 0;
   margin: 0;
}
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    list-style: none;
} 

.card-list-item{
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.cover-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.title-section {
    padding: 15px;
}

.title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 3em;
}

.location-date-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.location {
    color: #222222;
    /*font-weight: 500;*/
    font-size: 10px;

}

.location i {
    margin-right: 8px;
}

.publish-date {
    color: #95a5a6;
    font-size: 0.9rem;
}

.user-interaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    /*background: #f9fafb;*/
}

.user-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.username {
    font-weight: 500;
    color: #34495e;
    font-size: 0.95rem;
}

.interaction-stats {
    display: flex;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    color: #222222;
    font-size: 0.9rem;
}

.stat i {
    margin-right: 5px;
    font-size: 1rem;
}

.likes i {
    /*color: #e74c3c;*/
}

.shares i {
    /*color: #3498db;*/
}

.comments i {
    /*color: #f39c12;*/
}

/* 作品缩略图 */
.card-list-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.list-item:hover .list-thumb img {
    /* transform: scale(1.05); */
}

.icon-position {
    position: absolute;
    top: 15px;
    right: 15px;
    /*background: rgba(0, 0, 0, 0.6);*/
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 14px;
    z-index: 2;
}

.icon-position-large {
    position: absolute;
    top: 8px;
    right: 8px;
    /*background: rgba(0, 0, 0, 0.6);*/
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 25px;
    z-index: 2;
}

/* 作品描述 */
.card-list-desc {
    padding: 15px;
}

.card-list-desc-title {
    margin-bottom: 12px;
}

.card-list-desc-title a {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 3em;
}

.list-desc-title a:hover {
    color: #e74c3c;
}

/* 项目信息 */
.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info-left {
    display: flex;
    align-items: center;
}

.item-avatar {
    margin-right: 10px;
}

.item-avatar img {
    border-radius: 15px;
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.item-author a {
    color: #222222;
    font-size: 1rem;
    text-decoration: none;
}

.item-author a:hover {
    color: #3498db;
}

.item-info-right {
    display: flex;
}

.item-hits {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.item-hits i {
    margin-right: 5px;
    color: #95a5a6;
}

.content-list {
    transition: opacity 0.2s ease-in-out;
}

/* 添加淡入淡出效果 */
.tab-content {
    position: relative;
    min-height: 500px;
}

.tab-pane {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.tab-pane.active {
    opacity: 1;
    position: relative;
    pointer-events: all;
}



.popup-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.popup-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    /*background: rgba(0, 0, 0, 0.6);*/
    background: white;
    /*color: white;*/
    color: gba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.popup-title {
    /*padding: 15px;*/
    /*border-bottom: 1px solid #eee;*/
    
    padding: 15px 15px 0 15px;
    /*border-bottom: 1px solid #eee;*/
    min-height: 60px;
    display: flex;
    align-items: center;
}

.popup-title h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /*height: 44.8px;*/
}

.popup-footer {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    font-size: 14px;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7f8c8d;
    font-size: 13px;
}

.post-time {
    white-space: nowrap;
}

.post-likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.demo-markers {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.demo-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.code-snippet {
    background: #2d3436;
    color: #dfe6e9;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    margin-top: 20px;
    overflow-x: auto;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    .map-container {
        height: 400px;
    }
    
    .marker-popup {
        width: 280px;
    }
}

.foot {
    background-color: #f3f3f3;
    border-top: 1px solid #dfdfdf;
}

.foot-otherinfo {
    border-top: 1px solid #dfdfdf;
}

/*新增点赞样式*/
.like-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    transform: scale(1.1);
}

.like-btn .fas.fa-heart {
    color: #e74c3c !important;
}


.like-icon{
    padding-right: 5px;
}

/* 登录提示遮罩 */
.login-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.login-prompt-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-prompt-modal h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.login-prompt-modal p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
    font-size: 18px;
}

.login-prompt-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-around;
}

.login-prompt-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-prompt-btn.primary {
    background: #16C040;
    color: white;
}

.login-prompt-btn.primary:hover {
    background: #13a835;
}

.login-prompt-btn.secondary {
    background: #f1f2f6;
    color: #666;
}

.login-prompt-btn.secondary:hover {
    background: #e4e6eb;
}

.login-link {
    color: #16C040;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

/* 点赞成功提示样式 */
.like-success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInOut 2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.like-success-toast i {
    color: #ff4757;
    font-size: 18px;
}

.like-success-toast span {
    font-size: 16px;
    font-weight: 500;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    20% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

.like-btn.animating {
    animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-btn.processing {
    opacity: 0.7;
    pointer-events: none;
}

/* 确保点赞图标颜色正确 */
.like-btn .fas.fa-heart {
    color: #e74c3c !important;
}

.like-btn .far.fa-heart {
    color: #222222;
    font-size: 16px;
}

.message-link .fa-commenting{
    font-size: 22px;
}
.message-link .message-unbadge{
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 10px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 10px;
    padding: 1px 3px;
    box-shadow: 0 0 0 1px white;
}