/* 认证会员页面样式 */

.certified-members-page {
    background: url('../images/activity_detail/bg-other.png') center top no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}



/* 导航栏 - 认证会员页始终深色 */
.certified-members-page .header {
        background: #5D81FC;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;.certified-members-page .header*/
/*    right: 0;*/
/*    z-index: 1000;*/
    
/*background: rgba(93, 129, 252, 1);*/
/*    padding-bottom: 0;*/
/*    transition: padding-bottom 0.3s ease;*/
}

/* 滚动后导航栏增加底部空间容纳搜索框 */
.certified-members-page .header.scrolled {
 background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
}

/* 导航栏中的搜索框（默认隐藏） */
.header-search {
    position: absolute;
    left: 50%;
    top: calc(100% + 20px);
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.header-search-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 25px;
    padding: 0 20px;
    width: 663px;
    height: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-search .search-icon {
    color: #FFD700;
    margin-right: 10px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.header-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333333;
    width: 100%;
}

.header-search-input::placeholder {
    color: #AAAAAA;
}

/* 滚动后显示导航栏搜索框 */
.header.scrolled .header-search {
    opacity: 1;
    visibility: visible;
}

/* 搜索区域 */
.search-section {
    padding: 30px 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-section.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.search-container {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.search-box {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    border-radius: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 25px;
    height: 56px;
}

.search-icon-main {
    color: #FFD700;
    margin-right: 12px;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333333;
    background: transparent;
}

.search-input::placeholder {
    color: #AAAAAA;
}

/* 瀑布流区域 */
.waterfall-section {
    padding: 20px 0 60px;
}

.waterfall-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.waterfall-grid {
    position: relative;
    width: 100%;
}

/* 瀑布流项目 */
.waterfall-item {
    overflow: hidden;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.waterfall-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.waterfall-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 图片预览弹窗 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.image-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-content img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-download {
    margin-top: 20px;
    padding: 12px 40px;
    background: #00A8FF;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.modal-download:hover {
    background: #0096E6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 168, 255, 0.4);
}

/* 响应式布局 */
@media (max-width: 1600px) {
    /* JavaScript 会处理列数调整 */
}

@media (max-width: 1400px) {
    /* JavaScript 会处理列数调整 */
}

@media (max-width: 1024px) {
    .header-search-box {
        width: 500px;
    }
    
    .waterfall-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* 导航栏移动端适配 */
  .certified-members-page .header{
      padding-bottom: 12px;
  }
    
    
    /* 隐藏导航栏搜索框 */
    .header-search {
        display: none !important;
    }
    
    /* 搜索区域 */
    .search-section {
        padding: 40px 0 30px;
    }
    
    .search-container {
        padding: 0 15px;
    }
    
    .search-box {
        height: 50px;
        padding: 0 20px;
        border-radius: 25px;
    }
    
    .search-input {
        font-size: 15px;
    }
    
    .search-icon-main {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    /* 瀑布流区域 */
    .waterfall-section {
        padding: 15px 0 40px;
    }
    
    .waterfall-container {
        padding: 0 10px;
    }
    
    .waterfall-item {
        border-radius: 8px;
    }
    
    /* 弹窗适配 */
    .modal-content {
        max-width: 95%;
        max-height: 95%;
        width: 80%;
    }
    
    .modal-close {
        top: -35px;
        font-size: 32px;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
    
    .modal-content img {
        max-height: calc(90vh - 60px);
        border-radius: 8px;
    }
    
    .modal-download {
        padding: 10px 30px;
        font-size: 14px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    /* 搜索区域 */
    .search-section {
        padding: 40px 0 20px;
    }
    
    .search-container {
        padding: 0 10px;
    }
    
    .search-box {
        height: 44px;
        padding: 0 15px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .search-icon-main {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    /* 瀑布流区域 */
    .waterfall-section {
        padding: 10px 0 30px;
    }
    
    .waterfall-container {
        padding: 0 8px;
    }
    
    .waterfall-item {
        border-radius: 6px;
    }
    
    /* 弹窗适配 */
    .modal-close {
        top: -30px;
        font-size: 28px;
        width: 28px;
        height: 28px;
        line-height: 28px;
    }
    
    .modal-download {
        padding: 8px 25px;
        font-size: 13px;
        margin-top: 12px;
    }
}
