﻿#section-loading {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;  /* 局部即可，不盖全屏 */
}

/* 小号 loader */
#section-loading .loader {
    width: 35px;
    height: 35px;
    border: 4px solid #ddd;
    border-top-color: #ff6600;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
#knowledge .modal-dialog {
    max-width: 60%;  /* 最大宽度为屏幕的80% */
    width: 60%;      /* 宽度为80% */
}
    .scroll-wrapper {
        height: 660px; /* 增加可视区域高度以适应瀑布流 */
        overflow: hidden;
        position: relative;
    }
    
    .scroll-content {
        will-change: transform; /* 硬件加速优化 */
    }
    
    .masonry-layout {
        margin: 0;
        position: relative;
        box-sizing: border-box;
    }
    
    .masonry-column {
        box-sizing: border-box;
    }
    
    .masonry-item {
        margin-bottom: 8px; /* 项目之间的垂直间距 */
        break-inside: avoid; /* 防止项目被分割 */
        page-break-inside: avoid; /* 兼容老版本浏览器 */
        box-sizing: border-box;
    }
    
    .masonry-item .item {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        height: 100%;
    }
    
    .masonry-item .item:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .masonry-item .item .img-fluid {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }
    
    .masonry-item .item:hover img {
        transform: scale(1.03);
    }
    
    .masonry-item .item p {
        padding: 12px;
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        color: #333;
    }
    .why-item{
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 .125rem .25rem rgba(var(--bs-body-color-rgb), .075) !important;
}
.title-club{
	font-size: 40px;
	color: #182d82;
}
    /* 响应式调整 */
    @media (max-width: 767px) {
        .masonry-item {
            margin-bottom: 6px;
        }
        
        .scroll-wrapper {
            height: 500px; /* 移动端增加高度 */
        }
        
        .masonry-item .item p {
            padding: 10px;
            font-size: 13px;
        }
    }
    
    @media (min-width: 768px) and (max-width: 991px) {
        .masonry-item {
            margin-bottom: 8px;
        }
        
        .scroll-wrapper {
            height: 500px;
        }
    }
    
    @media (min-width: 992px) {
        .masonry-item {
            margin-bottom: 10px;
        }
        
        .scroll-wrapper {
            height: 600px;
        }
    }
    
    /* 原有的其他样式保持不变 */
    .font-semibold{
        background-color: #dfd9d91a;
	display: block;
	margin: 3% auto 2%;
	width: 280px;
	text-align: center;
	padding: 10px;
	border-radius: 20px;
	color: #fff !important;
	font-weight: 600;
	font-size: 18px;
    }
    .club-machines{
        color: #fff;
        text-align: center;
        font-size: 52px;
        font-weight: 800;
        margin-bottom: 20px;
    }
    .club-text{
	color: #fff;
        font-size: 22px;
        text-align: center;
    }
    .inline-flex{
        background: #2240b9;
        padding: 10px;
        color: #fff;
        display: block;
        width: 200px;
        text-align: center;
        margin: 0 auto;
        border-radius: 7px;
    }
    .inline-flex button{
        color:#fff;
    }
    .clup-nation{
        background:#f5f5f6
    }
    .rounded-circle{
        border-radius: 10px !important;
        background:#203cae;
    }
    .card {
        border: 1px solid #e9ecef;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    /* Hover 效果：上浮 + 阴影增强 + 边框颜色高亮 */
    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
        border-color: #0d6efd; /* Bootstrap 主色 */
    }
    .icon-circle{
        background: #dee1ea;
        width: 65px;
        height: 65px;
        margin: 0 auto;
        line-height: 65px;
        border-radius: 50%;
    }
    .clup-box .text-primary{
        color: #182d81 !important;
    }
    .clup-box .why-join-section{
        background:#f5f6f7;
	overflow: hidden;
    }
    .clup-box .brand-number{
        font-size: 28px;
        color: #182d81;
    }
    .clup-box .text-muted{
        font-size: 18px;
    }
.item{
	position: relative;
	cursor: pointer;
}
.sm-ico{
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 100;
	width: 30px;
}
.user-item {
    display: flex;
    align-items: center;
    gap: 10px; /* 头像和用户名之间的间距 */
    padding: 5px 10px;
    font-family: Arial, sans-serif;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* 圆形头像 */
    object-fit: cover;
}

.username {
    font-size: 16px;
    color: #333;
}

    @media (min-width: 1400px) {
       .clup-box .container {
            max-width: 1200px;
        }
    }
    @media screen and (max-width: 850px) {
         .club-machines {
             font-size: 38px;
         }
    }

.fx_sm {
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 50; /* 保证在上层 */
}

.fx_sm img {
    width: 22px;
}

/* 分享菜单默认隐藏 */
.share-options-menu-list {
    position: absolute;
    bottom: 30px;
    right: -156px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 0;
    width: 180px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

    /* 隐藏 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;

    z-index: 99999; /* 强制显示在最前面 */
}

.share-options-menu-list li {
    list-style: none;
}

.share-options-menu-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.share-options-menu-list a:hover {
    background: #f5f5f5;
}

/* 关键：hover 到 fx_sm 时显示菜单 */
.fx_sm:hover .share-options-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
