/* 公会卡片样式 */
.clan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 8px;
    overflow: hidden;
}

.clan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.clan-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.badge {
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-block {
    width: 100%;
}

/* 左侧导航栏样式 */
.clans-layout {
    display: flex;
    min-height: calc(100vh - 200px);
    margin-top: 20px;
}

.clans-sidebar {
    width: 250px;
    background: linear-gradient(135deg, rgba(25, 32, 45, 0.95) 0%, rgba(20, 25, 35, 0.95) 100%) !important;
    background-color: rgba(25, 32, 45, 0.95) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-right: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.15) !important;
    color: #fff !important;
    height: fit-content !important;
    position: sticky !important;
    top: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateZ(0) !important;
    overflow: hidden !important;
}

/* 确保导航栏背景色始终存在，防止被覆盖 */
.clans-sidebar-bg-fixed {
    background: linear-gradient(135deg, rgba(25, 32, 45, 0.95) 0%, rgba(20, 25, 35, 0.95) 100%) !important;
    background-color: rgba(25, 32, 45, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.15) !important;
    transform: translateZ(0) !important;
}

.clans-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.clans-nav-container {
    margin-bottom: 20px;
}

.clans-user-info {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-bottom: 25px !important;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.user-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.user-clan-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

.clans-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clans-nav-menu .nav-item {
    margin-bottom: 5px;
}

/* 移除禁用2D效果的规则，允许使用2D UI效果 */
/* 这些样式已被 more.php 中的内联样式和 clans-nav-container.css 中的样式覆盖 */

.clans-nav-menu .nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .clans-layout {
        flex-direction: column;
    }

    .clans-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        position: relative;
        top: 0;
    }
}
